diff --git a/README.md b/README.md index c980202..6d16e3c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,5 @@ -Google Play Games C++ SDK Samples for Android -============================================= - -Copyright (C) 2014 Google Inc. - -

Contents

- +Android Google Play Games Native Samples +======================================= These samples illustrate how to use Google Play Game Services with your Android game. * **CollectAllTheStarsNative**: Demonstrates how to use the Saved Games feature to save game data. The sample signs the user in, synchronizes their data from a named game save, and then updates the UI to reflect the saved game state. @@ -21,16 +16,101 @@ These samples illustrate how to use Google Play Game Services with your Android **Note:** In samples with corresponding counterparts for iOS and Web (particularly, CollectAllTheStars and TypeANumber), the player can play a game seamlessly across phones of different platforms. For example, you can play some levels of CollectAllTheStars on your Android device, and then pick up your iOS device and continue where you left off! TypeANumber shows your achievements and leaderboards on all platforms; when you make progress on one platform, that progress is reflected on the other devices, as well. -

How to run a sample

-To use these samples, you need the Google Play Game Services C++ SDK, which you -can [download from here](https://developers.google.com/games/services/downloads/). +Pre-requisites +-------------- +1. Change the applicationId inside each individual samples build.gradle to your own package name +2. Modify res/values/ids.xml and place your IDs there, as given by the + Developer Console (create the leaderboards and achievements necessary for + the sample, if any). In the Developer console, select a resource type + (Achievements, Events, Leaderboards) and click "Get Resources". Copy the + contents from the console and replace the contents of res/values/ids.xml. + +Build with Android Studio +------------------------- +This project requires Android Studio 1.5+. +1. Android SDK version r10e or eariler. +2. Launch Android Studio. +3. Import the project by selecting File > New > Import Project and select + samples-android/build.gradle. +4. Edit the local.properties file (which is created by Android Studio) and + set the ndk.dir property to the location of your r10e or eariler NDK. +5. Change applicationId in the sample app build.gradle to your own package name + that matches the configuration in the Play Game developer console. +6. Replace res/values/ids.xml contents with your values from the developer console. +7. Run the select project. Android Studio will compile, load and start your project on your device + +All projects could be built at one shot from Android Studio menu "Build" -> "Clean Project"/"Rebuild Project" +you could also build with Gradle on Terminal/Command line + +Build using Gradle on OS X or Linux +----------------------------------- +1. Install Android Studio +1. Set the path to the Android SDK + + export ANDROID_HOME=~/Library/Android/sdk + +1. Add the SDK to your path + + export PATH=$PATH;$ANDROID_HOME/tools;$ANDROID_HOME/platform-tools + +1. Set the path to the Android NDK + + export ANDROID_NDK_HOME=/android-ndk-r10e + +1. Execute the build script + + ./gradlew assemble + +Build on Windows using Gradle +----------------------------- +1. Install Android Studio +1. Set the path to the Android SDK + + set ANDROID_HOME=C:\Users\\AppData\Local\Android\sdk + +1. Add the SDK to your path + + set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools + +1. Set the path to the Android NDK + + set ANDROID_NDK_HOME=C:\Users\\Desktop\android-ndk-r10e + +1. (Optional) On some versions of Windows it is helpful to map the samples folder to a shortened path. + + subst G: C:\ + +1. Execute the build script + + G: + gradlew.bat assemble + +Support +------- +If you've found an error in these samples, please [file an issue](https://github.com/playgameservices/cpp-android-basic-samples/issues/new). + +Patches are encouraged, and may be submitted by [forking this project](https://github.com/playgameservices/cpp-android-basic-samples/fork) and +submitting a pull request through GitHub. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more details. + +- [Stack Overflow](http://stackoverflow.com/questions/tagged/google-play-games) +- [Android Tools Feedbacks](http://tools.android.com/feedback) + + +License +------- +Copyright 2015 Google, Inc. + +Licensed to the Apache Software Foundation (ASF) under one or more contributor +license agreements. See the NOTICE file distributed with this work for +additional information regarding copyright ownership. The ASF licenses this +file to you under the Apache License, Version 2.0 (the "License"); you may not +use this file except in compliance with the License. You may obtain a copy of +the License at -After downloading the archive, unzip it to the `./gpg-cpp-sdk` directory. Then, follow [these directions](https://developers.google.com/games/services/cpp/GettingStartedNativeClient). -

Other resources

-* [Google Android Vulkan Tutorials](https://github.com/ggfan/android-vulkan-tutorials) -* [Android Vulkan API Basic Samples](https://github.com/googlesamples/vulkan-basic-samples) -* [Google Android NDK Samples](https://github.com/googlesamples/android-ndk) + http://www.apache.org/licenses/LICENSE-2.0 -

Acknowledgment

-Some of these samples use the following open-source project: -JASONCPP: https://github.com/open-source-parsers/jsoncpp +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations under +the License. diff --git a/samples-android/ButtonClicker/build.gradle b/samples-android/ButtonClicker/build.gradle index 53e9d94..39f46bc 100644 --- a/samples-android/ButtonClicker/build.gradle +++ b/samples-android/ButtonClicker/build.gradle @@ -6,11 +6,10 @@ evaluationDependsOn(':Common/gpg-sdk') // As the plugin has created the build tasks, add the gpg-sdk task to // the task dependencies so it gets done before compiling tasks.whenTaskAdded { task -> - if (task.name.equals("preBuild")) { - project(':Common/gpg-sdk').defaultTasks.each { t -> - task.dependsOn project(':Common/gpg-sdk').tasks[t] + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + } - } } def gpg_cpp_path = file(project(':Common/gpg-sdk').projectDir).absolutePath + "/gpg-cpp-sdk/android" @@ -36,7 +35,10 @@ model { buildToolsVersion="23.0.2" defaultConfig.with { - applicationId="com.google.example.games.ButtonClicker" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 } @@ -85,6 +87,5 @@ model { dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' compile 'com.google.android.gms:play-services-nearby:8.4.0' - compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/ButtonClicker/proguard-project.txt b/samples-android/ButtonClicker/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/ButtonClicker/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/CollectAllTheStarsNative/build.gradle b/samples-android/CollectAllTheStarsNative/build.gradle index 6aaabff..8f81174 100644 --- a/samples-android/CollectAllTheStarsNative/build.gradle +++ b/samples-android/CollectAllTheStarsNative/build.gradle @@ -6,10 +6,9 @@ evaluationDependsOn(':Common/gpg-sdk') // As the plugin has created the build tasks, add the gpg-sdk task to // the task dependencies so it gets done before compiling tasks.whenTaskAdded { task -> - if (task.name.equals("preBuild")) { - project(':Common/gpg-sdk').defaultTasks.each { t -> - task.dependsOn project(':Common/gpg-sdk').tasks[t] - } + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + } } @@ -36,7 +35,10 @@ model { buildToolsVersion = "23.0.2" defaultConfig.with { - applicationId = "com.google.example.games.cats" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 versionCode = 1.0 @@ -87,7 +89,6 @@ model { } dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' - compile 'com.google.android.gms:play-services-nearby:8.4.0' compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/CollectAllTheStarsNative/proguard-project.txt b/samples-android/CollectAllTheStarsNative/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/CollectAllTheStarsNative/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/Common/gpg-sdk/build.gradle b/samples-android/Common/gpg-sdk/build.gradle index 7504230..a74fd2e 100644 --- a/samples-android/Common/gpg-sdk/build.gradle +++ b/samples-android/Common/gpg-sdk/build.gradle @@ -23,16 +23,18 @@ fetch_gpg_cpp_sdk.description = "Download the gpg sdk from the specified locatio task unzip_gpg_sdk() { doFirst { - copy { - from(zipTree('gpg_cpp_sdk.zip')) { - exclude 'gpg_cpp_sdk/ios' - } + if (!file('gpg-cpp-sdk').exists()) { + copy { + from(zipTree('gpg_cpp_sdk.zip')) { + exclude 'gpg-cpp-sdk/ios/**/*' + } - into { project.projectDir } + into { project.projectDir } + } } } - outputs.dir('gpg_cpp_sdk/android') - outputs.upToDateWhen {file('gpg_cpp_sdk/android').exists()} + outputs.dir('gpg-cpp-sdk/android') + outputs.upToDateWhen {file('gpg-cpp-sdk/android').exists()} description = "Unzips the GPG SDK into the correct dir for NDK" dependsOn fetch_gpg_cpp_sdk } diff --git a/samples-android/Minimalist/build.gradle b/samples-android/Minimalist/build.gradle index e0cf787..174be5d 100644 --- a/samples-android/Minimalist/build.gradle +++ b/samples-android/Minimalist/build.gradle @@ -6,10 +6,9 @@ evaluationDependsOn(':Common/gpg-sdk') // As the plugin has created the build tasks, add the gpg-sdk task to // the task dependencies so it gets done before compiling tasks.whenTaskAdded { task -> - if (task.name.equals("preBuild")) { - project(':Common/gpg-sdk').defaultTasks.each { t -> - task.dependsOn project(':Common/gpg-sdk').tasks[t] - } + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + } } @@ -37,7 +36,10 @@ model { buildToolsVersion = "23.0.2" defaultConfig.with { - applicationId = "com.google.example.games.Minimalist" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 @@ -85,6 +87,5 @@ model { dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' compile 'com.google.android.gms:play-services-nearby:8.4.0' - compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/Minimalist/proguard-project.txt b/samples-android/Minimalist/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/Minimalist/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/README.build b/samples-android/README.build deleted file mode 100644 index 414326a..0000000 --- a/samples-android/README.build +++ /dev/null @@ -1,100 +0,0 @@ -Android Google Play Games Native Samples -======================================= -A set of the sample to demonstrate how to use Google Play Games Native Interface on Android: -- create gpg native object -- manage leaderboard, achievement, event, and others -- interact with game graphics - -Pre-requisites --------------- -1. Change the applicationId inside each individual samples build.gradle to your own package name -1. Update the `app_id` and any configured constants in the sample's `src/main/res/values/id.xml` file to those registered in the [Play Games Services console](https://play.google.com/apps/publish) - -Build with Android Studio -------------------------- -This project requires Android Studio 1.5+ with ndk support -1. Launch Android Studio. -1. Open the sample project at cpp-android-basic-samples/samples-android -1. Disable "Instant Run" from Settings-> Build Execution, Deployment -> Instant Run -1. Select project gpg-sdk in Android Studio "project" pane, unzip_gpg_sdk build task [in toolbar] -1. Run the selected build task of "samples-android:Common:gpg-sdk [unzip_gpg_sdk]" -1. Select the project you are interested -1. Change applicationId in your-project build.gradle to your own package name -1. Chagne app_id in string.xml ( or ids.xml ) to your game ID -1. Run the select project. Android Studio will compile, load and start your project on your device - -All projects could be built at one shot from Android Studio menu "Build" -> "Clean Project"/"Rebuild Project" -you could also build with Gradle on Terminal/Command line - -Build using Gradle on OS X or Linux ------------------------------------ -1. Install Android Studio -1. Set the path to the Android SDK - - export ANDROID_HOME=~/Library/Android/sdk - -1. Add the SDK to your path - - export PATH=$PATH;$ANDROID_HOME/tools;$ANDROID_HOME/platform-tools - -1. Set the path to the Android NDK - - export ANDROID_NDK_HOME=/android-ndk-r10e - -1. Execute the build script - - ./gradlew assemble - -Build on Windows using Gradle ------------------------------ -1. Install Android Studio -1. Set the path to the Android SDK - - set ANDROID_HOME=C:\Users\\AppData\Local\Android\sdk - -1. Add the SDK to your path - - set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools - -1. Set the path to the Android NDK - - set ANDROID_NDK_HOME=C:\Users\\Desktop\android-ndk-r10e - -1. (Optional) On some versions of Windows it is helpful to map the samples folder to a shortened path. - - subst G: C:\ - -1. Execute the build script - - G: - gradlew.bat assemble - -Support -------- -If you've found an error in these samples, please [file an issue](https://github.com/playgameservices/cpp-android-basic-samples/issues/new). - -Patches are encouraged, and may be submitted by [forking this project](https://github.com/playgameservices/cpp-android-basic-samples/fork) and -submitting a pull request through GitHub. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more details. - -- [Stack Overflow](http://stackoverflow.com/questions/tagged/google-play-games) -- [Android Tools Feedbacks](http://tools.android.com/feedback) - - -License -------- -Copyright 2015 Google, Inc. - -Licensed to the Apache Software Foundation (ASF) under one or more contributor -license agreements. See the NOTICE file distributed with this work for -additional information regarding copyright ownership. The ASF licenses this -file to you under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. diff --git a/samples-android/TbmpSkeletonNative/build.gradle b/samples-android/TbmpSkeletonNative/build.gradle index a6c2a22..a5e1045 100644 --- a/samples-android/TbmpSkeletonNative/build.gradle +++ b/samples-android/TbmpSkeletonNative/build.gradle @@ -1,5 +1,17 @@ apply plugin: 'com.android.model.application' +// Depend on another project that downloads and unzips the C++ SDK. +evaluationDependsOn(':Common/gpg-sdk') + +// As the plugin has created the build tasks, add the gpg-sdk task to +// the task dependencies so it gets done before compiling +tasks.whenTaskAdded { task -> + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + + } +} + def gpg_cpp_path = file(project(':Common/gpg-sdk').projectDir).absolutePath + "/gpg-cpp-sdk/android" // stlport configuration ["c++_static", "c++_shared", "gnustl_static", "gnustl_shared"] @@ -24,7 +36,10 @@ model { buildToolsVersion = "23.0.2" defaultConfig.with { - applicationId= "com.google.example.games.tbmpskel" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 @@ -80,6 +95,5 @@ model { dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' compile 'com.google.android.gms:play-services-nearby:8.4.0' - compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/TbmpSkeletonNative/proguard-project.txt b/samples-android/TbmpSkeletonNative/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/TbmpSkeletonNative/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/Teapot/build.gradle b/samples-android/Teapot/build.gradle index 4649614..eaacc0f 100644 --- a/samples-android/Teapot/build.gradle +++ b/samples-android/Teapot/build.gradle @@ -6,10 +6,9 @@ evaluationDependsOn(':Common/gpg-sdk') // As the plugin has created the build tasks, add the gpg-sdk task to // the task dependencies so it gets done before compiling tasks.whenTaskAdded { task -> - if (task.name.equals("preBuild")) { - project(':Common/gpg-sdk').defaultTasks.each { t -> - task.dependsOn project(':Common/gpg-sdk').tasks[t] - } + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + } } @@ -36,7 +35,10 @@ model { buildToolsVersion="23.0.2" defaultConfig.with { - applicationId = "com.google.example.nativegame" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 @@ -85,6 +87,5 @@ model { dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' compile 'com.google.android.gms:play-services-nearby:8.4.0' - compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/Teapot/proguard-project.txt b/samples-android/Teapot/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/Teapot/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/TrivialQuestNative/build.gradle b/samples-android/TrivialQuestNative/build.gradle index 4722a84..06f3762 100644 --- a/samples-android/TrivialQuestNative/build.gradle +++ b/samples-android/TrivialQuestNative/build.gradle @@ -6,13 +6,11 @@ evaluationDependsOn(':Common/gpg-sdk') // As the plugin has created the build tasks, add the gpg-sdk task to // the task dependencies so it gets done before compiling tasks.whenTaskAdded { task -> - if (task.name.equals("preBuild")) { - project(':Common/gpg-sdk').defaultTasks.each { t -> - task.dependsOn project(':Common/gpg-sdk').tasks[t] - } + project(':Common/gpg-sdk').defaultTasks.each { + t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] + } } - def gpg_cpp_path = file(project(':Common/gpg-sdk').projectDir).absolutePath + "/gpg-cpp-sdk/android" // stlport configuration ["c++_static", "c++_shared", "gnustl_static", "gnustl_shared"] @@ -37,7 +35,10 @@ model { buildToolsVersion = "23.0.2" defaultConfig.with { - applicationId = "com.google.example.games.tq" + // + // REPLACE THE APPLICATION ID with your bundle ID + // + applicationId="com.google.example.games.ReplaceMe" minSdkVersion.apiLevel = 11 targetSdkVersion.apiLevel = 23 } @@ -87,6 +88,5 @@ model { dependencies { compile 'com.google.android.gms:play-services-games:8.4.0' compile 'com.google.android.gms:play-services-nearby:8.4.0' - compile 'com.google.android.gms:play-services-plus:8.4.0' compile 'com.android.support:support-v4:23.1.1' } diff --git a/samples-android/TrivialQuestNative/proguard-project.txt b/samples-android/TrivialQuestNative/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/samples-android/TrivialQuestNative/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/samples-android/build.gradle b/samples-android/build.gradle index df942a9..07826f7 100644 --- a/samples-android/build.gradle +++ b/samples-android/build.gradle @@ -4,7 +4,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha3' + classpath 'com.android.tools.build:gradle-experimental:0.7.0' } } diff --git a/samples-android/gradle/wrapper/gradle-wrapper.properties b/samples-android/gradle/wrapper/gradle-wrapper.properties index cf1fce9..d570517 100644 --- a/samples-android/gradle/wrapper/gradle-wrapper.properties +++ b/samples-android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip