Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ object RNAnalytics {
private val integrations = mutableSetOf<Integration.Factory>()
private val onReadyCallbacks = mutableMapOf<String, Analytics.Callback<Any?>>()

fun setIDFA(idfa: String) {
// do nothing; iOS only.
}

fun addIntegration(integration: Integration.Factory) {
integrations.add(integration)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ class RNAnalyticsModule(context: ReactApplicationContext): ReactContextBaseJavaM
@ReactMethod
fun getAnonymousId(promise: Promise) =
promise.resolve(analytics.getAnalyticsContext().traits().anonymousId())

@ReactMethod
fun setIDFA(idfa: String) {
// do nothing; iOS only.
}
}

private fun optionsFrom(context: ReadableMap?, integrations: ReadableMap?): Options {
Expand Down