Skip to content

Commit 0e8f3d1

Browse files
author
xiaoqi
committed
remove com.google.auto
1 parent 6bad476 commit 0e8f3d1

7 files changed

Lines changed: 48 additions & 5 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ext {
2828
userOrg = 'xqand'
2929
groupId = 'com.xqand'
3030
uploadName = 'AutoSave'
31-
publishVersion = '1.1.0'
31+
publishVersion = '1.1.1'
3232
desc = 'A framework can automatically generate OnSaveInstanceState code'
3333
website = 'https://github.com/xiaoqiAndroid/AutoSave'
3434
}

sample/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ android {
2222
}
2323
}
2424

25+
repositories {
26+
maven {
27+
url 'https://xqand.bintray.com/maven/'
28+
}
29+
}
30+
31+
2532
dependencies {
2633
compile fileTree(include: ['*.jar'], dir: 'libs')
2734
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

xqauto-api/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
apply plugin: 'java'
2+
apply plugin: 'bintray-release'
23

34
dependencies {
45
compile fileTree(dir: 'libs', include: ['*.jar'])
56
}
67

78
sourceCompatibility = "1.7"
89
targetCompatibility = "1.7"
10+
11+
//添加
12+
publish {
13+
artifactId = 'xqauto-api'
14+
userOrg = rootProject.userOrg
15+
groupId = rootProject.groupId
16+
uploadName = rootProject.uploadName
17+
publishVersion = rootProject.publishVersion
18+
desc = rootProject.description
19+
website = rootProject.website
20+
}

xqauto-processor/build.gradle

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
apply plugin: 'java'
2+
apply plugin: 'bintray-release'
23

34
dependencies {
45
compile fileTree(include: ['*.jar'], dir: 'libs')
5-
compile 'com.google.auto:auto-common:0.6'
6-
compile 'com.google.auto.service:auto-service:1.0-rc2'
6+
// compile 'com.google.auto:auto-common:0.6'
7+
// compile 'com.google.auto.service:auto-service:1.0-rc2'
78
compile 'com.squareup:javapoet:1.8.0'
89
compile project(':xqauto-api')
910
}
1011

1112
sourceCompatibility = "1.7"
1213
targetCompatibility = "1.7"
14+
15+
//添加
16+
publish {
17+
artifactId = 'xqauto-processor'
18+
userOrg = rootProject.userOrg
19+
groupId = rootProject.groupId
20+
uploadName = rootProject.uploadName
21+
publishVersion = rootProject.publishVersion
22+
desc = rootProject.description
23+
website = rootProject.website
24+
}

xqauto-processor/src/main/java/com/xqand/processor/AutoSaveProcessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.xqand.processor;
22

33

4-
import com.google.auto.service.AutoService;
54
import com.xqand.helper.HelperClass;
65
import com.xqand.helper.HelperSavedValues;
76
import com.processor.NeedSave;
@@ -25,7 +24,7 @@
2524
import javax.lang.model.util.Types;
2625
import javax.tools.Diagnostic;
2726

28-
@AutoService(Processor.class)
27+
//@AutoService(Processor.class)
2928
public class AutoSaveProcessor extends AbstractProcessor{
3029

3130
private Types typeUtils;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.xqand.processor.AutoSaveProcessor

xqauto-savehelper/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'bintray-release'
23

34
android {
45
compileSdkVersion 25
@@ -29,3 +30,14 @@ dependencies {
2930
compile 'com.android.support:appcompat-v7:25.0.1'
3031
testCompile 'junit:junit:4.12'
3132
}
33+
34+
//添加
35+
publish {
36+
artifactId = 'xqauto-savehelper'
37+
userOrg = rootProject.userOrg
38+
groupId = rootProject.groupId
39+
uploadName = rootProject.uploadName
40+
publishVersion = rootProject.publishVersion
41+
desc = rootProject.description
42+
website = rootProject.website
43+
}

0 commit comments

Comments
 (0)