update
This commit is contained in:
@@ -4,6 +4,15 @@ apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
||||
apply from: 'deployment-config.gradle'
|
||||
|
||||
// Keep the map access key in local configuration, outside tracked application code.
|
||||
def localMapProperties = new Properties()
|
||||
def localMapPropertiesFile = rootProject.file('local.properties')
|
||||
if (localMapPropertiesFile.isFile()) {
|
||||
localMapPropertiesFile.withInputStream { localMapProperties.load(it) }
|
||||
}
|
||||
def tiandituKey = (project.findProperty('TIANDITU_KEY') ?: System.getenv('TIANDITU_KEY') ?:
|
||||
localMapProperties.getProperty('TIANDITU_KEY', '')).toString().trim()
|
||||
|
||||
android {
|
||||
namespace "dji.sampleV5.aircraft"
|
||||
compileSdkVersion Integer.parseInt(project.ANDROID_COMPILE_SDK_VERSION)
|
||||
@@ -20,6 +29,7 @@ android {
|
||||
buildConfigField "String", "AIRCRAFT_API_KEY", "\"${project.AIRCRAFT_API_KEY}\""
|
||||
buildConfigField "String", "GMAP_API_KEY", "\"${project.GMAP_API_KEY}\""
|
||||
buildConfigField "String", "MAPLIBRE_TOKEN", "\"${project.MAPLIBRE_TOKEN}\""
|
||||
buildConfigField 'String', 'TIANDITU_KEY', groovy.json.JsonOutput.toJson(tiandituKey)
|
||||
buildConfigField "boolean", "SAFETY_FLIGHT_COMMANDS_ENABLED", "true"
|
||||
ndk {
|
||||
//noinspection ChromeOsAbiSupport
|
||||
@@ -40,6 +50,7 @@ android {
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles 'map-proguard-rules.pro'
|
||||
shrinkResources false
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
@@ -120,6 +131,9 @@ dependencies {
|
||||
|
||||
/** <-----------------sample所需--------------------> **/
|
||||
implementation project(':uxsdk')
|
||||
implementation deps.maplibreSdk
|
||||
implementation deps.amapSdk
|
||||
implementation deps.baiduMapSdk
|
||||
implementation deps.appcompat
|
||||
implementation deps.constraintLayout
|
||||
implementation deps.aacCommon
|
||||
|
||||
Reference in New Issue
Block a user