Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
React native notifications (#43)
Browse files Browse the repository at this point in the history
* [AUD-267] Add react native notification support

* Finish up

* Bump build and fix random open triggerr

* Add favorites

* Fix matrix top bar

* Bump build number

* Revert .* change to webapp

* Revert CI changes

* Put back relevant CI change
  • Loading branch information
raymondjacobson committed Feb 27, 2021
1 parent c317b2c commit 91d26c0
Show file tree
Hide file tree
Showing 101 changed files with 4,722 additions and 75 deletions.
2 changes: 2 additions & 0 deletions packages/mobile/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
- run:
name: copy staging env
command: |
cp .env.stage.tmpl .env.stage
echo "FCM_SENDER_ID=$FCM_SENDER_ID" >> .env.stage
echo "SEGMENT_IOS_WRITE_KEY=$SEGMENT_IOS_WRITE_KEY_STAGING" >> .env.stage
echo "SEGMENT_ANDROID_WRITE_KEY=$SEGMENT_ANDROID_WRITE_KEY_STAGING" >> .env.stage
- run:
name: copy production env
command: |
cp .env.prod.tmpl .env.prod
echo "FCM_SENDER_ID=$FCM_SENDER_ID" >> .env.prod
echo "SEGMENT_IOS_WRITE_KEY=$SEGMENT_IOS_WRITE_KEY" >> .env.prod
echo "SEGMENT_ANDROID_WRITE_KEY=$SEGMENT_ANDROID_WRITE_KEY" >> .env.prod
Expand Down
6 changes: 6 additions & 0 deletions packages/mobile/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FCM_SENDER_ID=948523597847
IS_PRODUCTION=true
SEGMENT_IOS_WRITE_KEY=6YDr4bbflWpcAvkRoOHjfRHvcvGbBJLa
SEGMENT_ANDROID_WRITE_KEY=bfW08Hx86mXRYDc0rBApL62ohYJlmwUY

STATIC_SERVER_PORT=3100
4 changes: 3 additions & 1 deletion packages/mobile/.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FCM_SENDER_ID=123456789012
SEGMENT_IOS_WRITE_KEY=abcdef
SEGMENT_ANDROID_WRITE_KEY=abcdef

URL_OVERRIDE=http://localhost:3000
URL_OVERRIDE=http://localhost:3001
USER_METADATA_NODE=https://usermetadata.staging.audius.co
AUDIUS_URL=https://staging.audius.co
8 changes: 3 additions & 5 deletions packages/mobile/.env.prod.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FCM_SENDER_ID=
SEGMENT_IOS_WRITE_KEY=
SEGMENT_ANDROID_WRITE_KEY=

IS_PRODUCTION=true
STATIC_SERVER_PORT=3100
STATIC_SERVER_PORT=3100
USER_METADATA_NODE=https://usermetadata.audius.co
AUDIUS_URL=https://audius.co
8 changes: 3 additions & 5 deletions packages/mobile/.env.stage.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FCM_SENDER_ID=
SEGMENT_IOS_WRITE_KEY=
SEGMENT_ANDROID_WRITE_KEY=

IS_PRODUCTION=true
STATIC_SERVER_PORT=3101
STATIC_SERVER_PORT=3101
USER_METADATA_NODE=https://usermetadata.audius.co
AUDIUS_URL=https://staging.audius.co
1 change: 1 addition & 0 deletions packages/mobile/.eslintcache

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions packages/mobile/.svgrrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"replaceAttrValues": {
"#000": "{props.fill}"
}
}
2 changes: 2 additions & 0 deletions packages/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ npm run ios
npm run ios:dev
# Run the app on a device
npm run ios:device "Raymond's iPhone"
# To see available devices
xcrun xctrace list devices
```

**Android**
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
51 changes: 42 additions & 9 deletions packages/mobile/ios/AudiusReactNative.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
13B32CE723D2782B002F0526 /* SampleSwiftFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13B32CE623D2782B002F0526 /* SampleSwiftFile.swift */; };
3090F66787A049B79B70C360 /* libPods-AudiusReactNative.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4AAF0FC799BFBB3171EC02F5 /* libPods-AudiusReactNative.a */; };
32FE1B49FE7E47B69CF28E06 /* AvenirNextLTPro-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = EA6D8E31A68B4451B423AFF0 /* AvenirNextLTPro-Bold.otf */; };
5983D8FED74747CCA45F8FC4 /* AvenirNextLTPro-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 33E11CC84EEA4109B8A1AE2C /* AvenirNextLTPro-Medium.otf */; };
838AABE023CE3813004B2DA3 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 838AABDF23CE3813004B2DA3 /* GoogleService-Info.plist */; };
83D3A5322399E3290084E702 /* Web.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 83D3A5312399E3290084E702 /* Web.bundle */; };
83F7359F23C55C2D0040A4C5 /* AirplayViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 83F7359E23C55C2D0040A4C5 /* AirplayViewManager.m */; };
83F735A523C64C950040A4C5 /* AirplayEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 83F735A423C64C950040A4C5 /* AirplayEvent.m */; };
83FB60B623A4351D00DC2238 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; };
9204DC5D38C1495FA330CF12 /* AvenirNextLTPro-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 6F65A9A9BAD047FABD240C59 /* AvenirNextLTPro-Regular.otf */; };
A30E10E3AF254D4881C3A2B8 /* AvenirNextLTPro-Demi-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 8B498DEFE0774F838F5214A5 /* AvenirNextLTPro-Demi-Bold.otf */; };
C48560F6F96345AC8C69506F /* AvenirNextLTPro-Heavy.otf in Resources */ = {isa = PBXBuildFile; fileRef = D40C2F0A0A4641D18D426558 /* AvenirNextLTPro-Heavy.otf */; };
CFE33B15004249189EB75CDC /* AvenirNextLTPro-UltLt.otf in Resources */ = {isa = PBXBuildFile; fileRef = D83DC634C3DC44B588896E10 /* AvenirNextLTPro-UltLt.otf */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -34,24 +40,30 @@
13B32CE523D2782A002F0526 /* AudiusReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AudiusReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
13B32CE623D2782B002F0526 /* SampleSwiftFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSwiftFile.swift; sourceTree = "<group>"; };
22B7D9D67FF4356AF18C514B /* Pods-AudiusReactNative-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative-tvOS.release.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative-tvOS/Pods-AudiusReactNative-tvOS.release.xcconfig"; sourceTree = "<group>"; };
33E11CC84EEA4109B8A1AE2C /* AvenirNextLTPro-Medium.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-Medium.otf"; path = "../src/assets/fonts/AvenirNextLTPro-Medium.otf"; sourceTree = "<group>"; };
4AAF0FC799BFBB3171EC02F5 /* libPods-AudiusReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AudiusReactNative.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6758EEA9DAB0AAADA5F67998 /* Pods-AudiusReactNativeTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNativeTests.release.xcconfig"; path = "Target Support Files/Pods-AudiusReactNativeTests/Pods-AudiusReactNativeTests.release.xcconfig"; sourceTree = "<group>"; };
6B452D6802C4306F053EB3EB /* Pods-AudiusReactNative.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative.release.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative/Pods-AudiusReactNative.release.xcconfig"; sourceTree = "<group>"; };
6C8083B6CFC29BD00A625F7C /* Pods-AudiusReactNative.bounce.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative.bounce.debug.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative/Pods-AudiusReactNative.bounce.debug.xcconfig"; sourceTree = "<group>"; };
6F65A9A9BAD047FABD240C59 /* AvenirNextLTPro-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-Regular.otf"; path = "../src/assets/fonts/AvenirNextLTPro-Regular.otf"; sourceTree = "<group>"; };
81727C58BC36D2467C693B1F /* Pods-AudiusReactNative-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative-tvOS/Pods-AudiusReactNative-tvOS.debug.xcconfig"; sourceTree = "<group>"; };
838AABDF23CE3813004B2DA3 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
83D3A5312399E3290084E702 /* Web.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Web.bundle; path = "../web-app/Web.bundle"; sourceTree = "<group>"; };
83E8F64123F6101600817622 /* libRNAnalytics.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNAnalytics.a; sourceTree = BUILT_PRODUCTS_DIR; };
83F7359E23C55C2D0040A4C5 /* AirplayViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AirplayViewManager.m; sourceTree = "<group>"; };
83F735A423C64C950040A4C5 /* AirplayEvent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AirplayEvent.m; sourceTree = "<group>"; };
8A8648EE0E082759D49DC3B2 /* libPods-AudiusReactNative-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AudiusReactNative-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
8B498DEFE0774F838F5214A5 /* AvenirNextLTPro-Demi-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-Demi-Bold.otf"; path = "../src/assets/fonts/AvenirNextLTPro-Demi-Bold.otf"; sourceTree = "<group>"; };
8D6F4FDAE2D3D6B687E5388B /* Pods-AudiusReactNative.bounce.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative.bounce.release.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative/Pods-AudiusReactNative.bounce.release.xcconfig"; sourceTree = "<group>"; };
9D4842FCB22727CC9A1C85EE /* Pods-AudiusReactNative-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative-tvOSTests/Pods-AudiusReactNative-tvOSTests.release.xcconfig"; sourceTree = "<group>"; };
9F035DB660458A6B6919AC4D /* Pods-AudiusReactNative.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative.debug.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative/Pods-AudiusReactNative.debug.xcconfig"; sourceTree = "<group>"; };
A20D1DBF23ABDA2B003D6530 /* Audius Music.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = "Audius Music.entitlements"; path = "AudiusReactNative/Audius Music.entitlements"; sourceTree = "<group>"; };
B7134F32482EE9B86C0C9B35 /* libPods-AudiusReactNativeTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AudiusReactNativeTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
C5DD43C367062E89734346EE /* Pods-AudiusReactNative-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNative-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-AudiusReactNative-tvOSTests/Pods-AudiusReactNative-tvOSTests.debug.xcconfig"; sourceTree = "<group>"; };
D40C2F0A0A4641D18D426558 /* AvenirNextLTPro-Heavy.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-Heavy.otf"; path = "../src/assets/fonts/AvenirNextLTPro-Heavy.otf"; sourceTree = "<group>"; };
D83DC634C3DC44B588896E10 /* AvenirNextLTPro-UltLt.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-UltLt.otf"; path = "../src/assets/fonts/AvenirNextLTPro-UltLt.otf"; sourceTree = "<group>"; };
E0514290BB2B2D972992B845 /* Pods-AudiusReactNativeTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AudiusReactNativeTests.debug.xcconfig"; path = "Target Support Files/Pods-AudiusReactNativeTests/Pods-AudiusReactNativeTests.debug.xcconfig"; sourceTree = "<group>"; };
EA6D8E31A68B4451B423AFF0 /* AvenirNextLTPro-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "AvenirNextLTPro-Bold.otf"; path = "../src/assets/fonts/AvenirNextLTPro-Bold.otf"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
F4166EE30A59971CE3EBA18B /* libPods-AudiusReactNative-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AudiusReactNative-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -137,6 +149,7 @@
2D16E6871FA4F8E400B85C8A /* Frameworks */,
9203ADA7911C8949B98165F4 /* Pods */,
13B32CE523D2782A002F0526 /* AudiusReactNative-Bridging-Header.h */,
A5F065694F9E40CE97972CFA /* Resources */,
);
indentWidth = 2;
sourceTree = "<group>";
Expand Down Expand Up @@ -168,6 +181,20 @@
path = Pods;
sourceTree = "<group>";
};
A5F065694F9E40CE97972CFA /* Resources */ = {
isa = PBXGroup;
children = (
EA6D8E31A68B4451B423AFF0 /* AvenirNextLTPro-Bold.otf */,
8B498DEFE0774F838F5214A5 /* AvenirNextLTPro-Demi-Bold.otf */,
D40C2F0A0A4641D18D426558 /* AvenirNextLTPro-Heavy.otf */,
33E11CC84EEA4109B8A1AE2C /* AvenirNextLTPro-Medium.otf */,
6F65A9A9BAD047FABD240C59 /* AvenirNextLTPro-Regular.otf */,
D83DC634C3DC44B588896E10 /* AvenirNextLTPro-UltLt.otf */,
);
name = Resources;
path = "";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -199,7 +226,7 @@
83CBB9F71A601CBA00E9B192 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0940;
LastUpgradeCheck = 940;
ORGANIZATIONNAME = Facebook;
TargetAttributes = {
13B07F861A680F5B00A75B9A = {
Expand Down Expand Up @@ -238,6 +265,12 @@
838AABE023CE3813004B2DA3 /* GoogleService-Info.plist in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
32FE1B49FE7E47B69CF28E06 /* AvenirNextLTPro-Bold.otf in Resources */,
A30E10E3AF254D4881C3A2B8 /* AvenirNextLTPro-Demi-Bold.otf in Resources */,
C48560F6F96345AC8C69506F /* AvenirNextLTPro-Heavy.otf in Resources */,
5983D8FED74747CCA45F8FC4 /* AvenirNextLTPro-Medium.otf in Resources */,
9204DC5D38C1495FA330CF12 /* AvenirNextLTPro-Regular.otf in Resources */,
CFE33B15004249189EB75CDC /* AvenirNextLTPro-UltLt.otf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -377,13 +410,13 @@
BUNDLE_ID_SUFFIX = "";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "AudiusReactNative/Audius Music.entitlements";
CURRENT_PROJECT_VERSION = 125;
CURRENT_PROJECT_VERSION = 131;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = LRFCG93S85;
INFOPLIST_FILE = AudiusReactNative/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.46;
MARKETING_VERSION = 1.0.47;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -409,12 +442,12 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "AudiusReactNative/Audius Music.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 125;
CURRENT_PROJECT_VERSION = 131;
DEVELOPMENT_TEAM = LRFCG93S85;
INFOPLIST_FILE = AudiusReactNative/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.46;
MARKETING_VERSION = 1.0.47;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -597,13 +630,13 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "AudiusReactNative/Audius Music.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 125;
CURRENT_PROJECT_VERSION = 131;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = LRFCG93S85;
INFOPLIST_FILE = AudiusReactNative/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.46;
MARKETING_VERSION = 1.0.47;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -677,12 +710,12 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "AudiusReactNative/Audius Music.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 125;
CURRENT_PROJECT_VERSION = 131;
DEVELOPMENT_TEAM = LRFCG93S85;
INFOPLIST_FILE = AudiusReactNative/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.46;
MARKETING_VERSION = 1.0.47;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
13 changes: 11 additions & 2 deletions packages/mobile/ios/AudiusReactNative/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>125</string>
<string>131</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand All @@ -49,7 +49,7 @@
<key>NSCameraUsageDescription</key>
<string>This lets you take photos for uploading to Audius, including setting your profile picture and track cover art.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<string/>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
Expand All @@ -72,5 +72,14 @@
<false/>
<key>UIStatusBarHidden</key>
<true/>
<key>UIAppFonts</key>
<array>
<string>AvenirNextLTPro-Bold.otf</string>
<string>AvenirNextLTPro-Demi-Bold.otf</string>
<string>AvenirNextLTPro-Heavy.otf</string>
<string>AvenirNextLTPro-Medium.otf</string>
<string>AvenirNextLTPro-Regular.otf</string>
<string>AvenirNextLTPro-UltLt.otf</string>
</array>
</dict>
</plist>
6 changes: 6 additions & 0 deletions packages/mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ PODS:
- React-Core
- RNReactNativeHapticFeedback (1.11.0):
- React-Core
- RNSVG (12.1.0):
- React
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -420,6 +422,7 @@ DEPENDENCIES:
- RNFS (from `../node_modules/react-native-fs`)
- RNPermissions (from `../node_modules/react-native-permissions`)
- RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`)
- RNSVG (from `../node_modules/react-native-svg`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -530,6 +533,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-permissions"
RNReactNativeHapticFeedback:
:path: "../node_modules/react-native-haptic-feedback"
RNSVG:
:path: "../node_modules/react-native-svg"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand Down Expand Up @@ -595,6 +600,7 @@ SPEC CHECKSUMS:
RNFS: 2bd9eb49dc82fa9676382f0585b992c424cd59df
RNPermissions: 350964d19150b183796a88180fb7ec62a1e41422
RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6

PODFILE CHECKSUM: 6d8735df6908ba722e322c9f7b88bea292642b90
Expand Down
38 changes: 21 additions & 17 deletions packages/mobile/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const { getDefaultConfig } = require("metro-config")

module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
maxWorkers: 2,
};
module.exports = (async () => {
const {
resolver: { sourceExts, assetExts }
} = await getDefaultConfig()
return {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false
}
}),
babelTransformerPath: require.resolve("react-native-svg-transformer")
},
resolver: {
assetExts: assetExts.filter(ext => ext !== "svg"),
sourceExts: [...sourceExts, "svg"]
}
}
})()
Loading

0 comments on commit 91d26c0

Please sign in to comment.