Skip to content

Commit ae7fa50

Browse files
committed
更改依赖方式为compileOnly
1 parent 052e87b commit ae7fa50

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ PhotoViewer
9090

9191
## 更新日志
9292

93+
### 0.45
94+
95+
更改依赖方式为compileOnly
96+
9397
### 0.44
9498

9599
修改了图片fragment传参的方式

photoviewer/build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ android {
3131
dependencies {
3232
implementation fileTree(dir: 'libs', include: ['*.jar'])
3333

34-
implementation 'com.android.support:appcompat-v7:27.1.1'
35-
testImplementation 'junit:junit:4.12'
36-
compile 'com.android.support:support-v4:27.1.1'
37-
compile 'com.android.support:appcompat-v7:27.1.1'
38-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
39-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
40-
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
41-
implementation 'com.android.support:recyclerview-v7:27.1.1'
34+
compileOnly 'com.android.support:appcompat-v7:27.1.1'
35+
compileOnly 'com.android.support:support-v4:27.1.1'
36+
compileOnly 'com.android.support:appcompat-v7:27.1.1'
37+
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
38+
compileOnly 'com.android.support:recyclerview-v7:27.1.1'
4239
}
4340
repositories {
4441
mavenCentral()

photoviewer/src/main/res/layout/item_picture.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
android:layout_height="match_parent"
66
android:background="#000">
77

8+
89
<com.wanglu.photoviewerlibrary.photoview.PhotoView
910
android:id="@+id/mIv"
1011
android:layout_width="match_parent"

0 commit comments

Comments
 (0)