-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update gradle and mk files #22231
Update gradle and mk files #22231
Conversation
Summary: - Use clang instead of the deprecated ndkbuild - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Differential Revision: D13004499 fbshipit-source-id: f1945cb8aaacf7d7719897ab06aae6717b44da93
Cool 👍 Also, I think it might be more appropriate to bump compileSdkVersion to 28, because Android Gradle plugin 3.2.x requires build-tools 28.0.3 or above. |
This still needs to address that android-jsc is build with gnustl. |
Won't this break in runtime as android-jsc still depends on libgnustl? It doesn't ship with as it was deleting libgnustl_shared.so to not conflict with the one used in this project, but I'd guess it still expects to find it in the apk. Will android-jsc just pick up libc++_shared.so and be functional? Otherwise shouldn't Kudo/android-jsc@0437216 go in first? |
Oh maybe I'm missing this part react-native-community/jsc-android-buildscripts#66 (comment) |
Right, I'm trying to allow users to choose which JSC to use, the current old one or the new one. But seeing that the older jsc uses gnustl might prove to be a problem. We probably need to remove this line, good catch. Also the new JSC forces min api 21 but there might be a workaround in the works. |
Wouldn't it be better to wait for minSdk downgrade that you've already approved and then upgrade to new JSC in here, then android-jsc would be obsolete. Edit: Also should others ignore this PR in favor of the new one you've opened? |
@DanielZlotin FYI, I checked the ticket at https://code.google.com/p/android/issues/detail?id=158630. |
Updates: The usage somehow like this. android {
...
...
packagingOptions {
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
}
} |
Yes please continue discussion on #22263 |
Summary: Pull Request resolved: facebook#22231 - Use clang instead of the deprecated gcc - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Pull Request resolved: facebook#22263 Differential Revision: D13004499 fbshipit-source-id: b4eca5d76482539c2c91833801b534e90cf153eb
Summary: Pull Request resolved: facebook#22231 - Use clang instead of the deprecated gcc - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Pull Request resolved: facebook#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Daniel Zlotin merged commit f3e5cce into |
Summary: Pull Request resolved: facebook#22231 - Use clang instead of the deprecated gcc - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Pull Request resolved: facebook#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Summary: Pull Request resolved: facebook/react-native#22231 - Use clang instead of the deprecated gcc - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Pull Request resolved: facebook/react-native#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Summary: Pull Request resolved: facebook#22231 - Use clang instead of the deprecated gcc - Use libc++ instead of the deprecated gnustl - Updated gradle and android plugin version - Fixed missing arch in local-cli template - `clean` task should now always succeed - `clean` task deletes build artifacts - No need to specify buildToolsVersion. It's derived. - Elvis operator for more readable code Pull Request resolved: facebook#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Summary:
clean
task should now always succeedclean
task deletes build artifactsDifferential Revision: D13004499