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

Commit

Permalink
[Android] Separate playground (#2688)
Browse files Browse the repository at this point in the history
* [Android] Separate Playground into https://github.com/apache/incubator-weex-playground
  • Loading branch information
katherine95s authored and YorkShen committed Jul 15, 2019
1 parent 23c8f3e commit 05c6758
Show file tree
Hide file tree
Showing 521 changed files with 68 additions and 58,223 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "weex-playground"]
path = weex-playground
url = https://github.com/apache/incubator-weex-playground.git
branch = master
19 changes: 18 additions & 1 deletion android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,21 @@
See https://gradle.org/install#with-a-package-manager
## Build Weex
run `gradle build`
Playground app artifact will be under 'playground/app/build'
Playground app artifact will be under 'playground/build'
## The submodule weex-playground
[Weex Playground](https://github.com/apache/incubator-weex-playground) can be used to test and preview weex pages on Android and it has been added as a submodule.
### Relationship between weex and playground
* The playground submodule will be cloned and updated automatically when developers clone the ‘incubator-weex’ repo and build it.In this case, playground project will implement the source code of weex-sdk.
* When developer directly clone the 'weex-playground' repo and run it separately, the playground project will implement a corresponding aar version of weex-sdk.
### When to publish SNAPSHOT
When some commits of playground rely on unpublished features of weex-sdk,a SNAPSHOT of weex-sdk will be needed to support it.
### How to publish SNAPSHOT
`cd android `
`./gradlew clean install ArtifactoryPublish -PweexVersion=$PUBLISH_VERSION -PbintrayUser=alibabaweex -PbintrayApiKey=$JCENTER_TOKEN `

* Explanation for variable:
$PUBLISH_VERSION The version of snapshot, like 0.26.1.3-SNAPSHOT
$JCENTER_TOKEN The private key for JCenter (https://bintray.com/alibabaweex/maven/weex_sdk/), which is the distribution channel for Android



26 changes: 14 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@ subprojects {
}
}
}
ext {
compileSdkVersion=26
buildToolsVersion="26.0.3"
minSdkVersion=14
targetSdkVersion=26
supportLibVersion="26.0.2"
fastjsonLibVersion="1.1.46.android"
//Default value for buildCpp is true
buildCpp = !project.hasProperty("buildCpp") || buildCpp.equals("true")
//Default value for disableCov is false
disableCov = project.hasProperty("disableCov") && disableCov.equals("true")
}
}
ext {
compileSdkVersion=26
buildToolsVersion="26.0.3"
minSdkVersion=14
targetSdkVersion=26
supportLibVersion="26.0.2"
fastjsonLibVersion="1.1.46.android"
//Default value for buildCpp is true
buildCpp = !project.hasProperty("buildCpp") || buildCpp.equals("true")
//Default value for disableCov is false
disableCov = project.hasProperty("disableCov") && disableCov.equals("true")
implementFromWeex = true

}

//task clean(type: Delete) {
Expand Down
77 changes: 0 additions & 77 deletions android/commons/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions android/commons/proguard-rules.pro

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions android/commons/src/main/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit 05c6758

Please sign in to comment.