SDK适配 android studio2024.2.2

master
hwf452 11 months ago
parent 32bf66d552
commit 4614e6e2b8

@ -1,15 +1,16 @@
plugins { plugins {
id 'com.android.application' alias(libs.plugins.android.application)
id 'org.jetbrains.kotlin.android' alias(libs.plugins.kotlin.android)
} }
android { android {
namespace 'com.bjzc.zjyxdxj' namespace 'com.bjzc.zjyxdxj'
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
applicationId "com.bjzc.zjyxdxj" applicationId "com.bjzc.zjyxdxj"
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
versionCode 19 versionCode 19
versionName "1.0.1" versionName "1.0.1"
multiDexEnabled true multiDexEnabled true
@ -39,7 +40,6 @@ android {
abortOnError false abortOnError false
} }
minifyEnabled false // minifyEnabled false //
zipAlignEnabled true // zip
debuggable false // debug debuggable false // debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release // signingConfig signingConfigs.release //
@ -51,15 +51,30 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_17 sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_21
} }
} }
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.material
implementation libs.androidx.activity
implementation libs.androidx.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
// implementation 'androidx.appcompat:appcompat:1.2.0'
// implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
// implementation 'com.google.android.material:material:1.2.1'
// implementation 'com.zhy:autolayout:1.4.5' // implementation 'com.zhy:autolayout:1.4.5'
// implementation 'com.yolanda.nohttp:nohttp:1.0.5' // implementation 'com.yolanda.nohttp:nohttp:1.0.5'
@ -81,7 +96,7 @@ dependencies {
implementation project(':luban') implementation project(':luban')
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
@ -109,46 +124,8 @@ dependencies {
implementation 'commons-codec:commons-codec:1.15' implementation 'commons-codec:commons-codec:1.15'
//广 //广
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
configurations { configurations {
all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.google.code.gson'
} }
// implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
// implementation 'com.squareup.retrofit2:retrofit:2.9.0'
// implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
//
// implementation 'com.yanzhenjie:permission:2.0.3'
// implementation 'com.github.huangyanbin:SmartTable:2.2.0'
// implementation 'com.google.android.material:material:1.2.1'
// implementation 'androidx.multidex:multidex:2.0.1'
// implementation 'androidx.recyclerview:recyclerview:1.1.0'
// implementation 'de.hdodenhof:circleimageview:3.1.0'
// implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.9'
// implementation 'com.github.wanglu1209:PhotoViewer:0.50'
// implementation 'io.github.azhon:appupdate:4.2.6'
// implementation 'com.tencent.bugly:crashreport:3.2.1'
// implementation 'com.github.xuexiangjys:XUI:1.1.4'
// implementation files('libs/rinsunMT.jar')
// implementation 'org.greenrobot:eventbus:3.0.0'
// implementation 'com.github.bumptech.glide:glide:4.11.0'
//
//
// //
// implementation 'cn.hutool:hutool-all:5.8.5'
// //mqtt
// implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.4'
// implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
// implementation 'org.bouncycastle:bcpkix-jdk15on:1.56'
// implementation 'org.bouncycastle:bcpkix-jdk15on:1.47'
// implementation 'commons-codec:commons-codec:1.15'
// testImplementation 'junit:junit:4.13.1'
// androidTestImplementation 'androidx.test.ext:junit:1.1.2'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
// configurations {
// all*.exclude group: 'com.google.code.gson'
// }
} }

@ -1,15 +1,14 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
namespace 'com.zhy.autolayout' namespace 'com.zhy.autolayout'
} }
dependencies { dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0' implementation libs.androidx.appcompat.v170
} }

@ -3,7 +3,7 @@ package com.zhy.autolayout;
import android.content.Context; import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.View; import android.view.View;
;import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
/** /**
* Created by zhy on 15/11/19. * Created by zhy on 15/11/19.

@ -1,8 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
//plugins {
// id 'com.android.application' version '8.6.0' apply false
// id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
//}
plugins { plugins {
id 'com.android.application' version '8.6.0' apply false alias(libs.plugins.android.application) apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false alias(libs.plugins.kotlin.android) apply false
} }

@ -10,6 +10,7 @@
android.enableJetifier=true android.enableJetifier=true
android.useAndroidX=true android.useAndroidX=true
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.nonTransitiveRClass=true
#android.defaults.buildfeatures.buildconfig=true #android.defaults.buildfeatures.buildconfig=true
#android.enableJetifier=true #android.enableJetifier=true

@ -0,0 +1,38 @@
[versions]
agp = "8.8.0"
androidxAppcompatVersion = "1.1.0"
annotationVersion = "1.8.2"
appcompatVersion = "1.7.0"
glide = "4.11.0"
kotlin = "1.9.24"
coreKtx = "1.10.1"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"
activity = "1.8.0"
constraintlayout = "2.1.4"
recyclerview = "1.3.0"
squareupPicasso = "2.5.2"
[libraries]
androidx-appcompat-v170 = { module = "androidx.appcompat:appcompat", version.ref = "appcompatVersion" }
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
annotation = { module = "androidx.annotation:annotation", version.ref = "annotationVersion" }
appcompat-v110 = { module = "androidx.appcompat:appcompat", version.ref = "androidxAppcompatVersion" }
com-squareup-picasso-picasso = { module = "com.squareup.picasso:picasso", version.ref = "squareupPicasso" }
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }

@ -1,6 +1,6 @@
#Thu Jul 16 09:24:15 CST 2020 #Thu Jan 16 17:33:21 CST 2025
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

@ -1,10 +1,10 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
namespace 'org.litepal' namespace 'org.litepal'

@ -1,10 +1,10 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
namespace 'top.zibin.luban' namespace 'top.zibin.luban'

@ -2,22 +2,29 @@ apply plugin: 'com.android.library'
android { android {
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
namespace 'com.zhihu.matisse' namespace 'com.zhihu.matisse'
} }
dependencies { dependencies {
implementation "androidx.appcompat:appcompat:1.1.0" // implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.annotation:annotation:1.1.0" // implementation "androidx.annotation:annotation:1.1.0"
implementation "androidx.recyclerview:recyclerview:1.0.0" // implementation "androidx.recyclerview:recyclerview:1.0.0"
// implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4'
// compileOnly 'com.github.bumptech.glide:glide:4.9.0'
// compileOnly 'com.squareup.picasso:picasso:2.5.2'
implementation libs.appcompat.v110
implementation libs.annotation
implementation libs.androidx.recyclerview
//noinspection UseTomlInstead
implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4' implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4'
compileOnly 'com.github.bumptech.glide:glide:4.9.0' compileOnly libs.glide
compileOnly 'com.squareup.picasso:picasso:2.5.2' compileOnly libs.com.squareup.picasso.picasso
} }

@ -1,10 +1,10 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdk 34 compileSdk 35
defaultConfig { defaultConfig {
minSdk 24 minSdk 24
targetSdk 34 targetSdk 35
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
namespace 'com.yolanda.nohttp' namespace 'com.yolanda.nohttp'

Loading…
Cancel
Save