1
- apply plugin : ' com.android.application'
2
- apply plugin : ' kotlin-android'
3
- apply plugin : ' kotlin-kapt'
4
- apply plugin : ' kotlin-parcelize'
5
- apply plugin : ' com.spotify.ruler'
1
+ // apply plugin: 'com.android.application'
2
+ // apply plugin: 'kotlin-android'
3
+ // apply plugin: 'kotlin-kapt'
4
+ // apply plugin: 'kotlin-parcelize'
5
+ // //apply plugin: 'com.spotify.ruler'
6
+
7
+ plugins {
8
+ id(" com.android.application" )
9
+ id(" org.jetbrains.kotlin.android" )
10
+ id(" kotlin-android" )
11
+ id(" kotlin-kapt" )
12
+ id(" kotlin-parcelize" )
13
+ }
6
14
7
15
android {
8
- compileSdkVersion 34
16
+ namespace = " com.rajat.sample.pdfviewer"
17
+
18
+ compileSdk = 34
9
19
10
20
defaultConfig {
11
- applicationId " com.rajat.sample.pdfviewer"
12
- minSdkVersion 21
13
- targetSdkVersion 34
14
- versionCode 2
15
- versionName " 1.1"
16
- multiDexEnabled true
17
- testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
21
+ applicationId = " com.rajat.sample.pdfviewer"
22
+ minSdk = 21
23
+ targetSdk = 34
24
+ versionCode = 2
25
+ versionName = " 1.1"
26
+ multiDexEnabled = true
27
+ testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
18
28
vectorDrawables {
19
- useSupportLibrary true
29
+ useSupportLibrary = true
20
30
}
21
31
}
22
32
23
33
buildFeatures {
24
- viewBinding true
25
- compose true
26
- }
27
- viewBinding {
28
- enabled = true
34
+ viewBinding = true
35
+ compose = true
29
36
}
37
+
30
38
compileOptions {
31
- sourceCompatibility JavaVersion . VERSION_17
32
- targetCompatibility JavaVersion . VERSION_17
39
+ sourceCompatibility = JavaVersion .VERSION_17
40
+ targetCompatibility = JavaVersion .VERSION_17
33
41
}
34
42
35
43
kotlinOptions {
@@ -45,38 +53,40 @@ android {
45
53
}
46
54
47
55
buildTypes {
48
- release {
49
- minifyEnabled false
50
- proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
51
- }
52
- }
53
- namespace ' com.rajat.sample.pdfviewer'
54
- packaging {
55
- resources {
56
- excludes + = ' /META-INF/{AL2.0,LGPL2.1}'
56
+ buildTypes {
57
+ release {
58
+ isMinifyEnabled = false
59
+ proguardFiles(
60
+ getDefaultProguardFile(" proguard-android-optimize.txt" ),
61
+ " proguard-rules.pro"
62
+ )
63
+ }
57
64
}
58
65
}
59
66
}
60
67
61
68
dependencies {
62
- implementation fileTree(dir : " libs" , include : [" *.jar" ])
63
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
64
- implementation ' androidx.core:core-ktx:1.12.0'
65
- implementation ' androidx.appcompat:appcompat:1.6.1'
66
- implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
67
- implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
68
- implementation platform(' androidx.compose:compose-bom:2023.03.00' )
69
- implementation ' androidx.compose.ui:ui-graphics'
70
- testImplementation ' junit:junit:4.13.2'
71
- androidTestImplementation ' androidx.test.ext:junit:1.1.5'
72
- androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1'
73
- implementation ' com.android.support:multidex:2.0.0'
74
- implementation project(" :pdfViewer" )
75
-
76
- testImplementation ' androidx.test:core:1.5.0'
77
- androidTestImplementation ' androidx.test:runner:1.5.2'
78
- androidTestImplementation ' androidx.test:rules:1.5.0'
79
- androidTestImplementation ' androidx.test.ext:junit-ktx:1.1.5'
69
+
70
+ val kotlin_version = " 1.9.20"
71
+
72
+ implementation(fileTree(mapOf (" dir" to " libs" , " include" to listOf (" *.jar" ))))
73
+ implementation(" org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version " )
74
+ implementation(" androidx.core:core-ktx:1.12.0" )
75
+ implementation(" androidx.appcompat:appcompat:1.6.1" )
76
+ implementation(" androidx.constraintlayout:constraintlayout:2.1.4" )
77
+ implementation(" androidx.lifecycle:lifecycle-runtime-ktx:2.6.2" )
78
+ implementation(platform(" androidx.compose:compose-bom:2023.03.00" ))
79
+ implementation(" androidx.compose.ui:ui-graphics" )
80
+ testImplementation(" junit:junit:4.13.2" )
81
+ androidTestImplementation(" androidx.test.ext:junit:1.1.5" )
82
+ androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
83
+ implementation(" com.android.support:multidex:2.0.0" )
84
+ implementation(project(" :pdfViewer" ))
85
+
86
+ testImplementation(" androidx.test:core:1.5.0" )
87
+ androidTestImplementation(" androidx.test:runner:1.5.2" )
88
+ androidTestImplementation(" androidx.test:rules:1.5.0" )
89
+ androidTestImplementation(" androidx.test.ext:junit-ktx:1.1.5" )
80
90
81
91
82
92
// compose
@@ -96,7 +106,7 @@ dependencies {
96
106
97
107
// Android Studio Preview support
98
108
implementation(" androidx.compose.ui:ui-tooling-preview" )
99
- androidTestImplementation platform(' androidx.compose:compose-bom:2023.03.00' )
109
+ androidTestImplementation( platform(" androidx.compose:compose-bom:2023.03.00" ) )
100
110
debugImplementation(" androidx.compose.ui:ui-tooling" )
101
111
102
112
// UI Tests
@@ -120,12 +130,4 @@ dependencies {
120
130
implementation(" androidx.compose.runtime:runtime-livedata" )
121
131
// Optional - Integration with RxJava
122
132
implementation(" androidx.compose.runtime:runtime-rxjava2" )
123
-
124
133
}
125
-
126
- ruler {
127
- abi. set(" arm64-v8a" )
128
- locale. set(" en" )
129
- screenDensity. set(480 )
130
- sdkVersion. set(27 )
131
- }
0 commit comments