diff --git a/samples/java_layout/src/main/AndroidManifest.xml b/samples/java_layout/src/main/AndroidManifest.xml
index 9045b1e2d..fd016e5b5 100644
--- a/samples/java_layout/src/main/AndroidManifest.xml
+++ b/samples/java_layout/src/main/AndroidManifest.xml
@@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/java_layout/src/main/res/layout/or_separator.xml b/samples/java_layout/src/main/res/layout/or_separator.xml
new file mode 100644
index 000000000..13978014e
--- /dev/null
+++ b/samples/java_layout/src/main/res/layout/or_separator.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
diff --git a/samples/java_layout/src/main/res/values/strings.xml b/samples/java_layout/src/main/res/values/strings.xml
index 2bec0dc63..010a33f25 100644
--- a/samples/java_layout/src/main/res/values/strings.xml
+++ b/samples/java_layout/src/main/res/values/strings.xml
@@ -93,4 +93,52 @@
RecyclerView
Inline Examples
+
+ Location Test
+ Location Test
+ OR
+
+
+ OPTION 1: QUICK PRESETS
+ OPTION 2: SDK LOCATION
+ OPTION 3: MANUALLY SET FROM DEVICE
+ OPTION 4: MANUAL ENTRY
+
+
+ Tap a city to set its coordinates
+ Ask for permission if needed, then SDK fetches location once. Use \"Stop updates\" to cancel.
+ Fetches coordinates from device (GPS, Wi-Fi, or cell) and sends them to the SDK via setLastKnownLocation.
+ Enter custom coordinates
+
+
+ New York
+ London
+ Tokyo
+ Sydney
+ São Paulo
+ 0, 0
+
+
+ Request location once (SDK)
+ Stop location updates
+ Use Current Location
+ Latitude
+ Longitude
+ Set Location
+
+
+ Location Permission Required
+ Please enable location access in Settings to use this feature.
+ No location set yet
+ Last set: %1$.4f, %2$.4f%3$s
+ Location set successfully%1$s
+ Please enter valid coordinates
+ Requesting location once (SDK)…
+ SDK requested location update
+ Location updates stopped
+ Stopped location updates
+ Fetching…
+ Could not get device location
+ LocationTestActivity
+
diff --git a/samples/kotlin_compose/src/main/java/io/customer/android/sample/kotlin_compose/MainApplication.kt b/samples/kotlin_compose/src/main/java/io/customer/android/sample/kotlin_compose/MainApplication.kt
index 4b92163d3..d8e12454d 100644
--- a/samples/kotlin_compose/src/main/java/io/customer/android/sample/kotlin_compose/MainApplication.kt
+++ b/samples/kotlin_compose/src/main/java/io/customer/android/sample/kotlin_compose/MainApplication.kt
@@ -4,6 +4,7 @@ import android.app.Application
import io.customer.android.sample.kotlin_compose.data.models.setValuesFromBuilder
import io.customer.android.sample.kotlin_compose.data.sdk.InAppMessageEventListener
import io.customer.android.sample.kotlin_compose.di.ServiceLocator
+import io.customer.location.ModuleLocation
import io.customer.messaginginapp.MessagingInAppModuleConfig
import io.customer.messaginginapp.ModuleMessagingInApp
import io.customer.messagingpush.ModuleMessagingPushFCM
@@ -37,6 +38,7 @@ class MainApplication : Application() {
)
)
.addCustomerIOModule(ModuleMessagingPushFCM())
+ .addCustomerIOModule(ModuleLocation())
configuration.setValuesFromBuilder(builder)
CustomerIO.initialize(builder.build())
diff --git a/samples/sample-app.gradle b/samples/sample-app.gradle
index c93c217d8..6ba0c7ab8 100644
--- a/samples/sample-app.gradle
+++ b/samples/sample-app.gradle
@@ -128,6 +128,7 @@ dependencies {
implementation(project(":messaginginapp"))
// messaginginapp-compose adds messaginginapp transitively
implementation(project(":messaginginapp-compose"))
+ implementation(project(":location"))
} else {
// Stable releases dependency, use published versions directly
implementation "io.customer.android:datapipelines:$cioSDKVersion"
@@ -135,6 +136,7 @@ dependencies {
implementation "io.customer.android:messaging-in-app:$cioSDKVersion"
// messaginginapp-compose adds messaginginapp transitively
implementation "io.customer.android:messaging-in-app-compose:$cioSDKVersion"
+ implementation "io.customer.android:location:$cioSDKVersion"
}
// Add Compose dependencies for all sample projects