Commit 788c5f6ac26dceb6ad66ef8cbae5b80088840c07
1 parent
207259be
处理 上传后单独引用出问题的逻辑
Showing
5 changed files
with
38 additions
and
37 deletions
app/build.gradle
| 1 | apply plugin: 'com.android.application' | 1 | apply plugin: 'com.android.application' |
| 2 | 2 | ||
| 3 | android { | 3 | android { |
| 4 | - compileSdkVersion 29 | 4 | + compileSdkVersion 30 |
| 5 | 5 | ||
| 6 | defaultConfig { | 6 | defaultConfig { |
| 7 | applicationId "com.cnlive.strike.debug" | 7 | applicationId "com.cnlive.strike.debug" |
| 8 | - minSdkVersion 19 | ||
| 9 | - targetSdkVersion 29 | 8 | + minSdkVersion 21 |
| 9 | + targetSdkVersion 30 | ||
| 10 | versionCode 1 | 10 | versionCode 1 |
| 11 | versionName "1.0" | 11 | versionName "1.0" |
| 12 | multiDexEnabled true | 12 | multiDexEnabled true |
| 13 | - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
| 14 | ndk { | 13 | ndk { |
| 15 | - abiFilters 'armeabi-v7a' | 14 | + abiFilters "armeabi-v7a", "arm64-v8a" |
| 16 | } | 15 | } |
| 16 | + | ||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | buildTypes { | 19 | buildTypes { |
| 20 | release { | 20 | release { |
| 21 | minifyEnabled false | 21 | minifyEnabled false |
| 22 | - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
| 23 | } | 22 | } |
| 24 | } | 23 | } |
| 25 | - dataBinding { | ||
| 26 | - enabled true | 24 | + |
| 25 | + repositories { | ||
| 26 | + flatDir { | ||
| 27 | + dirs "lib" | ||
| 28 | + } | ||
| 27 | } | 29 | } |
| 28 | 30 | ||
| 29 | compileOptions { | 31 | compileOptions { |
| 30 | sourceCompatibility JavaVersion.VERSION_1_8 | 32 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 31 | targetCompatibility JavaVersion.VERSION_1_8 | 33 | targetCompatibility JavaVersion.VERSION_1_8 |
| 32 | } | 34 | } |
| 35 | + | ||
| 36 | + buildFeatures{ | ||
| 37 | + dataBinding = true | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + dexOptions { | ||
| 41 | + javaMaxHeapSize '4g' | ||
| 42 | + } | ||
| 33 | } | 43 | } |
| 34 | 44 | ||
| 35 | dependencies { | 45 | dependencies { |
| 36 | implementation fileTree(dir: "libs", include: ["*.jar"]) | 46 | implementation fileTree(dir: "libs", include: ["*.jar"]) |
| 37 | implementation 'androidx.appcompat:appcompat:1.2.0' | 47 | implementation 'androidx.appcompat:appcompat:1.2.0' |
| 38 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1' | 48 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1' |
| 49 | + implementation 'androidx.multidex:multidex:2.0.1' | ||
| 50 | + implementation 'com.cnlive.media:NewMediaPicker:1.1.4.28' | ||
| 39 | // implementation project(path: ':lib_media') | 51 | // implementation project(path: ':lib_media') |
| 40 | - //ARouter | ||
| 41 | -// implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion" | ||
| 42 | -// annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion" | ||
| 43 | - implementation 'androidx.multidex:multidex:2.0.0' | ||
| 44 | - implementation project(path: ':lib_media') | ||
| 45 | 52 | ||
| 46 | } | 53 | } |
| 47 | \ No newline at end of file | 54 | \ No newline at end of file |
build.gradle
| @@ -7,7 +7,7 @@ buildscript { | @@ -7,7 +7,7 @@ buildscript { | ||
| 7 | maven { url 'https://dl.bintray.com/umsdk/release' } | 7 | maven { url 'https://dl.bintray.com/umsdk/release' } |
| 8 | } | 8 | } |
| 9 | dependencies { | 9 | dependencies { |
| 10 | - classpath 'com.android.tools.build:gradle:3.5.0' | 10 | + classpath 'com.android.tools.build:gradle:4.0.1' |
| 11 | 11 | ||
| 12 | // NOTE: Do not place your application dependencies here; they belong | 12 | // NOTE: Do not place your application dependencies here; they belong |
| 13 | // in the individual module build.gradle files | 13 | // in the individual module build.gradle files |
| @@ -44,7 +44,7 @@ task clean(type: Delete) { | @@ -44,7 +44,7 @@ task clean(type: Delete) { | ||
| 44 | ext { | 44 | ext { |
| 45 | //androidX | 45 | //androidX |
| 46 | 46 | ||
| 47 | - androidXAppcompat = '1.0.0' | 47 | + androidXAppcompat = '1.2.0' |
| 48 | androidXRecyclerview = '1.0.0' | 48 | androidXRecyclerview = '1.0.0' |
| 49 | androidXConstraintlayout = '1.1.3' | 49 | androidXConstraintlayout = '1.1.3' |
| 50 | 50 | ||
| @@ -57,24 +57,19 @@ ext { | @@ -57,24 +57,19 @@ ext { | ||
| 57 | easypermissions = '3.0.0' | 57 | easypermissions = '3.0.0' |
| 58 | rotatephotoview = '1.0.5' | 58 | rotatephotoview = '1.0.5' |
| 59 | 59 | ||
| 60 | - libCnUtil = '3.1.0' | ||
| 61 | - libCnVideo = '3.2.3' | ||
| 62 | - | ||
| 63 | qmui = '1.1.5' | 60 | qmui = '1.1.5' |
| 64 | 61 | ||
| 65 | libLargeImage = '1.0.4-androidx' | 62 | libLargeImage = '1.0.4-androidx' |
| 66 | libBase = '1.9.9.0' | 63 | libBase = '1.9.9.0' |
| 67 | - libVideoQiniu = '1.0.7.2' | ||
| 68 | 64 | ||
| 69 | //阿里路由框架 | 65 | //阿里路由框架 |
| 70 | arouterApiVersion = '1.5.0' | 66 | arouterApiVersion = '1.5.0' |
| 71 | arouterCompilerVersion = '1.2.1' | 67 | arouterCompilerVersion = '1.2.1' |
| 72 | 68 | ||
| 73 | - libCnUtil = '3.1.5' | ||
| 74 | - libCnVideo = '3.3.24' | 69 | + libCnUtil = '3.1.8' |
| 70 | + libCnVideo = '3.3.25' | ||
| 75 | libCnencipher = '1.1.1' | 71 | libCnencipher = '1.1.1' |
| 76 | 72 | ||
| 77 | - | ||
| 78 | //视频库 | 73 | //视频库 |
| 79 | libVideoQiniu = '1.0.7-androidx' | 74 | libVideoQiniu = '1.0.7-androidx' |
| 80 | qiniuAndroidSdk = '7.4.3' | 75 | qiniuAndroidSdk = '7.4.3' |
config.gradle
lib_media/build.gradle
| @@ -60,9 +60,8 @@ dependencies { | @@ -60,9 +60,8 @@ dependencies { | ||
| 60 | implementation "com.cnlive.libs:video_qiniu:$rootProject.libVideoQiniu" | 60 | implementation "com.cnlive.libs:video_qiniu:$rootProject.libVideoQiniu" |
| 61 | implementation "com.qiniu:qiniu-android-sdk:$rootProject.qiniuAndroidSdk" | 61 | implementation "com.qiniu:qiniu-android-sdk:$rootProject.qiniuAndroidSdk" |
| 62 | 62 | ||
| 63 | - implementation "com.cnlive:lib_cnutil:$rootProject.libCnUtil" | ||
| 64 | - implementation "com.cnlive:lib_cnvideo2.0:$rootProject.libCnVideo" | ||
| 65 | - | 63 | + implementation "com.cnlive.base:lib_util:$rootProject.libCnUtil" |
| 64 | + implementation "com.cnlive.base:lib_video:$rootProject.libCnVideo" | ||
| 66 | implementation "com.umeng.umsdk:analytics:8.0.0" | 65 | implementation "com.umeng.umsdk:analytics:8.0.0" |
| 67 | implementation "com.umeng.umsdk:common:2.0.0" | 66 | implementation "com.umeng.umsdk:common:2.0.0" |
| 68 | 67 |
lib_media/maven_push.gradle
| @@ -16,17 +16,17 @@ uploadArchives() { | @@ -16,17 +16,17 @@ uploadArchives() { | ||
| 16 | artifactId lib.name | 16 | artifactId lib.name |
| 17 | version = lib.debug ? lib.version.concat("-SNAPSHOT") : lib.version | 17 | version = lib.debug ? lib.version.concat("-SNAPSHOT") : lib.version |
| 18 | } | 18 | } |
| 19 | - pom.whenConfigured { pom -> | ||
| 20 | - //TODO POM文件目前无法区分 compile 和 implementation | ||
| 21 | - List list = new ArrayList() | ||
| 22 | - //手动增加过滤项 | ||
| 23 | - pom.dependencies.findAll { | ||
| 24 | - dep -> dep.groupId == "pub.devrel" || dep.groupId == "com.chensl.rotatephotoview" | ||
| 25 | - }.collect { dep -> list.add(dep) } | ||
| 26 | - //移除支持库 | ||
| 27 | - pom.dependencies.clear() | ||
| 28 | - pom.dependencies.addAll(list) | ||
| 29 | - } | 19 | +// pom.whenConfigured { pom -> |
| 20 | +// //TODO POM文件目前无法区分 compile 和 implementation | ||
| 21 | +// List list = new ArrayList() | ||
| 22 | +// //手动增加过滤项 | ||
| 23 | +// pom.dependencies.findAll { | ||
| 24 | +// dep -> dep.groupId == "pub.devrel" || dep.groupId == "com.chensl.rotatephotoview" | ||
| 25 | +// }.collect { dep -> list.add(dep) } | ||
| 26 | +// //移除支持库 | ||
| 27 | +// pom.dependencies.clear() | ||
| 28 | +// pom.dependencies.addAll(list) | ||
| 29 | +// } | ||
| 30 | 30 | ||
| 31 | } | 31 | } |
| 32 | } | 32 | } |