airbridge-react-native-sdk-restricted 2.8.7 → 2.8.9
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/.github/actions/add-github-check/action.yml +78 -0
- package/.github/actions/add-github-comment/action.yml +48 -0
- package/.github/actions/add-slack-message/action.yml +32 -0
- package/.github/actions/edit-github-check/action.yml +59 -0
- package/.github/actions/edit-github-comment/action.yml +41 -0
- package/.github/pull_request_template.md +5 -0
- package/.github/readme.md +53 -0
- package/.github/workflows/build.yml +367 -0
- package/.github/workflows/gitflow.yml +20 -0
- package/.github/workflows/release-restricted.yml +35 -0
- package/.github/workflows/release.yml +32 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +2 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeRN.java +19 -4
- package/android/src/main/java/co/ab180/airbridge/reactnative/ConfigReader.java +63 -40
- package/changelog.md +10 -0
- package/ios/AirbridgeRN/ARNConfigReader.h +1 -1
- package/ios/AirbridgeRN/ARNConfigReader.m +31 -30
- package/ios/AirbridgeRN/AirbridgeRN.m +26 -2
- package/ios/copy-config.rb +1 -1
- package/package.json +1 -1
- package/qa/.bundle/config +2 -0
- package/qa/.eslintrc.js +4 -0
- package/qa/.prettierrc.js +7 -0
- package/qa/.watchmanconfig +1 -0
- package/qa/Gemfile +9 -0
- package/qa/Gemfile.lock +105 -0
- package/qa/__tests__/App.test.tsx +17 -0
- package/qa/airbridge.json +7 -0
- package/qa/android/app/build.gradle +130 -0
- package/qa/android/app/debug.keystore +0 -0
- package/qa/android/app/google-services.json +29 -0
- package/qa/android/app/proguard-rules.pro +10 -0
- package/qa/android/app/src/debug/AndroidManifest.xml +9 -0
- package/qa/android/app/src/main/AndroidManifest.xml +65 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/ConfigurationLoader.kt +49 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainActivity.kt +35 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainApplication.kt +46 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoInteractor.kt +60 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoUtils.kt +115 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/IdentifiersInteractor.kt +83 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/InstallReferrerInteractor.kt +91 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/ModuleInjector.kt +22 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/PermissionInteractor.kt +55 -0
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/UserInfoInteractor.kt +74 -0
- package/qa/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/qa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/qa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/qa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/qa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/qa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/qa/android/app/src/main/res/values/strings.xml +3 -0
- package/qa/android/app/src/main/res/values/styles.xml +9 -0
- package/qa/android/build.gradle +28 -0
- package/qa/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/qa/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/qa/android/gradle.properties +41 -0
- package/qa/android/gradlew +249 -0
- package/qa/android/gradlew.bat +92 -0
- package/qa/android/settings.gradle +4 -0
- package/qa/app.json +4 -0
- package/qa/babel.config.js +3 -0
- package/qa/index.js +5 -0
- package/qa/ios/.xcode.env +11 -0
- package/qa/ios/AirbridgeQA/AirbridgeQA.entitlements +17 -0
- package/qa/ios/AirbridgeQA/AppDelegate.h +6 -0
- package/qa/ios/AirbridgeQA/AppDelegate.mm +123 -0
- package/qa/ios/AirbridgeQA/DeviceInfoInteractor.m +14 -0
- package/qa/ios/AirbridgeQA/DeviceInfoInteractor.swift +151 -0
- package/qa/ios/AirbridgeQA/IdentifiersInteractor.m +14 -0
- package/qa/ios/AirbridgeQA/IdentifiersInteractor.swift +40 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/Contents.json +6 -0
- package/qa/ios/AirbridgeQA/Info.plist +66 -0
- package/qa/ios/AirbridgeQA/LaunchScreen.storyboard +47 -0
- package/qa/ios/AirbridgeQA/PermissionInteractor.m +14 -0
- package/qa/ios/AirbridgeQA/PermissionInteractor.swift +19 -0
- package/qa/ios/AirbridgeQA/PrivacyInfo.xcprivacy +39 -0
- package/qa/ios/AirbridgeQA/UserInfoInteractor.m +57 -0
- package/qa/ios/AirbridgeQA/UserInfoInteractor.swift +49 -0
- package/qa/ios/AirbridgeQA/main.m +10 -0
- package/qa/ios/AirbridgeQA.xcodeproj/project.pbxproj +790 -0
- package/qa/ios/AirbridgeQA.xcodeproj/xcshareddata/xcschemes/AirbridgeQA.xcscheme +88 -0
- package/qa/ios/AirbridgeQA.xcworkspace/contents.xcworkspacedata +10 -0
- package/qa/ios/AirbridgeQA.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/qa/ios/AirbridgeQATests/AirbridgeQATests.m +66 -0
- package/qa/ios/AirbridgeQATests/Info.plist +24 -0
- package/qa/ios/GoogleService-Info.plist +30 -0
- package/qa/ios/Library/airbridge-ios-sdk-qa-library.podspec +26 -0
- package/qa/ios/Podfile +44 -0
- package/qa/ios/Podfile.lock +1634 -0
- package/qa/jest.config.js +3 -0
- package/qa/metro.config.js +67 -0
- package/qa/package-lock.json +14289 -0
- package/qa/package.json +47 -0
- package/qa/resource/arrow_back.png +0 -0
- package/qa/resource/home.png +0 -0
- package/qa/resource/info.png +0 -0
- package/qa/resource/link.png +0 -0
- package/qa/resource/refresh.png +0 -0
- package/qa/resource/token.png +0 -0
- package/qa/source/App.js +58 -0
- package/qa/source/common/Colors.js +20 -0
- package/qa/source/common/FCMService.js +94 -0
- package/qa/source/common/Native.ts +39 -0
- package/qa/source/common/Storage.js +13 -0
- package/qa/source/common/Styles.js +39 -0
- package/qa/source/component/AttributeEntryInputDialog.js +117 -0
- package/qa/source/component/AttributeTypeInputDialog.js +100 -0
- package/qa/source/component/ConfirmDialog.js +72 -0
- package/qa/source/component/CustomButton.js +50 -0
- package/qa/source/component/CustomEventParamsDialog.js +150 -0
- package/qa/source/component/CustomTextInput.js +40 -0
- package/qa/source/component/EntryInputDialog.js +89 -0
- package/qa/source/component/HorizontalPreference.js +46 -0
- package/qa/source/component/ImageButton.js +35 -0
- package/qa/source/component/InjectInputDialog.js +80 -0
- package/qa/source/component/MessageDialog.js +81 -0
- package/qa/source/component/UrlInputDialog.js +80 -0
- package/qa/source/component/ValueInputDialog.js +80 -0
- package/qa/source/component/VerticalPreference.js +42 -0
- package/qa/source/navigations/Stack.js +110 -0
- package/qa/source/pages/Browse.js +118 -0
- package/qa/source/pages/DeviceInfo.js +135 -0
- package/qa/source/pages/Event.js +171 -0
- package/qa/source/pages/Home.js +136 -0
- package/qa/source/pages/Identifiers.js +108 -0
- package/qa/source/pages/InstallReferrer.js +64 -0
- package/qa/source/pages/Placement.js +38 -0
- package/qa/source/pages/RequestPermissions.tsx +41 -0
- package/qa/source/pages/UserInfo.js +168 -0
- package/qa/source/pages/appInfo.js +22 -0
- package/qa/tsconfig.json +3 -0
- package/scripts/addiOSFramework.js +48 -0
- package/scripts/build-qa.sh +64 -0
- package/scripts/change_restricted.sh +21 -0
- package/scripts/update_native_version.sh +104 -0
- package/source/module/Attribution.ts +60 -0
- package/src/State.js +10 -2
- package/src/WebInterface.js +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
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>
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
|
@@ -0,0 +1,24 @@
|
|
|
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>
|
|
@@ -0,0 +1,30 @@
|
|
|
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>
|
|
@@ -0,0 +1,26 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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
|