|
| 1 | +/* |
| 2 | + * Copyright (C) 2020 The Android Open Source Project |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +apply plugin: 'com.android.application' |
| 18 | +apply plugin: 'kotlin-android' |
| 19 | +apply plugin: 'kotlin-android-extensions' |
| 20 | + |
| 21 | +android { |
| 22 | + compileSdkVersion 29 |
| 23 | + buildToolsVersion "29.0.3" |
| 24 | + |
| 25 | + compileOptions { |
| 26 | + sourceCompatibility 1.8 |
| 27 | + targetCompatibility 1.8 |
| 28 | + } |
| 29 | + |
| 30 | + defaultConfig { |
| 31 | + applicationId "com.android.samples.webviewdemo" |
| 32 | + minSdkVersion 21 |
| 33 | + targetSdkVersion 29 |
| 34 | + versionCode 1 |
| 35 | + versionName "1.0" |
| 36 | + |
| 37 | + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 38 | + } |
| 39 | + |
| 40 | + buildTypes { |
| 41 | + release { |
| 42 | + minifyEnabled false |
| 43 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | + kotlinOptions.jvmTarget = "1.8" |
| 48 | + |
| 49 | + viewBinding { |
| 50 | + enabled = true |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +dependencies { |
| 55 | + implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 56 | + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 57 | + implementation "androidx.appcompat:appcompat:$appcompat_version" |
| 58 | + implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version" |
| 59 | + implementation "androidx.core:core-ktx:$core_ktx_version" |
| 60 | + implementation "androidx.fragment:fragment-ktx:$fragment_ktx_version" |
| 61 | + implementation "androidx.webkit:webkit:$webkit_version" |
| 62 | + |
| 63 | + implementation "com.google.android.material:material:$material_components_version" |
| 64 | + |
| 65 | + testImplementation 'junit:junit:4.13' |
| 66 | + androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
| 67 | + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' |
| 68 | +} |
0 commit comments