Parcourir la source

#CHANGE 更新库源

weizhengliang il y a 4 ans
Parent
commit
4d79649b69
4 fichiers modifiés avec 18 ajouts et 132 suppressions
  1. 1 1
      app/build.gradle
  2. 12 127
      build.gradle
  3. 4 3
      resource/build.gradle
  4. 1 1
      webrtc/build.gradle

+ 1 - 1
app/build.gradle

@@ -83,7 +83,7 @@ android {
 }
 
 dependencies {
-    compile fileTree(include: ['*.jar'], dir: 'libs')
+    //compile fileTree(include: ['*.jar'], dir: 'libs')
     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
         exclude group: 'com.android.support', module: 'support-annotations'
     })

+ 12 - 127
build.gradle

@@ -1,129 +1,3 @@
-//buildscript {
-//    /**
-//     * Kotlin统一版本
-//     */
-//    ext.kotlin_version = '1.3.21'
-//
-//    /**
-//     * Aop编制版本
-//     */
-//    ext.aspectj_version = '1.8.9'
-//
-//    /**
-//     * 是否开启单独Module编译
-//     */
-//    ext.componentTag = false
-//
-//    /**
-//     * 路由注解处理器版本
-//     */
-//    ext.router_version = '1.0.2'
-//
-//    /**
-//     * kawo组件化框架版本
-//     */
-//    ext.kawo_version = '1.0.9'
-//
-//    /**
-//     * SDK最小支持版本
-//     */
-//    ext.min_sdk_version = 17
-//
-//    /**
-//     * SDK目标支持版本
-//     */
-//    ext.target_sdk_version = 28
-//
-//    /**
-//     * SDK编译版本
-//     */
-//    ext.build_tools_version = "26.0.2"
-//
-//    /**
-//     * 支持库版本
-//     */
-//    ext.support_library_version = "26.0.1"
-//
-//    /**
-//     * APP版本码
-//     */
-//    ext.app_version_code = 1
-//
-//    /**
-//     * APP版本号
-//     */
-//    ext.app_version = "1.0"
-//
-//    /**
-//     * 项目依赖库
-//     */
-//    dependencies {
-//        repositories {
-//            jcenter()
-//            mavenCentral()
-//            google()
-//            /**
-//             * 依赖仓储
-//             */
-//            maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
-//            maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
-//            maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
-//            maven { url 'https://jitpack.io' }
-//        }
-//        /**
-//         * Gradle插件
-//         */
-//        classpath 'com.android.tools.build:gradle:3.0.1'
-//
-//        /**
-//         * Kawo组件化插件
-//         */
-//        classpath "com.enation.geamtear.gradle:kawo:$kawo_version"
-//
-//        /**
-//         * KotlinGradle插件
-//         */
-//        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
-//
-//        /**
-//         * Kotlin辅助工具
-//         */
-//        classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
-//
-//        /**
-//         * Aop埋点相关
-//         */
-//        classpath "org.aspectj:aspectjtools:$aspectj_version"
-//    }
-//}
-///**
-// * 统一依赖仓储
-// */
-//allprojects {
-//    repositories {
-//        jcenter()
-//        mavenCentral()
-//        google()
-//
-//        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
-//        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
-//        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
-//        maven { url 'https://jitpack.io' }
-//    }
-//    tasks.withType(Javadoc) { // 新增
-//        options.addStringOption('Xdoclint:none', '-quiet')
-//        options.addStringOption('encoding', 'UTF-8')
-//    }
-//}
-//
-///**
-// *  清除Build配置时 删除根目录Build文件夹
-// */
-//task clean(type: Delete) {
-//    delete rootProject.buildDir
-//}
-
-
 buildscript {
     /**
      * Kotlin统一版本
@@ -188,6 +62,10 @@ buildscript {
             /**
              * 依赖仓储
              */
+            maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+            maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
+            maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+
             jcenter()
             mavenCentral()
             google()
@@ -218,6 +96,10 @@ buildscript {
         classpath "org.aspectj:aspectjtools:$aspectj_version"
     }
     repositories {
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+
         google()
     }
 }
@@ -226,11 +108,14 @@ buildscript {
  */
 allprojects {
     repositories {
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+
         jcenter()
         mavenCentral()
         google()
 
-        maven { url 'https://dl.bintray.com/geamtear/maven' }
         maven { url "https://jitpack.io" }
 
     }

+ 4 - 3
resource/build.gradle

@@ -22,9 +22,10 @@ android {
         }
     }
    dependencies{
-       compile 'com.android.support:design:26.+'
-       compile 'com.android.support:support-v4:26.+'
-       compile 'com.android.support:cardview-v7:26.+'
+       implementation "com.android.support:design:$support_library_version"
+       implementation "com.android.support:support-v4:$support_library_version"
+       implementation "com.android.support:cardview-v7:$support_library_version"
+       implementation "com.android.support:appcompat-v7:$support_library_version"
        /**
         * 单元测试
         */

+ 1 - 1
webrtc/build.gradle

@@ -59,7 +59,7 @@ dependencies {
     implementation "com.android.support:appcompat-v7:$support_library_version"
 
     implementation "com.android.support.constraint:constraint-layout:1.1.0-beta5"
-    implementation "com.android.support:support-vector-drawable:26.1.0"
+    implementation "com.android.support:support-vector-drawable:$support_library_version"
     implementation "android.arch.lifecycle:extensions:1.0.0-alpha4"
 
     // 内存泄漏检测