|
@@ -20,7 +20,7 @@ apply plugin: "kotlin-kapt"
|
|
|
apply plugin: 'kotlinx-serialization'
|
|
|
|
|
|
android {
|
|
|
- compileSdkVersion 30
|
|
|
+ compileSdkVersion 33
|
|
|
signingConfigs {
|
|
|
signed {
|
|
|
storeFile file("../signed")
|
|
@@ -32,7 +32,7 @@ android {
|
|
|
defaultConfig {
|
|
|
applicationId "com.drake.net.sample"
|
|
|
minSdkVersion 19
|
|
|
- targetSdkVersion 30
|
|
|
+ targetSdkVersion 33
|
|
|
versionCode 1
|
|
|
multiDexEnabled true
|
|
|
versionName "1.0"
|
|
@@ -73,7 +73,7 @@ dependencies {
|
|
|
androidTestImplementation "androidx.test:runner:1.3.0"
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
|
|
|
implementation "androidx.appcompat:appcompat:1.3.1"
|
|
|
- implementation "androidx.core:core-ktx:1.3.2"
|
|
|
+ implementation "androidx.core:core-ktx:1.9.0"
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
implementation "androidx.recyclerview:recyclerview:1.2.0"
|
|
@@ -93,8 +93,8 @@ dependencies {
|
|
|
// ------------------------------JSON解析-------------------------------------
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2" // JSON序列化库, 首选推荐使用
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.2.0" // protobuf序列化
|
|
|
- implementation "com.squareup.moshi:moshi-kotlin:1.8.0" // JSON序列化库, 强校验, JSON字段缺失会导致解析异常, 故不推荐
|
|
|
- kapt "com.squareup.moshi:moshi-kotlin-codegen:1.8.0"
|
|
|
+ implementation "com.squareup.moshi:moshi-kotlin:1.14.0" // JSON序列化库, 强校验, JSON字段缺失会导致解析异常, 故不推荐
|
|
|
+ implementation "org.jetbrains.kotlin:kotlin-reflect:1.7.10"
|
|
|
implementation 'com.google.code.gson:gson:2.8.6' // JSON序列化库, 会导致kotlin默认值无效, 故不推荐
|
|
|
implementation 'com.alibaba:fastjson:1.2.73' // JSON序列化库, 会导致kotlin默认值无效(除非引入kt-reflect), 不推荐
|
|
|
|