diff --git a/app/build.gradle b/app/build.gradle index 2aaeb5eaae..4a948a901b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -250,10 +250,6 @@ dependencies { exclude group: 'com.mogo.module', module: 'module-share' } - implementation rootProject.ext.dependencies.modulepushbase - launcherImplementation rootProject.ext.dependencies.modulepush - independentImplementation rootProject.ext.dependencies.modulepushnoop - if (Boolean.valueOf(RELEASE)) { launcherImplementation rootProject.ext.dependencies.modulemainlauncher independentImplementation rootProject.ext.dependencies.modulemainindependent @@ -262,67 +258,29 @@ dependencies { implementation rootProject.ext.dependencies.modulesearch implementation rootProject.ext.dependencies.mogomoduleguide implementation rootProject.ext.dependencies.mogomoduleauth - debugImplementation rootProject.ext.dependencies.gpssimulatordebug - releaseImplementation rootProject.ext.dependencies.gpssimulatornoop implementation rootProject.ext.dependencies.modulemedia implementation rootProject.ext.dependencies.moduleservice implementation rootProject.ext.dependencies.modulesplash implementation rootProject.ext.dependencies.moduleV2x - // 事件面板分渠道引用 - d82xImplementation rootProject.ext.dependencies.moduleventpanelnoop - em1Implementation rootProject.ext.dependencies.moduleventpanelnoop - bydImplementation rootProject.ext.dependencies.moduleventpanelnoop - d8xxImplementation rootProject.ext.dependencies.moduleventpanel - em4Implementation rootProject.ext.dependencies.moduleventpanel - e8xxImplementation rootProject.ext.dependencies.moduleventpanel - f8xxImplementation rootProject.ext.dependencies.moduleventpanel - em3Implementation rootProject.ext.dependencies.moduleventpanel - // 左侧面板分渠道引用 - d82xImplementation rootProject.ext.dependencies.moduleleftpanel - em1Implementation rootProject.ext.dependencies.moduleleftpanel - bydImplementation rootProject.ext.dependencies.moduleleftpanel - d8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop - em4Implementation rootProject.ext.dependencies.moduleleftpanelnoop - e8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop - e8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop - f8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop - em3Implementation rootProject.ext.dependencies.moduleleftpanelnoop } else { launcherImplementation project(':main-extensions:mogo-module-main-launcher') -// launcherImplementation project(':modules:mogo-module-main') independentImplementation project(':main-extensions:mogo-module-main-independent') implementation project(':foudations:mogo-commons') implementation project(':modules:mogo-module-common') implementation project(':modules:mogo-module-search') implementation project(':modules:mogo-module-guide') implementation project(':modules:mogo-module-authorize') - debugImplementation project(':modules:mogo-module-gps-simulator-debug') - releaseImplementation project(':modules:mogo-module-gps-simulator-noop') implementation project(':modules:mogo-module-media') implementation project(':modules:mogo-module-service') implementation project(':modules:mogo-module-splash') implementation project(':modules:mogo-module-v2x') - // 事件面板分渠道引用 - d82xImplementation project(':modules:mogo-module-event-panel-noop') - em1Implementation project(':modules:mogo-module-event-panel-noop') - bydImplementation project(':modules:mogo-module-event-panel-noop') - d8xxImplementation project(':modules:mogo-module-event-panel') - em4Implementation project(':modules:mogo-module-event-panel') - e8xxImplementation project(':modules:mogo-module-event-panel') - f8xxImplementation project(':modules:mogo-module-event-panel') - em3Implementation project(':modules:mogo-module-event-panel') - // 左侧面板分渠道引用 - d82xImplementation project(':modules:mogo-module-left-panel') - em1Implementation project(':modules:mogo-module-left-panel') - bydImplementation project(':modules:mogo-module-left-panel') - d8xxImplementation project(':modules:mogo-module-left-panel-noop') - em4Implementation project(':modules:mogo-module-left-panel-noop') - e8xxImplementation project(':modules:mogo-module-left-panel-noop') - f8xxImplementation project(':modules:mogo-module-left-panel-noop') - em3Implementation project(':modules:mogo-module-left-panel-noop') } apply from: "./functions/baseservices.gradle" + apply from: "./functions/socketpush.gradle" + apply from: "./functions/gpssimulator.gradle" + apply from: "./functions/eventpanel.gradle" + apply from: "./functions/leftpanel.gradle" } //android.applicationVariants.all { variant -> diff --git a/app/functions/eventpanel.gradle b/app/functions/eventpanel.gradle new file mode 100644 index 0000000000..c1acd256e7 --- /dev/null +++ b/app/functions/eventpanel.gradle @@ -0,0 +1,25 @@ +// 道路事件操作面板 + +project.dependencies { + if (Boolean.valueOf(RELEASE)) { + d82xImplementation rootProject.ext.dependencies.moduleventpanelnoop + em1Implementation rootProject.ext.dependencies.moduleventpanelnoop + bydImplementation rootProject.ext.dependencies.moduleventpanelnoop + + d8xxImplementation rootProject.ext.dependencies.moduleventpanel + em4Implementation rootProject.ext.dependencies.moduleventpanel + e8xxImplementation rootProject.ext.dependencies.moduleventpanel + f8xxImplementation rootProject.ext.dependencies.moduleventpanel + em3Implementation rootProject.ext.dependencies.moduleventpanel + } else { + d82xImplementation project(':modules:mogo-module-event-panel-noop') + em1Implementation project(':modules:mogo-module-event-panel-noop') + bydImplementation project(':modules:mogo-module-event-panel-noop') + + d8xxImplementation project(':modules:mogo-module-event-panel') + em4Implementation project(':modules:mogo-module-event-panel') + e8xxImplementation project(':modules:mogo-module-event-panel') + f8xxImplementation project(':modules:mogo-module-event-panel') + em3Implementation project(':modules:mogo-module-event-panel') + } +} \ No newline at end of file diff --git a/app/functions/gpssimulator.gradle b/app/functions/gpssimulator.gradle new file mode 100644 index 0000000000..c33febbc07 --- /dev/null +++ b/app/functions/gpssimulator.gradle @@ -0,0 +1,11 @@ +// 基于后台轨迹模拟的gps模拟服务 + +project.dependencies { + if (Boolean.valueOf(RELEASE)) { + debugImplementation rootProject.ext.dependencies.gpssimulatordebug + releaseImplementation rootProject.ext.dependencies.gpssimulatornoop + } else { + debugImplementation project(':modules:mogo-module-gps-simulator-debug') + releaseImplementation project(':modules:mogo-module-gps-simulator-noop') + } +} \ No newline at end of file diff --git a/app/functions/leftpanel.gradle b/app/functions/leftpanel.gradle new file mode 100644 index 0000000000..9a1aa18c98 --- /dev/null +++ b/app/functions/leftpanel.gradle @@ -0,0 +1,26 @@ +// 辅助驾驶占位模块,目前部分车机不上辅助驾驶功能,使用该模块能力代替 + +project.dependencies { + if (Boolean.valueOf(RELEASE)) { + d82xImplementation rootProject.ext.dependencies.moduleleftpanel + em1Implementation rootProject.ext.dependencies.moduleleftpanel + bydImplementation rootProject.ext.dependencies.moduleleftpanel + + d8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop + em4Implementation rootProject.ext.dependencies.moduleleftpanelnoop + e8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop + e8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop + f8xxImplementation rootProject.ext.dependencies.moduleleftpanelnoop + em3Implementation rootProject.ext.dependencies.moduleleftpanelnoop + } else { + d82xImplementation project(':modules:mogo-module-left-panel') + em1Implementation project(':modules:mogo-module-left-panel') + bydImplementation project(':modules:mogo-module-left-panel') + + d8xxImplementation project(':modules:mogo-module-left-panel-noop') + em4Implementation project(':modules:mogo-module-left-panel-noop') + e8xxImplementation project(':modules:mogo-module-left-panel-noop') + f8xxImplementation project(':modules:mogo-module-left-panel-noop') + em3Implementation project(':modules:mogo-module-left-panel-noop') + } +} \ No newline at end of file diff --git a/app/functions/socketpush.gradle b/app/functions/socketpush.gradle new file mode 100644 index 0000000000..ef9923abfd --- /dev/null +++ b/app/functions/socketpush.gradle @@ -0,0 +1,7 @@ +// 基于socket长链的push推送 + +project.dependencies { + implementation rootProject.ext.dependencies.modulepushbase + launcherImplementation rootProject.ext.dependencies.modulepush + independentImplementation rootProject.ext.dependencies.modulepushnoop +} \ No newline at end of file