|
|
@ -3,15 +3,12 @@ apply plugin: 'com.github.dcendents.android-maven' |
|
|
|
group='com.github.jiangdongguo' |
|
|
|
|
|
|
|
android { |
|
|
|
compileSdkVersion 25 |
|
|
|
buildToolsVersion '26.0.2' |
|
|
|
|
|
|
|
compileSdkVersion rootProject.ext.versionCompiler |
|
|
|
defaultConfig { |
|
|
|
minSdkVersion 16 |
|
|
|
targetSdkVersion 22 |
|
|
|
minSdkVersion rootProject.ext.minSdkVersion |
|
|
|
targetSdkVersion rootProject.ext.versionTarget |
|
|
|
versionCode 1 |
|
|
|
versionName "1.0" |
|
|
|
|
|
|
|
versionName rootProject.ext.versionNameString |
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
|
|
|
} |
|
|
|
buildTypes { |
|
|
@ -20,17 +17,25 @@ android { |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
|
} |
|
|
|
} |
|
|
|
// solving com.android.tools.r8.CompilationFailedException: Compilation failed to complete |
|
|
|
compileOptions { |
|
|
|
sourceCompatibility rootProject.ext.javaSourceCompatibility |
|
|
|
targetCompatibility rootProject.ext.javaTargetCompatibility |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
compile fileTree(dir: 'libs', include: ['*.jar']) |
|
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { |
|
|
|
implementation fileTree(dir: new File(buildDir, 'libs'), include: '*.jar') |
|
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { |
|
|
|
exclude group: 'com.android.support', module: 'support-annotations' |
|
|
|
}) |
|
|
|
compile 'com.android.support:appcompat-v7:25.3.1' |
|
|
|
testCompile 'junit:junit:4.12' |
|
|
|
compile("com.serenegiant:common:${commonLibVersion}") { |
|
|
|
testImplementation 'junit:junit:4.12' |
|
|
|
implementation "com.android.support:appcompat-v7:${supportLibVersion}" |
|
|
|
implementation "com.android.support:support-annotations:${supportLibVersion}" |
|
|
|
// when changing compile to implementation |
|
|
|
// AS will report exception of com.serenegiant.widget.IAspectRatioView |
|
|
|
api("com.serenegiant:common:${commonLibVersion}") { |
|
|
|
exclude module: 'support-v4' |
|
|
|
} |
|
|
|
} |
|
|
|