Skip to content

Commit 0a1da37

Browse files
committed
Update Gradle example to use newest tools
1 parent ec9cdf9 commit 0a1da37

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎examples/gradle/build.gradle‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55
dependencies {
66
// replace with the current version of the Android plugin
7-
classpath 'com.android.tools.build:gradle:1.0.0'
7+
classpath 'com.android.tools.build:gradle:1.2.2'
88
// the latest version of the android-apt plugin
99
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
1010
}
@@ -28,10 +28,8 @@ apt {
2828
arguments {
2929
androidManifestFile variant.outputs[0].processResources.manifestFile
3030
// if you have multiple outputs (when using splits), you may want to have other index than 0
31-
32-
resourcePackageName 'org.androidannotations.gradle'
3331

34-
// If you're using Android NBS flavors you should use the following line instead of hard-coded packageName
32+
// If you're using flavors you should use the following line instead of hard-coded packageName
3533
// resourcePackageName android.defaultConfig.packageName
3634

3735
// You can set optional annotation processing options here, like these commented options:
@@ -41,11 +39,11 @@ apt {
4139
}
4240

4341
android {
44-
compileSdkVersion 19
45-
buildToolsVersion "21.1.1"
42+
compileSdkVersion 22
43+
buildToolsVersion "22.0.1"
4644

4745
defaultConfig {
4846
minSdkVersion 9
49-
targetSdkVersion 19
47+
targetSdkVersion 22
5048
}
5149
}

‎examples/gradle/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip

0 commit comments

Comments
 (0)