You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.9 KiB
66 lines
1.9 KiB
plugins { |
|
id 'com.android.application' |
|
} |
|
|
|
android { |
|
namespace 'cc.niushuai.didicheck' |
|
compileSdk 34 |
|
|
|
defaultConfig { |
|
applicationId "cc.niushuai.didicheck" |
|
minSdk 24 |
|
targetSdk 34 |
|
versionCode 1 |
|
versionName "1.0" |
|
|
|
javaCompileOptions { |
|
annotationProcessorOptions { |
|
arguments += [ |
|
"room.schemaLocation":"$projectDir/schemas".toString(), |
|
"room.incremental":"true" |
|
] |
|
} |
|
} |
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
} |
|
|
|
buildTypes { |
|
release { |
|
minifyEnabled false |
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
} |
|
} |
|
compileOptions { |
|
sourceCompatibility JavaVersion.VERSION_1_8 |
|
targetCompatibility JavaVersion.VERSION_1_8 |
|
} |
|
buildFeatures { |
|
viewBinding true |
|
} |
|
} |
|
|
|
dependencies { |
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1' |
|
implementation 'com.google.android.material:material:1.10.0' |
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2' |
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' |
|
implementation 'androidx.recyclerview:recyclerview:1.0.0' |
|
testImplementation 'junit:junit:4.13.2' |
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5' |
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' |
|
|
|
// user custom |
|
implementation 'com.github.angcyo:CalendarView:3.7.1.37' |
|
implementation 'cn.hutool:hutool-core:5.8.23' |
|
|
|
|
|
// room持久化库 |
|
def room_version = "2.5.0" |
|
implementation "androidx.room:room-runtime:$room_version" |
|
annotationProcessor "androidx.room:room-compiler:$room_version" |
|
// room分页组件 |
|
implementation "androidx.room:room-paging:$room_version" |
|
} |