Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 5edef95

Browse files
committed
Add the ability of unbundling JSC from weex_sdk.aar.
1 parent ae3c0e8 commit 5edef95

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ ext {
7676
//Default value for disableCov is false
7777
disableCov = project.hasProperty("disableCov") && disableCov.equals("true")
7878
useApachePackageName = project.hasProperty('apachePackageName') ? project.property('apachePackageName').toBoolean() : false
79+
unbundlingJSC = project.hasProperty('unbundlingJSC') ? project.property('unbundlingJSC').toBoolean() : false
7980
implementFromWeex = true
8081
}
8182

android/sdk/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ android {
209209
main.java.srcDirs = ['src/legacyRelease/java']
210210
main.manifest.srcFile(new File('src/legacyRelease/AndroidManifest.xml'))
211211
}
212+
213+
if(project.unbundlingJSC){
214+
main.jniLibs.srcDirs = []
215+
}
212216
}
213217

214218
compileOptions.encoding = "UTF-8"

0 commit comments

Comments
 (0)