This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare type ClientSecretParams = { | |
paymentIntentClientSecret: string; | |
setupIntentClientSecret?: undefined; | |
} | { | |
setupIntentClientSecret: string; | |
paymentIntentClientSecret?: undefined; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip | |
# under public domain terms | |
country_bounding_boxes = { | |
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)), | |
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)), | |
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)), | |
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)), | |
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)), | |
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ConfigureESCustom": { | |
"Type": "Custom::ConfigureES", | |
"Properties": { | |
"ServiceToken": { | |
"Fn::GetAtt": ["ConfigureES", "Arn"] | |
} | |
} | |
}, | |
"ConfigureES": { | |
"Type": "AWS::Lambda::Function", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RNFetchBlob from 'rn-fetch-blob'; | |
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir; | |
const storagePath = `${DocumentDir}/persistStore`; | |
const encoding = 'utf8'; | |
const toFileName = (name: string) => name.split(':').join('-'); | |
const fromFileName = (name: string) => name.split('-').join(':'); | |
const pathForKey = (key: string) => `${storagePath}/${toFileName(key)}`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width," /> | |
<style> | |
body { | |
margin: 0; | |
} | |
.container { | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java | |
index 0af7fe0..d7c0946 100644 | |
--- a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java | |
+++ b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java | |
@@ -16,6 +16,10 @@ import expo.modules.notifications.notifications.model.NotificationContent; | |
public class JSONNotificationContentBuilder extends NotificationContent.Builder { | |
private static final String TITLE_KEY = "title"; | |
private static final String TEXT_KEY = "message"; | |
+ | |
+ private static final String TITLE_PINPOINT_KEY = "pinpoint.notification.title"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...rest of your.yaml | |
# do not forget to add secrets into Github Actions! | |
- name: 🚀 Configure backend environment | |
run: | | |
yarn global add @aws-amplify/[email protected] | |
which amplify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
package com.reactnativecommunity.cameraroll; | |
import android.content.ContentResolver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export SENTRY_LOG_LEVEL=debug | |
export EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\" | |
# you can set here sentry_properties, but I am not doing so as I am using global .sentryclirc file | |
#export PROJECT_ROOT=../ | |
export NODE_BINARY=$(which node) | |
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ../node_modules/react-native/scripts/react-native-xcode.sh --force-foreground | |
# uncomment line below if you are coming from expo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Firebase Config using base64 | |
echo "Injecting secrets..." | |
echo "Updating Google JSON" | |
echo $GoogleServicesJson | base64 --decode >"$APPCENTER_SOURCE_DIRECTORY/android/app/google-services.json" | |
echo "Updating Google plist" | |
echo $GoogleServicesPlist | base64 --decode >"$APPCENTER_SOURCE_DIRECTORY/ios/GoogleService-Info.plist" | |
echo "Finished injecting secrets..." | |
echo "Google Services" | |
cat "$APPCENTER_SOURCE_DIRECTORY/ios/GoogleService-Info.plist" |
NewerOlder