From fd1bbbca8881c14fa16917b564224e4b7ed8e9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Mon, 1 Feb 2021 15:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0Maven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 11 ++++++----- foudations/mogo-network/build.gradle | 2 +- foudations/mogo-passport/build.gradle | 2 +- gradle.properties | 14 +++++++------- modules/mogo-realtime/build.gradle | 7 ++++--- modules/mogo-tanlu/build.gradle | 2 +- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2c6070f..1de1985 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,7 +19,7 @@ android { } buildTypes { - debug{ + debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } @@ -40,19 +40,20 @@ dependencies { implementation rootProject.ext.dependencies.androidxappcompat implementation rootProject.ext.dependencies.androidxconstraintlayout + implementation rootProject.ext.dependencies.rxjava + implementation rootProject.ext.dependencies.rxandroid if (Boolean.valueOf(RELEASE)) { implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}" implementation "com.mogo.cloud:socket:${MOGO_SOCKET_VERSION}" implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}" + implementation "com.mogo.cloud:realtime:${MOGO_REALTIME_VERSION}" } else { implementation project(":foudations:mogo-socket") implementation project(":foudations:mogo-network") - implementation project(path: ':modules:mogo-tanlu') + implementation project(":modules:mogo-tanlu") + implementation project(":modules:mogo-realtime") } - implementation rootProject.ext.dependencies.rxjava - implementation rootProject.ext.dependencies.rxandroid - implementation project(path: ':modules:mogo-realtime') annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库 } \ No newline at end of file diff --git a/foudations/mogo-network/build.gradle b/foudations/mogo-network/build.gradle index 9ae7b11..074fcc2 100644 --- a/foudations/mogo-network/build.gradle +++ b/foudations/mogo-network/build.gradle @@ -54,7 +54,7 @@ dependencies { if (Boolean.valueOf(RELEASE)) { api "com.mogo.cloud:passport:${MOGO_PASSPORT_VERSION}" } else { - api project(path: ':foudations:mogo-passport') + api project(':foudations:mogo-passport') } } \ No newline at end of file diff --git a/foudations/mogo-passport/build.gradle b/foudations/mogo-passport/build.gradle index 8c2fb1d..38e4721 100644 --- a/foudations/mogo-passport/build.gradle +++ b/foudations/mogo-passport/build.gradle @@ -34,7 +34,7 @@ dependencies { if (Boolean.valueOf(RELEASE)) { api "com.mogo.cloud:httpdns:${MOGO_HTTPDNS_VERSION}" } else { - api project(path: ':foudations:mogo-httpdns') + api project(':foudations:mogo-httpdns') } } diff --git a/gradle.properties b/gradle.properties index bacc2f0..294e058 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,11 +23,11 @@ SNAPSHOT_REPOSITORY_URL=http://nexus.zhidaoauto.com/repository/maven-snapshots/ USERNAME=xintai PASSWORD=xintai2018 # 编译模式: false - 依赖本地版本, true - 依赖 maven 版本 -RELEASE=false +RELEASE=true # AI CLOUD 云平台 -MOGO_NETWORK_VERSION=1.0.7-SNAPSHOT -MOGO_HTTPDNS_VERSION=1.0.7-SNAPSHOT -MOGO_PASSPORT_VERSION=1.0.7-SNAPSHOT -MOGO_SOCKET_VERSION=1.0.7-SNAPSHOT -MOGO_REALTIME_VERSION=1.0.7-SNAPSHOT -MOGO_TANLU_VERSION=1.0.7-SNAPSHOT +MOGO_NETWORK_VERSION=1.0.8-SNAPSHOT +MOGO_HTTPDNS_VERSION=1.0.8-SNAPSHOT +MOGO_PASSPORT_VERSION=1.0.8-SNAPSHOT +MOGO_SOCKET_VERSION=1.0.8-SNAPSHOT +MOGO_REALTIME_VERSION=1.0.8-SNAPSHOT +MOGO_TANLU_VERSION=1.0.8-SNAPSHOT diff --git a/modules/mogo-realtime/build.gradle b/modules/mogo-realtime/build.gradle index 804401b..ed2364d 100644 --- a/modules/mogo-realtime/build.gradle +++ b/modules/mogo-realtime/build.gradle @@ -28,15 +28,16 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation project(path: ':foudations:mogo-passport') api rootProject.ext.dependencies.spi if (Boolean.valueOf(RELEASE)) { implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}" implementation "com.mogo.cloud:socket:${MOGO_SOCKET_VERSION}" } else { - implementation project(":foudations:mogo-socket") implementation project(":foudations:mogo-network") + implementation project(":foudations:mogo-socket") } -} \ No newline at end of file +} + +apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() diff --git a/modules/mogo-tanlu/build.gradle b/modules/mogo-tanlu/build.gradle index ca9507d..f975631 100644 --- a/modules/mogo-tanlu/build.gradle +++ b/modules/mogo-tanlu/build.gradle @@ -40,7 +40,7 @@ dependencies { if (Boolean.valueOf(RELEASE)) { implementation "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}" } else { - implementation project(path: ':foudations:mogo-network') + implementation project(':foudations:mogo-network') } }