| /* |
| * Copyright (C) 2019 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| apply from: "../commonHeader.gradle" |
| buildscript { |
| apply from: "../commonHeader.gradle" // for $kotlinVersion |
| apply from: "../commonBuildScript.gradle" |
| } |
| apply plugin: 'com.android.application' |
| |
| dependencies { |
| api "com.android.support:support-v4:${rootProject.supportLibVersion}" |
| api "com.android.support:cardview-v7:${rootProject.supportLibVersion}" |
| api "com.android.support:appcompat-v7:${rootProject.supportLibVersion}" |
| testImplementation 'junit:junit:4.12' |
| androidTestImplementation "com.android.support.test:runner:${project.testSupportLibVersion}" |
| androidTestImplementation "com.android.support.test:rules:${project.testSupportLibVersion}" |
| implementation files('libs/renderscript-v8.jar') |
| } |
| |
| android { |
| compileSdkVersion rootProject.latestCompileSdk |
| |
| buildToolsVersion rootProject.buildToolsVersion |
| |
| defaultConfig { |
| applicationId "com.example.basicrenderscript" |
| minSdkVersion 21 |
| targetSdkVersion 27 |
| versionCode 1 |
| versionName "1.0" |
| |
| renderscriptTargetApi 28 |
| renderscriptSupportModeEnabled true |
| renderscriptNdkModeEnabled true |
| |
| testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| |
| ndk { |
| moduleName "renderscript" |
| stl "c++_shared" |
| } |
| } |
| |
| externalNativeBuild { |
| ndkBuild { |
| path "Android.mk" |
| } |
| } |
| } |