Skip to content

Commit

Permalink
Add bundle build type with extractNativeLibs=false
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlele committed Feb 17, 2025
1 parent b65e4b3 commit ea5fabc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions V2rayNG/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ android {
"proguard-rules.pro"
)
}

// extractNativeLibs (useLegacyPackaging) set to false
// run `bundlePlaystoreStore` task to generate Play Store bundle
register("store") {
initWith(getByName("release"))
matchingFallbacks.add("release")
}
}

flavorDimensions.add("distribution")
Expand Down Expand Up @@ -133,6 +140,12 @@ android {

}

androidComponents {
onVariants(selector().withBuildType("store")) { variant ->
variant.packaging.jniLibs.useLegacyPackaging = false
}
}

dependencies {
// Core Libraries
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar", "*.jar"))))
Expand Down

0 comments on commit ea5fabc

Please sign in to comment.