-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Turnbased sample to use CMake, GPGS 3.0
Change-Id: Id7033b884b195b1efaf93dbb0828d12b27793fc2
- Loading branch information
1 parent
1a6e96e
commit cb3184b
Showing
26 changed files
with
105 additions
and
3,843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,53 @@ | ||
/* | ||
* Copyright 2017 (C) Google LLC | ||
* Licensed 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. | ||
*/ | ||
apply plugin: 'com.android.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] | ||
|
||
} | ||
} | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion '23.0.2' | ||
compileSdkVersion 26 | ||
defaultConfig { | ||
// | ||
// REPLACE THE APPLICATION ID with your bundle ID | ||
// | ||
applicationId "com.google.example.games.ReplaceMe" | ||
minSdkVersion 14 | ||
targetSdkVersion 23 | ||
targetSdkVersion 26 | ||
|
||
ndk.abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a' | ||
|
||
externalNativeBuild { | ||
cmake { | ||
cppFlags "-std=c++11 -Wall -frtti" | ||
arguments "-DJUI_HELPER_PATH=${project(':Common:JuiHelper').projectDir}" , | ||
"-DNDK_HELPER_PATH=${project(':Common:NDKHelper').projectDir}" , | ||
"-DGPG_SDK_PATH=${project(':Common:gpg-sdk').projectDir}/gpg-cpp-sdk/android", | ||
"-DJSON_PATH=${project(':Common:gpg-sdk').projectDir}/../external/jsoncpp/", | ||
"-DTEAPOT_RENDERER_PATH=${project(':Common').projectDir}/TeapotRenderer" , | ||
"-DANDROID_STL=c++_static" | ||
} | ||
|
||
ndk { | ||
abiFilters 'x86', 'armeabi-v7a' | ||
} | ||
} | ||
|
||
externalNativeBuild { | ||
ndkBuild { | ||
path 'src/main/jni/Android.mk' | ||
} | ||
cmake.path "CMakeLists.txt" | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'com.google.android.gms:play-services-games:10.0.0' | ||
compile 'com.google.android.gms:play-services-nearby:10.0.0' | ||
compile 'com.android.support:support-v4:23.1.1' | ||
implementation project(":Common:JuiHelper") | ||
implementation 'com.google.android.gms:play-services-games:11.6.2' | ||
implementation 'com.google.android.gms:play-services-nearby:11.6.2' | ||
implementation 'com.android.support:support-v4:26.1.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,6 @@ | |
|
||
public class TBMPSkeletonApplication extends Application { | ||
public void onCreate() { | ||
super.onCreate(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 0 additions & 82 deletions
82
samples-android/TbmpSkeletonNative/src/main/java/com/sample/helper/JUIAlertDialog.java
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
samples-android/TbmpSkeletonNative/src/main/java/com/sample/helper/JUIButton.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
samples-android/TbmpSkeletonNative/src/main/java/com/sample/helper/JUICheckBox.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
samples-android/TbmpSkeletonNative/src/main/java/com/sample/helper/JUICheckedTextView.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.