Browse Source

| 解决依赖丢失问题

drake 5 years ago
parent
commit
68c01ca4ce
4 changed files with 7 additions and 2 deletions
  1. 1 1
      README.md
  2. 3 0
      kalle/build.gradle
  3. 2 1
      net/build.gradle
  4. 1 0
      sample/build.gradle

+ 1 - 1
README.md

@@ -79,7 +79,7 @@ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0'
 // 支持自动下拉刷新和缺省页的, 可选
 implementation 'com.github.liangjingkanji:BRV:1.2.1'
 
-implementation 'com.github.liangjingkanji:Net:2.0.6'
+implementation 'com.github.liangjingkanji:Net:2.0.7'
 ```
 
 

+ 3 - 0
kalle/build.gradle

@@ -1,5 +1,8 @@
 apply plugin: 'com.android.library'
 
+apply plugin: 'com.github.dcendents.android-maven'
+group='com.github.liangjingkanji'
+
 android {
     compileSdkVersion 28
     buildToolsVersion "28.0.3"

+ 2 - 1
net/build.gradle

@@ -30,8 +30,9 @@ android {
 
 }
 
+
 dependencies {
-    implementation fileTree(dir: "libs", include: ["*.jar"])
+    api fileTree(dir: "libs", include: ["*.jar"])
     implementation "androidx.appcompat:appcompat:1.1.0"
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
     testImplementation "junit:junit:4.12"

+ 1 - 0
sample/build.gradle

@@ -35,6 +35,7 @@ dependencies {
     testImplementation "junit:junit:4.12"
     androidTestImplementation "androidx.test:runner:1.2.0"
     androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0"
+
     implementation project(path: ":net")
 
     implementation "androidx.recyclerview:recyclerview:1.1.0"