diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..82113c4 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,48 @@ +plugins { + alias(libs.plugins.android.application) +} + +android { + namespace = "net.micode.note_master" + compileSdk = 35 + + defaultConfig { + applicationId = "net.micode.note_master" + minSdk = 24 + targetSdk = 35 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } +} + +dependencies { + + implementation(libs.appcompat) + implementation(libs.material) + implementation(libs.activity) + implementation(libs.constraintlayout) + implementation(fileTree(mapOf( + "dir" to "C:\\Users\\xianwei\\OneDrive\\httpcomponents-client-4.5.14-bin", + "include" to listOf("*.aar", "*.jar"), // 明确指定类型参数 + "exclude" to listOf() // 明确指定类型参数 + ))) + testImplementation(libs.junit) + androidTestImplementation(libs.ext.junit) + androidTestImplementation(libs.espresso.core) +} \ No newline at end of file