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.
47 lines
991 B
47 lines
991 B
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace 'net.micode.notes'
|
|
compileSdk 33
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "net.micode.notes"
|
|
minSdk 14
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
// 必须开启这行,否则 HTTP 库报错
|
|
useLibrary 'org.apache.http.legacy'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile '../AndroidManifest.xml'
|
|
java.srcDirs = ['../src']
|
|
res.srcDirs = ['../res']
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
}
|