react-native-userleap 2.5.4 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +176 -0
- package/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
- package/android/.gradle/7.3.3/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.3.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{6.9 → 7.3.3}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.3.3/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.idea/gradle.xml +0 -1
- package/android/.idea/jarRepositories.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_2_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_cardview_cardview_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_2_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_2_0_1.xml +9 -0
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_1_5_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_ktx_1_3_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +3 -0
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +3 -0
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +4 -0
- package/android/.idea/libraries/Gradle__androidx_dynamicanimation_dynamicanimation_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +3 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +3 -0
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +6 -1
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +7 -1
- package/android/.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_transition_transition_1_2_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +3 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_61_5_aar.xml +10 -2
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_google_android_material_material_1_4_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +3 -1
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_userleap_userleap_android_sdk_2_6_8_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_android_extensions_runtime_1_5_31.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_5_31.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_5_31.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_5_31.xml +13 -0
- package/android/.idea/modules/android.androidTest.iml +98 -0
- package/android/.idea/modules/android.iml +4 -40
- package/android/.idea/modules/android.main.iml +102 -0
- package/android/.idea/modules/android.unitTest.iml +93 -0
- package/android/.idea/modules.xml +3 -0
- package/android/.idea/workspace.xml +43 -10
- package/android/.project +1 -1
- package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
- package/android/README.md +2 -11
- package/android/build/.transforms/38cf26b9fc833baaf429b22be74ac8c6/results.bin +1 -0
- package/android/build/.transforms/38cf26b9fc833baaf429b22be74ac8c6/transformed/classes/classes.dex +0 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +1 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +71 -140
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +1 -1
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +1 -1
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +11 -53
- package/android/build.gradle +12 -82
- package/android/gradle.properties +3 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/java/com/userleap/reactnative/UserLeapModule.java +61 -6
- package/index.d.ts +6 -1
- package/index.js +41 -6
- package/ios/UserLeapBindings.h +0 -4
- package/ios/UserLeapBindings.m +47 -4
- package/package.json +14 -6
- package/react-native-userleap.podspec +1 -1
- package/android/.gradle/6.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.9/gc.properties +0 -0
- package/android/.gradle/7.0/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.0/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0/gc.properties +0 -0
- package/android/.gradle/7.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.0.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0.2/gc.properties +0 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_0_0.xml +0 -9
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0.xml +0 -9
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0.xml +0 -9
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__androidx_core_core_1_0_1_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0.xml +0 -9
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +0 -20
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_0_0_aar.xml +0 -11
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
|
@@ -135,11 +135,8 @@ attr backgroundStacked
|
|
|
135
135
|
attr backgroundTint
|
|
136
136
|
attr backgroundTintMode
|
|
137
137
|
attr badgeGravity
|
|
138
|
-
attr badgeRadius
|
|
139
138
|
attr badgeStyle
|
|
140
139
|
attr badgeTextColor
|
|
141
|
-
attr badgeWidePadding
|
|
142
|
-
attr badgeWithTextRadius
|
|
143
140
|
attr barLength
|
|
144
141
|
attr barrierAllowsGoneWidgets
|
|
145
142
|
attr barrierDirection
|
|
@@ -245,7 +242,6 @@ attr collapseIcon
|
|
|
245
242
|
attr collapsedSize
|
|
246
243
|
attr collapsedTitleGravity
|
|
247
244
|
attr collapsedTitleTextAppearance
|
|
248
|
-
attr collapsedTitleTextColor
|
|
249
245
|
attr collapsingToolbarLayoutStyle
|
|
250
246
|
attr color
|
|
251
247
|
attr colorAccent
|
|
@@ -338,12 +334,8 @@ attr dialogPreferredPadding
|
|
|
338
334
|
attr dialogTheme
|
|
339
335
|
attr displayOptions
|
|
340
336
|
attr divider
|
|
341
|
-
attr dividerColor
|
|
342
337
|
attr dividerHorizontal
|
|
343
|
-
attr dividerInsetEnd
|
|
344
|
-
attr dividerInsetStart
|
|
345
338
|
attr dividerPadding
|
|
346
|
-
attr dividerThickness
|
|
347
339
|
attr dividerVertical
|
|
348
340
|
attr dragDirection
|
|
349
341
|
attr dragScale
|
|
@@ -366,7 +358,6 @@ attr editTextBackground
|
|
|
366
358
|
attr editTextColor
|
|
367
359
|
attr editTextStyle
|
|
368
360
|
attr elevation
|
|
369
|
-
attr elevationOverlayAccentColor
|
|
370
361
|
attr elevationOverlayColor
|
|
371
362
|
attr elevationOverlayEnabled
|
|
372
363
|
attr enableEdgeToEdge
|
|
@@ -396,7 +387,6 @@ attr expandedTitleMarginEnd
|
|
|
396
387
|
attr expandedTitleMarginStart
|
|
397
388
|
attr expandedTitleMarginTop
|
|
398
389
|
attr expandedTitleTextAppearance
|
|
399
|
-
attr expandedTitleTextColor
|
|
400
390
|
attr extendMotionSpec
|
|
401
391
|
attr extendedFloatingActionButtonStyle
|
|
402
392
|
attr extraMultilineHeightEnabled
|
|
@@ -473,7 +463,6 @@ attr hintTextColor
|
|
|
473
463
|
attr homeAsUpIndicator
|
|
474
464
|
attr homeLayout
|
|
475
465
|
attr horizontalOffset
|
|
476
|
-
attr horizontalOffsetWithText
|
|
477
466
|
attr hoveredFocusedTranslationZ
|
|
478
467
|
attr icon
|
|
479
468
|
attr iconEndPadding
|
|
@@ -497,7 +486,6 @@ attr insetForeground
|
|
|
497
486
|
attr isAutofillInlineSuggestionTheme
|
|
498
487
|
attr isLightTheme
|
|
499
488
|
attr isMaterialTheme
|
|
500
|
-
attr itemActiveIndicatorStyle
|
|
501
489
|
attr itemBackground
|
|
502
490
|
attr itemFillColor
|
|
503
491
|
attr itemHorizontalPadding
|
|
@@ -507,8 +495,6 @@ attr itemIconSize
|
|
|
507
495
|
attr itemIconTint
|
|
508
496
|
attr itemMaxLines
|
|
509
497
|
attr itemPadding
|
|
510
|
-
attr itemPaddingBottom
|
|
511
|
-
attr itemPaddingTop
|
|
512
498
|
attr itemRippleColor
|
|
513
499
|
attr itemShapeAppearance
|
|
514
500
|
attr itemShapeAppearanceOverlay
|
|
@@ -594,7 +580,6 @@ attr layout_goneMarginTop
|
|
|
594
580
|
attr layout_insetEdge
|
|
595
581
|
attr layout_keyline
|
|
596
582
|
attr layout_optimizationLevel
|
|
597
|
-
attr layout_scrollEffect
|
|
598
583
|
attr layout_scrollFlags
|
|
599
584
|
attr layout_scrollInterpolator
|
|
600
585
|
attr liftOnScroll
|
|
@@ -620,9 +605,7 @@ attr listPreferredItemPaddingRight
|
|
|
620
605
|
attr listPreferredItemPaddingStart
|
|
621
606
|
attr logo
|
|
622
607
|
attr logoDescription
|
|
623
|
-
attr marginHorizontal
|
|
624
608
|
attr materialAlertDialogBodyTextStyle
|
|
625
|
-
attr materialAlertDialogButtonSpacerVisibility
|
|
626
609
|
attr materialAlertDialogTheme
|
|
627
610
|
attr materialAlertDialogTitleIconStyle
|
|
628
611
|
attr materialAlertDialogTitlePanelStyle
|
|
@@ -631,7 +614,6 @@ attr materialButtonOutlinedStyle
|
|
|
631
614
|
attr materialButtonStyle
|
|
632
615
|
attr materialButtonToggleGroupStyle
|
|
633
616
|
attr materialCalendarDay
|
|
634
|
-
attr materialCalendarDayOfWeekLabel
|
|
635
617
|
attr materialCalendarFullscreenTheme
|
|
636
618
|
attr materialCalendarHeaderCancelButton
|
|
637
619
|
attr materialCalendarHeaderConfirmButton
|
|
@@ -648,8 +630,6 @@ attr materialCalendarYearNavigationButton
|
|
|
648
630
|
attr materialCardViewStyle
|
|
649
631
|
attr materialCircleRadius
|
|
650
632
|
attr materialClockStyle
|
|
651
|
-
attr materialDisplayDividerStyle
|
|
652
|
-
attr materialDividerStyle
|
|
653
633
|
attr materialThemeOverlay
|
|
654
634
|
attr materialTimePickerStyle
|
|
655
635
|
attr materialTimePickerTheme
|
|
@@ -853,8 +833,6 @@ attr statusBarScrim
|
|
|
853
833
|
attr strokeColor
|
|
854
834
|
attr strokeWidth
|
|
855
835
|
attr subMenuArrow
|
|
856
|
-
attr subheaderColor
|
|
857
|
-
attr subheaderTextAppearance
|
|
858
836
|
attr submitBackground
|
|
859
837
|
attr subtitle
|
|
860
838
|
attr subtitleCentered
|
|
@@ -995,7 +973,6 @@ attr useCompatPadding
|
|
|
995
973
|
attr useMaterialThemeColors
|
|
996
974
|
attr values
|
|
997
975
|
attr verticalOffset
|
|
998
|
-
attr verticalOffsetWithText
|
|
999
976
|
attr viewAspectRatio
|
|
1000
977
|
attr viewInflaterClass
|
|
1001
978
|
attr visibilityMode
|
|
@@ -1126,7 +1103,6 @@ color material_blue_grey_950
|
|
|
1126
1103
|
color material_cursor_color
|
|
1127
1104
|
color material_deep_teal_200
|
|
1128
1105
|
color material_deep_teal_500
|
|
1129
|
-
color material_divider_color
|
|
1130
1106
|
color material_grey_100
|
|
1131
1107
|
color material_grey_300
|
|
1132
1108
|
color material_grey_50
|
|
@@ -1229,7 +1205,6 @@ color switch_thumb_material_dark
|
|
|
1229
1205
|
color switch_thumb_material_light
|
|
1230
1206
|
color switch_thumb_normal_material_dark
|
|
1231
1207
|
color switch_thumb_normal_material_light
|
|
1232
|
-
color test_color
|
|
1233
1208
|
color test_mtrl_calendar_day
|
|
1234
1209
|
color test_mtrl_calendar_day_selected
|
|
1235
1210
|
color tooltip_background_dark
|
|
@@ -1410,9 +1385,7 @@ dimen material_clock_size
|
|
|
1410
1385
|
dimen material_cursor_inset_bottom
|
|
1411
1386
|
dimen material_cursor_inset_top
|
|
1412
1387
|
dimen material_cursor_width
|
|
1413
|
-
dimen material_divider_thickness
|
|
1414
1388
|
dimen material_emphasis_disabled
|
|
1415
|
-
dimen material_emphasis_disabled_background
|
|
1416
1389
|
dimen material_emphasis_high_type
|
|
1417
1390
|
dimen material_emphasis_medium
|
|
1418
1391
|
dimen material_filled_edittext_font_1_3_padding_bottom
|
|
@@ -1643,7 +1616,6 @@ dimen notification_small_icon_size_as_large
|
|
|
1643
1616
|
dimen notification_subtext_size
|
|
1644
1617
|
dimen notification_top_pad
|
|
1645
1618
|
dimen notification_top_pad_large_text
|
|
1646
|
-
dimen test_dimen
|
|
1647
1619
|
dimen test_mtrl_calendar_day_cornerSize
|
|
1648
1620
|
dimen test_navigation_bar_active_item_max_width
|
|
1649
1621
|
dimen test_navigation_bar_active_item_min_width
|
|
@@ -1790,7 +1762,7 @@ drawable mtrl_ic_cancel
|
|
|
1790
1762
|
drawable mtrl_ic_error
|
|
1791
1763
|
drawable mtrl_navigation_bar_item_background
|
|
1792
1764
|
drawable mtrl_popupmenu_background
|
|
1793
|
-
drawable
|
|
1765
|
+
drawable mtrl_popupmenu_background_dark
|
|
1794
1766
|
drawable mtrl_tabs_default_indicator
|
|
1795
1767
|
drawable navigation_empty_icon
|
|
1796
1768
|
drawable notification_action_background
|
|
@@ -1916,7 +1888,6 @@ id chronometer
|
|
|
1916
1888
|
id circle_center
|
|
1917
1889
|
id clear_text
|
|
1918
1890
|
id clockwise
|
|
1919
|
-
id compress
|
|
1920
1891
|
id confirm_button
|
|
1921
1892
|
id container
|
|
1922
1893
|
id content
|
|
@@ -2054,8 +2025,6 @@ id mtrl_picker_text_input_range_start
|
|
|
2054
2025
|
id mtrl_picker_title_text
|
|
2055
2026
|
id mtrl_view_tag_bottom_padding
|
|
2056
2027
|
id multiply
|
|
2057
|
-
id navigation_bar_item_active_indicator_view
|
|
2058
|
-
id navigation_bar_item_icon_container
|
|
2059
2028
|
id navigation_bar_item_icon_view
|
|
2060
2029
|
id navigation_bar_item_labels_group
|
|
2061
2030
|
id navigation_bar_item_large_label_view
|
|
@@ -2234,9 +2203,6 @@ integer mtrl_card_anim_delay_ms
|
|
|
2234
2203
|
integer mtrl_card_anim_duration_ms
|
|
2235
2204
|
integer mtrl_chip_anim_duration
|
|
2236
2205
|
integer mtrl_tab_indicator_anim_duration_ms
|
|
2237
|
-
integer mtrl_view_gone
|
|
2238
|
-
integer mtrl_view_invisible
|
|
2239
|
-
integer mtrl_view_visible
|
|
2240
2206
|
integer react_native_dev_server_port
|
|
2241
2207
|
integer react_native_inspector_proxy_port
|
|
2242
2208
|
integer show_password_duration
|
|
@@ -2988,7 +2954,6 @@ style ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox
|
|
|
2988
2954
|
style ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox_Dense
|
|
2989
2955
|
style ThemeOverlay_MaterialComponents_TimePicker
|
|
2990
2956
|
style ThemeOverlay_MaterialComponents_TimePicker_Display
|
|
2991
|
-
style ThemeOverlay_MaterialComponents_TimePicker_Display_TextInputEditText
|
|
2992
2957
|
style ThemeOverlay_MaterialComponents_Toolbar_Primary
|
|
2993
2958
|
style ThemeOverlay_MaterialComponents_Toolbar_Surface
|
|
2994
2959
|
style Theme_AppCompat
|
|
@@ -3224,7 +3189,6 @@ style Widget_MaterialComponents_LinearProgressIndicator
|
|
|
3224
3189
|
style Widget_MaterialComponents_MaterialButtonToggleGroup
|
|
3225
3190
|
style Widget_MaterialComponents_MaterialCalendar
|
|
3226
3191
|
style Widget_MaterialComponents_MaterialCalendar_Day
|
|
3227
|
-
style Widget_MaterialComponents_MaterialCalendar_DayOfWeekLabel
|
|
3228
3192
|
style Widget_MaterialComponents_MaterialCalendar_DayTextView
|
|
3229
3193
|
style Widget_MaterialComponents_MaterialCalendar_Day_Invalid
|
|
3230
3194
|
style Widget_MaterialComponents_MaterialCalendar_Day_Selected
|
|
@@ -3245,7 +3209,6 @@ style Widget_MaterialComponents_MaterialCalendar_Year
|
|
|
3245
3209
|
style Widget_MaterialComponents_MaterialCalendar_YearNavigationButton
|
|
3246
3210
|
style Widget_MaterialComponents_MaterialCalendar_Year_Selected
|
|
3247
3211
|
style Widget_MaterialComponents_MaterialCalendar_Year_Today
|
|
3248
|
-
style Widget_MaterialComponents_MaterialDivider
|
|
3249
3212
|
style Widget_MaterialComponents_NavigationRailView
|
|
3250
3213
|
style Widget_MaterialComponents_NavigationRailView_Colored
|
|
3251
3214
|
style Widget_MaterialComponents_NavigationRailView_Colored_Compact
|
|
@@ -3282,10 +3245,7 @@ style Widget_MaterialComponents_TimePicker
|
|
|
3282
3245
|
style Widget_MaterialComponents_TimePicker_Button
|
|
3283
3246
|
style Widget_MaterialComponents_TimePicker_Clock
|
|
3284
3247
|
style Widget_MaterialComponents_TimePicker_Display
|
|
3285
|
-
style Widget_MaterialComponents_TimePicker_Display_Divider
|
|
3286
|
-
style Widget_MaterialComponents_TimePicker_Display_HelperText
|
|
3287
3248
|
style Widget_MaterialComponents_TimePicker_Display_TextInputEditText
|
|
3288
|
-
style Widget_MaterialComponents_TimePicker_Display_TextInputLayout
|
|
3289
3249
|
style Widget_MaterialComponents_TimePicker_ImageButton
|
|
3290
3250
|
style Widget_MaterialComponents_TimePicker_ImageButton_ShapeAppearance
|
|
3291
3251
|
style Widget_MaterialComponents_Toolbar
|
|
@@ -3310,18 +3270,18 @@ styleable AnimatedStateListDrawableItem android_drawable android_id
|
|
|
3310
3270
|
styleable AnimatedStateListDrawableTransition android_drawable android_fromId android_reversible android_toId
|
|
3311
3271
|
styleable AppBarLayout android_background android_keyboardNavigationCluster android_touchscreenBlocksFocus elevation expanded liftOnScroll liftOnScrollTargetViewId statusBarForeground
|
|
3312
3272
|
styleable AppBarLayoutStates state_collapsed state_collapsible state_liftable state_lifted
|
|
3313
|
-
styleable AppBarLayout_Layout
|
|
3273
|
+
styleable AppBarLayout_Layout layout_scrollFlags layout_scrollInterpolator
|
|
3314
3274
|
styleable AppCompatImageView android_src srcCompat tint tintMode
|
|
3315
3275
|
styleable AppCompatSeekBar android_thumb tickMark tickMarkTint tickMarkTintMode
|
|
3316
3276
|
styleable AppCompatTextHelper android_drawableBottom android_drawableEnd android_drawableLeft android_drawableRight android_drawableStart android_drawableTop android_textAppearance
|
|
3317
3277
|
styleable AppCompatTextView android_textAppearance autoSizeMaxTextSize autoSizeMinTextSize autoSizePresetSizes autoSizeStepGranularity autoSizeTextType drawableBottomCompat drawableEndCompat drawableLeftCompat drawableRightCompat drawableStartCompat drawableTint drawableTintMode drawableTopCompat firstBaselineToTopHeight fontFamily fontVariationSettings lastBaselineToBottomHeight lineHeight textAllCaps textLocale
|
|
3318
3278
|
styleable AppCompatTheme actionBarDivider actionBarItemBackground actionBarPopupTheme actionBarSize actionBarSplitStyle actionBarStyle actionBarTabBarStyle actionBarTabStyle actionBarTabTextStyle actionBarTheme actionBarWidgetTheme actionButtonStyle actionDropDownStyle actionMenuTextAppearance actionMenuTextColor actionModeBackground actionModeCloseButtonStyle actionModeCloseDrawable actionModeCopyDrawable actionModeCutDrawable actionModeFindDrawable actionModePasteDrawable actionModePopupWindowStyle actionModeSelectAllDrawable actionModeShareDrawable actionModeSplitBackground actionModeStyle actionModeWebSearchDrawable actionOverflowButtonStyle actionOverflowMenuStyle activityChooserViewStyle alertDialogButtonGroupStyle alertDialogCenterButtons alertDialogStyle alertDialogTheme android_windowAnimationStyle android_windowIsFloating autoCompleteTextViewStyle borderlessButtonStyle buttonBarButtonStyle buttonBarNegativeButtonStyle buttonBarNeutralButtonStyle buttonBarPositiveButtonStyle buttonBarStyle buttonStyle buttonStyleSmall checkboxStyle checkedTextViewStyle colorAccent colorBackgroundFloating colorButtonNormal colorControlActivated colorControlHighlight colorControlNormal colorError colorPrimary colorPrimaryDark colorSwitchThumbNormal controlBackground dialogCornerRadius dialogPreferredPadding dialogTheme dividerHorizontal dividerVertical dropDownListViewStyle dropdownListPreferredItemHeight editTextBackground editTextColor editTextStyle homeAsUpIndicator imageButtonStyle listChoiceBackgroundIndicator listChoiceIndicatorMultipleAnimated listChoiceIndicatorSingleAnimated listDividerAlertDialog listMenuViewStyle listPopupWindowStyle listPreferredItemHeight listPreferredItemHeightLarge listPreferredItemHeightSmall listPreferredItemPaddingEnd listPreferredItemPaddingLeft listPreferredItemPaddingRight listPreferredItemPaddingStart panelBackground panelMenuListTheme panelMenuListWidth popupMenuStyle popupWindowStyle radioButtonStyle ratingBarStyle ratingBarStyleIndicator ratingBarStyleSmall searchViewStyle seekBarStyle selectableItemBackground selectableItemBackgroundBorderless spinnerDropDownItemStyle spinnerStyle switchStyle textAppearanceLargePopupMenu textAppearanceListItem textAppearanceListItemSecondary textAppearanceListItemSmall textAppearancePopupMenuHeader textAppearanceSearchResultSubtitle textAppearanceSearchResultTitle textAppearanceSmallPopupMenu textColorAlertDialogListItem textColorSearchUrl toolbarNavigationButtonStyle toolbarStyle tooltipForegroundColor tooltipFrameBackground viewInflaterClass windowActionBar windowActionBarOverlay windowActionModeOverlay windowFixedHeightMajor windowFixedHeightMinor windowFixedWidthMajor windowFixedWidthMinor windowMinWidthMajor windowMinWidthMinor windowNoTitle
|
|
3319
3279
|
styleable Autofill_InlineSuggestion autofillInlineSuggestionChip autofillInlineSuggestionEndIconStyle autofillInlineSuggestionStartIconStyle autofillInlineSuggestionSubtitle autofillInlineSuggestionTitle isAutofillInlineSuggestionTheme
|
|
3320
|
-
styleable Badge backgroundColor badgeGravity
|
|
3280
|
+
styleable Badge backgroundColor badgeGravity badgeTextColor horizontalOffset maxCharacterCount number verticalOffset
|
|
3321
3281
|
styleable BaseProgressIndicator android_indeterminate hideAnimationBehavior indicatorColor minHideDelay showAnimationBehavior showDelay trackColor trackCornerRadius trackThickness
|
|
3322
|
-
styleable BottomAppBar backgroundTint elevation fabAlignmentMode fabAnimationMode fabCradleMargin fabCradleRoundedCornerRadius fabCradleVerticalOffset hideOnScroll
|
|
3323
|
-
styleable BottomNavigationView
|
|
3324
|
-
styleable BottomSheetBehavior_Layout android_elevation
|
|
3282
|
+
styleable BottomAppBar backgroundTint elevation fabAlignmentMode fabAnimationMode fabCradleMargin fabCradleRoundedCornerRadius fabCradleVerticalOffset hideOnScroll paddingBottomSystemWindowInsets paddingLeftSystemWindowInsets paddingRightSystemWindowInsets
|
|
3283
|
+
styleable BottomNavigationView itemHorizontalTranslationEnabled
|
|
3284
|
+
styleable BottomSheetBehavior_Layout android_elevation android_maxWidth backgroundTint behavior_draggable behavior_expandedOffset behavior_fitToContents behavior_halfExpandedRatio behavior_hideable behavior_peekHeight behavior_saveFlags behavior_skipCollapsed gestureInsetBottomIgnored paddingBottomSystemWindowInsets paddingLeftSystemWindowInsets paddingRightSystemWindowInsets paddingTopSystemWindowInsets shapeAppearance shapeAppearanceOverlay
|
|
3325
3285
|
styleable ButtonBarLayout allowStacking
|
|
3326
3286
|
styleable CardView android_minHeight android_minWidth cardBackgroundColor cardCornerRadius cardElevation cardMaxElevation cardPreventCornerOverlap cardUseCompatPadding contentPadding contentPaddingBottom contentPaddingLeft contentPaddingRight contentPaddingTop
|
|
3327
3287
|
styleable Chip android_checkable android_ellipsize android_maxWidth android_text android_textAppearance android_textColor android_textSize checkedIcon checkedIconEnabled checkedIconTint checkedIconVisible chipBackgroundColor chipCornerRadius chipEndPadding chipIcon chipIconEnabled chipIconSize chipIconTint chipIconVisible chipMinHeight chipMinTouchTargetSize chipStartPadding chipStrokeColor chipStrokeWidth chipSurfaceColor closeIcon closeIconEnabled closeIconEndPadding closeIconSize closeIconStartPadding closeIconTint closeIconVisible ensureMinTouchTargetSize hideMotionSpec iconEndPadding iconStartPadding rippleColor shapeAppearance shapeAppearanceOverlay showMotionSpec textEndPadding textStartPadding
|
|
@@ -3329,7 +3289,7 @@ styleable ChipGroup checkedChip chipSpacing chipSpacingHorizontal chipSpacingVer
|
|
|
3329
3289
|
styleable CircularProgressIndicator indicatorDirectionCircular indicatorInset indicatorSize
|
|
3330
3290
|
styleable ClockFaceView clockFaceBackgroundColor clockNumberTextColor
|
|
3331
3291
|
styleable ClockHandView clockHandColor materialCircleRadius selectorSize
|
|
3332
|
-
styleable CollapsingToolbarLayout collapsedTitleGravity collapsedTitleTextAppearance
|
|
3292
|
+
styleable CollapsingToolbarLayout collapsedTitleGravity collapsedTitleTextAppearance contentScrim expandedTitleGravity expandedTitleMargin expandedTitleMarginBottom expandedTitleMarginEnd expandedTitleMarginStart expandedTitleMarginTop expandedTitleTextAppearance extraMultilineHeightEnabled forceApplySystemWindowInsetTop maxLines scrimAnimationDuration scrimVisibleHeightTrigger statusBarScrim title titleCollapseMode titleEnabled toolbarId
|
|
3333
3293
|
styleable CollapsingToolbarLayout_Layout layout_collapseMode layout_collapseParallaxMultiplier
|
|
3334
3294
|
styleable ColorStateListItem alpha android_alpha android_color
|
|
3335
3295
|
styleable CompoundButton android_button buttonCompat buttonTint buttonTintMode
|
|
@@ -3365,7 +3325,7 @@ styleable LinearLayoutCompat_Layout android_layout_gravity android_layout_height
|
|
|
3365
3325
|
styleable LinearProgressIndicator indeterminateAnimationType indicatorDirectionLinear
|
|
3366
3326
|
styleable ListPopupWindow android_dropDownHorizontalOffset android_dropDownVerticalOffset
|
|
3367
3327
|
styleable MaterialAlertDialog backgroundInsetBottom backgroundInsetEnd backgroundInsetStart backgroundInsetTop
|
|
3368
|
-
styleable MaterialAlertDialogTheme materialAlertDialogBodyTextStyle
|
|
3328
|
+
styleable MaterialAlertDialogTheme materialAlertDialogBodyTextStyle materialAlertDialogTheme materialAlertDialogTitleIconStyle materialAlertDialogTitlePanelStyle materialAlertDialogTitleTextStyle
|
|
3369
3329
|
styleable MaterialAutoCompleteTextView android_inputType
|
|
3370
3330
|
styleable MaterialButton android_background android_checkable android_insetBottom android_insetLeft android_insetRight android_insetTop backgroundTint backgroundTintMode cornerRadius elevation icon iconGravity iconPadding iconSize iconTint iconTintMode rippleColor shapeAppearance shapeAppearanceOverlay strokeColor strokeWidth
|
|
3371
3331
|
styleable MaterialButtonToggleGroup checkedButton selectionRequired singleSelection
|
|
@@ -3373,7 +3333,6 @@ styleable MaterialCalendar android_windowFullscreen dayInvalidStyle daySelectedS
|
|
|
3373
3333
|
styleable MaterialCalendarItem android_insetBottom android_insetLeft android_insetRight android_insetTop itemFillColor itemShapeAppearance itemShapeAppearanceOverlay itemStrokeColor itemStrokeWidth itemTextColor
|
|
3374
3334
|
styleable MaterialCardView android_checkable cardForegroundColor checkedIcon checkedIconMargin checkedIconSize checkedIconTint rippleColor shapeAppearance shapeAppearanceOverlay state_dragged strokeColor strokeWidth
|
|
3375
3335
|
styleable MaterialCheckBox buttonTint useMaterialThemeColors
|
|
3376
|
-
styleable MaterialDivider dividerColor dividerInsetEnd dividerInsetStart dividerThickness
|
|
3377
3336
|
styleable MaterialRadioButton buttonTint useMaterialThemeColors
|
|
3378
3337
|
styleable MaterialShape shapeAppearance shapeAppearanceOverlay
|
|
3379
3338
|
styleable MaterialTextAppearance android_letterSpacing android_lineHeight lineHeight
|
|
@@ -3389,10 +3348,9 @@ styleable MotionHelper onHide onShow
|
|
|
3389
3348
|
styleable MotionLayout applyMotionScene currentState layoutDescription motionDebug motionProgress showPaths
|
|
3390
3349
|
styleable MotionScene defaultDuration layoutDuringTransition
|
|
3391
3350
|
styleable MotionTelltales telltales_tailColor telltales_tailScale telltales_velocityMode
|
|
3392
|
-
styleable
|
|
3393
|
-
styleable NavigationBarView backgroundTint elevation itemActiveIndicatorStyle itemBackground itemIconSize itemIconTint itemPaddingBottom itemPaddingTop itemRippleColor itemTextAppearanceActive itemTextAppearanceInactive itemTextColor labelVisibilityMode menu
|
|
3351
|
+
styleable NavigationBarView backgroundTint elevation itemBackground itemIconSize itemIconTint itemRippleColor itemTextAppearanceActive itemTextAppearanceInactive itemTextColor labelVisibilityMode menu
|
|
3394
3352
|
styleable NavigationRailView headerLayout menuGravity
|
|
3395
|
-
styleable NavigationView android_background android_fitsSystemWindows android_maxWidth elevation headerLayout itemBackground itemHorizontalPadding itemIconPadding itemIconSize itemIconTint itemMaxLines itemShapeAppearance itemShapeAppearanceOverlay itemShapeFillColor itemShapeInsetBottom itemShapeInsetEnd itemShapeInsetStart itemShapeInsetTop itemTextAppearance itemTextColor menu shapeAppearance shapeAppearanceOverlay
|
|
3353
|
+
styleable NavigationView android_background android_fitsSystemWindows android_maxWidth elevation headerLayout itemBackground itemHorizontalPadding itemIconPadding itemIconSize itemIconTint itemMaxLines itemShapeAppearance itemShapeAppearanceOverlay itemShapeFillColor itemShapeInsetBottom itemShapeInsetEnd itemShapeInsetStart itemShapeInsetTop itemTextAppearance itemTextColor menu shapeAppearance shapeAppearanceOverlay
|
|
3396
3354
|
styleable OnClick clickAction targetId
|
|
3397
3355
|
styleable OnSwipe dragDirection dragScale dragThreshold limitBoundsTo maxAcceleration maxVelocity moveWhenScrollAtTop nestedScrollFlags onTouchUp touchAnchorId touchAnchorSide touchRegionId
|
|
3398
3356
|
styleable PopupWindow android_popupAnimationStyle android_popupBackground overlapAnchor
|
|
@@ -3425,7 +3383,7 @@ styleable TextInputEditText textInputLayoutFocusedRectEnabled
|
|
|
3425
3383
|
styleable TextInputLayout android_enabled android_hint android_maxWidth android_minWidth android_textColorHint boxBackgroundColor boxBackgroundMode boxCollapsedPaddingTop boxCornerRadiusBottomEnd boxCornerRadiusBottomStart boxCornerRadiusTopEnd boxCornerRadiusTopStart boxStrokeColor boxStrokeErrorColor boxStrokeWidth boxStrokeWidthFocused counterEnabled counterMaxLength counterOverflowTextAppearance counterOverflowTextColor counterTextAppearance counterTextColor endIconCheckable endIconContentDescription endIconDrawable endIconMode endIconTint endIconTintMode errorContentDescription errorEnabled errorIconDrawable errorIconTint errorIconTintMode errorTextAppearance errorTextColor expandedHintEnabled helperText helperTextEnabled helperTextTextAppearance helperTextTextColor hintAnimationEnabled hintEnabled hintTextAppearance hintTextColor passwordToggleContentDescription passwordToggleDrawable passwordToggleEnabled passwordToggleTint passwordToggleTintMode placeholderText placeholderTextAppearance placeholderTextColor prefixText prefixTextAppearance prefixTextColor shapeAppearance shapeAppearanceOverlay startIconCheckable startIconContentDescription startIconDrawable startIconTint startIconTintMode suffixText suffixTextAppearance suffixTextColor
|
|
3426
3384
|
styleable ThemeEnforcement android_textAppearance enforceMaterialTheme enforceTextAppearance
|
|
3427
3385
|
styleable Toolbar android_gravity android_minHeight buttonGravity collapseContentDescription collapseIcon contentInsetEnd contentInsetEndWithActions contentInsetLeft contentInsetRight contentInsetStart contentInsetStartWithNavigation logo logoDescription maxButtonHeight menu navigationContentDescription navigationIcon popupTheme subtitle subtitleTextAppearance subtitleTextColor title titleMargin titleMarginBottom titleMarginEnd titleMarginStart titleMarginTop titleMargins titleTextAppearance titleTextColor
|
|
3428
|
-
styleable Tooltip android_layout_margin android_minHeight android_minWidth android_padding android_text android_textAppearance
|
|
3386
|
+
styleable Tooltip android_layout_margin android_minHeight android_minWidth android_padding android_text android_textAppearance backgroundTint
|
|
3429
3387
|
styleable Transform android_elevation android_rotation android_rotationX android_rotationY android_scaleX android_scaleY android_transformPivotX android_transformPivotY android_translationX android_translationY android_translationZ
|
|
3430
3388
|
styleable Transition android_id autoTransition constraintSetEnd constraintSetStart duration layoutDuringTransition motionInterpolator pathMotionArc staggered transitionDisable transitionFlags
|
|
3431
3389
|
styleable Variant constraints region_heightLessThan region_heightMoreThan region_widthLessThan region_widthMoreThan
|
package/android/build.gradle
CHANGED
|
@@ -19,9 +19,6 @@ def safeExtGet(prop, fallback) {
|
|
|
19
19
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'maven'
|
|
24
|
-
|
|
25
22
|
buildscript {
|
|
26
23
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
27
24
|
// This avoids unnecessary downloads and potential conflicts when the library is included as a
|
|
@@ -33,13 +30,12 @@ buildscript {
|
|
|
33
30
|
jcenter()
|
|
34
31
|
}
|
|
35
32
|
dependencies {
|
|
36
|
-
classpath 'com.android.tools.build:gradle:7.0.
|
|
33
|
+
classpath 'com.android.tools.build:gradle:7.0.4'
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
apply plugin: 'com.android.library'
|
|
42
|
-
apply plugin: 'maven'
|
|
43
39
|
|
|
44
40
|
android {
|
|
45
41
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
@@ -61,7 +57,6 @@ android {
|
|
|
61
57
|
|
|
62
58
|
repositories {
|
|
63
59
|
// ref: https://www.baeldung.com/maven-local-repository
|
|
64
|
-
mavenLocal()
|
|
65
60
|
maven {
|
|
66
61
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
67
62
|
url "$rootDir/../node_modules/react-native/android"
|
|
@@ -70,85 +65,20 @@ repositories {
|
|
|
70
65
|
// Android JSC is installed from npm
|
|
71
66
|
url "$rootDir/../node_modules/jsc-android/dist"
|
|
72
67
|
}
|
|
68
|
+
|
|
69
|
+
mavenCentral {
|
|
70
|
+
// We don't want to fetch react-native from Maven Central as there are
|
|
71
|
+
// older versions over there.
|
|
72
|
+
content {
|
|
73
|
+
excludeGroup "com.facebook.react"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
73
76
|
google()
|
|
74
|
-
|
|
77
|
+
maven { url 'https://www.jitpack.io' }
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
dependencies {
|
|
78
81
|
//noinspection GradleDynamicVersion
|
|
79
82
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
80
|
-
implementation ("com.userleap:userleap-android-sdk:2.
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
def configureReactNativePom(def pom) {
|
|
84
|
-
def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
|
|
85
|
-
|
|
86
|
-
pom.project {
|
|
87
|
-
name packageJson.title
|
|
88
|
-
artifactId packageJson.name
|
|
89
|
-
version = packageJson.version
|
|
90
|
-
group = "com.userleap.reactnative"
|
|
91
|
-
description packageJson.description
|
|
92
|
-
url packageJson.repository.baseUrl
|
|
93
|
-
|
|
94
|
-
licenses {
|
|
95
|
-
license {
|
|
96
|
-
name packageJson.license
|
|
97
|
-
url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
|
|
98
|
-
distribution 'repo'
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
developers {
|
|
103
|
-
developer {
|
|
104
|
-
id packageJson.author.username
|
|
105
|
-
name packageJson.author.name
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
afterEvaluate { project ->
|
|
112
|
-
// some Gradle build hooks ref:
|
|
113
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
114
|
-
task androidJavadoc(type: Javadoc) {
|
|
115
|
-
source = android.sourceSets.main.java.srcDirs
|
|
116
|
-
classpath += files(android.bootClasspath)
|
|
117
|
-
classpath += files(project.getConfigurations().getByName('compile').asList())
|
|
118
|
-
include '**/*.java'
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
122
|
-
classifier = 'javadoc'
|
|
123
|
-
from androidJavadoc.destinationDir
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
task androidSourcesJar(type: Jar) {
|
|
127
|
-
classifier = 'sources'
|
|
128
|
-
from android.sourceSets.main.java.srcDirs
|
|
129
|
-
include '**/*.java'
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
android.libraryVariants.all { variant ->
|
|
133
|
-
def name = variant.name.capitalize()
|
|
134
|
-
def javaCompileTask = variant.javaCompileProvider.get()
|
|
135
|
-
|
|
136
|
-
task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
|
|
137
|
-
from javaCompileTask.destinationDir
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
artifacts {
|
|
142
|
-
archives androidSourcesJar
|
|
143
|
-
archives androidJavadocJar
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
task installArchives(type: Upload) {
|
|
147
|
-
configuration = configurations.archives
|
|
148
|
-
repositories.mavenDeployer {
|
|
149
|
-
// Deploy to react-native-event-bridge/maven, ready to publish to npm
|
|
150
|
-
repository url: "file://${projectDir}/../android/maven"
|
|
151
|
-
configureReactNativePom pom
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
83
|
+
implementation ("com.userleap:userleap-android-sdk:2.6.9") // update this version on android updates
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
|
@@ -8,9 +8,18 @@ import com.facebook.react.bridge.Callback;
|
|
|
8
8
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
9
9
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
10
10
|
import com.facebook.react.bridge.ReactMethod;
|
|
11
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
12
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
13
|
+
|
|
11
14
|
import com.userleap.SurveyState;
|
|
12
15
|
import com.userleap.UserLeap;
|
|
13
16
|
|
|
17
|
+
import java.util.HashMap;
|
|
18
|
+
import java.util.List;
|
|
19
|
+
import java.util.Map;
|
|
20
|
+
import java.util.Objects;
|
|
21
|
+
import java.util.stream.Collectors;
|
|
22
|
+
|
|
14
23
|
import javax.annotation.Nullable;
|
|
15
24
|
|
|
16
25
|
import kotlin.Unit;
|
|
@@ -68,6 +77,19 @@ public class UserLeapModule extends ReactContextBaseJavaModule {
|
|
|
68
77
|
});
|
|
69
78
|
}
|
|
70
79
|
|
|
80
|
+
@ReactMethod
|
|
81
|
+
public void trackAndIdentify(String event, String userId, String partnerAnonymousId, final Callback surveyStateCallback) {
|
|
82
|
+
UserLeap.INSTANCE.track(event, userId, partnerAnonymousId, new Function1<SurveyState, Unit>() {
|
|
83
|
+
@Override
|
|
84
|
+
public Unit invoke(SurveyState surveyState) {
|
|
85
|
+
if (surveyStateCallback!=null) {
|
|
86
|
+
surveyStateCallback.invoke(surveyState.name());
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
71
93
|
@ReactMethod
|
|
72
94
|
public void setEmailAddress(String emailAddress) {
|
|
73
95
|
UserLeap.INSTANCE.setEmailAddress(emailAddress);
|
|
@@ -79,23 +101,46 @@ public class UserLeapModule extends ReactContextBaseJavaModule {
|
|
|
79
101
|
}
|
|
80
102
|
|
|
81
103
|
@ReactMethod
|
|
82
|
-
public void
|
|
83
|
-
UserLeap.INSTANCE.
|
|
104
|
+
public void setVisitorAttributes(ReadableMap attributes) {
|
|
105
|
+
UserLeap.INSTANCE.setVisitorAttributes(stringifyMap(attributes));
|
|
84
106
|
}
|
|
85
107
|
|
|
86
108
|
@ReactMethod
|
|
87
|
-
public void
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
109
|
+
public void setVisitorAttributesAndIdentify(ReadableMap attributes, String userId, String partnerAnonymousId) {
|
|
110
|
+
UserLeap.INSTANCE.setVisitorAttributes(stringifyMap(attributes), userId, partnerAnonymousId);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@ReactMethod
|
|
114
|
+
public void removeVisitorAttributes(ReadableArray attributes) {
|
|
115
|
+
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
|
116
|
+
List<String> attributeStrings = attributes.toArrayList().stream()
|
|
117
|
+
.map(object -> Objects.toString(object, null))
|
|
118
|
+
.collect(Collectors.toList());
|
|
119
|
+
UserLeap.INSTANCE.removeVisitorAttributes(attributeStrings);
|
|
91
120
|
}
|
|
92
121
|
}
|
|
93
122
|
|
|
123
|
+
@ReactMethod
|
|
124
|
+
public void setUserIdentifier(String identifier) {
|
|
125
|
+
UserLeap.INSTANCE.setUserIdentifier(identifier);
|
|
126
|
+
}
|
|
127
|
+
|
|
94
128
|
@ReactMethod
|
|
95
129
|
public void logout() {
|
|
96
130
|
UserLeap.INSTANCE.logout();
|
|
97
131
|
}
|
|
98
132
|
|
|
133
|
+
@ReactMethod
|
|
134
|
+
public void trackAndPresent(String event) {
|
|
135
|
+
UserLeap.INSTANCE.trackAndPresent(event, getFragmentActivity());
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@ReactMethod
|
|
139
|
+
public void trackIdentifyAndPresent(String event, String userId, String partnerAnonymousId) {
|
|
140
|
+
UserLeap.INSTANCE.trackAndPresent(event, userId, partnerAnonymousId, getFragmentActivity());
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
99
144
|
private @Nullable
|
|
100
145
|
FragmentActivity getFragmentActivity() {
|
|
101
146
|
Activity activity = getCurrentActivity();
|
|
@@ -105,4 +150,14 @@ public class UserLeapModule extends ReactContextBaseJavaModule {
|
|
|
105
150
|
return null;
|
|
106
151
|
}
|
|
107
152
|
}
|
|
153
|
+
|
|
154
|
+
private Map<String, String> stringifyMap(ReadableMap map) {
|
|
155
|
+
Map<String,String> stringifiedMap = new HashMap<>();
|
|
156
|
+
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
|
157
|
+
stringifiedMap = map.toHashMap().entrySet().stream()
|
|
158
|
+
.filter(m -> m.getKey() != null && m.getValue() !=null)
|
|
159
|
+
.collect(Collectors.toMap(Map.Entry::getKey, e -> (String)e.getValue()));
|
|
160
|
+
}
|
|
161
|
+
return stringifiedMap;
|
|
162
|
+
}
|
|
108
163
|
}
|
package/index.d.ts
CHANGED
|
@@ -9,10 +9,15 @@ declare namespace UserLeap {
|
|
|
9
9
|
function configure(environment: string): void;
|
|
10
10
|
function presentSurvey(): void;
|
|
11
11
|
function track(event: string, surveyStateCallback: (SurveyState) => void): void;
|
|
12
|
+
function trackAndIdentify(event: string, userId: string, partnerAnonymousId: string, surveyStateCallback: (SurveyState) => void): void;
|
|
12
13
|
function setEmailAddress(emailAddress: string): void;
|
|
13
14
|
function setVisitorAttribute(key: string, value: string): void;
|
|
15
|
+
function setVisitorAttributes(attributes: Map<string, string>): void;
|
|
16
|
+
function removeVisitorAttributes(keys: Array<string>): void;
|
|
17
|
+
function setVisitorAttributesAndIdentify(attributes: Map<string, string>, userId: string, partnerAnonymousId: string): void;
|
|
14
18
|
function setUserIdentifier(identifier: string): void;
|
|
15
|
-
function presentDebugSurvey(): void;
|
|
16
19
|
function logout(): void;
|
|
20
|
+
function trackAndPresent(event: string): void;
|
|
21
|
+
function trackIdentifyAndPresent(event: string, userId: string, partnerAnonymousId: string): void;
|
|
17
22
|
};
|
|
18
23
|
export default UserLeap;
|
package/index.js
CHANGED
|
@@ -45,6 +45,12 @@ const track = (event, surveyStateCallback) => {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
const trackAndIdentify = (event, userId, partnerAnonynmousId, surveyStateCallback) => {
|
|
49
|
+
if (isValidPlatform()) {
|
|
50
|
+
NativeModules.UserLeapBindings.trackAndIdentify(event, userId, partnerAnonynmousId, surveyStateCallback)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
48
54
|
const setEmailAddress = (emailAddress) => {
|
|
49
55
|
if (isValidPlatform()) {
|
|
50
56
|
NativeModules.UserLeapBindings.setEmailAddress(emailAddress)
|
|
@@ -57,15 +63,27 @@ const setVisitorAttribute = (key, value) => {
|
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
|
|
60
|
-
const
|
|
66
|
+
const setVisitorAttributes = (attributes) => {
|
|
61
67
|
if (isValidPlatform()) {
|
|
62
|
-
NativeModules.UserLeapBindings.
|
|
68
|
+
NativeModules.UserLeapBindings.setVisitorAttributes(attributes)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const removeVisitorAttributes = (keys) => {
|
|
73
|
+
if (isValidPlatform()) {
|
|
74
|
+
NativeModules.UserLeapBindings.removeVisitorAttributes(keys)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const setVisitorAttributesAndIdentify = (attributes, userId, partnerAnonynmousId) => {
|
|
79
|
+
if (isValidPlatform()) {
|
|
80
|
+
NativeModules.UserLeapBindings.setVisitorAttributesAndIdentify(attributes, userId, partnerAnonynmousId)
|
|
63
81
|
}
|
|
64
82
|
}
|
|
65
83
|
|
|
66
|
-
const
|
|
84
|
+
const setUserIdentifier = (identifier) => {
|
|
67
85
|
if (isValidPlatform()) {
|
|
68
|
-
NativeModules.UserLeapBindings.
|
|
86
|
+
NativeModules.UserLeapBindings.setUserIdentifier(identifier)
|
|
69
87
|
}
|
|
70
88
|
}
|
|
71
89
|
|
|
@@ -75,6 +93,18 @@ const logout = () => {
|
|
|
75
93
|
}
|
|
76
94
|
}
|
|
77
95
|
|
|
96
|
+
const trackAndPresent = (event) => {
|
|
97
|
+
if (isValidPlatform()) {
|
|
98
|
+
NativeModules.UserLeapBindings.trackAndPresent(event)
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const trackIdentifyAndPresent = (event, userId, partnerAnonynmousId) => {
|
|
103
|
+
if (isValidPlatform()) {
|
|
104
|
+
NativeModules.UserLeapBindings.trackIdentifyAndPresent(event, userId, partnerAnonynmousId)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
78
108
|
const UserLeap = {
|
|
79
109
|
SurveyState,
|
|
80
110
|
visitorIdentifier,
|
|
@@ -82,11 +112,16 @@ const UserLeap = {
|
|
|
82
112
|
configure,
|
|
83
113
|
presentSurvey,
|
|
84
114
|
track,
|
|
115
|
+
trackAndIdentify,
|
|
85
116
|
setEmailAddress,
|
|
86
117
|
setVisitorAttribute,
|
|
118
|
+
setVisitorAttributes,
|
|
119
|
+
removeVisitorAttributes,
|
|
120
|
+
setVisitorAttributesAndIdentify,
|
|
87
121
|
setUserIdentifier,
|
|
88
|
-
|
|
89
|
-
|
|
122
|
+
logout,
|
|
123
|
+
trackAndPresent,
|
|
124
|
+
trackIdentifyAndPresent,
|
|
90
125
|
}
|
|
91
126
|
|
|
92
127
|
export default UserLeap;
|