-
Notifications
You must be signed in to change notification settings - Fork 31
chore(ci): optimize android app build with RN App #232
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
base: main
Are you sure you want to change the base?
Changes from all commits
73af0d0
f766235
46225c7
5000b11
6650c0f
7ad29a0
a8c139b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,9 @@ android { | |
| versionCode = 1 | ||
| versionName = "1.0" | ||
|
|
||
| ndk { | ||
| abiFilters += listOf("arm64-v8a") | ||
| } | ||
|
Comment on lines
+28
to
+30
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm all for it, but how about injecting this in CI - the current approach will be a sad surprise for someone who wants to run e.g. on x86_64. I think the optimal way would be something like: val abiOverride = project.findProperty("demoAbiFilters") as String?
if (abiOverride != null) {
abiFilters.clear()
abiFilters += abiOverride.split(",")
} else {
abiFilters += listOf("arm64-v8a")
}And we could just pass But there's one blocker: I think we don't have a way to pass This would not only unlock this option, but also help |
||
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ android.useAndroidX=true | |
| # Use this property to specify which architecture you want to build. | ||
| # You can also override it from the CLI using | ||
| # ./gradlew <task> -PreactNativeArchitectures=x86_64 | ||
| reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 | ||
| reactNativeArchitectures=arm64-v8a | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| # Use this property to enable support to the new architecture. | ||
| # This will allow you to use TurboModules and the Fabric render in | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure we need to remove this? I would say this actually gives us a boost.