pushwoosh-react-native-plugin 6.1.40 → 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.
Files changed (80) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +1 -0
  2. package/package.json +1 -1
  3. package/pushwoosh-react-native-plugin.podspec +1 -1
  4. package/src/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
  5. package/src/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
  6. package/src/android/.gradle/5.6.4/gc.properties +0 -0
  7. package/src/android/.gradle/vcs-1/gc.properties +0 -0
  8. package/example/LICENSE +0 -21
  9. package/example/README.md +0 -58
  10. package/example/Screenshots/Android_1.png +0 -0
  11. package/example/Screenshots/Android_2.png +0 -0
  12. package/example/Screenshots/iOS_1.png +0 -0
  13. package/example/Screenshots/iOS_2.png +0 -0
  14. package/example/demoapp/.bundle/config +0 -2
  15. package/example/demoapp/.eslintrc.js +0 -4
  16. package/example/demoapp/.prettierrc.js +0 -7
  17. package/example/demoapp/.watchmanconfig +0 -1
  18. package/example/demoapp/Actions.js +0 -302
  19. package/example/demoapp/App.tsx +0 -118
  20. package/example/demoapp/Gemfile +0 -9
  21. package/example/demoapp/Gemfile.lock +0 -105
  22. package/example/demoapp/README.md +0 -79
  23. package/example/demoapp/Settings.js +0 -126
  24. package/example/demoapp/__tests__/App.test.tsx +0 -17
  25. package/example/demoapp/android/app/build.gradle +0 -118
  26. package/example/demoapp/android/app/debug.keystore +0 -0
  27. package/example/demoapp/android/app/proguard-rules.pro +0 -10
  28. package/example/demoapp/android/app/src/debug/AndroidManifest.xml +0 -9
  29. package/example/demoapp/android/app/src/main/AndroidManifest.xml +0 -25
  30. package/example/demoapp/android/app/src/main/java/com/demoapp/MainActivity.kt +0 -22
  31. package/example/demoapp/android/app/src/main/java/com/demoapp/MainApplication.kt +0 -43
  32. package/example/demoapp/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  33. package/example/demoapp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  34. package/example/demoapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  35. package/example/demoapp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  36. package/example/demoapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  37. package/example/demoapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  38. package/example/demoapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  39. package/example/demoapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  40. package/example/demoapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  41. package/example/demoapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  42. package/example/demoapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  43. package/example/demoapp/android/app/src/main/res/values/strings.xml +0 -3
  44. package/example/demoapp/android/app/src/main/res/values/styles.xml +0 -9
  45. package/example/demoapp/android/build.gradle +0 -21
  46. package/example/demoapp/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  47. package/example/demoapp/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  48. package/example/demoapp/android/gradle.properties +0 -41
  49. package/example/demoapp/android/gradlew +0 -249
  50. package/example/demoapp/android/gradlew.bat +0 -92
  51. package/example/demoapp/android/settings.gradle +0 -4
  52. package/example/demoapp/app.json +0 -4
  53. package/example/demoapp/babel.config.js +0 -3
  54. package/example/demoapp/index.js +0 -46
  55. package/example/demoapp/ios/.xcode.env +0 -11
  56. package/example/demoapp/ios/NotificationService/Info.plist +0 -15
  57. package/example/demoapp/ios/NotificationService/NotificationService.entitlements +0 -8
  58. package/example/demoapp/ios/NotificationService/NotificationService.swift +0 -38
  59. package/example/demoapp/ios/Podfile +0 -40
  60. package/example/demoapp/ios/demoapp/AppDelegate.h +0 -6
  61. package/example/demoapp/ios/demoapp/AppDelegate.mm +0 -31
  62. package/example/demoapp/ios/demoapp/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  63. package/example/demoapp/ios/demoapp/Images.xcassets/Contents.json +0 -6
  64. package/example/demoapp/ios/demoapp/Info.plist +0 -57
  65. package/example/demoapp/ios/demoapp/LaunchScreen.storyboard +0 -47
  66. package/example/demoapp/ios/demoapp/PrivacyInfo.xcprivacy +0 -37
  67. package/example/demoapp/ios/demoapp/demoapp.entitlements +0 -10
  68. package/example/demoapp/ios/demoapp/main.m +0 -10
  69. package/example/demoapp/ios/demoapp.xcodeproj/project.pbxproj +0 -937
  70. package/example/demoapp/ios/demoapp.xcodeproj/xcshareddata/xcschemes/demoapp.xcscheme +0 -88
  71. package/example/demoapp/ios/demoapp.xcworkspace/contents.xcworkspacedata +0 -10
  72. package/example/demoapp/ios/demoapp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  73. package/example/demoapp/ios/demoappTests/Info.plist +0 -24
  74. package/example/demoapp/ios/demoappTests/demoappTests.m +0 -66
  75. package/example/demoapp/jest.config.js +0 -3
  76. package/example/demoapp/logos.png +0 -0
  77. package/example/demoapp/metro.config.js +0 -20
  78. package/example/demoapp/package.json +0 -42
  79. package/example/demoapp/tsconfig.json +0 -3
  80. package/example/demoapp/yarn.lock +0 -7153
@@ -1,249 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- # This is normally unused
84
- # shellcheck disable=SC2034
85
- APP_BASE_NAME=${0##*/}
86
- # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
88
-
89
- # Use the maximum available, or set MAX_FD != -1 to use that value.
90
- MAX_FD=maximum
91
-
92
- warn () {
93
- echo "$*"
94
- } >&2
95
-
96
- die () {
97
- echo
98
- echo "$*"
99
- echo
100
- exit 1
101
- } >&2
102
-
103
- # OS specific support (must be 'true' or 'false').
104
- cygwin=false
105
- msys=false
106
- darwin=false
107
- nonstop=false
108
- case "$( uname )" in #(
109
- CYGWIN* ) cygwin=true ;; #(
110
- Darwin* ) darwin=true ;; #(
111
- MSYS* | MINGW* ) msys=true ;; #(
112
- NONSTOP* ) nonstop=true ;;
113
- esac
114
-
115
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116
-
117
-
118
- # Determine the Java command to use to start the JVM.
119
- if [ -n "$JAVA_HOME" ] ; then
120
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121
- # IBM's JDK on AIX uses strange locations for the executables
122
- JAVACMD=$JAVA_HOME/jre/sh/java
123
- else
124
- JAVACMD=$JAVA_HOME/bin/java
125
- fi
126
- if [ ! -x "$JAVACMD" ] ; then
127
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128
-
129
- Please set the JAVA_HOME variable in your environment to match the
130
- location of your Java installation."
131
- fi
132
- else
133
- JAVACMD=java
134
- if ! command -v java >/dev/null 2>&1
135
- then
136
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
- fi
142
-
143
- # Increase the maximum file descriptors if we can.
144
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
- case $MAX_FD in #(
146
- max*)
147
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
- # shellcheck disable=SC2039,SC3045
149
- MAX_FD=$( ulimit -H -n ) ||
150
- warn "Could not query maximum file descriptor limit"
151
- esac
152
- case $MAX_FD in #(
153
- '' | soft) :;; #(
154
- *)
155
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
- # shellcheck disable=SC2039,SC3045
157
- ulimit -n "$MAX_FD" ||
158
- warn "Could not set maximum file descriptor limit to $MAX_FD"
159
- esac
160
- fi
161
-
162
- # Collect all arguments for the java command, stacking in reverse order:
163
- # * args from the command line
164
- # * the main class name
165
- # * -classpath
166
- # * -D...appname settings
167
- # * --module-path (only if needed)
168
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169
-
170
- # For Cygwin or MSYS, switch paths to Windows format before running java
171
- if "$cygwin" || "$msys" ; then
172
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174
-
175
- JAVACMD=$( cygpath --unix "$JAVACMD" )
176
-
177
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
178
- for arg do
179
- if
180
- case $arg in #(
181
- -*) false ;; # don't mess with options #(
182
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183
- [ -e "$t" ] ;; #(
184
- *) false ;;
185
- esac
186
- then
187
- arg=$( cygpath --path --ignore --mixed "$arg" )
188
- fi
189
- # Roll the args list around exactly as many times as the number of
190
- # args, so each arg winds up back in the position where it started, but
191
- # possibly modified.
192
- #
193
- # NB: a `for` loop captures its iteration list before it begins, so
194
- # changing the positional parameters here affects neither the number of
195
- # iterations, nor the values presented in `arg`.
196
- shift # remove old arg
197
- set -- "$@" "$arg" # push replacement arg
198
- done
199
- fi
200
-
201
-
202
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
-
205
- # Collect all arguments for the java command:
206
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
- # and any embedded shellness will be escaped.
208
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
- # treated as '${Hostname}' itself on the command line.
210
-
211
- set -- \
212
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
213
- -classpath "$CLASSPATH" \
214
- org.gradle.wrapper.GradleWrapperMain \
215
- "$@"
216
-
217
- # Stop when "xargs" is not available.
218
- if ! command -v xargs >/dev/null 2>&1
219
- then
220
- die "xargs is not available"
221
- fi
222
-
223
- # Use "xargs" to parse quoted args.
224
- #
225
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226
- #
227
- # In Bash we could simply go:
228
- #
229
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230
- # set -- "${ARGS[@]}" "$@"
231
- #
232
- # but POSIX shell has neither arrays nor command substitution, so instead we
233
- # post-process each arg (as a line of input to sed) to backslash-escape any
234
- # character that might be a shell metacharacter, then use eval to reverse
235
- # that process (while maintaining the separation between arguments), and wrap
236
- # the whole thing up as a single "set" statement.
237
- #
238
- # This will of course break if any of these variables contains a newline or
239
- # an unmatched quote.
240
- #
241
-
242
- eval "set -- $(
243
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244
- xargs -n1 |
245
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246
- tr '\n' ' '
247
- )" '"$@"'
248
-
249
- exec "$JAVACMD" "$@"
@@ -1,92 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%"=="" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%"=="" set DIRNAME=.
29
- @rem This is normally unused
30
- set APP_BASE_NAME=%~n0
31
- set APP_HOME=%DIRNAME%
32
-
33
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
-
36
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
-
39
- @rem Find java.exe
40
- if defined JAVA_HOME goto findJavaFromJavaHome
41
-
42
- set JAVA_EXE=java.exe
43
- %JAVA_EXE% -version >NUL 2>&1
44
- if %ERRORLEVEL% equ 0 goto execute
45
-
46
- echo. 1>&2
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
- echo. 1>&2
49
- echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
- echo location of your Java installation. 1>&2
51
-
52
- goto fail
53
-
54
- :findJavaFromJavaHome
55
- set JAVA_HOME=%JAVA_HOME:"=%
56
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
-
58
- if exist "%JAVA_EXE%" goto execute
59
-
60
- echo. 1>&2
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
- echo. 1>&2
63
- echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
- echo location of your Java installation. 1>&2
65
-
66
- goto fail
67
-
68
- :execute
69
- @rem Setup the command line
70
-
71
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
-
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if %ERRORLEVEL% equ 0 goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- set EXIT_CODE=%ERRORLEVEL%
85
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
- exit /b %EXIT_CODE%
88
-
89
- :mainEnd
90
- if "%OS%"=="Windows_NT" endlocal
91
-
92
- :omega
@@ -1,4 +0,0 @@
1
- rootProject.name = 'demoapp'
2
- apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
- include ':app'
4
- includeBuild('../node_modules/@react-native/gradle-plugin')
@@ -1,4 +0,0 @@
1
- {
2
- "name": "demoapp",
3
- "displayName": "demoapp"
4
- }
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['module:@react-native/babel-preset'],
3
- };
@@ -1,46 +0,0 @@
1
- /**
2
- * @format
3
- */
4
-
5
- // import App from './App';
6
- import {name as appName} from './app.json';
7
- import {
8
- AppRegistry,
9
- DeviceEventEmitter} from 'react-native';
10
- import { NavigationContainer } from '@react-navigation/native';
11
- import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
12
- import { enableScreens } from 'react-native-screens';
13
- import Actions from './Actions';
14
- import Settings from './Settings';
15
-
16
- const Tab = createBottomTabNavigator();
17
-
18
- const App = () => {
19
- return (
20
- <NavigationContainer>
21
- <Tab.Navigator>
22
- <Tab.Screen name="Actions" component={Actions} options={{
23
- title: 'PUSHWOOSH DEMO',
24
- tabBarLabel: 'Actions',
25
- }} />
26
- <Tab.Screen name="Settings" component={Settings} options={{ title: 'PUSHWOOSH DEMO', tabBarLabel: 'Settings' }} />
27
- </Tab.Navigator>
28
- </NavigationContainer>
29
- );
30
- };
31
-
32
- AppRegistry.registerComponent(appName, () => App);
33
-
34
- // this event is fired when the push is received in the app
35
- DeviceEventEmitter.addListener('pushReceived', (e) => {
36
- console.warn("pushReceived: " + JSON.stringify(e));
37
- // shows a push is received. Implement passive reaction to a push, such as UI update or data download.
38
- });
39
-
40
- // this event is fired when user clicks on notification
41
- DeviceEventEmitter.addListener('pushOpened', (e) => {
42
- console.warn("pushOpened: " + JSON.stringify(e));
43
- // shows a user tapped the notification. Implement user interaction, such as showing push details
44
- });
45
-
46
- enableScreens();
@@ -1,11 +0,0 @@
1
- # This `.xcode.env` file is versioned and is used to source the environment
2
- # used when running script phases inside Xcode.
3
- # To customize your local environment, you can create an `.xcode.env.local`
4
- # file that is not versioned.
5
-
6
- # NODE_BINARY variable contains the PATH to the node executable.
7
- #
8
- # Customize the NODE_BINARY variable here.
9
- # For example, to use nvm with brew, add the following line
10
- # . "$(brew --prefix nvm)/nvm.sh" --no-use
11
- export NODE_BINARY=$(command -v node)
@@ -1,15 +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>PW_APP_GROUPS_NAME</key>
6
- <string></string>
7
- <key>NSExtension</key>
8
- <dict>
9
- <key>NSExtensionPointIdentifier</key>
10
- <string>com.apple.usernotifications.service</string>
11
- <key>NSExtensionPrincipalClass</key>
12
- <string>$(PRODUCT_MODULE_NAME).NotificationService</string>
13
- </dict>
14
- </dict>
15
- </plist>
@@ -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>com.apple.security.application-groups</key>
6
- <array/>
7
- </dict>
8
- </plist>
@@ -1,38 +0,0 @@
1
- //
2
- // NotificationService.swift
3
- // NotificationService
4
- //
5
- // Created by Andrew Kis on 15.5.24..
6
- //
7
-
8
- import UserNotifications
9
- import PushwooshFramework
10
-
11
- /**
12
- Setting up Badges for Flutter
13
- docs: https://docs.pushwoosh.com/platform-docs/pushwoosh-sdk/cross-platform-frameworks/react-native/integrating-react-native-plugin
14
-
15
- 1. Add App Groups capability to both Runner and NotificationService targets and add a new group with the same name for both targets
16
- 2. Add PW_APP_GROUPS_NAME info.plist flag to both Main Target and NotificationService targets with the group name as its string value
17
- 7. Add code
18
- */
19
-
20
- class NotificationService: UNNotificationServiceExtension {
21
-
22
- var contentHandler: ((UNNotificationContent) -> Void)?
23
- var bestAttemptContent: UNMutableNotificationContent?
24
-
25
- override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
26
-
27
- PWNotificationExtensionManager.shared().handle(request, contentHandler: contentHandler)
28
- }
29
-
30
- override func serviceExtensionTimeWillExpire() {
31
- // Called just before the extension will be terminated by the system.
32
- // Use this as an opportunity to deliver your "best attempt" at modified content, otherwise the original push payload will be used.
33
- if let contentHandler = contentHandler, let bestAttemptContent = bestAttemptContent {
34
- contentHandler(bestAttemptContent)
35
- }
36
- }
37
-
38
- }
@@ -1,40 +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 'demoapp' do
18
- config = use_native_modules!
19
-
20
- use_react_native!(
21
- :path => config[:reactNativePath],
22
- # An absolute path to your application root.
23
- :app_path => "#{Pod::Config.instance.installation_root}/.."
24
- )
25
-
26
- target 'demoappTests' do
27
- inherit! :complete
28
- # Pods for testing
29
- end
30
-
31
- post_install do |installer|
32
- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
33
- react_native_post_install(
34
- installer,
35
- config[:reactNativePath],
36
- :mac_catalyst_enabled => false,
37
- # :ccache_enabled => true
38
- )
39
- end
40
- end
@@ -1,6 +0,0 @@
1
- #import <RCTAppDelegate.h>
2
- #import <UIKit/UIKit.h>
3
-
4
- @interface AppDelegate : RCTAppDelegate
5
-
6
- @end
@@ -1,31 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBundleURLProvider.h>
4
-
5
- @implementation AppDelegate
6
-
7
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
8
- {
9
- self.moduleName = @"demoapp";
10
- // You can add your custom initial props in the dictionary below.
11
- // They will be passed down to the ViewController used by React Native.
12
- self.initialProps = @{};
13
-
14
- return [super application:application didFinishLaunchingWithOptions:launchOptions];
15
- }
16
-
17
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18
- {
19
- return [self bundleURL];
20
- }
21
-
22
- - (NSURL *)bundleURL
23
- {
24
- #if DEBUG
25
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
26
- #else
27
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
28
- #endif
29
- }
30
-
31
- @end
@@ -1,53 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "scale" : "2x",
6
- "size" : "20x20"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "scale" : "3x",
11
- "size" : "20x20"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "scale" : "2x",
16
- "size" : "29x29"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "scale" : "3x",
21
- "size" : "29x29"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "scale" : "2x",
26
- "size" : "40x40"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "scale" : "3x",
31
- "size" : "40x40"
32
- },
33
- {
34
- "idiom" : "iphone",
35
- "scale" : "2x",
36
- "size" : "60x60"
37
- },
38
- {
39
- "idiom" : "iphone",
40
- "scale" : "3x",
41
- "size" : "60x60"
42
- },
43
- {
44
- "idiom" : "ios-marketing",
45
- "scale" : "1x",
46
- "size" : "1024x1024"
47
- }
48
- ],
49
- "info" : {
50
- "author" : "xcode",
51
- "version" : 1
52
- }
53
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,57 +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>PW_APP_GROUPS_NAME</key>
6
- <string></string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleDisplayName</key>
10
- <string>demoapp</string>
11
- <key>CFBundleExecutable</key>
12
- <string>$(EXECUTABLE_NAME)</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>$(PRODUCT_NAME)</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>$(MARKETING_VERSION)</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleVersion</key>
26
- <string>$(CURRENT_PROJECT_VERSION)</string>
27
- <key>LSRequiresIPhoneOS</key>
28
- <true/>
29
- <key>NSAppTransportSecurity</key>
30
- <dict>
31
- <key>NSAllowsArbitraryLoads</key>
32
- <false/>
33
- <key>NSAllowsLocalNetworking</key>
34
- <true/>
35
- </dict>
36
- <key>NSLocationWhenInUseUsageDescription</key>
37
- <string></string>
38
- <key>UIBackgroundModes</key>
39
- <array>
40
- <string>remote-notification</string>
41
- </array>
42
- <key>UILaunchStoryboardName</key>
43
- <string>LaunchScreen</string>
44
- <key>UIRequiredDeviceCapabilities</key>
45
- <array>
46
- <string>arm64</string>
47
- </array>
48
- <key>UISupportedInterfaceOrientations</key>
49
- <array>
50
- <string>UIInterfaceOrientationPortrait</string>
51
- <string>UIInterfaceOrientationLandscapeLeft</string>
52
- <string>UIInterfaceOrientationLandscapeRight</string>
53
- </array>
54
- <key>UIViewControllerBasedStatusBarAppearance</key>
55
- <false/>
56
- </dict>
57
- </plist>