diff options
author | Sam Lin <samlin@google.com> | 2020-07-16 17:22:59 -0700 |
---|---|---|
committer | Sam Lin <samlin@google.com> | 2020-08-26 15:21:28 -0700 |
commit | c1aae2bda8ef4c2693ce37cd65d44783391e3e10 (patch) | |
tree | 356a1f590fb206ef1cbdb69e7f447e8129a164bd /RotaryPlayground | |
parent | 906bc03cfb1399cde58dcefd71febccd84249c9c (diff) | |
download | tests-c1aae2bda8ef4c2693ce37cd65d44783391e3e10.tar.gz |
Make test apps buildable in Android Studio
- Use AOSP links
- Add git workflow & instructions in readme.md
- Add build.gradle for RotaryPlayground
- Fix build errors in TestMediaApp
- Add git_clone_projects.sh & go_rotary.sh
Bug: 161492279
Test: Build and Run both sucessfully on Android Studio and Emulator
Change-Id: Ia73641f770044518a87f7487f52c734ec46f1a2b
Diffstat (limited to 'RotaryPlayground')
-rw-r--r-- | RotaryPlayground/build.gradle | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/RotaryPlayground/build.gradle b/RotaryPlayground/build.gradle new file mode 100644 index 0000000..fa8d79c --- /dev/null +++ b/RotaryPlayground/build.gradle @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2020 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 plugin: 'com.android.application' + +android { + compileSdkVersion 30 + defaultConfig { + applicationId "com.android.car.rotaryplayground" + minSdkVersion 30 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + lintOptions { + abortOnError false + } + buildTypes { + release { + minifyEnabled false + } + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + } +} + +dependencies { + implementation "androidx.preference:preference:1.1.1" + implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta8" + implementation project(":car-ui-lib") +} |