// // All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or // its licensors. // // For complete copyright and license terms please see the LICENSE at the root of this // distribution (the "License"). All use of this software is governed by the License, // or, if provided, by the license below or the license accompanying this file. Do not // remove or modify any license notices. This file is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. apply plugin: "com.android.${TARGET_TYPE}" android { ${SIGNING_CONFIGS} compileSdkVersion sdkVer buildToolsVersion buildToolsVer ndkVersion ndkPlatformVer lintOptions { abortOnError false checkReleaseBuilds false } defaultConfig { minSdkVersion minSdkVer targetSdkVersion sdkVer ${NATIVE_CMAKE_SECTION_DEFAULT_CONFIG} } buildTypes { debug { debuggable true ${NATIVE_CMAKE_SECTION_DEBUG_CONFIG} ${SIGNING_DEBUG_CONFIG} } profile { debuggable true ${NATIVE_CMAKE_SECTION_PROFILE_CONFIG} ${SIGNING_PROFILE_CONFIG} } release { debuggable false minifyEnabled false ${NATIVE_CMAKE_SECTION_RELEASE_CONFIG} ${SIGNING_RELEASE_CONFIG} } } compileOptions { targetCompatibility JavaVersion.VERSION_1_7 sourceCompatibility JavaVersion.VERSION_1_7 } ${NATIVE_CMAKE_SECTION_ANDROID} sourceSets { main { ${OVERRIDE_JAVA_SOURCESET} jniLibs { srcDirs = ["src/main/jniLibs"${OPTIONAL_JNI_SRC_LIB_SET}] } } } packagingOptions { pickFirst '**/*.so' } } ${PROJECT_DEPENDENCIES} afterEvaluate { ${CUSTOM_APPLY_ASSET_LAYOUT_DEBUG_TASK} ${CUSTOM_APPLY_ASSET_LAYOUT_PROFILE_TASK} ${CUSTOM_APPLY_ASSET_LAYOUT_RELEASE_TASK} ${CUSTOM_GRADLE_COPY_NATIVE_DEBUG_LIB_TASK} ${CUSTOM_GRADLE_COPY_NATIVE_PROFILE_LIB_TASK} ${CUSTOM_GRADLE_COPY_NATIVE_RELEASE_LIB_TASK} }