diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/build.gradle')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/build.gradle | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/build.gradle b/platform/android/MapboxGLAndroidSDK/build.gradle deleted file mode 100644 index 5ee3af61e2..0000000000 --- a/platform/android/MapboxGLAndroidSDK/build.gradle +++ /dev/null @@ -1,105 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: "com.jaredsburrows.license" -apply plugin: 'kotlin-android' -apply from: "${rootDir}/gradle/native-build.gradle" - -dependencies { - lintChecks project(":MapboxGLAndroidSDKLint") - api dependenciesList.mapboxAndroidTelemetry - api dependenciesList.mapboxJavaGeoJSON - api dependenciesList.mapboxAndroidGestures - api dependenciesList.mapboxAndroidAccounts - implementation dependenciesList.mapboxJavaTurf - implementation dependenciesList.supportAnnotations - implementation dependenciesList.supportFragmentV4 - implementation dependenciesList.okhttp3 - implementation dependenciesList.soLoader - testImplementation dependenciesList.junit - testImplementation dependenciesList.mockito - testImplementation dependenciesList.mockk - testImplementation dependenciesList.robolectric - testImplementation dependenciesList.kotlinLib - testImplementation dependenciesList.commonsIO -} - -android { - compileSdkVersion androidVersions.compileSdkVersion - - defaultConfig { - minSdkVersion androidVersions.minSdkVersion - targetSdkVersion androidVersions.targetSdkVersion - buildConfigField "String", "GIT_REVISION_SHORT", String.format("\"%s\"", getGitRevision()) - buildConfigField "String", "MAPBOX_SDK_IDENTIFIER", String.format("\"%s\"", "mapbox-maps-android") - buildConfigField "String", "MAPBOX_SDK_VERSION", String.format("\"%s\"", project.VERSION_NAME) - buildConfigField "String", "MAPBOX_VERSION_STRING", String.format("\"Mapbox/%s\"", project.VERSION_NAME) - buildConfigField "String", "MAPBOX_EVENTS_USER_AGENT", String.format("\"mapbox-maps-android/%s\"", project.VERSION_NAME) - consumerProguardFiles 'proguard-rules.pro' - } - - // build native libraries - List nativeTargets = ["mapbox-gl"] - if (project.hasProperty("mapbox.with_test")) { - nativeTargets.add("mbgl-test") - } - if (project.hasProperty("mapbox.with_benchmark")) { - nativeTargets.add("mbgl-benchmark") - } - nativeBuild(nativeTargets) - - // avoid naming conflicts, force usage of prefix - resourcePrefix 'mapbox_' - - sourceSets { - // limit amount of exposed library resources - main.res.srcDirs += 'src/main/res-public' - } - - lintOptions { - disable 'MissingTranslation', 'TypographyQuotes', 'ObsoleteLintCustomCheck', 'MissingPermission', 'WrongThreadInterprocedural' - checkAllWarnings true - warningsAsErrors false - } - - testOptions { - unitTests { - returnDefaultValues true - - // Roboelectric 4.0 required config - // http://robolectric.org/migrating/#migrating-to-40 - includeAndroidResources = true - } - } - - buildTypes { - debug { - testCoverageEnabled true - jniDebuggable true - } - } -} - -licenseReport { - generateHtmlReport = false - generateJsonReport = true - copyHtmlReportToAssets = false - copyJsonReportToAssets = false -} - -def static getGitRevision() { - def cmd = "git rev-parse --short HEAD" - def proc = cmd.execute() - def ref = proc.text.trim() - return ref -} - -configurations { - all*.exclude group: 'commons-logging', module: 'commons-logging' - all*.exclude group: 'commons-collections', module: 'commons-collections' -} -apply from: "${rootDir}/gradle/gradle-javadoc.gradle" -apply from: "${rootDir}/gradle/gradle-checkstyle.gradle" -apply from: "${rootDir}/gradle/gradle-dependencies-graph.gradle" -apply from: "${rootDir}/gradle/gradle-update-vendor-modules.gradle" -apply from: "${rootDir}/gradle/android-nitpick.gradle" -apply from: "${rootDir}/gradle/gradle-bintray.gradle" -apply from: "${rootDir}/gradle/jacoco-report.gradle"
\ No newline at end of file |