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

Commit

Permalink
Add the ability of unbundling JSC from weex_sdk.aar.
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Oct 15, 2019
1 parent ae3c0e8 commit 5edef95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ext {
//Default value for disableCov is false
disableCov = project.hasProperty("disableCov") && disableCov.equals("true")
useApachePackageName = project.hasProperty('apachePackageName') ? project.property('apachePackageName').toBoolean() : false
unbundlingJSC = project.hasProperty('unbundlingJSC') ? project.property('unbundlingJSC').toBoolean() : false
implementFromWeex = true
}

Expand Down
4 changes: 4 additions & 0 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ android {
main.java.srcDirs = ['src/legacyRelease/java']
main.manifest.srcFile(new File('src/legacyRelease/AndroidManifest.xml'))
}

if(project.unbundlingJSC){
main.jniLibs.srcDirs = []
}
}

compileOptions.encoding = "UTF-8"
Expand Down

0 comments on commit 5edef95

Please sign in to comment.