Skip to content

Commit b4aa513

Browse files
committed
Updating build versions to match Android Studio 0.8.0
1 parent 232e9d4 commit b4aa513

16 files changed

Lines changed: 97 additions & 81 deletions

File tree

BasicSamples/BeGenerous/build.gradle

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
apply plugin: 'android'
22

3-
buildscript {
4-
repositories {
5-
mavenCentral()
3+
android {
4+
enforceUniquePackageName=false
5+
6+
compileSdkVersion 20
7+
buildToolsVersion '20'
8+
9+
defaultConfig {
10+
minSdkVersion 9
11+
targetSdkVersion 20
12+
versionCode 1
13+
versionName "1.0"
614
}
7-
dependencies {
8-
classpath 'com.android.tools.build:gradle:0.9+'
15+
buildTypes {
16+
release {
17+
runProguard false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
19+
}
920
}
1021
}
1122

12-
repositories {
13-
mavenCentral()
14-
}
15-
1623
dependencies {
17-
compile 'com.android.support:support-v4:+'
18-
compile 'com.google.android.gms:play-services:4.3.23+'
1924
compile project(':libraries:BaseGameUtils')
25+
compile 'com.android.support:appcompat-v7:20.0.+'
26+
compile 'com.android.support:support-v4:20.0.+'
27+
compile 'com.google.android.gms:play-services:4.3.23'
2028
}
2129

22-
android {
23-
compileSdkVersion 19
24-
buildToolsVersion "19.0.1"
30+
buildscript {
31+
repositories {
32+
mavenCentral()
33+
}
2534
}
26-

BasicSamples/BeGenerous/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
android:allowBackup="true"
3939
android:icon="@drawable/ic_launcher"
4040
android:label="@string/app_name"
41-
android:theme="@style/AppTheme" >
41+
android:theme="@style/AppTheme"
42+
>
4243

4344
<meta-data android:name="com.google.android.gms.games.APP_ID"
4445
android:value="@string/app_id" />

BasicSamples/ButtonClicker/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'android'
22

33
android {
4-
compileSdkVersion 19
5-
buildToolsVersion '19.0.3'
4+
compileSdkVersion 20
5+
buildToolsVersion '20'
66

77
defaultConfig {
88
minSdkVersion 9
9-
targetSdkVersion 19
9+
targetSdkVersion 20
1010
versionCode 1
1111
versionName "1.0"
1212
}
@@ -20,7 +20,8 @@ android {
2020

2121
dependencies {
2222
compile project(':libraries:BaseGameUtils')
23-
compile 'com.android.support:appcompat-v7:+'
23+
compile 'com.android.support:support-v4:20.0.+'
24+
compile 'com.android.support:appcompat-v7:20.0.+'
2425
compile 'com.google.android.gms:play-services:4.3.23'
2526
}
2627

BasicSamples/ButtonClicker/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<application
2828
android:icon="@drawable/ic_launcher"
2929
android:label="@string/app_name"
30-
android:theme="@style/AppTheme" >
30+
android:theme="@style/AppTheme">
3131

3232
<meta-data android:name="com.google.android.gms.games.APP_ID"
3333
android:value="@string/app_id" />

BasicSamples/CollectAllTheStars/build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
apply plugin: 'android'
2+
23
android {
3-
compileSdkVersion 19
4-
buildToolsVersion '19.0.3'
4+
compileSdkVersion 20
5+
buildToolsVersion '20'
56

67
defaultConfig {
78
minSdkVersion 9
8-
targetSdkVersion 19
9+
targetSdkVersion 20
910
versionCode 1
1011
versionName "1.0"
1112
}
@@ -16,16 +17,16 @@ android {
1617
}
1718
}
1819
}
20+
1921
dependencies {
20-
compile 'com.android.support:appcompat-v7:+'
21-
compile 'com.google.android.gms:play-services:4.3.23'
2222
compile project(':libraries:BaseGameUtils')
23+
compile 'com.android.support:appcompat-v7:20.0.+'
24+
compile 'com.android.support:support-v4:20.0.+'
25+
compile 'com.google.android.gms:play-services:4.3.23'
2326
}
2427

2528
buildscript {
2629
repositories {
2730
mavenCentral()
2831
}
2932
}
30-
repositories {
31-
}

BasicSamples/CollectAllTheStars2/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'android'
22

33
android {
4-
compileSdkVersion 19
5-
buildToolsVersion '19.0.3'
4+
compileSdkVersion 20
5+
buildToolsVersion '20'
66

77
defaultConfig {
88
minSdkVersion 9
9-
targetSdkVersion 19
9+
targetSdkVersion 20
1010
versionCode 1
1111
versionName "1.0"
1212
}
@@ -19,8 +19,8 @@ android {
1919
}
2020

2121
dependencies {
22-
compile 'com.android.support:appcompat-v7:19.+'
23-
compile 'com.google.android.gms:play-services:5+'
22+
compile 'com.android.support:appcompat-v7:20.0.+'
23+
compile 'com.google.android.gms:play-services:+'
2424
compile project(':libraries:BaseGameUtils')
2525
}
2626

BasicSamples/CollectAllTheStars2/src/main/java/com/google/example/games/catt2/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Snapshot processSnapshotOpenResult(Snapshots.OpenSnapshotResult result, int retr
328328
}
329329

330330

331-
/**
331+
/**
332332
* Prepares saving Snapshot to the user's synchronized storage, conditionally resolves errors,
333333
* and stores the Snapshot.
334334
*/
@@ -648,7 +648,7 @@ private void hideAlertBar() {
648648
* did what they were supposed to in order for the sample to work.
649649
*/
650650
boolean verifyPlaceholderIdsReplaced() {
651-
final boolean CHECK_PKGNAME = false; // set to false to disable check
651+
final boolean CHECK_PKGNAME = true; // set to false to disable check
652652
// (not recommended!)
653653

654654
// Did the developer forget to change the package name?
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
apply plugin: 'android'
22

33
android {
4-
compileSdkVersion 19
5-
buildToolsVersion '19.0.3'
4+
enforceUniquePackageName=false
5+
6+
compileSdkVersion 20
7+
buildToolsVersion '20'
68

79
defaultConfig {
810
minSdkVersion 9
9-
targetSdkVersion 19
11+
targetSdkVersion 20
1012
versionCode 1
1113
versionName "1.0"
1214
}
@@ -19,13 +21,14 @@ android {
1921
}
2022

2123
dependencies {
22-
compile 'com.android.support:appcompat-v7:19.+'
23-
compile 'com.google.android.gms:play-services:4.3.23+'
2424
compile project(':libraries:BaseGameUtils')
25+
compile 'com.android.support:appcompat-v7:20.0.+'
26+
compile 'com.android.support:support-v4:20.0.+'
27+
compile 'com.google.android.gms:play-services:4.3.23'
2528
}
2629

2730
buildscript {
2831
repositories {
2932
mavenCentral()
3033
}
31-
}
34+
}
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
apply plugin: 'android'
22

33
android {
4-
compileSdkVersion 19
5-
buildToolsVersion '19.0.3'
4+
enforceUniquePackageName=false
5+
6+
compileSdkVersion 20
7+
buildToolsVersion '20'
68

79
defaultConfig {
810
minSdkVersion 9
9-
targetSdkVersion 19
11+
targetSdkVersion 20
1012
versionCode 1
1113
versionName "1.0"
1214
}
@@ -19,13 +21,14 @@ android {
1921
}
2022

2123
dependencies {
22-
compile 'com.android.support:appcompat-v7:19.+'
23-
compile 'com.google.android.gms:play-services:4.3.23+'
2424
compile project(':libraries:BaseGameUtils')
25+
compile 'com.android.support:appcompat-v7:20.0.+'
26+
compile 'com.android.support:support-v4:20.0.+'
27+
compile 'com.google.android.gms:play-services:4.3.23'
2528
}
2629

2730
buildscript {
2831
repositories {
2932
mavenCentral()
3033
}
31-
}
34+
}

BasicSamples/TrivialQuest2/build.gradle

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
apply plugin: 'android'
22

33
android {
4-
compileSdkVersion 19
5-
buildToolsVersion '19.0.3'
4+
compileSdkVersion 20
5+
buildToolsVersion '20'
66

77
defaultConfig {
88
minSdkVersion 9
9-
targetSdkVersion 19
9+
targetSdkVersion 20
1010
versionCode 1
1111
versionName "1.0"
1212
}
13-
buildTypes {
14-
release {
15-
runProguard false
16-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
17-
}
18-
}
1913
}
2014

2115
dependencies {
22-
compile 'com.android.support:appcompat-v7:19.+'
23-
compile 'com.google.android.gms:play-services:5+'
16+
compile 'com.android.support:appcompat-v7:20.0.+'
17+
compile 'com.google.android.gms:play-services:+'
2418
compile project(':libraries:BaseGameUtils')
2519
}
2620

0 commit comments

Comments
 (0)