1
+ plugins {
2
+ id ' com.android.application'
3
+ id ' org.jetbrains.kotlin.android'
4
+ }
5
+
6
+ repositories {
7
+ google()
8
+ mavenCentral()
9
+ maven { url ' https://androidx.dev/snapshots/latest/artifacts/repository' }
10
+ }
11
+
12
+ android {
13
+ namespace ' com.google.webkit.webviewsample'
14
+ compileSdk 35
15
+
16
+ signingConfigs {
17
+ debug {
18
+ def keystoreFile = project. rootProject. file(' debug.keystore' )
19
+ if (keystoreFile. exists()) {
20
+ storeFile file(keystoreFile. toPath())
21
+ } else {
22
+ Properties properties = new Properties ()
23
+ def propertiesFile = project. rootProject. file(' local.properties' )
24
+ if (propertiesFile. exists()) {
25
+ properties. load(propertiesFile. newDataInputStream())
26
+ storeFile file(properties. getProperty(" key_path" ))
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ defaultConfig {
33
+ applicationId " com.google.webkit.webviewsample"
34
+ minSdk 29
35
+ targetSdk 34
36
+ }
37
+
38
+ buildTypes {
39
+ release {
40
+ minifyEnabled false
41
+ proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
42
+ }
43
+ }
44
+ compileOptions {
45
+ sourceCompatibility JavaVersion . VERSION_1_8
46
+ targetCompatibility JavaVersion . VERSION_1_8
47
+ }
48
+ kotlinOptions {
49
+ jvmTarget = ' 1.8'
50
+ }
51
+ buildFeatures {
52
+ compose true
53
+ }
54
+ composeOptions {
55
+ kotlinCompilerExtensionVersion ' 1.5.2'
56
+ }
57
+ packagingOptions {
58
+ resources {
59
+ excludes + = ' /META-INF/{AL2.0,LGPL2.1}'
60
+ }
61
+ }
62
+ }
63
+
64
+ dependencies {
65
+ implementation(platform(" org.jetbrains.kotlin:kotlin-bom:1.8.0" ))
66
+
67
+ implementation ' androidx.credentials:credentials-play-services-auth:1.5.0-rc01'
68
+ implementation ' androidx.credentials:credentials:1.5.0-rc01'
69
+
70
+ implementation(" androidx.webkit:webkit:1.12.1" )
71
+ implementation ' androidx.core:core-ktx:1.7.0'
72
+ implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
73
+ implementation ' androidx.activity:activity-compose:1.3.1'
74
+ implementation " androidx.compose.ui:ui:$compose_ui_version "
75
+ implementation " androidx.compose.ui:ui-tooling-preview:$compose_ui_version "
76
+ implementation ' androidx.compose.material:material:1.1.1'
77
+
78
+ testImplementation ' junit:junit:4.13.2'
79
+ androidTestImplementation ' androidx.test.ext:junit:1.1.4'
80
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.0'
81
+ androidTestImplementation " androidx.compose.ui:ui-test-junit4:$compose_ui_version "
82
+ debugImplementation " androidx.compose.ui:ui-tooling:$compose_ui_version "
83
+ debugImplementation " androidx.compose.ui:ui-test-manifest:$compose_ui_version "
84
+ }
0 commit comments