Commit 788c5f6ac26dceb6ad66ef8cbae5b80088840c07

Authored by 吴奎庆
1 parent 207259be

处理 上传后单独引用出问题的逻辑

app/build.gradle
1 1 apply plugin: 'com.android.application'
2 2  
3 3 android {
4   - compileSdkVersion 29
  4 + compileSdkVersion 30
5 5  
6 6 defaultConfig {
7 7 applicationId "com.cnlive.strike.debug"
8   - minSdkVersion 19
9   - targetSdkVersion 29
  8 + minSdkVersion 21
  9 + targetSdkVersion 30
10 10 versionCode 1
11 11 versionName "1.0"
12 12 multiDexEnabled true
13   - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14 13 ndk {
15   - abiFilters 'armeabi-v7a'
  14 + abiFilters "armeabi-v7a", "arm64-v8a"
16 15 }
  16 +
17 17 }
18 18  
19 19 buildTypes {
20 20 release {
21 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 31 compileOptions {
30 32 sourceCompatibility JavaVersion.VERSION_1_8
31 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 45 dependencies {
36 46 implementation fileTree(dir: "libs", include: ["*.jar"])
37 47 implementation 'androidx.appcompat:appcompat:1.2.0'
38 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 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 54 \ No newline at end of file
... ...
build.gradle
... ... @@ -7,7 +7,7 @@ buildscript {
7 7 maven { url 'https://dl.bintray.com/umsdk/release' }
8 8 }
9 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 12 // NOTE: Do not place your application dependencies here; they belong
13 13 // in the individual module build.gradle files
... ... @@ -44,7 +44,7 @@ task clean(type: Delete) {
44 44 ext {
45 45 //androidX
46 46  
47   - androidXAppcompat = '1.0.0'
  47 + androidXAppcompat = '1.2.0'
48 48 androidXRecyclerview = '1.0.0'
49 49 androidXConstraintlayout = '1.1.3'
50 50  
... ... @@ -57,24 +57,19 @@ ext {
57 57 easypermissions = '3.0.0'
58 58 rotatephotoview = '1.0.5'
59 59  
60   - libCnUtil = '3.1.0'
61   - libCnVideo = '3.2.3'
62   -
63 60 qmui = '1.1.5'
64 61  
65 62 libLargeImage = '1.0.4-androidx'
66 63 libBase = '1.9.9.0'
67   - libVideoQiniu = '1.0.7.2'
68 64  
69 65 //阿里路由框架
70 66 arouterApiVersion = '1.5.0'
71 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 71 libCnencipher = '1.1.1'
76 72  
77   -
78 73 //视频库
79 74 libVideoQiniu = '1.0.7-androidx'
80 75 qiniuAndroidSdk = '7.4.3'
... ...
config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "1.1.3.9.2",
  24 + version: "1.1.4.4",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.media",
27 27 //Lib库名称
... ...
lib_media/build.gradle
... ... @@ -60,9 +60,8 @@ dependencies {
60 60 implementation "com.cnlive.libs:video_qiniu:$rootProject.libVideoQiniu"
61 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 65 implementation "com.umeng.umsdk:analytics:8.0.0"
67 66 implementation "com.umeng.umsdk:common:2.0.0"
68 67  
... ...
lib_media/maven_push.gradle
... ... @@ -16,17 +16,17 @@ uploadArchives() {
16 16 artifactId lib.name
17 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 }
... ...