Commit 75d26624 by 万齐军

移除dev_mode

parent 52837900
...@@ -44,7 +44,7 @@ android { ...@@ -44,7 +44,7 @@ android {
} }
dependencies { dependencies {
api fileTree(dir: 'libs', include: ['*.aar','*.jar']) api fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2'
...@@ -59,17 +59,7 @@ dependencies { ...@@ -59,17 +59,7 @@ dependencies {
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){ api project(':ydl-webview')
//开发时使用 api project(':ydl-platform')
api project(':ydl-webview') implementation project(':ydl-flutter-base')
api project(':ydl-platform')
implementation project(':ydl-flutter-base')
}else {
//发布时使用
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
implementation rootProject.ext.dependencies["ydl-flutter-base"]
}
} }
...@@ -71,19 +71,8 @@ dependencies { ...@@ -71,19 +71,8 @@ dependencies {
api "com.ydl:ydl-av:1.4.4" api "com.ydl:ydl-av:1.4.4"
implementation 'com.volcengine:apm_insight:1.4.6.cn' implementation 'com.volcengine:apm_insight:1.4.6.cn'
if (rootProject.ext.dev_mode){ api project(':ydl-platform')
//开发时使用 api project(':ydl-webview')
api project(':ydl-platform') implementation project(":api:user")
api project(':ydl-webview') implementation project(":api:im")
implementation project(":api:user")
implementation project(":api:im")
}else {
//发布时使用
api rootProject.ext.dependencies["ydl-webview"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -69,30 +69,14 @@ dependencies { ...@@ -69,30 +69,14 @@ dependencies {
exclude group: 'com.android.support', module: 'appcompat-v7' exclude group: 'com.android.support', module: 'appcompat-v7'
} }
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){ api project(':ydl-media')
//开发时使用 api project(':ydl-platform')
api project(':ydl-media') api project(':m-audioim')
api project(':ydl-platform') api project(":ydl-pay")
api project(':m-audioim') api project(':ydl-webview')
api project(":ydl-pay") api project(':ydl-utils')
api project(':ydl-webview') implementation project(":api:im")
api project(':ydl-utils') implementation project(":api:user")
implementation project(":api:im") implementation project(":api:consultant")
implementation project(":api:user") implementation project(':api:confide')
implementation project(":api:consultant")
implementation project(':api:confide')
}else {
//发布时使用
api rootProject.ext.dependencies["ydl-media"]
api rootProject.ext.dependencies["m-audioim"]
api rootProject.ext.dependencies["ydl-pay"]
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-confide-api"]
compileOnly rootProject.ext.dependencies["ydl-m-consultant-api"]
}
} }
...@@ -49,23 +49,11 @@ dependencies { ...@@ -49,23 +49,11 @@ dependencies {
implementation(rootProject.ext.dependencies["ydl-ijkplayer-jjdxm"]) { implementation(rootProject.ext.dependencies["ydl-ijkplayer-jjdxm"]) {
exclude group: 'com.android.support', module: 'appcompat-v7' exclude group: 'com.android.support', module: 'appcompat-v7'
} }
if (rootProject.ext.dev_mode){
//开发时使用 implementation project(":api:user")
implementation project(":api:user") implementation project(":api:im")
implementation project(":api:im") implementation project(":api:home")
implementation project(":api:home") implementation project(":api:consultant")
implementation project(":api:consultant") api project(":ydl-webview")
api project(":ydl-webview") api project(":ydl-platform")
api project(":ydl-platform")
} else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-home-api"]
compileOnly rootProject.ext.dependencies["ydl-m-consultant-api"]
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -51,35 +51,15 @@ dependencies { ...@@ -51,35 +51,15 @@ dependencies {
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
compileOnly "com.ydl.aar:resource:0.0.1-ydl" compileOnly "com.ydl.aar:resource:0.0.1-ydl"
if (rootProject.ext.dev_mode){
//开发时使用
implementation project(":api:consultant")
implementation project(":api:user")
implementation project(":api:dynamic")
implementation project(":api:course")
api project(":ydl-webview")
api project(":ydl-platform")
api project(":ydl-media")
api project(":ydl-pay")
implementation project(':ydl-flutter-base')
} else { implementation project(":api:consultant")
//发布时使用 implementation project(":api:user")
compileOnly rootProject.ext.dependencies["ydl-m-user-api"] implementation project(":api:dynamic")
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"] implementation project(":api:course")
compileOnly rootProject.ext.dependencies['ydl-m-consultant-api'] api project(":ydl-webview")
compileOnly rootProject.ext.dependencies['ydl-m-course-api'] api project(":ydl-platform")
// compileOnlyrootProject.ext.dependencies['com.ydl:m-consultant-api'] api project(":ydl-media")
api rootProject.ext.dependencies["ydl-webview"] api project(":ydl-pay")
api (rootProject.ext.dependencies["ydl-media"]){ implementation project(':ydl-flutter-base')
transitive = true
}
api rootProject.ext.dependencies["ydl-pay"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
implementation rootProject.ext.dependencies["ydl-flutter-base"]
}
} }
...@@ -72,33 +72,16 @@ dependencies { ...@@ -72,33 +72,16 @@ dependencies {
implementation 'com.daimajia.numberprogressbar:library:1.4@aar' implementation 'com.daimajia.numberprogressbar:library:1.4@aar'
implementation 'me.toptas.fancyshowcase:fancyshowcaseview:1.1.5' implementation 'me.toptas.fancyshowcase:fancyshowcaseview:1.1.5'
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){
//开发时使用 api project(':ydl-webview')
api project(':ydl-webview') api project(':ydl-platform')
api project(':ydl-platform') api project(":ydl-pay")
api project(":ydl-pay") implementation project(":api:im")
implementation project(":api:im") implementation project(":api:user")
implementation project(":api:user") implementation project(":api:dynamic")
implementation project(":api:dynamic") implementation project(":api:tests")
implementation project(":api:tests") implementation project(":api:course")
implementation project(":api:course") implementation project(":api:fm")
implementation project(":api:fm") implementation project(":api:consultant")
implementation project(":api:consultant") implementation project(':api:confide')
implementation project(':api:confide')
}else {
//发布时使用
api rootProject.ext.dependencies["ydl-pay"]
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies["ydl-m-tests-api"]
compileOnly rootProject.ext.dependencies["ydl-m-course-api"]
compileOnly rootProject.ext.dependencies["ydl-m-fm-api"]
compileOnly rootProject.ext.dependencies["ydl-m-consultant-api"]
compileOnly rootProject.ext.dependencies["ydl-m-confide-api"]
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -51,22 +51,11 @@ dependencies { ...@@ -51,22 +51,11 @@ dependencies {
kapt "com.alibaba:arouter-compiler:$arouter_compiler" kapt "com.alibaba:arouter-compiler:$arouter_compiler"
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){
//开发时使用 api project(":ydl-platform")
api project(":ydl-platform") implementation project(":api:user")
implementation project(":api:user") implementation project(":api:dynamic")
implementation project(":api:dynamic") implementation project(":api:fm")
implementation project(":api:fm") implementation project(':ydl-media')
implementation project(':ydl-media')
} else {
//发布时使用
implementation rootProject.ext.dependencies["ydl-media"]
implementation rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies["ydl-m-fm-api"]
implementation (rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -71,31 +71,13 @@ dependencies { ...@@ -71,31 +71,13 @@ dependencies {
implementation rootProject.ext.dependencies["ydl-user-router"] implementation rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){ implementation project(":api:consultant")
//开发时使用 implementation project(":api:user")
implementation project(":api:consultant") implementation project(":api:tests")
implementation project(":api:user") implementation project(":api:home")
implementation project(":api:tests") implementation project(":api:im")
implementation project(":api:home") implementation project(':api:confide')
implementation project(":api:im") implementation project(':ydl-webview')
implementation project(':api:confide') implementation project(':ydl-media')
implementation project(':ydl-webview') implementation project(":ydl-platform")
implementation project(':ydl-media')
implementation project(":ydl-platform")
} else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-consultant-api"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-home-api"]
compileOnly rootProject.ext.dependencies['ydl-m-tests-api']
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-confide-api"]
api (rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
api rootProject.ext.dependencies["ydl-webview"]
api rootProject.ext.dependencies["ydl-media"]
api rootProject.ext.dependencies["ydl-media"]
}
} }
...@@ -63,31 +63,14 @@ dependencies { ...@@ -63,31 +63,14 @@ dependencies {
implementation rootProject.ext.dependencies["BaseRecyclerViewAdapterHelper"] implementation rootProject.ext.dependencies["BaseRecyclerViewAdapterHelper"]
api 'com.tencent.tbs.tbssdk:sdk:43903' api 'com.tencent.tbs.tbssdk:sdk:43903'
if (rootProject.ext.dev_mode){ api project(':ydl-webview')
//开发时使用 api project(':ydl-platform')
api project(':ydl-webview') implementation project(":api:im")
api project(':ydl-platform') implementation project(":api:user")
implementation project(":api:im") implementation project(":api:dynamic")
implementation project(":api:user") implementation project(":api:tests")
implementation project(":api:dynamic") implementation project(":api:course")
implementation project(":api:tests") implementation project(":api:fm")
implementation project(":api:course") implementation project(":api:consultant")
implementation project(":api:fm") implementation project(':api:confide')
implementation project(":api:consultant")
implementation project(':api:confide')
}else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies["ydl-m-tests-api"]
compileOnly rootProject.ext.dependencies["ydl-m-course-api"]
compileOnly rootProject.ext.dependencies["ydl-m-fm-api"]
compileOnly rootProject.ext.dependencies["ydl-m-consultant-api"]
compileOnly rootProject.ext.dependencies["ydl-m-confide-api"]
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -56,25 +56,10 @@ dependencies { ...@@ -56,25 +56,10 @@ dependencies {
// 注意此处的依赖方式:kotlin中使用和java中使用方式有不同 // 注意此处的依赖方式:kotlin中使用和java中使用方式有不同
kapt "com.alibaba:arouter-compiler:$arouter_compiler" kapt "com.alibaba:arouter-compiler:$arouter_compiler"
if (rootProject.ext.dev_mode){ api project(":ydl-platform")
//开发时使用 implementation project(':ydl-media')
api project(":ydl-platform") implementation project(":api:user")
implementation project(':ydl-media') implementation project(':ydl-flutter-base')
implementation project(":api:user") implementation project(':ydl-webview')
implementation project(':ydl-flutter-base')
implementation project(':ydl-webview')
} else {
//发布时使用
api rootProject.ext.dependencies["ydl-media"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
api (rootProject.ext.dependencies["ydl-webview"]){
transitive = true
}
api (rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
implementation rootProject.ext.dependencies["ydl-flutter-base"]
}
} }
...@@ -42,27 +42,12 @@ dependencies { ...@@ -42,27 +42,12 @@ dependencies {
compileOnly "com.ydl.aar:resource:0.0.1-ydl" compileOnly "com.ydl.aar:resource:0.0.1-ydl"
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){
//开发时使用
api project(':ydl-webview')
api project(':ydl-platform')
implementation project(':ydl-flutter-base')
implementation project(":api:tests")
implementation project(":api:user")
implementation project(":api:dynamic")
implementation project(":api:im")
}else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-tests-api"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
api rootProject.ext.dependencies["ydl-webview"] api project(':ydl-webview')
api(rootProject.ext.dependencies["ydl-platform"]) { api project(':ydl-platform')
transitive = true implementation project(':ydl-flutter-base')
} implementation project(":api:tests")
implementation project(":api:user")
implementation rootProject.ext.dependencies["ydl-flutter-base"] implementation project(":api:dynamic")
} implementation project(":api:im")
} }
\ No newline at end of file
...@@ -56,31 +56,15 @@ dependencies { ...@@ -56,31 +56,15 @@ dependencies {
implementation "com.ydl.aar:resource:0.0.1-ydl" implementation "com.ydl.aar:resource:0.0.1-ydl"
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){
//开发时使用 api project(':ydl-webview')
api project(':ydl-webview') api project(':ydl-platform')
api project(':ydl-platform') api project(":ydl-pay")
api project(":ydl-pay")
// implementation project(":ydl-tuicore") // implementation project(":ydl-tuicore")
implementation project(":api:user") implementation project(":api:user")
implementation project(":api:course") implementation project(":api:course")
implementation project(":api:im") implementation project(":api:im")
implementation project(":api:fm") implementation project(":api:fm")
implementation project(":api:dynamic") implementation project(":api:dynamic")
implementation project(":api:consultant") implementation project(":api:consultant")
}else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies['ydl-m-course-api']
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
compileOnly rootProject.ext.dependencies["ydl-m-fm-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies['ydl-m-consultant-api']
api rootProject.ext.dependencies["ydl-webview"]
api rootProject.ext.dependencies["ydl-pay"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
// implementation rootProject.ext.dependencies["ydl-tuicore"]
}
} }
...@@ -56,25 +56,8 @@ dependencies { ...@@ -56,25 +56,8 @@ dependencies {
// 注意此处的依赖方式:kotlin中使用和java中使用方式有不同 // 注意此处的依赖方式:kotlin中使用和java中使用方式有不同
kapt "com.alibaba:arouter-compiler:$arouter_compiler" kapt "com.alibaba:arouter-compiler:$arouter_compiler"
if (rootProject.ext.dev_mode){ implementation project(":ydl-platform")
//开发时使用 api rootProject.ext.dependencies["ydl-flutter"]
implementation project(":ydl-platform")
// api fileTree(include: ['*.aar'], dir: 'aars')
api rootProject.ext.dependencies["ydl-flutter"]
// api rootProject.ext.dependencies["ydl-flutter-sp"]
} else {
//发布时使用
api (rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
//以下为flutter端的所有aar
api rootProject.ext.dependencies["ydl-flutter"]
// api rootProject.ext.dependencies["ydl-flutter-sp"]
}
} }
repositories { repositories {
......
...@@ -43,15 +43,7 @@ dependencies { ...@@ -43,15 +43,7 @@ dependencies {
exclude group: 'com.android.support', module: 'appcompat-v7' exclude group: 'com.android.support', module: 'appcompat-v7'
} }
if (rootProject.ext.dev_mode){ api project(':ydl-platform')
//开发时使用
api project(':ydl-platform')
}else {
//发布时使用
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
...@@ -41,17 +41,8 @@ dependencies { ...@@ -41,17 +41,8 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
if (rootProject.ext.dev_mode){ api project(':ydl-platform')
//开发时使用 implementation project(":api:im")
api project(':ydl-platform')
implementation project(":api:im")
}else {
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
//发布时使用
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
repositories { repositories {
......
...@@ -80,10 +80,8 @@ dependencies { ...@@ -80,10 +80,8 @@ dependencies {
exclude group: 'com.ydl', module: 'pictureselector' exclude group: 'com.ydl', module: 'pictureselector'
} }
api rootProject.ext.dependencies["ydl-utils"] api project(':ydl-utils')
// api project(':ydl-utils') api project(':ydl-net')
api rootProject.ext.dependencies["ydl-js"]
api rootProject.ext.dependencies["ydl-net"]
api rootProject.ext.dependencies["ydl-js"] api rootProject.ext.dependencies["ydl-js"]
api rootProject.ext.dependencies["ptr-lib-release"] api rootProject.ext.dependencies["ptr-lib-release"]
api(rootProject.ext.dependencies["ydl-device"]) { api(rootProject.ext.dependencies["ydl-device"]) {
......
...@@ -50,20 +50,10 @@ dependencies { ...@@ -50,20 +50,10 @@ dependencies {
api rootProject.ext.dependencies["ydl-user-router"] api rootProject.ext.dependencies["ydl-user-router"]
api fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
api 'com.tencent.tbs.tbssdk:sdk:43903' api 'com.tencent.tbs.tbssdk:sdk:43903'
if (rootProject.ext.dev_mode) {
//开发时使用 api project(':ydl-platform')
api project(':ydl-platform') implementation project(":api:user")
implementation project(":api:user") implementation project(":api:dynamic")
implementation project(":api:dynamic") implementation project(":api:im")
implementation project(":api:im")
} else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
compileOnly rootProject.ext.dependencies["ydl-m-im-api"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment