react-native-incognia 6.3.1 → 6.5.0-local
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/android/build.gradle +3 -2
- package/android/libs/incognia-br-6.8.3.aar +0 -0
- package/android/libs/incognia-core-br-6.8.3.aar +0 -0
- package/android/libs/incognia-trial-br-6.8.3.aar +0 -0
- package/ios/Frameworks/IncogniaBR.xcframework/Info.plist +42 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_armv7/IncogniaBR.framework/Headers/ICGIncogniaConsentTypes.h +17 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_armv7/IncogniaBR.framework/Headers/ICGIncogniaDependencies.h +15 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_armv7/IncogniaBR.framework/Headers/IncogniaBR.h +2 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_armv7/IncogniaBR.framework/IncogniaBR +0 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_armv7/IncogniaBR.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaBR.framework/Headers/ICGIncogniaConsentTypes.h +17 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaBR.framework/Headers/ICGIncogniaDependencies.h +15 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaBR.framework/Headers/IncogniaBR.h +2 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaBR.framework/IncogniaBR +0 -0
- package/ios/Frameworks/IncogniaBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaBR.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/Info.plist +42 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGCheckIn.h +19 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGConsentDialogOptions.h +68 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGConsentRequest.h +21 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGConsentResult.h +46 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGConsentTypes.h +24 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGError.h +26 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGEventProperties.h +27 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGIncognia.h +118 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGOptions.h +67 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGTransactionAddress.h +28 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/ICGUserAddress.h +43 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Headers/IncogniaCoreBR.h +23 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/IncogniaCoreBR +0 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_armv7/IncogniaCoreBR.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGCheckIn.h +19 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGConsentDialogOptions.h +68 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGConsentRequest.h +21 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGConsentResult.h +46 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGConsentTypes.h +24 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGError.h +26 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGEventProperties.h +27 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGIncognia.h +118 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGOptions.h +67 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGTransactionAddress.h +28 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/ICGUserAddress.h +43 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Headers/IncogniaCoreBR.h +23 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/IncogniaCoreBR +0 -0
- package/ios/Frameworks/IncogniaCoreBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaCoreBR.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/Info.plist +42 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_armv7/IncogniaTrialBR.framework/Headers/ICGIncogniaTrial.h +82 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_armv7/IncogniaTrialBR.framework/Headers/ICGIncogniaTrialDependencies.h +23 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_armv7/IncogniaTrialBR.framework/Headers/IncogniaTrialBR.h +2 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_armv7/IncogniaTrialBR.framework/IncogniaTrialBR +0 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_armv7/IncogniaTrialBR.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaTrialBR.framework/Headers/ICGIncogniaTrial.h +82 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaTrialBR.framework/Headers/ICGIncogniaTrialDependencies.h +23 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaTrialBR.framework/Headers/IncogniaTrialBR.h +2 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaTrialBR.framework/IncogniaTrialBR +0 -0
- package/ios/Frameworks/IncogniaTrialBR.xcframework/ios-arm64_i386_x86_64-simulator/IncogniaTrialBR.framework/Modules/module.modulemap +6 -0
- package/ios/ICGIncogniaModule.m +4 -0
- package/ios/Incognia.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/package.json +1 -1
- package/react-native-incognia.podspec +1 -3
- package/android/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.8/gc.properties +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -19
- package/android/.idea/jarRepositories.xml +0 -35
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_0_0.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_0_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_0_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_63_4_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_9_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_9_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_9_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_yoga_proguard_annotations_1_14_1.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_identifier_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_12.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_12.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0.xml +0 -13
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +0 -13
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/android.iml +0 -100
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
package/android/build.gradle
CHANGED
|
@@ -57,6 +57,7 @@ dependencies {
|
|
|
57
57
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
58
58
|
implementation "com.google.android.gms:play-services-ads-identifier:${safeExtGet('googlePlayServicesAdsIdentifierVersion', '17.0.0')}"
|
|
59
59
|
implementation "com.google.android.gms:play-services-location:${safeExtGet('googlePlayServicesLocationVersion', '17.0.0')}"
|
|
60
|
-
api
|
|
61
|
-
api
|
|
60
|
+
api(name:'incognia-core-br-6.8.3', ext:'aar')
|
|
61
|
+
api(name:'incognia-br-6.8.3', ext:'aar')
|
|
62
|
+
api(name:'incognia-trial-br-6.8.3', ext:'aar')
|
|
62
63
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>LibraryIdentifier</key>
|
|
9
|
+
<string>ios-arm64_armv7</string>
|
|
10
|
+
<key>LibraryPath</key>
|
|
11
|
+
<string>IncogniaBR.framework</string>
|
|
12
|
+
<key>SupportedArchitectures</key>
|
|
13
|
+
<array>
|
|
14
|
+
<string>arm64</string>
|
|
15
|
+
<string>armv7</string>
|
|
16
|
+
</array>
|
|
17
|
+
<key>SupportedPlatform</key>
|
|
18
|
+
<string>ios</string>
|
|
19
|
+
</dict>
|
|
20
|
+
<dict>
|
|
21
|
+
<key>LibraryIdentifier</key>
|
|
22
|
+
<string>ios-arm64_i386_x86_64-simulator</string>
|
|
23
|
+
<key>LibraryPath</key>
|
|
24
|
+
<string>IncogniaBR.framework</string>
|
|
25
|
+
<key>SupportedArchitectures</key>
|
|
26
|
+
<array>
|
|
27
|
+
<string>arm64</string>
|
|
28
|
+
<string>i386</string>
|
|
29
|
+
<string>x86_64</string>
|
|
30
|
+
</array>
|
|
31
|
+
<key>SupportedPlatform</key>
|
|
32
|
+
<string>ios</string>
|
|
33
|
+
<key>SupportedPlatformVariant</key>
|
|
34
|
+
<string>simulator</string>
|
|
35
|
+
</dict>
|
|
36
|
+
</array>
|
|
37
|
+
<key>CFBundlePackageType</key>
|
|
38
|
+
<string>XFWK</string>
|
|
39
|
+
<key>XCFrameworkFormatVersion</key>
|
|
40
|
+
<string>1.0</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</plist>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGIncogniaConsentTypes.h
|
|
3
|
+
// IncogniaSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Pedro Atanasio on 09/04/21.
|
|
6
|
+
// Copyright © 2021 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef ICGIncogniaConsentTypes_h
|
|
10
|
+
#define ICGIncogniaConsentTypes_h
|
|
11
|
+
|
|
12
|
+
#import "ICGIncogniaDependencies.h"
|
|
13
|
+
|
|
14
|
+
// Consent sets
|
|
15
|
+
#define ICG_CONSENT_SET_INCOGNIA_ALL [NSSet setWithArray:@[ICG_CONSENT_TYPE_ADDRESS_VALIDATION, ICG_CONSENT_TYPE_EVENTS, ICG_CONSENT_TYPE_LOCATION, ICG_CONSENT_TYPE_CONTEXT_PROVIDER]]
|
|
16
|
+
|
|
17
|
+
#endif /* ICGIncogniaConsentTypes_h */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#if __has_include(<IncogniaCore/IncogniaCore.h>)
|
|
2
|
+
#import <IncogniaCore/IncogniaCore.h>
|
|
3
|
+
#elif __has_include(<IncogniaCoreBR/IncogniaCoreBR.h>)
|
|
4
|
+
#import <IncogniaCoreBR/IncogniaCoreBR.h>
|
|
5
|
+
#else
|
|
6
|
+
#import "ICGError.h"
|
|
7
|
+
#import "ICGOptions.h"
|
|
8
|
+
#import "ICGConsentTypes.h"
|
|
9
|
+
#import "ICGConsentResult.h"
|
|
10
|
+
#import "ICGConsentDialogOptions.h"
|
|
11
|
+
#import "ICGUserAddress.h"
|
|
12
|
+
#import "ICGCheckIn.h"
|
|
13
|
+
#import "ICGEventProperties.h"
|
|
14
|
+
#import "ICGTransactionAddress.h"
|
|
15
|
+
#endif
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGIncogniaConsentTypes.h
|
|
3
|
+
// IncogniaSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Pedro Atanasio on 09/04/21.
|
|
6
|
+
// Copyright © 2021 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef ICGIncogniaConsentTypes_h
|
|
10
|
+
#define ICGIncogniaConsentTypes_h
|
|
11
|
+
|
|
12
|
+
#import "ICGIncogniaDependencies.h"
|
|
13
|
+
|
|
14
|
+
// Consent sets
|
|
15
|
+
#define ICG_CONSENT_SET_INCOGNIA_ALL [NSSet setWithArray:@[ICG_CONSENT_TYPE_ADDRESS_VALIDATION, ICG_CONSENT_TYPE_EVENTS, ICG_CONSENT_TYPE_LOCATION, ICG_CONSENT_TYPE_CONTEXT_PROVIDER]]
|
|
16
|
+
|
|
17
|
+
#endif /* ICGIncogniaConsentTypes_h */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#if __has_include(<IncogniaCore/IncogniaCore.h>)
|
|
2
|
+
#import <IncogniaCore/IncogniaCore.h>
|
|
3
|
+
#elif __has_include(<IncogniaCoreBR/IncogniaCoreBR.h>)
|
|
4
|
+
#import <IncogniaCoreBR/IncogniaCoreBR.h>
|
|
5
|
+
#else
|
|
6
|
+
#import "ICGError.h"
|
|
7
|
+
#import "ICGOptions.h"
|
|
8
|
+
#import "ICGConsentTypes.h"
|
|
9
|
+
#import "ICGConsentResult.h"
|
|
10
|
+
#import "ICGConsentDialogOptions.h"
|
|
11
|
+
#import "ICGUserAddress.h"
|
|
12
|
+
#import "ICGCheckIn.h"
|
|
13
|
+
#import "ICGEventProperties.h"
|
|
14
|
+
#import "ICGTransactionAddress.h"
|
|
15
|
+
#endif
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>LibraryIdentifier</key>
|
|
9
|
+
<string>ios-arm64_i386_x86_64-simulator</string>
|
|
10
|
+
<key>LibraryPath</key>
|
|
11
|
+
<string>IncogniaCoreBR.framework</string>
|
|
12
|
+
<key>SupportedArchitectures</key>
|
|
13
|
+
<array>
|
|
14
|
+
<string>arm64</string>
|
|
15
|
+
<string>i386</string>
|
|
16
|
+
<string>x86_64</string>
|
|
17
|
+
</array>
|
|
18
|
+
<key>SupportedPlatform</key>
|
|
19
|
+
<string>ios</string>
|
|
20
|
+
<key>SupportedPlatformVariant</key>
|
|
21
|
+
<string>simulator</string>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>LibraryIdentifier</key>
|
|
25
|
+
<string>ios-arm64_armv7</string>
|
|
26
|
+
<key>LibraryPath</key>
|
|
27
|
+
<string>IncogniaCoreBR.framework</string>
|
|
28
|
+
<key>SupportedArchitectures</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>arm64</string>
|
|
31
|
+
<string>armv7</string>
|
|
32
|
+
</array>
|
|
33
|
+
<key>SupportedPlatform</key>
|
|
34
|
+
<string>ios</string>
|
|
35
|
+
</dict>
|
|
36
|
+
</array>
|
|
37
|
+
<key>CFBundlePackageType</key>
|
|
38
|
+
<string>XFWK</string>
|
|
39
|
+
<key>XCFrameworkFormatVersion</key>
|
|
40
|
+
<string>1.0</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</plist>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGCheckIn.h
|
|
3
|
+
// Incognia-iOS-SDK-Location
|
|
4
|
+
//
|
|
5
|
+
// Created by Douglas Soares on 16/03/20.
|
|
6
|
+
// Copyright © 2020 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "ICGUserAddress.h"
|
|
11
|
+
|
|
12
|
+
@interface ICGCheckIn : NSObject
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, strong, nullable) NSString *placeName;
|
|
15
|
+
@property (nonatomic, strong, nullable) NSString *placeId;
|
|
16
|
+
@property (nonatomic, strong, nullable) ICGUserAddress *userAddress;
|
|
17
|
+
@property (nonatomic, strong, nullable) NSDictionary <NSString *, NSString *> *extras;
|
|
18
|
+
|
|
19
|
+
@end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGConsentDialogOptions.h
|
|
3
|
+
// Incognia-iOS-SDK-Common
|
|
4
|
+
//
|
|
5
|
+
// Created by Júlia Godoy on 06/04/20.
|
|
6
|
+
// Copyright © 2020 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "ICGError.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The parameters that will be used to create the consent dialog
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@interface ICGConsentDialogOptions : NSObject
|
|
19
|
+
|
|
20
|
+
@property (nonatomic, strong) NSString *title;
|
|
21
|
+
@property (nonatomic, strong) NSString *message;
|
|
22
|
+
@property (nonatomic, strong) NSString *acceptText;
|
|
23
|
+
@property (nonatomic, strong) NSString *denyText;
|
|
24
|
+
@property (nonatomic, strong) NSSet <NSString *> *consentTypes;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
@interface ICGConsentDialogOptionsBuilder : NSObject
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The title that will be shown on the dialog that will be presented on the screen
|
|
32
|
+
*
|
|
33
|
+
* You must set this property, otherwise the alert can't be shown
|
|
34
|
+
*/
|
|
35
|
+
@property (nonatomic, strong) NSString *title;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The message that will be shown on the dialog that will be presented on the screen
|
|
39
|
+
*
|
|
40
|
+
* You must set this property, otherwise the alert can't be shown
|
|
41
|
+
*/
|
|
42
|
+
@property (nonatomic, strong) NSString *message;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The text that will be shown on the dialog's accept button that will be presented on the screen
|
|
46
|
+
*
|
|
47
|
+
* You must set this property, otherwise the alert can't be shown
|
|
48
|
+
*/
|
|
49
|
+
@property (nonatomic, strong) NSString *acceptText;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The denyText that will be shown on the dialog's deny text that will be presented on the screen.
|
|
53
|
+
*
|
|
54
|
+
* You must set this property, otherwise the alert can't be shown
|
|
55
|
+
*/
|
|
56
|
+
@property (nonatomic, strong) NSString *denyText;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The consent types that will requested in the dialog. You must set the dialog message according to the requested consent type.
|
|
60
|
+
*
|
|
61
|
+
* You must set this property, otherwise the alert can't be shown
|
|
62
|
+
*/
|
|
63
|
+
@property (nonatomic, strong) NSSet <NSString *> *consentTypes;
|
|
64
|
+
|
|
65
|
+
- (ICGConsentDialogOptions *)build:(ICGError **)error;
|
|
66
|
+
|
|
67
|
+
@end
|
|
68
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGConsentRequest.h
|
|
3
|
+
// Incognia-iOS-SDK-Common
|
|
4
|
+
//
|
|
5
|
+
// Created by Júlia Godoy on 06/04/20.
|
|
6
|
+
// Copyright © 2020 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "ICGConsentDialogOptions.h"
|
|
11
|
+
#import "ICGIncogniaInternal.h"
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
@interface ICGConsentRequest : NSObject
|
|
16
|
+
|
|
17
|
+
- (void)showDialogWithOptions:(ICGConsentDialogOptions *)options andConsentBlock:(nullable ICGConsentBlock)block;
|
|
18
|
+
|
|
19
|
+
@end
|
|
20
|
+
|
|
21
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGConsentResult.h
|
|
3
|
+
// Incognia-iOS-SDK-Common
|
|
4
|
+
//
|
|
5
|
+
// Created by Júlia Godoy on 06/04/20.
|
|
6
|
+
// Copyright © 2020 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The result obtained after a consent check operation
|
|
15
|
+
*/
|
|
16
|
+
@interface ICGConsentResult : NSObject
|
|
17
|
+
|
|
18
|
+
- (instancetype)initWithResult:(NSDictionary<NSString *, NSString *> *)result;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Verifies if the the state of all consent types searched are GIVEN
|
|
22
|
+
* Returns true if all requested consent types are given.
|
|
23
|
+
*/
|
|
24
|
+
- (BOOL)areAllConsentTypesGiven;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Verifies if the the state of all consent types are either GIVEN or DENIED.
|
|
28
|
+
* Returns true if all requested consent types are not given neither denied.
|
|
29
|
+
*/
|
|
30
|
+
- (BOOL)isWaitingConsent;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Verifies if the operation has finished or was incomplete due to any error that occurred.
|
|
34
|
+
* Returns true if the operation has finished and false if any exception was thrown in the process.
|
|
35
|
+
*/
|
|
36
|
+
- (BOOL)hasFinished;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets the NSDictionary containing the state for each requested consent type
|
|
40
|
+
* Returns the NSDictionary with each requested consent type and its state
|
|
41
|
+
*/
|
|
42
|
+
- (NSDictionary<NSString *, NSString *> *)getResult;
|
|
43
|
+
|
|
44
|
+
@end
|
|
45
|
+
|
|
46
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGConsentTypes.h
|
|
3
|
+
// Incognia-iOS-SDK-Common
|
|
4
|
+
//
|
|
5
|
+
// Created by Larissa Passos on 08/07/19.
|
|
6
|
+
// Copyright © 2019 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef ICGConsentTypes_h
|
|
10
|
+
#define ICGConsentTypes_h
|
|
11
|
+
|
|
12
|
+
// Consent Types
|
|
13
|
+
#define ICG_CONSENT_TYPE_ADDRESS_VALIDATION @"address_validation"
|
|
14
|
+
#define ICG_CONSENT_TYPE_ADVERTISEMENT @"advertisement"
|
|
15
|
+
#define ICG_CONSENT_TYPE_ENGAGE @"engage"
|
|
16
|
+
#define ICG_CONSENT_TYPE_EVENTS @"analytics"
|
|
17
|
+
#define ICG_CONSENT_TYPE_LOCATION @"location"
|
|
18
|
+
#define ICG_CONSENT_TYPE_CONTEXT_PROVIDER @"context_provider"
|
|
19
|
+
|
|
20
|
+
// Consent sets
|
|
21
|
+
#define ICG_CONSENT_SET_ALL [NSSet setWithArray:@[ICG_CONSENT_TYPE_ADDRESS_VALIDATION, ICG_CONSENT_TYPE_ADVERTISEMENT, ICG_CONSENT_TYPE_ENGAGE, ICG_CONSENT_TYPE_EVENTS, ICG_CONSENT_TYPE_LOCATION, ICG_CONSENT_TYPE_CONTEXT_PROVIDER]]
|
|
22
|
+
#define ICG_CONSENT_SET_NONE [[NSSet alloc] init]
|
|
23
|
+
|
|
24
|
+
#endif /* ICGConsentTypes_h */
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGrror.h
|
|
3
|
+
// IncogniaAPI
|
|
4
|
+
//
|
|
5
|
+
// Created by Incognia on 11/20/13.
|
|
6
|
+
// Copyright (c) 2013 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
//#define ICGE_ERROR_MESSAGE_REGEX_1 @"^errors:\\[(\\w+)\\.(\\w+)(\\-\\w+)*\\]$"
|
|
12
|
+
#define ICGE_ERROR_MESSAGE_REGEX_1 @"(\\w+)\\.(\\w+)(\\-\\w+)*"
|
|
13
|
+
|
|
14
|
+
@interface ICGError : NSError
|
|
15
|
+
|
|
16
|
+
// FIXME: remove the properties below and use the NSError's userInfo Dictionary to store the data. (https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/Reference/Reference.html)
|
|
17
|
+
|
|
18
|
+
@property (nonatomic, strong) NSDictionary *extraInfo;
|
|
19
|
+
|
|
20
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
21
|
+
|
|
22
|
+
- (instancetype)initWithDomain:(NSString *)domain code:(NSInteger)code description:(NSString *)description;
|
|
23
|
+
|
|
24
|
+
- (instancetype)initWithException:(NSException *)exception;
|
|
25
|
+
|
|
26
|
+
@end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGEventProperties.h
|
|
3
|
+
// IncogniaSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Pedro Atanasio on 09/02/21.
|
|
6
|
+
// Copyright © 2021 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@interface ICGEventProperties : NSObject
|
|
15
|
+
|
|
16
|
+
- (void)putString:(NSString *)value forKey:(NSString *)key;
|
|
17
|
+
- (void)putNumber:(NSNumber *)value forKey:(NSString *)key;
|
|
18
|
+
- (void)putInt:(int)value forKey:(NSString *)key;
|
|
19
|
+
- (void)putLong:(long)value forKey:(NSString *)key;
|
|
20
|
+
- (void)putDouble:(double)value forKey:(NSString *)key;
|
|
21
|
+
- (void)putBool:(BOOL)value forKey:(NSString *)key;
|
|
22
|
+
- (void)remove:(NSString *)key;
|
|
23
|
+
- (NSDictionary *)toDictionary;
|
|
24
|
+
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGIncognia.h
|
|
3
|
+
// Incognia
|
|
4
|
+
//
|
|
5
|
+
// Created by Pedro Atanasio on 05/06/20.
|
|
6
|
+
// Copyright © 2020 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
#import "ICGConsentResult.h"
|
|
11
|
+
#import "ICGOptions.h"
|
|
12
|
+
#import "ICGConsentDialogOptions.h"
|
|
13
|
+
#import "ICGUserAddress.h"
|
|
14
|
+
#import "ICGCheckIn.h"
|
|
15
|
+
#import "ICGEventProperties.h"
|
|
16
|
+
|
|
17
|
+
typedef void (^ICGFetchResultBlock)(UIBackgroundFetchResult);
|
|
18
|
+
typedef void (^ICGConsentBlock)(ICGConsentResult *_Nullable);
|
|
19
|
+
typedef void (^ICGStringBlock)(NSString *_Nullable);
|
|
20
|
+
|
|
21
|
+
@interface ICGIncognia : NSObject
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
Initializes the Incognia SDK with the options parameters.
|
|
25
|
+
*/
|
|
26
|
+
+ (void)initSdkWithOptions:(nonnull ICGOptions *)options;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Initializes the Incognia SDK with the IncogniaOptions.plist properties file. To know more, please refer to the Incognia documentation.
|
|
30
|
+
*/
|
|
31
|
+
+ (void)initSdk;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
Allows background operations.
|
|
35
|
+
|
|
36
|
+
Should be called inside [-application:performFetchWithCompletionHandler:].
|
|
37
|
+
*/
|
|
38
|
+
+ (void)performFetchWithCompletionBlock:(nullable ICGFetchResultBlock)fetchResultBlock;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Allows consents for the functionality types specified in consentTypes parametes (using ICG_CONSENT_TYPE_. constants).
|
|
42
|
+
A call to this method does not modify other consent types not present in consentTypes.
|
|
43
|
+
*/
|
|
44
|
+
+ (void)allowConsentTypes:(nonnull NSSet<NSString *> *)consentTypes;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
Denies consents for the functionality types specified in consentTypes parametes (using ICG_CONSENT_TYPE_. constants).
|
|
48
|
+
A call to this method does not modify other consent types not present in consentTypes.
|
|
49
|
+
*/
|
|
50
|
+
+ (void)denyConsentTypes:(nonnull NSSet<NSString *> *)consentTypes;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
Presents to the user a Dialog for consent request. If the user allows it, it will give the privacy consent for the consentTypes
|
|
54
|
+
present on the given ICGConsentDialogOptions. Otherwise, it will deny consent for the given consentTypes.
|
|
55
|
+
|
|
56
|
+
Returns through a block a NSDictionary containing the consent status for each consentType present on the consentTypes field ot the
|
|
57
|
+
given ICGConsentDialogOptions.
|
|
58
|
+
*/
|
|
59
|
+
+ (void)requestPrivacyConsentWithOptions:(nonnull ICGConsentDialogOptions *)options completionBlock:(nullable ICGConsentBlock)block;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
Presents to the user a Dialog for consent request. If the user allows it, it will give the privacy consent for the consentTypes
|
|
63
|
+
present on the given ICGConsentDialogOptions. Otherwise, it will deny consent for the given consentTypes.
|
|
64
|
+
*/
|
|
65
|
+
+ (void)requestPrivacyConsentWithOptions:(nonnull ICGConsentDialogOptions *)options;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
Returns through a block a NSDictionary containing the consent status for each consentType present on the given set.
|
|
69
|
+
*/
|
|
70
|
+
+ (void)checkConsentForTypes:(nonnull NSSet<NSString *> *)consentTypes completionBlock:(nullable ICGConsentBlock)block;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
Asynchronously retrieves the current installation id.
|
|
74
|
+
*/
|
|
75
|
+
+ (void)fetchInstallationId:(nonnull ICGStringBlock)block;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
Synchronously retrieves the current installation id. This method may return nil if the SDK has not yet been initialized or if an error occurs on initialization.
|
|
79
|
+
*/
|
|
80
|
+
+ (nullable NSString *)installationId;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
Sets the current account id.
|
|
84
|
+
This value is persisted.
|
|
85
|
+
*/
|
|
86
|
+
+ (void)setAccountId:(nonnull NSString *)accountId;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
Clears the current persisted account id.
|
|
90
|
+
*/
|
|
91
|
+
+ (void)clearAccountId;
|
|
92
|
+
|
|
93
|
+
+ (void)setLocationEnabled:(BOOL)enabled;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
Records an in-app event.
|
|
97
|
+
*/
|
|
98
|
+
+ (void)trackEvent:(nonnull NSString *)eventName;
|
|
99
|
+
+ (void)trackEvent:(nonnull NSString *)eventName properties:(nullable ICGEventProperties *)properties;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
Records an in-app event and its location.
|
|
103
|
+
*/
|
|
104
|
+
+ (void)trackLocalizedEvent:(nonnull NSString *)eventName;
|
|
105
|
+
+ (void)trackLocalizedEvent:(nonnull NSString *)eventName properties:(nullable ICGEventProperties *)properties;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Sets the user address.
|
|
109
|
+
This value is persisted locally.
|
|
110
|
+
*/
|
|
111
|
+
+ (void)setUserAddress:(ICGUserAddress *)userAddress __deprecated_msg("This method is deprecated. Setting addresses should be done via Incognia's API. For further explanation, refer to our documentation.");
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Clears the current persisted user address.
|
|
115
|
+
*/
|
|
116
|
+
+ (void)clearUserAddress __deprecated_msg("This method is deprecated. Setting addresses should be done via Incognia's API. For further explanation, refer to our documentation");
|
|
117
|
+
|
|
118
|
+
@end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGOptions.h
|
|
3
|
+
// Incognia-iOS-SDK-Common
|
|
4
|
+
//
|
|
5
|
+
// Created by Marcel Rebouças on 04/06/19.
|
|
6
|
+
// Copyright © 2019 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
This class holds the necessary properties to configure the Incognia SDK initialization.
|
|
15
|
+
*/
|
|
16
|
+
@interface ICGOptions : NSObject
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
The application ID.
|
|
20
|
+
*/
|
|
21
|
+
@property (nonatomic, strong) NSString *applicationId;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
Activates the verbose mode logging. Default: YES
|
|
25
|
+
*/
|
|
26
|
+
@property (nonatomic, assign) BOOL logEnabled;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Allows visit detection and location data to be generated. Default: YES
|
|
30
|
+
*/
|
|
31
|
+
@property (nonatomic, assign, getter = isLocationEnabled) BOOL locationEnabled;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
This property delays the full SDK initialization until your application calls [ICGIncogniaInternal giveUserPrivacyConsent:YES].
|
|
35
|
+
If consent is not given, the SDK will initialize in limited mode.
|
|
36
|
+
|
|
37
|
+
It should be set to YES for GDPR users.
|
|
38
|
+
|
|
39
|
+
Default: NO
|
|
40
|
+
*/
|
|
41
|
+
@property (nonatomic, assign) BOOL userPrivacyConsentRequired;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
Allows the SDK to track the user's screen navigation. This is used to improve app events. Default: NO
|
|
45
|
+
*/
|
|
46
|
+
@property (nonatomic, assign) BOOL screenTrackingEnabled;
|
|
47
|
+
|
|
48
|
+
- (instancetype)initWithApplicationId:(NSString *)applicationId;
|
|
49
|
+
|
|
50
|
+
- (instancetype)initFromPlist;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
Validates the ICGOptions properties.
|
|
54
|
+
|
|
55
|
+
@param options The ICGOptions object to be validated.
|
|
56
|
+
@return Returns YES if the applicationId is not nil, NO otherwise.
|
|
57
|
+
*/
|
|
58
|
+
+ (BOOL)checkCredentialsForOptions:(ICGOptions *)options;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
Validates if there is a Plist to be loaded
|
|
62
|
+
*/
|
|
63
|
+
+ (BOOL)hasPlist;
|
|
64
|
+
|
|
65
|
+
@end
|
|
66
|
+
|
|
67
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ICGTransactionAddress.h
|
|
3
|
+
// Incognia-iOS-SDK-Inloco
|
|
4
|
+
//
|
|
5
|
+
// Created by Lucas Cardoso on 04/02/21.
|
|
6
|
+
// Copyright © 2021 Incognia. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "ICGUserAddress.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@interface ICGTransactionAddress : ICGUserAddress
|
|
15
|
+
|
|
16
|
+
@property (nonatomic, strong) NSString *type;
|
|
17
|
+
|
|
18
|
+
- (instancetype)initWithType:(NSString *)type;
|
|
19
|
+
|
|
20
|
+
+ (ICGTransactionAddress *)makeBillingAddress;
|
|
21
|
+
|
|
22
|
+
+ (ICGTransactionAddress *)makeShippingAddress;
|
|
23
|
+
|
|
24
|
+
+ (ICGTransactionAddress *)makeHomeAddress;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|