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.

46 lines
1.2 KiB

apply plugin: 'com.android.application'
String SDK_DIR = System.getenv("ANDROID_HOME")
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.huanglong.android.music"
minSdkVersion 29
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.debug
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "MusicDemo.apk"
}
}
}
dependencies {
String frameworkPath = "${SDK_DIR}/platforms/android-29/framework.jar";
compileOnly files(frameworkPath)
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
}