This commit is contained in:
lixiaopeng
2020-01-02 12:05:11 +08:00
parent 5762b771e3
commit 50d7c8bf2f
29 changed files with 1076 additions and 4 deletions

View File

@@ -12,6 +12,13 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
@@ -36,7 +43,8 @@ dependencies {
implementation rootProject.ext.dependencies.androidxconstraintlayout
implementation rootProject.ext.dependencies.arouter
implementation rootProject.ext.dependencies.room
implementation rootProject.ext.dependencies.roomAnnotationProcessor
annotationProcessor rootProject.ext.dependencies.roomAnnotationProcessor
implementation rootProject.ext.dependencies.roomRxjava
annotationProcessor rootProject.ext.dependencies.aroutercompiler
implementation 'org.jetbrains:annotations-java5:15.0'
}

View File

@@ -12,7 +12,7 @@ import com.mogo.module.navi.database.dao.POIDao;
* 2019-08-15.
*/
@Database(entities = { POIInfo.class}, version = 1)
@Database(entities = { POIInfo.class}, version = 1, exportSchema = false)
public abstract class AppDataBase extends RoomDatabase {
public abstract POIDao poiDao();

View File

@@ -2,6 +2,7 @@ package com.mogo.module.navi.database.bean;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import org.jetbrains.annotations.NotNull;
/**