diff --git a/modules/mogo-module-obu-mogo/build.gradle b/modules/mogo-module-obu-mogo/build.gradle index 5e8b380bfd..c85c05348a 100644 --- a/modules/mogo-module-obu-mogo/build.gradle +++ b/modules/mogo-module-obu-mogo/build.gradle @@ -1,5 +1,8 @@ plugins { id 'com.android.library' + id 'kotlin-android' + id 'kotlin-android-extensions' + id 'kotlin-kapt' id 'com.alibaba.arouter' } @@ -14,9 +17,11 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' - javaCompileOptions { - annotationProcessorOptions { - arguments = [AROUTER_MODULE_NAME: project.getName()] + //ARouter apt 参数 + kapt { + useBuildCache = false + arguments { + arg("AROUTER_MODULE_NAME", project.getName()) } } } @@ -31,6 +36,9 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + kotlinOptions { + jvmTarget = '1.8' + } } dependencies { @@ -40,7 +48,7 @@ dependencies { implementation rootProject.ext.dependencies.arouter implementation rootProject.ext.dependencies.rxandroid - annotationProcessor rootProject.ext.dependencies.aroutercompiler + kapt rootProject.ext.dependencies.aroutercompiler if (Boolean.valueOf(RELEASE)) { api rootProject.ext.dependencies.mogomap diff --git a/modules/mogo-module-warning/build.gradle b/modules/mogo-module-warning/build.gradle index 5e8b380bfd..c85c05348a 100644 --- a/modules/mogo-module-warning/build.gradle +++ b/modules/mogo-module-warning/build.gradle @@ -1,5 +1,8 @@ plugins { id 'com.android.library' + id 'kotlin-android' + id 'kotlin-android-extensions' + id 'kotlin-kapt' id 'com.alibaba.arouter' } @@ -14,9 +17,11 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' - javaCompileOptions { - annotationProcessorOptions { - arguments = [AROUTER_MODULE_NAME: project.getName()] + //ARouter apt 参数 + kapt { + useBuildCache = false + arguments { + arg("AROUTER_MODULE_NAME", project.getName()) } } } @@ -31,6 +36,9 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + kotlinOptions { + jvmTarget = '1.8' + } } dependencies { @@ -40,7 +48,7 @@ dependencies { implementation rootProject.ext.dependencies.arouter implementation rootProject.ext.dependencies.rxandroid - annotationProcessor rootProject.ext.dependencies.aroutercompiler + kapt rootProject.ext.dependencies.aroutercompiler if (Boolean.valueOf(RELEASE)) { api rootProject.ext.dependencies.mogomap diff --git a/modules/mogo-module-warning/src/main/java/com/mogo/module/warning/notification/NotificationManager.java b/modules/mogo-module-warning/src/main/java/com/mogo/module/warning/notification/NotificationManager.java new file mode 100644 index 0000000000..835fc0af5c --- /dev/null +++ b/modules/mogo-module-warning/src/main/java/com/mogo/module/warning/notification/NotificationManager.java @@ -0,0 +1,10 @@ +package com.mogo.module.warning.notification; + +/** + * @author xiaoyuzhou + * @date 2021/8/3 5:50 下午 + * 通知管理 + */ +public class NotificationManager { + +}