Skip to content

Commit

Permalink
Merge pull request #221 from urbanairship/hmsSupport
Browse files Browse the repository at this point in the history
Add HMS support
  • Loading branch information
Ulrico972 authored Oct 24, 2024
2 parents 37e1559 + 99440c6 commit 701885e
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 701885e

Please sign in to comment.