├── README.md ├── BasicPlugin ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── meizu │ │ │ │ │ └── samples │ │ │ │ │ └── basicplugin │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── meizu │ │ │ │ └── samples │ │ │ │ └── basicplugin │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── meizu │ │ │ └── samples │ │ │ └── basicplugin │ │ │ └── ApplicationTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── buildSrc │ ├── build │ │ ├── tmp │ │ │ └── jar │ │ │ │ └── MANIFEST.MF │ │ ├── libs │ │ │ └── buildSrc.jar │ │ └── classes │ │ │ └── main │ │ │ └── com │ │ │ └── meizu │ │ │ └── samples │ │ │ ├── HelloGradle.class │ │ │ ├── GreetingContainer.class │ │ │ ├── GreetingExtension.class │ │ │ ├── HelloGradle$_apply_closure1.class │ │ │ ├── HelloGradle$_apply_closure2.class │ │ │ └── HelloGradle$_apply_closure2$_closure3.class │ └── src │ │ └── main │ │ └── groovy │ │ └── com │ │ └── meizu │ │ └── samples │ │ └── HelloGradle.groovy ├── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── basic-dsl ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── meizu │ │ │ │ │ └── sample │ │ │ │ │ └── basicdsl │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── ultra │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── string.xml │ │ ├── free │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── meizu │ │ │ │ └── sample │ │ │ │ └── basicdsl │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── meizu │ │ │ └── sample │ │ │ └── basicdsl │ │ │ └── ApplicationTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── BasicProject ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-v21 │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ ├── menu │ │ │ │ │ └── menu_main.xml │ │ │ │ └── layout │ │ │ │ │ ├── content_main.xml │ │ │ │ │ └── activity_main.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── meizu │ │ │ │ └── sample │ │ │ │ └── basicproject │ │ │ │ └── MainActivity.java │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── meizu │ │ │ │ └── sample │ │ │ │ └── basicproject │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── meizu │ │ │ └── sample │ │ │ └── basicproject │ │ │ └── ApplicationTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── lib │ ├── .gitignore │ ├── res │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ └── styles.xml │ │ ├── values-v21 │ │ │ └── styles.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ ├── menu │ │ │ └── menu_main.xml │ │ └── layout │ │ │ ├── content_main.xml │ │ │ └── activity_main.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── meizu │ │ │ └── sample │ │ │ └── basicproject │ │ │ └── ExampleUnitTest.java │ ├── proguard-rules.pro │ ├── build.gradle │ ├── AndroidManifest.xml │ └── src │ │ └── com │ │ └── meizu │ │ └── sample │ │ └── basicproject │ │ └── lib │ │ └── MainActivity.java ├── buildSrc │ └── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── StandalonePlugin ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── meizu │ │ │ │ │ └── samples │ │ │ │ │ └── standaloneplugin │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── meizu │ │ │ │ └── samples │ │ │ │ └── standaloneplugin │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── meizu │ │ │ └── samples │ │ │ └── standaloneplugin │ │ │ └── ApplicationTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── .idea │ ├── .name │ ├── copyright │ │ └── profiles_settings.xml │ ├── encodings.xml │ ├── modules.xml │ ├── runConfigurations.xml │ ├── compiler.xml │ ├── gradle.xml │ └── misc.xml ├── plugin │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── gradle-plugins │ │ │ │ └── standalone-plugin.properties │ │ │ └── groovy │ │ │ └── com │ │ │ └── meizu │ │ │ └── samples │ │ │ └── standaloneplugin │ │ │ ├── GreetingExtension.groovy │ │ │ ├── GreetingContainer.groovy │ │ │ └── HelloPlugin.groovy │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew └── presentations ├── Android Gradle 从入门到GG 0.pptx ├── Android Gradle 从入门到GG 1.pptx ├── Android Gradle 从入门到GG 2.pptx └── Android Gradle 从入门到GG 3.pptx /README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BasicPlugin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /basic-dsl/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BasicProject/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BasicProject/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /StandalonePlugin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BasicPlugin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /BasicProject/buildSrc/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /StandalonePlugin/.idea/.name: -------------------------------------------------------------------------------- 1 | StandalonePlugin -------------------------------------------------------------------------------- /StandalonePlugin/plugin/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /basic-dsl/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /StandalonePlugin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':plugin' 3 | -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/tmp/jar/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /BasicPlugin/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | .DS_Store 5 | /build 6 | /captures 7 | .idea -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BasicDSL 3 | 4 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BasicPlugin 3 | 4 | -------------------------------------------------------------------------------- /StandalonePlugin/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | StandalonePlugin 3 | 4 | -------------------------------------------------------------------------------- /presentations/Android Gradle 从入门到GG 0.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/presentations/Android Gradle 从入门到GG 0.pptx -------------------------------------------------------------------------------- /presentations/Android Gradle 从入门到GG 1.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/presentations/Android Gradle 从入门到GG 1.pptx -------------------------------------------------------------------------------- /presentations/Android Gradle 从入门到GG 2.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/presentations/Android Gradle 从入门到GG 2.pptx -------------------------------------------------------------------------------- /presentations/Android Gradle 从入门到GG 3.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/presentations/Android Gradle 从入门到GG 3.pptx -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/libs/buildSrc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/libs/buildSrc.jar -------------------------------------------------------------------------------- /basic-dsl/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BasicPlugin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BasicProject/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BasicProject/lib/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/lib/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/lib/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/lib/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/lib/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/lib/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /basic-dsl/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .idea -------------------------------------------------------------------------------- /BasicProject/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .idea -------------------------------------------------------------------------------- /BasicProject/lib/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/lib/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/lib/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/lib/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /StandalonePlugin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /StandalonePlugin/plugin/src/main/resources/META-INF/gradle-plugins/standalone-plugin.properties: -------------------------------------------------------------------------------- 1 | implementation-class=com.meizu.samples.standaloneplugin.HelloPlugin 2 | -------------------------------------------------------------------------------- /basic-dsl/app/src/ultra/res/values/string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ultra 4 | -------------------------------------------------------------------------------- /basic-dsl/app/src/free/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Free 4 | 5 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/basic-dsl/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicProject/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/lib/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BasicProject 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /StandalonePlugin/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | 10 | .repo 11 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/StandalonePlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BasicProject 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle.class -------------------------------------------------------------------------------- /StandalonePlugin/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/GreetingContainer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/GreetingContainer.class -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/GreetingExtension.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/GreetingExtension.class -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure1.class -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure2.class -------------------------------------------------------------------------------- /StandalonePlugin/plugin/src/main/groovy/com/meizu/samples/standaloneplugin/GreetingExtension.groovy: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.standaloneplugin 2 | 3 | class GreetingExtension { 4 | String message = 'Hello' 5 | String greeter = 'Gradle' 6 | } -------------------------------------------------------------------------------- /BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure2$_closure3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jween/android-gradle-samples/HEAD/BasicPlugin/buildSrc/build/classes/main/com/meizu/samples/HelloGradle$_apply_closure2$_closure3.class -------------------------------------------------------------------------------- /BasicProject/lib/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /BasicPlugin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /BasicProject/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /basic-dsl/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /StandalonePlugin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /BasicProject/lib/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /BasicProject/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | //println "rootProject name is ${rootProject.name}" 4 | //println "rootProject dir is ${rootProject.projectDir}" 5 | // 6 | //println "Project ':app' name is ${project(':app').name}" 7 | //println "Project ':app' dir is ${project(':app').projectDir}" 8 | 9 | // include ':lib' // 配置好你的 lib 模块, 然后取消屏蔽此行脚本 10 | 11 | 12 | -------------------------------------------------------------------------------- /BasicProject/lib/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /BasicProject/lib/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /StandalonePlugin/plugin/src/main/groovy/com/meizu/samples/standaloneplugin/GreetingContainer.groovy: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.standaloneplugin 2 | 3 | class GreetingContainer { 4 | final String name 5 | List msgList = [] 6 | 7 | GreetingContainer(String name) { 8 | this.name = name 9 | } 10 | 11 | void message(String...args) { 12 | msgList += Arrays.asList(args) 13 | } 14 | } -------------------------------------------------------------------------------- /basic-dsl/app/src/test/java/com/meizu/sample/basicdsl/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicdsl; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /BasicPlugin/app/src/test/java/com/meizu/samples/basicplugin/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.basicplugin; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /BasicProject/app/src/test/java/com/meizu/sample/basicproject/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicproject; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /BasicProject/lib/test/java/com/meizu/sample/basicproject/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicproject; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/java/com/meizu/samples/basicplugin/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.basicplugin; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/test/java/com/meizu/samples/standaloneplugin/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.standaloneplugin; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/java/com/meizu/samples/standaloneplugin/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.standaloneplugin; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /basic-dsl/app/src/androidTest/java/com/meizu/sample/basicdsl/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicdsl; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /BasicProject/lib/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/androidTest/java/com/meizu/samples/basicplugin/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.basicplugin; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /BasicProject/app/src/androidTest/java/com/meizu/sample/basicproject/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicproject; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /BasicProject/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/androidTest/java/com/meizu/samples/standaloneplugin/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.meizu.samples.standaloneplugin; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /StandalonePlugin/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/java/com/meizu/sample/basicdsl/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.meizu.sample.basicdsl; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | 13 | String channelName = BuildConfig.CHANNEL_NAME; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BasicPlugin/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.1.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /basic-dsl/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.1.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /StandalonePlugin/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /BasicPlugin/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\dev\android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BasicProject/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\dev\android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BasicProject/lib/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\dev\android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /basic-dsl/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\dev\android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /StandalonePlugin/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\dev\android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BasicProject/lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 22 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | 23 | dependencies { 24 | compile fileTree(dir: 'libs', include: ['*.jar']) 25 | testCompile 'junit:junit:4.12' 26 | compile 'com.android.support:appcompat-v7:23.3.0' 27 | compile 'com.android.support:design:23.3.0' 28 | } 29 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /StandalonePlugin/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /basic-dsl/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /StandalonePlugin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /StandalonePlugin/plugin/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'groovy' 2 | 3 | dependencies { 4 | compile gradleApi() 5 | compile localGroovy() 6 | 7 | compile 'com.android.tools.build:gradle:2.1.0' 8 | } 9 | 10 | 11 | apply plugin: 'maven' 12 | 13 | // for local maven publish 14 | group = 'com.meizu.samples' 15 | version = '1.0' 16 | status = 'RELEASE' 17 | 18 | artifacts { // artifact to be uploaded 19 | archives jar 20 | } 21 | 22 | uploadArchives { 23 | repositories { 24 | mavenDeployer { 25 | repository(url: uri('../.repo')) 26 | pom.version = '1.0' 27 | pom.artifactId = 'standalone' 28 | } 29 | } 30 | } 31 | 32 | 33 | sourceCompatibility = JavaVersion.VERSION_1_6 34 | targetCompatibility = JavaVersion.VERSION_1_6 -------------------------------------------------------------------------------- /basic-dsl/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /BasicPlugin/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /StandalonePlugin/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | maven { 7 | url uri('.repo') // 相对本gradle文件的路径 8 | } 9 | } 10 | dependencies { 11 | classpath 'com.android.tools.build:gradle:2.1.0' 12 | classpath group: 'com.meizu.samples', name: 'standalone', 13 | version: '1.0' 14 | // NOTE: Do not place your application dependencies here; they belong 15 | // in the individual module build.gradle files 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /BasicProject/lib/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 10 | 11 | 15 | 16 |