pushwoosh-react-native-plugin 6.1.39 → 6.1.41
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/ISSUE_TEMPLATE/bug_report.yml +4 -0
- package/package.json +1 -1
- package/pushwoosh-react-native-plugin.podspec +1 -1
- package/src/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
- package/src/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/src/android/.gradle/5.6.4/gc.properties +0 -0
- package/src/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/LICENSE +0 -21
- package/example/README.md +0 -58
- package/example/Screenshots/Android_1.png +0 -0
- package/example/Screenshots/Android_2.png +0 -0
- package/example/Screenshots/iOS_1.png +0 -0
- package/example/Screenshots/iOS_2.png +0 -0
- package/example/demoapp/.bundle/config +0 -2
- package/example/demoapp/.eslintrc.js +0 -4
- package/example/demoapp/.prettierrc.js +0 -7
- package/example/demoapp/.watchmanconfig +0 -1
- package/example/demoapp/Actions.js +0 -302
- package/example/demoapp/App.tsx +0 -118
- package/example/demoapp/Gemfile +0 -9
- package/example/demoapp/Gemfile.lock +0 -105
- package/example/demoapp/README.md +0 -79
- package/example/demoapp/Settings.js +0 -126
- package/example/demoapp/__tests__/App.test.tsx +0 -17
- package/example/demoapp/android/app/build.gradle +0 -118
- package/example/demoapp/android/app/debug.keystore +0 -0
- package/example/demoapp/android/app/google-services.json +0 -979
- package/example/demoapp/android/app/proguard-rules.pro +0 -10
- package/example/demoapp/android/app/src/debug/AndroidManifest.xml +0 -9
- package/example/demoapp/android/app/src/main/AndroidManifest.xml +0 -25
- package/example/demoapp/android/app/src/main/java/com/demoapp/MainActivity.kt +0 -22
- package/example/demoapp/android/app/src/main/java/com/demoapp/MainApplication.kt +0 -43
- package/example/demoapp/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/example/demoapp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/demoapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/demoapp/android/app/src/main/res/values/strings.xml +0 -3
- package/example/demoapp/android/app/src/main/res/values/styles.xml +0 -9
- package/example/demoapp/android/build.gradle +0 -21
- package/example/demoapp/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/demoapp/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/example/demoapp/android/gradle.properties +0 -41
- package/example/demoapp/android/gradlew +0 -249
- package/example/demoapp/android/gradlew.bat +0 -92
- package/example/demoapp/android/settings.gradle +0 -4
- package/example/demoapp/app.json +0 -4
- package/example/demoapp/babel.config.js +0 -3
- package/example/demoapp/index.js +0 -46
- package/example/demoapp/ios/.xcode.env +0 -11
- package/example/demoapp/ios/NotificationService/Info.plist +0 -15
- package/example/demoapp/ios/NotificationService/NotificationService.entitlements +0 -8
- package/example/demoapp/ios/NotificationService/NotificationService.swift +0 -38
- package/example/demoapp/ios/Podfile +0 -40
- package/example/demoapp/ios/demoapp/AppDelegate.h +0 -6
- package/example/demoapp/ios/demoapp/AppDelegate.mm +0 -31
- package/example/demoapp/ios/demoapp/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/example/demoapp/ios/demoapp/Images.xcassets/Contents.json +0 -6
- package/example/demoapp/ios/demoapp/Info.plist +0 -57
- package/example/demoapp/ios/demoapp/LaunchScreen.storyboard +0 -47
- package/example/demoapp/ios/demoapp/PrivacyInfo.xcprivacy +0 -37
- package/example/demoapp/ios/demoapp/demoapp.entitlements +0 -10
- package/example/demoapp/ios/demoapp/main.m +0 -10
- package/example/demoapp/ios/demoapp.xcodeproj/project.pbxproj +0 -937
- package/example/demoapp/ios/demoapp.xcodeproj/xcshareddata/xcschemes/demoapp.xcscheme +0 -88
- package/example/demoapp/ios/demoapp.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/demoapp/ios/demoapp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/demoapp/ios/demoappTests/Info.plist +0 -24
- package/example/demoapp/ios/demoappTests/demoappTests.m +0 -66
- package/example/demoapp/jest.config.js +0 -3
- package/example/demoapp/logos.png +0 -0
- package/example/demoapp/metro.config.js +0 -20
- package/example/demoapp/package.json +0 -42
- package/example/demoapp/tsconfig.json +0 -3
- package/example/demoapp/yarn.lock +0 -7153
|
@@ -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 = "demoapp.app"
|
|
19
|
-
BlueprintName = "demoapp"
|
|
20
|
-
ReferencedContainer = "container:demoapp.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 = "demoappTests.xctest"
|
|
37
|
-
BlueprintName = "demoappTests"
|
|
38
|
-
ReferencedContainer = "container:demoapp.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 = "demoapp.app"
|
|
59
|
-
BlueprintName = "demoapp"
|
|
60
|
-
ReferencedContainer = "container:demoapp.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 = "demoapp.app"
|
|
76
|
-
BlueprintName = "demoapp"
|
|
77
|
-
ReferencedContainer = "container:demoapp.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,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,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 demoappTests : XCTestCase
|
|
11
|
-
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
@implementation demoappTests
|
|
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
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const { getDefaultConfig } = require('@react-native/metro-config');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
const projectRoot = __dirname;
|
|
5
|
-
const packagePath = path.resolve(projectRoot, '../../');
|
|
6
|
-
|
|
7
|
-
const config = getDefaultConfig(projectRoot);
|
|
8
|
-
|
|
9
|
-
config.resolver = {
|
|
10
|
-
...config.resolver,
|
|
11
|
-
nodeModulesPaths: [path.resolve(projectRoot, 'node_modules')],
|
|
12
|
-
extraNodeModules: {
|
|
13
|
-
'@babel/runtime': path.resolve(projectRoot, 'node_modules/@babel/runtime'),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
config.watchFolders = [packagePath];
|
|
18
|
-
|
|
19
|
-
module.exports = config;
|
|
20
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "demoapp",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"android": "react-native run-android",
|
|
7
|
-
"ios": "react-native run-ios",
|
|
8
|
-
"lint": "eslint .",
|
|
9
|
-
"start": "react-native start",
|
|
10
|
-
"test": "jest"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@expo/vector-icons": "^14.0.2",
|
|
14
|
-
"@react-navigation/bottom-tabs": "^6.5.20",
|
|
15
|
-
"pushwoosh-react-native-plugin": "file:../../",
|
|
16
|
-
"react": "18.2.0",
|
|
17
|
-
"react-native": "0.74.1",
|
|
18
|
-
"react-native-safe-area-context": "^4.10.1",
|
|
19
|
-
"react-native-screens": "^3.31.1",
|
|
20
|
-
"react-native-vector-icons": "^10.1.0"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@babel/core": "^7.20.0",
|
|
24
|
-
"@babel/preset-env": "^7.20.0",
|
|
25
|
-
"@babel/runtime": "^7.26.7",
|
|
26
|
-
"@react-native/babel-preset": "0.74.83",
|
|
27
|
-
"@react-native/eslint-config": "0.74.83",
|
|
28
|
-
"@react-native/metro-config": "0.74.83",
|
|
29
|
-
"@react-native/typescript-config": "0.74.83",
|
|
30
|
-
"@types/react": "^18.2.6",
|
|
31
|
-
"@types/react-test-renderer": "^18.0.0",
|
|
32
|
-
"babel-jest": "^29.6.3",
|
|
33
|
-
"eslint": "^8.19.0",
|
|
34
|
-
"jest": "^29.6.3",
|
|
35
|
-
"prettier": "2.8.8",
|
|
36
|
-
"react-test-renderer": "18.2.0",
|
|
37
|
-
"typescript": "5.0.4"
|
|
38
|
-
},
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=18"
|
|
41
|
-
}
|
|
42
|
-
}
|