Skip to content

Commit

Permalink
Support Android 21
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneeVandervelde committed Jul 20, 2024
1 parent 4771668 commit 1e16204
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {

defaultConfig {
applicationId = "com.inkapplications.glassconsole"
minSdk = 24
minSdk = 21
targetSdk = 34
versionCode = project.properties.getOrDefault("versionCode", "1").toString().toInt()
versionName = project.properties.getOrDefault("versionName", "SNAPSHOT").toString()
Expand Down Expand Up @@ -51,6 +51,7 @@ android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = "1.8"
Expand All @@ -68,6 +69,7 @@ android {
}

dependencies {
coreLibraryDesugaring(libs.android.desugaring)
implementation(libs.bundles.androidx)
implementation(platform(libs.compose.bom))
implementation(libs.bundles.compose)
Expand Down
1 change: 1 addition & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-sdk tools:overrideLibrary="com.ionspin.kotlin.mutliplatform_crypto_libsodium_bindings" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import regolith.processes.daemon.DaemonInitializer
* Object graph used application-wide.
*/
class ApplicationModule(
val application: DisplayApplication,
application: DisplayApplication,
) {
private val clock = Clock.System
val displayServer = DisplayServer()
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ module = "com.inkapplications.ui:render-compose-android"
version = "0.9.2"
module = "com.ionspin.kotlin:multiplatform-crypto-libsodium-bindings"

[libraries.android-desugaring]
version = "2.0.4"
module = "com.android.tools:desugar_jdk_libs"

[bundles]
androidx = ["androidx-appcompat", "core-ktx", "lifecycle-runtime-ktx", "activity-compose"]
compose = ["compose-ui", "compose-ui-graphics", "compose-foundation"]
Expand Down

0 comments on commit 1e16204

Please sign in to comment.