@@ -4,15 +4,15 @@ plugins {
44// id 'org.jetbrains.kotlin.jvm' version '1.9.23'
55 id ' org.jetbrains.kotlin.plugin.serialization' version ' 1.9.23'
66 id " com.google.protobuf"
7+ alias(libs. plugins. compose. compiler)
78}
89
9-
1010def versionsPropertiesFile = rootProject. file(" version.properties" )
1111def versionProperties = new Properties ()
1212versionProperties. load(new FileInputStream (versionsPropertiesFile))
1313
1414android {
15- compileSdk 34
15+ compileSdk 35
1616
1717 buildFeatures {
1818 viewBinding true
@@ -37,7 +37,7 @@ android {
3737 " $projectDir /schemas" . toString()]
3838 }
3939 }
40- resourceConfigurations + = [' en' , ' fr' , ' fa' , ' es' , ' tr' ]
40+ resourceConfigurations + = [' en' , ' fr' , ' fa' , ' es' , ' tr' , ' ar ' , ' de ' , ' sw ' ]
4141
4242 manifestPlaceholders =
4343 [' appAuthRedirectScheme' : ' oauth.afkanerd.com' ]
@@ -60,20 +60,36 @@ android {
6060 }
6161 }
6262
63+ buildFeatures {
64+ viewBinding true
65+ }
66+
67+ buildscript {
68+ ext {
69+ compose_compiler = ' 1.3.1' // compiler
70+ compose_version = ' 1.3.0-beta02' // compose dependencies
71+ compose_material3 = ' 1.0.0-beta02' // material3 release
72+ }
73+ // ...
74+ }
75+
6376 compileOptions {
6477 sourceCompatibility JavaVersion . VERSION_1_8
6578 targetCompatibility JavaVersion . VERSION_1_8
79+ // kotlinCompilerExtensionVersion compose_compiler
6680 }
67- buildFeatures {
68- viewBinding true
69- }
81+
7082 lint {
7183 checkReleaseBuilds false
7284 }
7385 kotlinOptions {
7486 jvmTarget = " 1.8"
7587 }
7688
89+ buildFeatures {
90+ compose = true
91+ }
92+
7793 namespace ' com.example.sw0b_001'
7894}
7995
@@ -125,78 +141,134 @@ configurations {
125141
126142
127143dependencies {
128- implementation ' androidx.appcompat:appcompat:1.7.0 '
129- implementation ' com.google.android. material:material:1.12.0 '
130- implementation ' androidx.constraintlayout:constraintlayout:2.1.4 '
131- implementation ' androidx.annotation:annotation:1.8.2 '
132- implementation group : ' androidx.lifecycle' , name : ' lifecycle-extensions ' , version : ' 2.2.0 '
133- // implementation ' androidx.lifecycle:lifecycle-livedata-ktx:2.4.1.0'
134- implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.5 '
135- implementation ' androidx.legacy:legacy-support-v4:1.0.0 '
136- implementation ' androidx.preference:preference:1.2.1 '
137- implementation " androidx.preference:preference-ktx:1.2.1 "
138- implementation ' androidx.databinding:baseLibrary:3.2.0-alpha11 '
139- implementation ' androidx.lifecycle:lifecycle-livedata-ktx:2.8.5 '
140- implementation ' androidx.activity:activity:1.9.2 '
141- implementation ' com.google.android.gms: play- services- auth:21.2.0 '
142- implementation ' com.google.android.gms:play-services-auth-api-phone:18.1.0 '
143- // implementation 'com.android.support:appcompat-v7:28.0.0'
144- testImplementation ' junit:junit:4.13.2 '
145- androidTestImplementation ' androidx.test.ext:junit:1.2.1 '
146- androidTestImplementation ' androidx.test.espresso:espresso-core:3.6.1 '
144+ implementation libs . androidx. appcompat
145+ implementation libs . material
146+ implementation libs . androidx. constraintlayout
147+ implementation libs . androidx. annotation
148+ implementation libs . androidx. lifecycle. extensions
149+ implementation libs . androidx. lifecycle. viewmodel . ktx
150+ implementation libs . androidx. legacy . support . v4
151+ implementation libs . androidx. preference
152+ implementation libs . androidx. preference. ktx
153+ implementation libs . androidx. baselibrary
154+ implementation libs . androidx. lifecycle . livedata . ktx
155+ implementation libs . androidx. activity
156+ implementation libs . play . services . auth
157+ implementation libs . play. services. auth. api . phone
158+ implementation libs . androidx . ui . text . google . fonts
159+ testImplementation libs . junit
160+ androidTestImplementation libs . androidx . junit
161+ androidTestImplementation libs . androidx. espresso . core
162+ implementation(libs . androidx. material . v178)
147163
148164 // Java language implementation
149- implementation " androidx.fragment:fragment:1.8.3 "
165+ implementation libs . androidx. fragment
150166
151- // implementation 'com.android.support:design:28.0.0'
152- implementation ' com.android.volley:volley:1.2.1'
153- implementation ' de.hdodenhof:circleimageview:3.1.0'
167+ implementation libs. volley
168+ implementation libs. circleimageview
154169
155- implementation " androidx.room:room-runtime:2.6.1 "
156- annotationProcessor " androidx.room:room-compiler:2.6.1 "
170+ implementation libs . androidx. room. runtime
171+ annotationProcessor libs . androidx. room. compiler
157172
158173
159174 // (Java only)
160- implementation " androidx.work:work-runtime:2.9.1 "
175+ implementation libs . androidx. work. runtime
161176// implementation 'com.budiyev.android:code-scanner:2.1.0'
162177
163- // implementation 'androidx.security:security-crypto:1.1.0-alpha06'
164178
165- implementation " androidx.biometric:biometric:1.1.0 "
179+ implementation libs . androidx. biometric
166180
167- implementation ' com.github.tizisdeepan: dots:1.0.1 '
181+ implementation libs . dots
168182
169- implementation ' org.jetbrains. kotlinx:kotlinx- serialization-json:1.6.0 '
170- testImplementation ' org.jetbrains. kotlinx:kotlinx- coroutines-test:1.8.1-Beta ' //
183+ implementation libs . kotlinx. serialization. json
184+ testImplementation libs . kotlinx. coroutines. test //
171185
172- def fuelVersion = " 2.2.1"
173- implementation " com.github.kittinunf.fuel:fuel:$fuelVersion " // for JVM
174- testImplementation " com.github.kittinunf.fuel:fuel:$fuelVersion " // for JVM
186+ implementation libs. fuel // for JVM
187+ testImplementation libs. fuel // for JVM
175188
176- implementation " com.github.kittinunf. fuel:fuel- android: $f uelVersion " // for Android
177- implementation " com.github.kittinunf. fuel:fuel- coroutines: $f uelVersion "
178- implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01 "
189+ implementation libs . fuel. android // for Android
190+ implementation libs . fuel. coroutines
191+ implementation libs . androidx. swiperefreshlayout
179192
180- implementation " androidx.startup:startup-runtime:1.1.1 "
181- implementation ' at.favre.lib: armadillo:1.0.0 '
182- implementation ' com.afkanerd.oss1:smswithoutborders_libsignal:0.0.10 '
183- implementation " net.openid: appauth:0.11.1 "
184- implementation ' com.hbb20: ccp:2.7.0 '
193+ implementation libs . androidx. startup. runtime
194+ implementation libs . armadillo
195+ implementation libs . smswithoutborders . libsignal
196+ implementation libs . appauth
197+ implementation libs . ccp
185198
186- implementation ' com.squareup. okhttp:okhttp:2.7.5 '
187- implementation ' javax.annotation: javax.annotation-api:1.3.2 '
188- implementation ' io .grpc:grpc-core:1.64.0 '
189- implementation ' io .grpc:grpc-stub:1.64.0 '
190- implementation ' io .grpc:grpc-okhttp:1.64.0 '
191- implementation(' io .grpc:grpc- protobuf-lite:1.64.0 ' ) {
199+ implementation libs . okhttp
200+ implementation libs . javax. annotation. api
201+ implementation libs . grpc. core
202+ implementation libs . grpc. stub
203+ implementation libs . grpc. okhttp
204+ implementation(libs . grpc. protobuf. lite ) {
192205 exclude module : " protobuf-lite"
193206 }
194207
195208// Add protobuf-java dependency
196- implementation " com.google.protobuf:protobuf-java:3.25.1"
197-
198- implementation " com.macasaet.fernet:fernet-java8:1.4.2"
199-
200- // implementation 'com.github.netricecake:x25519:2.0'
209+ implementation libs. protobuf. java
210+
211+ implementation libs. fernet. java8
212+
213+ implementation(libs. androidx. material)
214+
215+ def composeBom = libs. androidx. compose. bom
216+ implementation composeBom
217+ androidTestImplementation composeBom
218+
219+ // Choose one of the following:
220+ // Material Design 3
221+ implementation libs. androidx. material3
222+ // or Material Design 2
223+ implementation libs. androidx. compose. material. material
224+ // or skip Material Design and build directly on top of foundational components
225+ implementation libs. androidx. foundation
226+ // or only import the main APIs for the underlying toolkit systems,
227+ // such as input and measurement/layout
228+ implementation libs. androidx. ui
229+
230+ // Android Studio Preview support
231+ implementation libs. androidx. ui. tooling. preview
232+ debugImplementation libs. androidx. ui. tooling
233+
234+ // UI Tests
235+ androidTestImplementation libs. androidx. ui. test. junit4
236+ debugImplementation libs. androidx. ui. test. manifest
237+
238+ // Optional - Included automatically by material, only add when you need
239+ // the icons but not the material library (e.g. when using Material3 or a
240+ // custom design system based on Foundation)
241+ implementation libs. androidx. material. icons. core
242+ // Optional - Add full set of material icons
243+ implementation libs. androidx. material. icons. extended
244+ // Optional - Add window size utils
245+ implementation libs. androidx. adaptive
246+
247+ // Optional - Integration with activities
248+ implementation libs. androidx. activity. compose
249+ // Optional - Integration with ViewModels
250+ implementation libs. androidx. lifecycle. viewmodel. compose
251+ // Optional - Integration with LiveData
252+ implementation libs. androidx. runtime. livedata
253+ // Optional - Integration with RxJava
254+ implementation libs. androidx. runtime. rxjava2
255+
256+ def nav_version = " 2.8.5"
257+ implementation libs. androidx. navigation. compose
258+
259+ implementation libs. material. v180alpha01
260+ implementation libs. material3
261+
262+ implementation libs. androidx. compose. material3. adaptive. adaptive
263+ implementation libs. androidx. adaptive. layout
264+ implementation libs. androidx. adaptive. navigation
265+
266+ androidTestImplementation libs. ui. test. junit4
267+
268+ implementation(libs. country. picker)
269+
270+ implementation libs. accompanist. permissions
271+
272+ implementation(" androidx.leanback:leanback:1.1.0-rc02" )
201273}
202274
0 commit comments