opt
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.mogo.module.navi.database.bean;
|
||||
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user