Skip to content

Commit

Permalink
add HMS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrico972 committed Oct 23, 2024
1 parent 37e1559 commit 99440c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ rootProject.allprojects {
}
}

def isHmsEnabled() {
return (rootProject.hasProperty("airshipHmsEnabled") && rootProject.getProperty("airshipHmsEnabled") == "true") || (rootProject.ext.has("airshipHmsEnabled") && rootProject.ext.get("airshipHmsEnabled") == "true")
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

Expand Down Expand Up @@ -60,5 +64,8 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
api "com.urbanairship.android:airship-framework-proxy:$airship_framework_proxy_version"
if (isHmsEnabled()) {
implementation "com.urbanairship.android:airship-framework-proxy-hms:$airship_framework_proxy_version"
}
implementation "androidx.datastore:datastore-preferences:$datastore_preferences_version"
}

0 comments on commit 99440c6

Please sign in to comment.