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.
82 lines
2.8 KiB
82 lines
2.8 KiB
apply plugin: 'com.android.application'
|
|
|
|
ext {
|
|
compileSdkVersion = 21
|
|
defaultTargetSdkVersion = 21
|
|
}
|
|
|
|
android {
|
|
compileSdk 35
|
|
buildToolsVersion "34.0.0"
|
|
useLibrary 'org.apache.http.legacy'
|
|
defaultConfig {
|
|
applicationId "net.micode.notes"
|
|
minSdkVersion defaultTargetSdkVersion
|
|
targetSdkVersion defaultTargetSdkVersion
|
|
ndk {
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
namespace 'net.micode.notes'
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.sourceEncoding", "UTF-8"
|
|
property "sonar.projectKey", "test1"
|
|
property "sonar.projectName", "test1"
|
|
property "sonar.sources", "src/main/java"
|
|
property "sonar.projectVersion", project.version
|
|
property "sonar.binaries", "build/intermediates/classes"
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
//implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
//implementation 'com.android.support:design:28.0.0'
|
|
//implementation 'com.android.support:support-annotations:28.0.0'
|
|
//implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
|
//implementation 'android.arch.lifecycle:livedata:1.1.1'
|
|
//implementation 'android.arch.lifecycle:viewmodel:1.1.1'// Check for the latest version
|
|
implementation 'androidx.lifecycle:lifecycle-livedata:2.5.1' // 检查最新版本
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' // 检查最新版本
|
|
// Retrofit
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
// Gson
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
//implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'com.google.android.material:material:1.4.0'//android.widget等资源
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'//不能用1.7.0,会和某个库有包冲突
|
|
implementation files('libs\\Msc.jar')
|
|
implementation(files("libs\\SparkChain.aar"))
|
|
implementation 'androidx.annotation:annotation:1.6.0'
|
|
//implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
|
|
//implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
|
|
|
|
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
|
|
} |