From cfe90af90a3efdd95f69fc1e8e2b67754ecae055 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 3 Apr 2016 08:15:41 +0200 Subject: [PATCH] Android N build remarks --- app/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c8137b2c..2bf62be5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,16 +2,16 @@ apply plugin: 'com.android.model.application' model { android { - compileSdkVersion = 23 - buildToolsVersion = "23.0.3" + compileSdkVersion = 23 // "android-N" + buildToolsVersion = "23.0.3" // "24.0.0 rc2" defaultConfig { applicationId = "eu.faircode.netguard" minSdkVersion.apiLevel = 14 - targetSdkVersion.apiLevel = 23 + targetSdkVersion.apiLevel = 23 // 24 versionCode = 2016033102 versionName = "2.16" - archivesBaseName = "NetGuard-v$versionName-$versionCode" + archivesBaseName = "NetGuard-v$versionName-$versionCode-sdk-$targetSdkVersion.apiLevel" buildConfigFields { create() { @@ -22,6 +22,11 @@ model { } } + compileOptions.with { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + ndk { platformVersion = "14" moduleName = "netguard"