You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples-android/README.build
+45-23Lines changed: 45 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ A set of the sample to demonstrate how to use Google Play Games Native Interface
7
7
8
8
Pre-requisites
9
9
--------------
10
-
1. change the applicationId inside each individual samples build.gradle to your own package name
11
-
2. change app_id to your registered game ID, which was assigned to you by play game console
10
+
1. Change the applicationId inside each individual samples build.gradle to your own package name
11
+
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)
12
12
13
13
Build with Android Studio
14
14
-------------------------
15
-
This project need Android Studio 1.5+ with ndk support
15
+
This project requires Android Studio 1.5+ with ndk support
16
16
1. Launch Android Studio.
17
17
1. Open the sample project at cpp-android-basic-samples/samples-android
18
18
1. Disable "Instant Run" from Settings-> Build Execution, Deployment -> Instant Run
@@ -26,26 +26,48 @@ This project need Android Studio 1.5+ with ndk support
26
26
All projects could be built at one shot from Android Studio menu "Build" -> "Clean Project"/"Rebuild Project"
27
27
you could also build with Gradle on Terminal/Command line
28
28
29
-
Build with Ant/ndk-build
30
-
------------------------
31
-
The script needed for ant build are kept in the file structure.
32
-
The build script depends on the following environment variables to be set:
33
-
ANDROID_HOME to the path where the Android SDK is installed
34
-
NDK_ROOT to the path where the Android NDK is installed
35
-
NDK_MODULE_PATH to the location of the Play Games cpp libraries.
36
-
Change package name in AndroidManifest.xml to your own package
37
-
Change app_id (in string.xml/ids.xml) to your own one
38
-
39
-
Note: NDK_MODULE_PATH should point one directory *above* where
40
-
you've installed gpg-cpp-sdk. This variable is used by ndk-build to locate
41
-
all installed modules, not just the Google Play Games library.
42
-
43
-
- To build any individual project
44
-
- go to samples-android/your-selected-project/src/main, like samples-android/ButtonClicker/src/main
45
-
- execute build.sh
46
-
- To build all projects
47
-
- in samples-android directory, execute build.sh
48
-
The apk(s) will be placed into your-project-dir/src/main/bin
0 commit comments