1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 26
- defaultConfig {
- minSdkVersion 19
- targetSdkVersion 26
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- repositories { //这几句代码一定要加 不然会找不到.aar文件
- flatDir {
- dirs 'libs' //this way we can find the .aar file in libs folder
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation('pub.devrel:easypermissions:1.1.2') {
- exclude group: 'com.android.support'
- }
- implementation 'androidx.appcompat:appcompat:1.0.0'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
- }
|