From f8cbcb2908624469c7b8dda61784ee843ceded46 Mon Sep 17 00:00:00 2001 From: Maarten Date: Mon, 12 Aug 2024 13:06:11 +0200 Subject: [PATCH] Update notification icon --- .../ic_stat_onesignal_default.png | Bin 0 -> 682 bytes .../ic_stat_onesignal_default.png | Bin 0 -> 473 bytes .../ic_stat_onesignal_default.png | Bin 0 -> 768 bytes .../ic_stat_onesignal_default.png | Bin 0 -> 1281 bytes .../ic_stat_onesignal_default.png | Bin 0 -> 1135 bytes app.json | 9 + assets/images/ic_stat_onesignal_default.png | Bin 0 -> 1520 bytes ios/Kliko.xcodeproj/project.pbxproj | 210 +++++++++++++++--- ios/Kliko/Info.plist | 4 + ios/Kliko/Kliko.entitlements | 9 +- .../NotificationService.h | 8 + .../NotificationService.m | 29 +++ ...nalNotificationServiceExtension-Info.plist | 31 +++ ...lNotificationServiceExtension.entitlements | 10 + package.json | 1 + yarn.lock | 40 +++- 16 files changed, 316 insertions(+), 35 deletions(-) create mode 100644 android/app/src/main/res/drawable-hdpi/ic_stat_onesignal_default.png create mode 100644 android/app/src/main/res/drawable-mdpi/ic_stat_onesignal_default.png create mode 100644 android/app/src/main/res/drawable-xhdpi/ic_stat_onesignal_default.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/ic_stat_onesignal_default.png create mode 100644 android/app/src/main/res/drawable-xxxhdpi/ic_stat_onesignal_default.png create mode 100644 assets/images/ic_stat_onesignal_default.png create mode 100644 ios/OneSignalNotificationServiceExtension/NotificationService.h create mode 100644 ios/OneSignalNotificationServiceExtension/NotificationService.m create mode 100644 ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist create mode 100644 ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements diff --git a/android/app/src/main/res/drawable-hdpi/ic_stat_onesignal_default.png b/android/app/src/main/res/drawable-hdpi/ic_stat_onesignal_default.png new file mode 100644 index 0000000000000000000000000000000000000000..8adf58da6663ab9ef92a756fdc590716cfbbaa81 GIT binary patch literal 682 zcmV;b0#*HqP)_9oYrOGtwQ1CP(Sh&AAKOB_}} z&>4cx5Ojv15so9UAZVo6S_Kvajc}mHU_j8w?80aS3G88ihVSc~c z9c4$uP{DzLcc8KN=X{_O88C^tZ)GL+a#hHB}OTA_8$=348?ZHB83jp{t4nx1R=%6 ztpt~*Afk(85mQpA!CKlFu4k_=23*2%zhLa$^Jw%?ENAZUSABN;OPwyy-{o#@yG@gh z!llXDt@Dq*6F?(Cv7E_{B+g74y1h=v&vyNxxBvSTy;b7Y(0nOhU8IXa0NYHy*l4fj z=+D{F#5n`1bQ1zx8!NQwQ`}6=Kfb;21|K27gUi$R=~L<6@*Dw#hzSuBLNI6zqauVr z7h?qlAp|Y=#|{cY#Ds_m3Q2pEFbE2wNtF-?3fntPmw%*-d5D4#f}}n24Fw?tTh4j| z1tDU>(QE;WmJw&;*J_FY!VwI{(yxK+fH8Dqt}^jy;q$X$e1!jG>h{X6=S~1urtU7~ z6V|a;wZ_sDd;|s2bb2{B*o$eRxz|sRTXeWy3)@UM_!uap2Tts6I%}xxAMRySvEwgm z&G#RQ<;+*dYo#5pmBYtC;bi*a(@ke>h8|q6&DF8O)W^o#3#I&Wg#dp51{ZS*=^y*= P00000NkvXXu0mjfm4w>7 literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xhdpi/ic_stat_onesignal_default.png b/android/app/src/main/res/drawable-xhdpi/ic_stat_onesignal_default.png new file mode 100644 index 0000000000000000000000000000000000000000..b9e731642c02acea1d7d1b10ef6745405146153b GIT binary patch literal 768 zcmV+b1ONPqP)KPQan(#ccQJp3+CCE}LHgc5(qbLq&_?N^HKFH%y7JWtj| zS;-&wOY=N2a$1bdPFb6caUMo7?VshJ{l2!d-!HEhPN(sgLQ!84e~1L*MReehxp;kT z)02MuVXl9B&E)(QCs3rJsP1D`&Y62#c8?x7{~+z$dsV!tFny{pJS!f=LH7 z6ojI_7@(7S1`v(};~E_hEDA+^I-p}Sf<=RJ#_Z(Z2~Qceasd_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~@M4res9ej~^(Cb?n^pBR*1)B->?81@ajgjX)Mq3|wV!&ZToRb63xQrvNVr#-Qb~ zZyp5PfQx^KnY_4k`ox5XiX!M|FR#Crf3x{w0A5lVgYNxVbP~t`EIi=^a$_bhdf3=r z9n{=e8`Rz7$#3gw;6Z&cC$H@K7}$arOh}TF5n%!B46}r&7e1|Syxs2UY0Kn^Jq}yR z=5t5t+|JKW)E?e4D;|o{n6hm}u#&GhKEc^T!K-i@8_Gk|QDH4(_9&(!g;4>m2{Ux*h}Bnk8j>FK4XtE;EOpJ7zn zQkM91^r|pb_`B;`?^~*xN;7jVY&OS5F5CC*wH=-OEuVgWG~aT?M5g591r>Ep*>!wYJLxU5@!UrmnSf{2nS2f={3xqHNekk3WaVIP>W7~7bl=`;cmmj*c reQSB+_3`wHHpjCy?PwYX!~gCtgk^UXLBy9M00000NkvXXu0mjfVn1cf literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_stat_onesignal_default.png b/android/app/src/main/res/drawable-xxxhdpi/ic_stat_onesignal_default.png new file mode 100644 index 0000000000000000000000000000000000000000..dbb2c82f7a0a83822a47df1c15766fd7c78c5aa7 GIT binary patch literal 1135 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U@`M_aSW+oe0wlABeYcJz{mIh zx37+V*%m%`srPK<+QLhg3u_|WUN@Q^l=I8i;o({(E;%hwCf>zm!K8MU*R25_tdS}% z=})=O3QbutjjEgmoT#$tGmJb9wC3Kj;7F{jRmsSUSbJZ4T?i=>e@5 z`gtWQ%D;bl@nWUz_xaZKld^pD&ON#K^L4n{wf^dfG7?21E^$J?HYPGSK2g0g1E^d~ zLdSd3l79z2o_`j&sqp$ISzF_I?~@p!`Sa z1?uHdTqr*qWSj7mU^eci6W$V!ob1g~90I26eo1zAYw7tK|HAsPz_&w(-gch|kd@4i z+VFg;z1|l?5!>3|?LHEBx3%zyp1ASye!rneYh8|$&89Ggb$ivOw_%UPaISujUvN^nz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muPPD>P=$@(Box4prK(6MKovHA zlTZLZmZ~D509DxdO+o?uScViSHhLk6j*1~WvgWRka7JgoqXp2wtv8 zc4asE7sNQgo{C1S013X*(+PD-B2qx8@TJzV!Sw=3yZZ^Q%(w=VyV@zOvXHKpDhHQ6 z?k$bFDQd4=PVOaJjydBq$-(o5dBbA^vsTH^I1wkrlcs~ zyWc$N;txwpV75MV@Tq&^9{i97%FqH{KKZcl=NPwp7aA+s&+m^mn)Ahi_t!>h;X=UIOu*#d<6V2|Twx_Z z-2Bqp-6VfS)qh1eF#JpXe$VQ)fhLwLTuBO6Rf85OXmDy-;Q(z~5OS6$fG0rb>i8EJ W&2E22;AMjV0000 /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; + 1601BB34E78E87632E7FDF80 /* [Expo] Configure project */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[Expo] Configure project"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-Kliko/expo-configure-project.sh\"\n"; + }; 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -281,7 +383,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Kliko/Pods-Kliko-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 871FA7B8EA66275AE1BD0AD6 /* [CP] Embed Pods Frameworks */ = { + E8BF83328D9A2B416CFD2AD8 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -329,25 +431,6 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Kliko/Pods-Kliko-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - F68469FA83396F0C6D57DB0C /* [Expo] Configure project */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "[Expo] Configure project"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-Kliko/expo-configure-project.sh\"\n"; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -358,12 +441,28 @@ 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, 13B07FC11A68108700A75B9A /* main.m in Sources */, B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */, - FFF4C134B3884EE18974C4FF /* noop-file.swift in Sources */, + 822BCEAAC39946FBBA362C40 /* noop-file.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 70069E98311C4D0EAEFAED17 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 81CE43F87C754C24A88C5E62 /* NotificationService.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 8F24380ABC06479FBEDDC50E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F1BE1B47B0FE49DBA94FF2D2 /* OneSignalNotificationServiceExtension */; + targetProxy = 195D8FBF0BAB47DB9920EDFF /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin XCBuildConfiguration section */ 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; @@ -425,6 +524,23 @@ }; name = Release; }; + 1F4FC9398E94457E8BDA20D2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = undefined; + INFOPLIST_FILE = "OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; + PRODUCT_BUNDLE_IDENTIFIER = nl.maartenvr98.kliko.OneSignalNotificationServiceExtension; + PRODUCT_NAME = OneSignalNotificationServiceExtension; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; 83CBBA201A601CBA00E9B192 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -550,6 +666,27 @@ }; name = Release; }; + F1C3254570E44E0CB5CEC2BA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = undefined; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; + PRODUCT_BUNDLE_IDENTIFIER = nl.maartenvr98.kliko.OneSignalNotificationServiceExtension; + PRODUCT_NAME = OneSignalNotificationServiceExtension; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -562,6 +699,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 7777515550CE4FB481B09AD4 /* Build configuration list for PBXNativeTarget "OneSignalNotificationServiceExtension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F1C3254570E44E0CB5CEC2BA /* Debug */, + 1F4FC9398E94457E8BDA20D2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Kliko" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/ios/Kliko/Info.plist b/ios/Kliko/Info.plist index c70baa2..95aa6e3 100644 --- a/ios/Kliko/Info.plist +++ b/ios/Kliko/Info.plist @@ -55,6 +55,10 @@ $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + UIBackgroundModes + + remote-notification + UILaunchStoryboardName SplashScreen UIRequiredDeviceCapabilities diff --git a/ios/Kliko/Kliko.entitlements b/ios/Kliko/Kliko.entitlements index f683276..442fad7 100644 --- a/ios/Kliko/Kliko.entitlements +++ b/ios/Kliko/Kliko.entitlements @@ -1,5 +1,12 @@ - + + aps-environment + production + com.apple.security.application-groups + + group.nl.maartenvr98.kliko.onesignal + + \ No newline at end of file diff --git a/ios/OneSignalNotificationServiceExtension/NotificationService.h b/ios/OneSignalNotificationServiceExtension/NotificationService.h new file mode 100644 index 0000000..4d71f3b --- /dev/null +++ b/ios/OneSignalNotificationServiceExtension/NotificationService.h @@ -0,0 +1,8 @@ +// NotificationService.h +// OneSignalNotificationServiceExtension + +#import + +@interface NotificationService : UNNotificationServiceExtension + +@end diff --git a/ios/OneSignalNotificationServiceExtension/NotificationService.m b/ios/OneSignalNotificationServiceExtension/NotificationService.m new file mode 100644 index 0000000..dc5de87 --- /dev/null +++ b/ios/OneSignalNotificationServiceExtension/NotificationService.m @@ -0,0 +1,29 @@ +#import + +#import "NotificationService.h" + +@interface NotificationService () + +@property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver); +@property (nonatomic, strong) UNNotificationRequest *receivedRequest; +@property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent; + +@end + +@implementation NotificationService + +- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler { + self.receivedRequest = request; + self.contentHandler = contentHandler; + self.bestAttemptContent = [request.content mutableCopy]; + [OneSignal didReceiveNotificationExtensionRequest:self.receivedRequest + withMutableNotificationContent:self.bestAttemptContent + withContentHandler:self.contentHandler]; +} + +- (void)serviceExtensionTimeWillExpire { + [OneSignal serviceExtensionTimeWillExpireRequest:self.receivedRequest withMutableNotificationContent:self.bestAttemptContent]; + self.contentHandler(self.bestAttemptContent); +} + +@end diff --git a/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist b/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist new file mode 100644 index 0000000..5be0bfa --- /dev/null +++ b/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension-Info.plist @@ -0,0 +1,31 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + OneSignalNotificationServiceExtension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionPointIdentifier + com.apple.usernotifications.service + NSExtensionPrincipalClass + NotificationService + + + \ No newline at end of file diff --git a/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements b/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements new file mode 100644 index 0000000..6ccdb6e --- /dev/null +++ b/ios/OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + group.nl.maartenvr98.kliko.onesignal + + + diff --git a/package.json b/package.json index 63334b3..b481023 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "expo-system-ui": "~3.0.7", "expo-web-browser": "~13.0.3", "install": "^0.13.0", + "onesignal-expo-plugin": "^2.0.3", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.74.3", diff --git a/yarn.lock b/yarn.lock index 7210111..5398c4d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -997,6 +997,23 @@ dotenv-expand "~11.0.6" getenv "^1.0.0" +"@expo/image-utils@^0.3.22": + version "0.3.23" + resolved "https://registry.yarnpkg.com/@expo/image-utils/-/image-utils-0.3.23.tgz#f14fd7e1f5ff6f8e4911a41e27dd274470665c3f" + integrity sha512-nhUVvW0TrRE4jtWzHQl8TR4ox7kcmrc2I0itaeJGjxF5A54uk7avgA0wRt7jP1rdvqQo1Ke1lXyLYREdhN9tPw== + dependencies: + "@expo/spawn-async" "1.5.0" + chalk "^4.0.0" + fs-extra "9.0.0" + getenv "^1.0.0" + jimp-compact "0.16.1" + mime "^2.4.4" + node-fetch "^2.6.0" + parse-png "^2.1.0" + resolve-from "^5.0.0" + semver "7.3.2" + tempy "0.3.0" + "@expo/image-utils@^0.5.0": version "0.5.1" resolved "https://registry.npmjs.org/@expo/image-utils/-/image-utils-0.5.1.tgz" @@ -1172,6 +1189,13 @@ debug "^4.3.4" source-map-support "~0.5.21" +"@expo/spawn-async@1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@expo/spawn-async/-/spawn-async-1.5.0.tgz#799827edd8c10ef07eb1a2ff9dcfe081d596a395" + integrity sha512-LB7jWkqrHo+5fJHNrLAFdimuSXQ2MQ4lA7SQW5bf/HbsXuV2VrT/jN/M8f/KoWt0uJMGN4k/j7Opx4AvOOxSew== + dependencies: + cross-spawn "^6.0.5" + "@expo/spawn-async@^1.7.2": version "1.7.2" resolved "https://registry.npmjs.org/@expo/spawn-async/-/spawn-async-1.7.2.tgz" @@ -3448,7 +3472,7 @@ cross-fetch@^3.1.5: dependencies: node-fetch "^2.6.12" -cross-spawn@^6.0.0: +cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -6522,7 +6546,7 @@ mime@1.6.0: resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -mime@^2.4.1: +mime@^2.4.1, mime@^2.4.4: version "2.6.0" resolved "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== @@ -6854,6 +6878,13 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" +onesignal-expo-plugin@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/onesignal-expo-plugin/-/onesignal-expo-plugin-2.0.3.tgz#bc0d2f5e4769a767fd138e3b273a56f139cd8073" + integrity sha512-1T+AFCZF0l2FTNJBN6YPsnQggu1wvyMN9Ay66DTb6uoa5287S0624AEcVBwLczId1hI1odgn08gHX2X51io1Og== + dependencies: + "@expo/image-utils" "^0.3.22" + onetime@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz" @@ -7927,6 +7958,11 @@ selfsigned@^2.4.1: "@types/node-forge" "^1.3.0" node-forge "^1" +semver@7.3.2: + version "7.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + semver@^5.5.0, semver@^5.6.0: version "5.7.2" resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz"