Skip to content

Commit bc2e798

Browse files
committed
1、修改Library 集成第三方库方式
1 parent 2513f98 commit bc2e798

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

apk/sample.apk

31 KB
Binary file not shown.

app/build.gradle

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: 'com.neenbedankt.android-apt'
32
apply plugin: 'me.tatarka.retrolambda'
3+
apply plugin: 'com.jakewharton.butterknife'
44

55
android {
66
def ext = rootProject.ext
@@ -10,8 +10,8 @@ android {
1010
applicationId "com.aries.library.fast.demo"
1111
minSdkVersion ext.minSdkVersion
1212
targetSdkVersion ext.targetSdkVersion
13-
versionCode 2
14-
versionName "1.0.1"
13+
versionCode 3
14+
versionName "1.0.2"
1515
multiDexEnabled true
1616
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1717
}
@@ -46,14 +46,10 @@ android {
4646

4747
dependencies {
4848
compile fileTree(dir: 'libs', include: ['*.jar'])
49-
def supportVersion = rootProject.ext.supportVersion
50-
compile 'com.android.support:appcompat-v7:'.concat(supportVersion)
51-
compile 'com.android.support:recyclerview-v7:'.concat(supportVersion)
5249
compile project(':library')
53-
apt 'com.jakewharton:butterknife-compiler:8.7.0'
50+
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
5451
compile 'cn.bingoogolapple:bga-banner:2.1.7@aar'
5552
compile 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'
5653
//设置界面Item库
5754
compile 'com.github.lygttpod:SuperTextView:2.1.0'
58-
compile 'com.just.agentweb:agentweb:1.2.6'
5955
}

app/src/main/res/values-zh/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
2-
<string name="app_name">FastLibrary</string>
2+
<string name="app_name">FastLib</string>
33
<string name="home">主页</string>
44
<string name="activity">活动</string>
55
<string name="mine">我的</string>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:2.2.3'
10-
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
1110
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1211
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
12+
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.0'
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515
}

library/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
defaultConfig {
99
minSdkVersion 15
1010
targetSdkVersion 25
11-
versionCode 2
12-
versionName "1.0.1"
11+
versionCode 3
12+
versionName "1.0.2"
1313
}
1414
buildTypes {
1515
release {
@@ -19,9 +19,9 @@ android {
1919
}
2020
}
2121
dependencies {
22-
// def supportVersion = "25.3.1"
23-
// compile 'com.android.support:appcompat-v7:'.concat(supportVersion)
24-
// compile 'com.android.support:recyclerview-v7:'.concat(supportVersion)
22+
def supportVersion = "25.3.1"
23+
compile 'com.android.support:appcompat-v7:'.concat(supportVersion)
24+
compile 'com.android.support:recyclerview-v7:'.concat(supportVersion)
2525
//图片加载
2626
compile 'com.github.bumptech.glide:glide:4.0.0'
2727
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
@@ -51,5 +51,5 @@ dependencies {
5151
//页面事件交互
5252
compile 'org.simple:androideventbus:1.0.5.1'
5353
//webView库
54-
provided 'com.just.agentweb:agentweb:1.2.6'
54+
compile 'com.just.agentweb:agentweb:1.2.6'
5555
}

0 commit comments

Comments
 (0)