|
| 1 | +/* |
| 2 | + * Copyright 2017 (C) Google LLC |
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | + * you may not use this file except in compliance with the License. |
| 5 | + * You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + * See the License for the specific language governing permissions and |
| 13 | + * limitations under the License. |
| 14 | + */ |
1 | 15 | apply plugin: 'com.android.application' |
2 | 16 |
|
3 | | -// Depend on another project that downloads and unzips the C++ SDK. |
4 | | -evaluationDependsOn(':Common/gpg-sdk') |
5 | | - |
6 | | -// As the plugin has created the build tasks, add the gpg-sdk task to |
7 | | -// the task dependencies so it gets done before compiling |
8 | | -tasks.whenTaskAdded { task -> |
9 | | - project(':Common/gpg-sdk').defaultTasks.each { |
10 | | - t ->task.dependsOn project(':Common/gpg-sdk').tasks[t] |
11 | | - |
12 | | - } |
13 | | -} |
14 | | - |
15 | 17 | android { |
16 | | - compileSdkVersion 23 |
17 | | - buildToolsVersion '23.0.2' |
| 18 | + compileSdkVersion 26 |
18 | 19 | defaultConfig { |
19 | 20 | // |
20 | 21 | // REPLACE THE APPLICATION ID with your bundle ID |
21 | 22 | // |
22 | 23 | applicationId "com.google.example.games.ReplaceMe" |
23 | 24 | minSdkVersion 14 |
24 | | - targetSdkVersion 23 |
| 25 | + targetSdkVersion 26 |
| 26 | + |
| 27 | + ndk.abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a' |
| 28 | + |
| 29 | + externalNativeBuild { |
| 30 | + cmake { |
| 31 | + cppFlags "-std=c++11 -Wall -frtti" |
| 32 | + arguments "-DJUI_HELPER_PATH=${project(':Common:JuiHelper').projectDir}" , |
| 33 | + "-DNDK_HELPER_PATH=${project(':Common:NDKHelper').projectDir}" , |
| 34 | + "-DGPG_SDK_PATH=${project(':Common:gpg-sdk').projectDir}/gpg-cpp-sdk/android", |
| 35 | + "-DJSON_PATH=${project(':Common:gpg-sdk').projectDir}/../external/jsoncpp/", |
| 36 | + "-DTEAPOT_RENDERER_PATH=${project(':Common').projectDir}/TeapotRenderer" , |
| 37 | + "-DANDROID_STL=c++_static" |
| 38 | + } |
25 | 39 |
|
26 | | - ndk { |
27 | | - abiFilters 'x86', 'armeabi-v7a' |
28 | 40 | } |
29 | 41 | } |
30 | 42 |
|
31 | 43 | externalNativeBuild { |
32 | | - ndkBuild { |
33 | | - path 'src/main/jni/Android.mk' |
34 | | - } |
| 44 | + cmake.path "CMakeLists.txt" |
35 | 45 | } |
36 | 46 | } |
37 | 47 |
|
38 | 48 | dependencies { |
39 | | - compile 'com.google.android.gms:play-services-games:10.0.0' |
40 | | - compile 'com.google.android.gms:play-services-nearby:10.0.0' |
41 | | - compile 'com.android.support:support-v4:23.1.1' |
| 49 | + implementation project(":Common:JuiHelper") |
| 50 | + implementation 'com.google.android.gms:play-services-games:11.6.2' |
| 51 | + implementation 'com.google.android.gms:play-services-nearby:11.6.2' |
| 52 | + implementation 'com.android.support:support-v4:26.1.0' |
42 | 53 | } |
0 commit comments