From fa04cc6f0b0f6229687d7df4109e971759043c9f Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Mon, 30 Jan 2023 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?[Opt3.0]=E6=96=B0=E5=A2=9EStartUp=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo-core-function-startup/build.gradle | 73 +++++++++++++++++++ .../consumer-rules.pro | 0 .../gradle.properties | 3 + .../proguard-rules.pro | 21 ++++++ settings.gradle | 2 + 5 files changed, 99 insertions(+) create mode 100644 core/function-impl/mogo-core-function-startup/build.gradle create mode 100644 core/function-impl/mogo-core-function-startup/consumer-rules.pro create mode 100644 core/function-impl/mogo-core-function-startup/gradle.properties create mode 100644 core/function-impl/mogo-core-function-startup/proguard-rules.pro diff --git a/core/function-impl/mogo-core-function-startup/build.gradle b/core/function-impl/mogo-core-function-startup/build.gradle new file mode 100644 index 0000000000..63677b97d0 --- /dev/null +++ b/core/function-impl/mogo-core-function-startup/build.gradle @@ -0,0 +1,73 @@ +plugins { + id 'com.android.library' + id 'kotlin-android' + id 'kotlin-android-extensions' + id 'kotlin-kapt' + id 'com.alibaba.arouter' +} +android { + compileSdkVersion rootProject.ext.android.compileSdkVersion + defaultConfig { + minSdkVersion rootProject.ext.android.minSdkVersion + targetSdkVersion rootProject.ext.android.targetSdkVersion + versionCode Integer.valueOf(VERSION_CODE) + versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION") + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles 'consumer-rules.pro' + //ARouter apt 参数 + kapt { + useBuildCache = false + arguments { + arg("AROUTER_MODULE_NAME", project.getName()) + } + } + + javaCompileOptions { + annotationProcessorOptions { + arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] + } + } + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation rootProject.ext.dependencies.androidxccorektx + implementation rootProject.ext.dependencies.androidxappcompat + implementation rootProject.ext.dependencies.arouter + implementation rootProject.ext.dependencies.rxandroid + kapt rootProject.ext.dependencies.aroutercompiler + + implementation rootProject.ext.dependencies.mogoami + implementation rootProject.ext.dependencies.mogoaicloudtelematic + + if (Boolean.valueOf(USE_MAVEN_PACKAGE)) { + implementation rootProject.ext.dependencies.mogo_core_data + implementation rootProject.ext.dependencies.mogo_core_utils + implementation rootProject.ext.dependencies.mogo_core_function_call + + implementation project(':libraries:mogo-adas') + } else { + implementation project(':core:mogo-core-data') + implementation project(':core:mogo-core-utils') + implementation project(':core:mogo-core-function-call') + + implementation project(':libraries:mogo-adas') + implementation project(':foudations:mogo-commons') + } +} + +apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() diff --git a/core/function-impl/mogo-core-function-startup/consumer-rules.pro b/core/function-impl/mogo-core-function-startup/consumer-rules.pro new file mode 100644 index 0000000000..e69de29bb2 diff --git a/core/function-impl/mogo-core-function-startup/gradle.properties b/core/function-impl/mogo-core-function-startup/gradle.properties new file mode 100644 index 0000000000..40e6b6fcc9 --- /dev/null +++ b/core/function-impl/mogo-core-function-startup/gradle.properties @@ -0,0 +1,3 @@ +GROUP=com.mogo.eagle.core.function.impl +POM_ARTIFACT_ID=startup +VERSION_CODE=1 diff --git a/core/function-impl/mogo-core-function-startup/proguard-rules.pro b/core/function-impl/mogo-core-function-startup/proguard-rules.pro new file mode 100644 index 0000000000..481bb43481 --- /dev/null +++ b/core/function-impl/mogo-core-function-startup/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 4954d993e1..c42ca170cc 100644 --- a/settings.gradle +++ b/settings.gradle @@ -34,6 +34,8 @@ include ':core:function-impl:mogo-core-function-chat' include ':core:function-impl:mogo-core-function-biz' // 消息盒子、自研OBU业务 include ':core:function-impl:mogo-core-function-datacenter' +// 启动 +include ':core:function-impl:mogo-core-function-startup' // 模块 include ':foudations:mogo-aicloud-services-sdk'