airbridge-react-native-sdk-restricted 2.8.8 → 2.9.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.
Files changed (143) hide show
  1. package/airbridge-react-native-sdk-restricted.podspec +1 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeInAppPurchase.java +32 -0
  4. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeRN.java +2 -1
  5. package/changelog.md +10 -0
  6. package/index.d.ts +40 -0
  7. package/ios/AirbridgeRN/ARNConfigReader.m +18 -15
  8. package/ios/AirbridgeRN/AirbridgeInAppPurchase.h +16 -0
  9. package/ios/AirbridgeRN/AirbridgeInAppPurchase.m +30 -0
  10. package/ios/AirbridgeRN/AirbridgeRN.m +3 -0
  11. package/ios/AirbridgeRN.xcodeproj/project.pbxproj +16 -0
  12. package/ios/copy-config.rb +1 -1
  13. package/package.json +1 -1
  14. package/src/Airbridge.js +25 -0
  15. package/src/InAppPurchase.js +38 -0
  16. package/src/WebInterface.js +1 -1
  17. package/.github/actions/add-github-check/action.yml +0 -78
  18. package/.github/actions/add-github-comment/action.yml +0 -48
  19. package/.github/actions/add-slack-message/action.yml +0 -32
  20. package/.github/actions/edit-github-check/action.yml +0 -59
  21. package/.github/actions/edit-github-comment/action.yml +0 -41
  22. package/.github/pull_request_template.md +0 -5
  23. package/.github/readme.md +0 -53
  24. package/.github/workflows/build.yml +0 -367
  25. package/.github/workflows/gitflow.yml +0 -20
  26. package/.github/workflows/release-restricted.yml +0 -35
  27. package/.github/workflows/release.yml +0 -32
  28. package/qa/.bundle/config +0 -2
  29. package/qa/.eslintrc.js +0 -4
  30. package/qa/.prettierrc.js +0 -7
  31. package/qa/.watchmanconfig +0 -1
  32. package/qa/Gemfile +0 -9
  33. package/qa/Gemfile.lock +0 -105
  34. package/qa/__tests__/App.test.tsx +0 -17
  35. package/qa/airbridge.json +0 -7
  36. package/qa/android/app/build.gradle +0 -130
  37. package/qa/android/app/debug.keystore +0 -0
  38. package/qa/android/app/google-services.json +0 -29
  39. package/qa/android/app/proguard-rules.pro +0 -10
  40. package/qa/android/app/src/debug/AndroidManifest.xml +0 -9
  41. package/qa/android/app/src/main/AndroidManifest.xml +0 -65
  42. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/ConfigurationLoader.kt +0 -49
  43. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainActivity.kt +0 -35
  44. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainApplication.kt +0 -46
  45. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoInteractor.kt +0 -60
  46. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoUtils.kt +0 -115
  47. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/IdentifiersInteractor.kt +0 -83
  48. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/InstallReferrerInteractor.kt +0 -91
  49. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/ModuleInjector.kt +0 -22
  50. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/PermissionInteractor.kt +0 -55
  51. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/UserInfoInteractor.kt +0 -74
  52. package/qa/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  53. package/qa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  54. package/qa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  55. package/qa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  56. package/qa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  57. package/qa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  58. package/qa/android/app/src/main/res/values/strings.xml +0 -3
  59. package/qa/android/app/src/main/res/values/styles.xml +0 -9
  60. package/qa/android/build.gradle +0 -28
  61. package/qa/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  62. package/qa/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  63. package/qa/android/gradle.properties +0 -41
  64. package/qa/android/gradlew +0 -249
  65. package/qa/android/gradlew.bat +0 -92
  66. package/qa/android/settings.gradle +0 -4
  67. package/qa/app.json +0 -4
  68. package/qa/babel.config.js +0 -3
  69. package/qa/index.js +0 -5
  70. package/qa/ios/.xcode.env +0 -11
  71. package/qa/ios/AirbridgeQA/AirbridgeQA.entitlements +0 -17
  72. package/qa/ios/AirbridgeQA/AppDelegate.h +0 -6
  73. package/qa/ios/AirbridgeQA/AppDelegate.mm +0 -123
  74. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.m +0 -14
  75. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.swift +0 -151
  76. package/qa/ios/AirbridgeQA/IdentifiersInteractor.m +0 -14
  77. package/qa/ios/AirbridgeQA/IdentifiersInteractor.swift +0 -40
  78. package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  79. package/qa/ios/AirbridgeQA/Images.xcassets/Contents.json +0 -6
  80. package/qa/ios/AirbridgeQA/Info.plist +0 -66
  81. package/qa/ios/AirbridgeQA/LaunchScreen.storyboard +0 -47
  82. package/qa/ios/AirbridgeQA/PermissionInteractor.m +0 -14
  83. package/qa/ios/AirbridgeQA/PermissionInteractor.swift +0 -19
  84. package/qa/ios/AirbridgeQA/PrivacyInfo.xcprivacy +0 -39
  85. package/qa/ios/AirbridgeQA/UserInfoInteractor.m +0 -57
  86. package/qa/ios/AirbridgeQA/UserInfoInteractor.swift +0 -49
  87. package/qa/ios/AirbridgeQA/main.m +0 -10
  88. package/qa/ios/AirbridgeQA.xcodeproj/project.pbxproj +0 -771
  89. package/qa/ios/AirbridgeQA.xcodeproj/xcshareddata/xcschemes/AirbridgeQA.xcscheme +0 -88
  90. package/qa/ios/AirbridgeQA.xcworkspace/contents.xcworkspacedata +0 -10
  91. package/qa/ios/AirbridgeQA.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  92. package/qa/ios/AirbridgeQATests/AirbridgeQATests.m +0 -66
  93. package/qa/ios/AirbridgeQATests/Info.plist +0 -24
  94. package/qa/ios/GoogleService-Info.plist +0 -30
  95. package/qa/ios/Library/airbridge-ios-sdk-qa-library.podspec +0 -26
  96. package/qa/ios/Podfile +0 -44
  97. package/qa/ios/Podfile.lock +0 -1634
  98. package/qa/jest.config.js +0 -3
  99. package/qa/metro.config.js +0 -67
  100. package/qa/package-lock.json +0 -14289
  101. package/qa/package.json +0 -47
  102. package/qa/resource/arrow_back.png +0 -0
  103. package/qa/resource/home.png +0 -0
  104. package/qa/resource/info.png +0 -0
  105. package/qa/resource/link.png +0 -0
  106. package/qa/resource/refresh.png +0 -0
  107. package/qa/resource/token.png +0 -0
  108. package/qa/source/App.js +0 -58
  109. package/qa/source/common/Colors.js +0 -20
  110. package/qa/source/common/FCMService.js +0 -94
  111. package/qa/source/common/Native.ts +0 -39
  112. package/qa/source/common/Storage.js +0 -13
  113. package/qa/source/common/Styles.js +0 -39
  114. package/qa/source/component/AttributeEntryInputDialog.js +0 -117
  115. package/qa/source/component/AttributeTypeInputDialog.js +0 -100
  116. package/qa/source/component/ConfirmDialog.js +0 -72
  117. package/qa/source/component/CustomButton.js +0 -50
  118. package/qa/source/component/CustomEventParamsDialog.js +0 -150
  119. package/qa/source/component/CustomTextInput.js +0 -40
  120. package/qa/source/component/EntryInputDialog.js +0 -89
  121. package/qa/source/component/HorizontalPreference.js +0 -46
  122. package/qa/source/component/ImageButton.js +0 -35
  123. package/qa/source/component/InjectInputDialog.js +0 -80
  124. package/qa/source/component/MessageDialog.js +0 -81
  125. package/qa/source/component/UrlInputDialog.js +0 -80
  126. package/qa/source/component/ValueInputDialog.js +0 -80
  127. package/qa/source/component/VerticalPreference.js +0 -42
  128. package/qa/source/navigations/Stack.js +0 -110
  129. package/qa/source/pages/Browse.js +0 -118
  130. package/qa/source/pages/DeviceInfo.js +0 -135
  131. package/qa/source/pages/Event.js +0 -171
  132. package/qa/source/pages/Home.js +0 -136
  133. package/qa/source/pages/Identifiers.js +0 -108
  134. package/qa/source/pages/InstallReferrer.js +0 -64
  135. package/qa/source/pages/Placement.js +0 -38
  136. package/qa/source/pages/RequestPermissions.tsx +0 -41
  137. package/qa/source/pages/UserInfo.js +0 -168
  138. package/qa/source/pages/appInfo.js +0 -22
  139. package/qa/tsconfig.json +0 -3
  140. package/scripts/addiOSFramework.js +0 -48
  141. package/scripts/build-qa.sh +0 -64
  142. package/scripts/change_restricted.sh +0 -21
  143. package/scripts/update_native_version.sh +0 -104
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1210"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "AirbridgeQA.app"
19
- BlueprintName = "AirbridgeQA"
20
- ReferencedContainer = "container:AirbridgeQA.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "AirbridgeQATests.xctest"
37
- BlueprintName = "AirbridgeQATests"
38
- ReferencedContainer = "container:AirbridgeQA.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "AirbridgeQA.app"
59
- BlueprintName = "AirbridgeQA"
60
- ReferencedContainer = "container:AirbridgeQA.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "AirbridgeQA.app"
76
- BlueprintName = "AirbridgeQA"
77
- ReferencedContainer = "container:AirbridgeQA.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:AirbridgeQA.xcodeproj">
6
- </FileRef>
7
- <FileRef
8
- location = "group:Pods/Pods.xcodeproj">
9
- </FileRef>
10
- </Workspace>
@@ -1,8 +0,0 @@
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>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,66 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import <XCTest/XCTest.h>
3
-
4
- #import <React/RCTLog.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #define TIMEOUT_SECONDS 600
8
- #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
-
10
- @interface AirbridgeQATests : XCTestCase
11
-
12
- @end
13
-
14
- @implementation AirbridgeQATests
15
-
16
- - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17
- {
18
- if (test(view)) {
19
- return YES;
20
- }
21
- for (UIView *subview in [view subviews]) {
22
- if ([self findSubviewInView:subview matching:test]) {
23
- return YES;
24
- }
25
- }
26
- return NO;
27
- }
28
-
29
- - (void)testRendersWelcomeScreen
30
- {
31
- UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
- NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
- BOOL foundElement = NO;
34
-
35
- __block NSString *redboxError = nil;
36
- #ifdef DEBUG
37
- RCTSetLogFunction(
38
- ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39
- if (level >= RCTLogLevelError) {
40
- redboxError = message;
41
- }
42
- });
43
- #endif
44
-
45
- while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
- [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48
-
49
- foundElement = [self findSubviewInView:vc.view
50
- matching:^BOOL(UIView *view) {
51
- if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52
- return YES;
53
- }
54
- return NO;
55
- }];
56
- }
57
-
58
- #ifdef DEBUG
59
- RCTSetLogFunction(RCTDefaultLogFunction);
60
- #endif
61
-
62
- XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63
- XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64
- }
65
-
66
- @end
@@ -1,24 +0,0 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>
@@ -1,30 +0,0 @@
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>API_KEY</key>
6
- <string>AIzaSyBZMzY9M8g2dupXOqcb6l4pcXYPwrYVfGs</string>
7
- <key>GCM_SENDER_ID</key>
8
- <string>727373731449</string>
9
- <key>PLIST_VERSION</key>
10
- <string>1</string>
11
- <key>BUNDLE_ID</key>
12
- <string>co.ab180.airbridge.qa.application</string>
13
- <key>PROJECT_ID</key>
14
- <string>qa-automation-6cee5</string>
15
- <key>STORAGE_BUCKET</key>
16
- <string>qa-automation-6cee5.appspot.com</string>
17
- <key>IS_ADS_ENABLED</key>
18
- <false></false>
19
- <key>IS_ANALYTICS_ENABLED</key>
20
- <false></false>
21
- <key>IS_APPINVITE_ENABLED</key>
22
- <true></true>
23
- <key>IS_GCM_ENABLED</key>
24
- <true></true>
25
- <key>IS_SIGNIN_ENABLED</key>
26
- <true></true>
27
- <key>GOOGLE_APP_ID</key>
28
- <string>1:727373731449:ios:8f978e617d4e36eb0f66a8</string>
29
- </dict>
30
- </plist>
@@ -1,26 +0,0 @@
1
- Pod::Spec.new do |s|
2
- s.name = 'airbridge-ios-sdk-qa-library'
3
- s.version = '1.37.0'
4
- s.homepage = 'https://airbridge.io'
5
- s.license = {
6
- :type => 'Commercial',
7
- :text => 'Copyright AB180 Inc. All Rights Reserved.'
8
- }
9
- s.author = 'ab180'
10
- s.platform = :ios, '12.0'
11
- s.swift_version = '5.0'
12
-
13
- s.source = {
14
- :http => "https://sdk-internal.airbridge.io/airbridge-ios-sdk-qa-library/#{s.version}/AirbridgeQALibrary.zip"
15
- }
16
- s.preserve_paths = 'AirbridgeQALibrary'
17
- s.source_files = 'AirbridgeQALibrary/.Source/AirbridgeQALibrary.swift'
18
- s.vendored_frameworks = 'AirbridgeQALibrary/AirbridgeQALibrary.xcframework'
19
-
20
- s.summary = 'QA Library of Airbridge SDK for iOS'
21
- s.description = <<-DESC
22
- # airbridge-ios-sdk-qa-library
23
-
24
- QA Library of Airbridge SDK for iOS
25
- DESC
26
- end
package/qa/ios/Podfile DELETED
@@ -1,44 +0,0 @@
1
- # Resolve react_native_pods.rb with node to allow for hoisting
2
- require Pod::Executable.execute_command('node', ['-p',
3
- 'require.resolve(
4
- "react-native/scripts/react_native_pods.rb",
5
- {paths: [process.argv[1]]},
6
- )', __dir__]).strip
7
-
8
- platform :ios, min_ios_version_supported
9
- prepare_react_native_project!
10
-
11
- linkage = ENV['USE_FRAMEWORKS']
12
- if linkage != nil
13
- Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
14
- use_frameworks! :linkage => linkage.to_sym
15
- end
16
-
17
- target 'AirbridgeQA' do
18
- config = use_native_modules!
19
-
20
- pod 'FirebaseCore', :modular_headers => true
21
- pod 'GoogleUtilities', :modular_headers => true
22
- pod 'airbridge-ios-sdk-qa-library', :podspec => 'Library/airbridge-ios-sdk-qa-library.podspec'
23
-
24
- use_react_native!(
25
- :path => config[:reactNativePath],
26
- # An absolute path to your application root.
27
- :app_path => "#{Pod::Config.instance.installation_root}/.."
28
- )
29
-
30
- target 'AirbridgeQATests' do
31
- inherit! :complete
32
- # Pods for testing
33
- end
34
-
35
- post_install do |installer|
36
- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
37
- react_native_post_install(
38
- installer,
39
- config[:reactNativePath],
40
- :mac_catalyst_enabled => false,
41
- # :ccache_enabled => true
42
- )
43
- end
44
- end