增加了Maven依赖关系

This commit is contained in:
董宏宇
2021-01-25 16:10:06 +08:00
parent ff1a533447
commit 68ce7a4e40
12 changed files with 46 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ android {
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
packagingOptions {
//解决编译时com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/rxjava.properties'这个错误
exclude 'META-INF/rxjava.properties'
@@ -32,13 +32,19 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.android.support:multidex:1.0.3'
implementation rootProject.ext.dependencies.androidxappcompat
implementation rootProject.ext.dependencies.androidxconstraintlayout
implementation project(path: ':foudations:mogo-passport')
implementation project(path: ':foudations:mogo-commons')
implementation project(path: ':modules:mogo-tanlu')
// implementation project(path: ':foudations:mogo-passport')
implementation 'com.mogo.cloud:passport:1.0.2-SNAPSHOT'
// implementation project(path: ':foudations:mogo-commons')
implementation 'com.mogo.cloud:commons:1.0.2-SNAPSHOT'
// implementation project(path: ':modules:mogo-tanlu')
implementation 'com.mogo.cloud:tanlu:1.0.1-SNAPSHOT'
// implementation 'com.mogo.cloud:passport:1.0.0'
implementation rootProject.ext.dependencies.rxjava
implementation rootProject.ext.dependencies.rxandroid
}

View File

@@ -2,6 +2,8 @@ package com.mogo.cloud;
import android.app.Application;
import androidx.multidex.MultiDexApplication;
import com.mogo.cloud.httpdns.MogoHttpDnsConfig;
import com.mogo.cloud.httpdns.bean.HttpDnsSimpleLocation;
import com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation;
@@ -15,7 +17,7 @@ import java.util.Random;
/**
*
*/
public class MoGoApplication extends Application {
public class MoGoApplication extends MultiDexApplication {
@Override
public void onCreate() {
super.onCreate();

View File

@@ -54,12 +54,12 @@ dependencies {
implementation rootProject.ext.dependencies.androidxccorektx
implementation rootProject.ext.dependencies.androidxappcompat
implementation rootProject.ext.dependencies.okhttpinterceptor
api rootProject.ext.dependencies.retrofit
api rootProject.ext.dependencies.retrofitadapter
api rootProject.ext.dependencies.retrofitconvertergson
api rootProject.ext.dependencies.retrofitconverterscalars
api project(path: ':foudations:mogo-httpdns')
api project(path: ':foudations:mogo-passport')
implementation rootProject.ext.dependencies.retrofit
implementation rootProject.ext.dependencies.retrofitadapter
implementation rootProject.ext.dependencies.retrofitconvertergson
implementation rootProject.ext.dependencies.retrofitconverterscalars
// api project(path: ':foudations:mogo-passport')
api 'com.mogo.cloud:passport:1.0.2-SNAPSHOT'
}

View File

@@ -1,4 +1,4 @@
GROUP=com.mogo.cloud
POM_ARTIFACT_ID=commons
VERSION_CODE=1
VERSION_NAME=1.0.1-SNAPSHOT
VERSION_NAME=1.0.2-SNAPSHOT

View File

@@ -33,9 +33,9 @@ dependencies {
// passport
implementation 'com.zhidao.thirdlogin:third-login:1.0.1'
implementation 'com.zhidao.account:accountsdk:1.0.16.1'
api project(path: ':foudations:mogo-httpdns')
// api 'com.mogo.cloud:httpdns:1.0.0'
// api project(path: ':foudations:mogo-httpdns')
api 'com.mogo.cloud:httpdns:1.0.0'
}
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -1,4 +1,4 @@
GROUP=com.mogo.cloud
POM_ARTIFACT_ID=passport
VERSION_CODE=1
VERSION_NAME=1.0.0-SNAPSHOT
VERSION_NAME=1.0.2-SNAPSHOT

View File

@@ -30,8 +30,10 @@ dependencies {
api 'com.zhidao.socket:built-in-socket:1.0.17'
// 上报位置
implementation 'com.zhidao.locupload:loc-upload-sdk:1.1.7'
implementation project(path: ':foudations:mogo-passport')
api rootProject.ext.dependencies.mogoutils
// implementation project(path: ':foudations:mogo-passport')
implementation 'com.mogo.cloud:passport:1.0.2-SNAPSHOT'
}
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -1,4 +1,4 @@
GROUP=com.mogo.cloud
POM_ARTIFACT_ID=socket
VERSION_CODE=1
VERSION_NAME=1.0.0
VERSION_NAME=1.0.2-SNAPSHOT

View File

@@ -28,6 +28,10 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(path: ':foudations:mogo-passport')
implementation project(":foudations:mogo-commons")
implementation project(":foudations:mogo-socket")
// implementation project(":foudations:mogo-commons")
implementation 'com.mogo.cloud:commons:1.0.2-SNAPSHOT'
// implementation project(":foudations:mogo-socket")
implementation 'com.mogo.cloud:socket:1.0.2-SNAPSHOT'
}

View File

@@ -0,0 +1,4 @@
GROUP=com.mogo.cloud
POM_ARTIFACT_ID=realtime
VERSION_CODE=1
VERSION_NAME=1.0.1-SNAPSHOT

View File

@@ -37,6 +37,10 @@ dependencies {
implementation rootProject.ext.dependencies.rxjava
implementation rootProject.ext.dependencies.rxandroid
implementation project(path: ':foudations:mogo-commons')
}
// implementation project(path: ':foudations:mogo-commons')
implementation 'com.mogo.cloud:commons:1.0.2-SNAPSHOT'
}
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -1,4 +1,4 @@
GROUP=com.mogo.cloud
POM_ARTIFACT_ID=tanlu
VERSION_CODE=1
VERSION_NAME=1.0.0
VERSION_NAME=1.0.1-SNAPSHOT