Uh oh!
There was an error while loading. Please reload this page.
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. |
akshetpandey
commented
Nov 12, 2018
This still needs to address that android-jsc is build with gnustl. |
hey99xx
commented
Nov 13, 2018
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? |
hey99xx
commented
Nov 13, 2018
Oh maybe I'm missing this part react-native-community/jsc-android-buildscripts#66 (comment) |
DanielZlotin
commented
Nov 14, 2018
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? |
Kudo
commented
Nov 14, 2018
@DanielZlotin FYI, I checked the ticket at https://code.google.com/p/android/issues/detail?id=158630. |
Kudo
commented
Nov 14, 2018
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'
}
} |
DanielZlotin
commented
Nov 14, 2018
Yes please continue discussion on #22263 |
Summary: Pull Request resolved: react#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: react#22263 Differential Revision: D13004499 fbshipit-source-id: b4eca5d76482539c2c91833801b534e90cf153eb
Summary: Pull Request resolved: react#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: react#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
react-native-bot
commented
Dec 27, 2018
Daniel Zlotin merged commit f3e5cce into |
Summary: Pull Request resolved: react#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: react#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Summary: Pull Request resolved: react/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: react/react-native#22263 Reviewed By: hramos Differential Revision: D13004499 Pulled By: DanielZlotin fbshipit-source-id: da54bb744cedb4c6f3bda590f8c25d0ad64086ef
Summary:
cleantask should now always succeedcleantask deletes build artifactsDifferential Revision: D13004499