Skip to content

Commit

Permalink
Install the expo package and set up autolinking
Browse files Browse the repository at this point in the history
  • Loading branch information
tsapeta committed Jan 9, 2024
1 parent 5b09ef9 commit 09444bf
Show file tree
Hide file tree
Showing 6 changed files with 2,298 additions and 79 deletions.
52 changes: 48 additions & 4 deletions apps/menu-bar/macos/ExpoMenuBar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/* Begin PBXBuildFile section */
045175BE45C09A78501F3277 /* libPods-ExpoMenuBar-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D5B57287467FCE0C3AD2F77 /* libPods-ExpoMenuBar-macOS.a */; };
5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.mm */; };
5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.m */; };
514201522437B4B40078DB4F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 514201512437B4B40078DB4F /* Assets.xcassets */; };
514201552437B4B40078DB4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 514201532437B4B40078DB4F /* Main.storyboard */; };
514201582437B4B40078DB4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 514201572437B4B40078DB4F /* main.m */; };
77818F2A6E488E8B68D317B2 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = B02E22FAC6ED05060D31BB51 /* ExpoModulesProvider.swift */; };
C0271C582A602CDE0065AB11 /* ProgressIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = C0271C572A602CDE0065AB11 /* ProgressIndicatorManager.m */; };
C0271C5B2A602FF60065AB11 /* ProgressIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0271C5A2A602FF60065AB11 /* ProgressIndicatorView.m */; };
C032EDB72A1FE6F300FBC597 /* orbit-cli-arm64 in Resources */ = {isa = PBXBuildFile; fileRef = C032EDB62A1FE6F300FBC597 /* orbit-cli-arm64 */; };
Expand Down Expand Up @@ -61,14 +62,15 @@
4D47B0298808748D37D9C46D /* Pods-ExpoMenuBar-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExpoMenuBar-macOS.debug.xcconfig"; path = "Target Support Files/Pods-ExpoMenuBar-macOS/Pods-ExpoMenuBar-macOS.debug.xcconfig"; sourceTree = "<group>"; };
514201492437B4B30078DB4F /* Expo Orbit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Expo Orbit.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5142014B2437B4B30078DB4F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
5142014C2437B4B30078DB4F /* AppDelegate.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = AppDelegate.mm; sourceTree = "<group>"; };
5142014C2437B4B30078DB4F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
514201512437B4B40078DB4F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
514201542437B4B40078DB4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
514201562437B4B40078DB4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
514201572437B4B40078DB4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
514201592437B4B40078DB4F /* ExpoMenuBar.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExpoMenuBar.entitlements; sourceTree = "<group>"; };
9D32DFD059D5DB6DDEF38881 /* Pods-Shared-ExpoMenuBar-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-ExpoMenuBar-iOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-ExpoMenuBar-iOS/Pods-Shared-ExpoMenuBar-iOS.debug.xcconfig"; sourceTree = "<group>"; };
A82DFB63B157C65E5D698CA2 /* Pods-Shared-ExpoMenuBar-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-ExpoMenuBar-iOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-ExpoMenuBar-iOS/Pods-Shared-ExpoMenuBar-iOS.release.xcconfig"; sourceTree = "<group>"; };
B02E22FAC6ED05060D31BB51 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-ExpoMenuBar-macOS/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
C0271C562A602CCB0065AB11 /* ProgressIndicatorManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProgressIndicatorManager.h; sourceTree = "<group>"; };
C0271C572A602CDE0065AB11 /* ProgressIndicatorManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProgressIndicatorManager.m; sourceTree = "<group>"; };
C0271C592A602FEC0065AB11 /* ProgressIndicatorView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProgressIndicatorView.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -167,6 +169,14 @@
name = Frameworks;
sourceTree = "<group>";
};
4CA987380902AA6F7F8816F6 /* ExpoMenuBar-macOS */ = {
isa = PBXGroup;
children = (
B02E22FAC6ED05060D31BB51 /* ExpoModulesProvider.swift */,
);
name = "ExpoMenuBar-macOS";
sourceTree = "<group>";
};
5142014A2437B4B30078DB4F /* ExpoMenuBar-macOS */ = {
isa = PBXGroup;
children = (
Expand All @@ -176,7 +186,7 @@
C051E6B52A83577800C6D615 /* orbit-cli-x64 */,
38423A3E24576CBC00BC2EAC /* main.jsbundle */,
5142014B2437B4B30078DB4F /* AppDelegate.h */,
5142014C2437B4B30078DB4F /* AppDelegate.mm */,
5142014C2437B4B30078DB4F /* AppDelegate.m */,
514201512437B4B40078DB4F /* Assets.xcassets */,
514201532437B4B40078DB4F /* Main.storyboard */,
514201562437B4B40078DB4F /* Info.plist */,
Expand Down Expand Up @@ -241,6 +251,7 @@
83CBBA001A601CBA00E9B192 /* Products */,
2D16E6871FA4F8E400B85C8A /* Frameworks */,
1986A43FA6A91CFACDF0A798 /* Pods */,
B13BA18B717621FFDC28EE6E /* ExpoModulesProviders */,
);
indentWidth = 2;
sourceTree = "<group>";
Expand All @@ -256,6 +267,14 @@
name = Products;
sourceTree = "<group>";
};
B13BA18B717621FFDC28EE6E /* ExpoModulesProviders */ = {
isa = PBXGroup;
children = (
4CA987380902AA6F7F8816F6 /* ExpoMenuBar-macOS */,
);
name = ExpoModulesProviders;
sourceTree = "<group>";
};
C081507C2A610E2F00E8890F /* Resources */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -284,6 +303,7 @@
buildPhases = (
1A938104A937498D81B3BD3B /* [CP] Check Pods Manifest.lock */,
381D8A6F24576A6C00465D17 /* Start Packager */,
63FA8EA00DD165DC6FA0B487 /* [Expo] Configure project */,
514201452437B4B30078DB4F /* Sources */,
514201462437B4B30078DB4F /* Frameworks */,
514201472437B4B30078DB4F /* Resources */,
Expand Down Expand Up @@ -454,6 +474,25 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ExpoMenuBar-macOS/Pods-ExpoMenuBar-macOS-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
63FA8EA00DD165DC6FA0B487 /* [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-ExpoMenuBar-macOS/expo-configure-project.sh\"\n";
};
DF76CD60CADE3DD346ABE802 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -493,12 +532,13 @@
C051E6BB2A991C4200C6D615 /* WebAuthenticationSession.m in Sources */,
C0523ECC2A550983003371AF /* WindowManager.m in Sources */,
514201582437B4B40078DB4F /* main.m in Sources */,
5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */,
5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */,
C061C7A42A26B50200A53D8D /* AutoResizerRootView.m in Sources */,
C0523ECA2A545730003371AF /* FilePicker.m in Sources */,
C08E65342A5D04910079E3A9 /* WindowNavigator.m in Sources */,
C061C79E2A251E0C00A53D8D /* DevViewController.m in Sources */,
C061C7A12A26B21C00A53D8D /* AutoResizerRootViewManager.m in Sources */,
77818F2A6E488E8B68D317B2 /* ExpoModulesProvider.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -553,6 +593,7 @@
"-ObjC",
"-lc++",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = dev.expo.orbit;
PRODUCT_NAME = "Expo Orbit";
SDKROOT = macosx;
Expand Down Expand Up @@ -593,6 +634,7 @@
"-ObjC",
"-lc++",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = dev.expo.orbit;
PRODUCT_NAME = "Expo Orbit";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -775,6 +817,7 @@
MARKETING_VERSION = 1.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = dev.expo.AutoLauncher;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
Expand Down Expand Up @@ -823,6 +866,7 @@
MACOSX_DEPLOYMENT_TARGET = 13.4;
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = dev.expo.AutoLauncher;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 2 additions & 0 deletions apps/menu-bar/macos/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ other_cflags = "$(inherited) "+ (showDevWindow ? " -D"+"SHOW_DEV_WINDOW" : "") +
rn_macos_path = File.dirname(`node --print "require.resolve('react-native-macos/package.json')"`)
require File.join(rn_macos_path, "scripts/react_native_pods")
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")

base_path = Dir.pwd
# use_react_native does not support relative absolute paths
Expand All @@ -21,6 +22,7 @@ prepare_react_native_project!

target 'ExpoMenuBar-macOS' do
platform :macos, '10.15'
use_expo_modules!
use_native_modules!

# Flags change depending on the env values.
Expand Down
45 changes: 43 additions & 2 deletions apps/menu-bar/macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
PODS:
- boost (1.83.0)
- DoubleConversion (1.1.6)
- EXConstants (0.0.1-canary-20240109-93608d8):
- ExpoModulesCore
- EXFont (0.0.1-canary-20240109-93608d8):
- ExpoModulesCore
- Expo (50.0.0-canary-20240109-93608d8):
- ExpoModulesCore
- ExpoFileSystem (0.0.1-canary-20240109-93608d8):
- ExpoModulesCore
- ExpoKeepAwake (0.0.1-canary-20240109-93608d8):
- ExpoModulesCore
- ExpoModulesCore (0.0.1-canary-20240109-93608d8):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- React-NativeModulesApple
- React-RCTAppDelegate
- ReactCommon/turbomodule/core
- FBLazyVector (0.73.1)
- FBReactNativeSpec (0.73.1):
- RCT-Folly (= 2022.05.16.00)
Expand Down Expand Up @@ -1073,6 +1090,12 @@ PODS:
DEPENDENCIES:
- boost (from `../../../node_modules/react-native-macos/third-party-podspecs/boost.podspec`)
- DoubleConversion (from `../../../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec`)
- EXConstants (from `../../../node_modules/expo-constants/ios`)
- EXFont (from `../../../node_modules/expo-font/ios`)
- Expo (from `../../../node_modules/expo`)
- ExpoFileSystem (from `../../../node_modules/expo-file-system/ios`)
- ExpoKeepAwake (from `../../../node_modules/expo-keep-awake/ios`)
- ExpoModulesCore (from `../../../node_modules/expo-modules-core`)
- FBLazyVector (from `../../../node_modules/react-native-macos/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../../../node_modules/react-native-macos/React/FBReactNativeSpec`)
- glog (from `../../../node_modules/react-native-macos/third-party-podspecs/glog.podspec`)
Expand Down Expand Up @@ -1144,6 +1167,18 @@ EXTERNAL SOURCES:
:podspec: "../../../node_modules/react-native-macos/third-party-podspecs/boost.podspec"
DoubleConversion:
:podspec: "../../../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec"
EXConstants:
:path: "../../../node_modules/expo-constants/ios"
EXFont:
:path: "../../../node_modules/expo-font/ios"
Expo:
:path: "../../../node_modules/expo"
ExpoFileSystem:
:path: "../../../node_modules/expo-file-system/ios"
ExpoKeepAwake:
:path: "../../../node_modules/expo-keep-awake/ios"
ExpoModulesCore:
:path: "../../../node_modules/expo-modules-core"
FBLazyVector:
:path: "../../../node_modules/react-native-macos/Libraries/FBLazyVector"
FBReactNativeSpec:
Expand Down Expand Up @@ -1249,6 +1284,12 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
boost: 1401ba01f443d1a21a7994aa5f7233c101321909
DoubleConversion: 56bb181dd9093360c7cd027b592155b7f33eeb61
EXConstants: c4848a82811f5259811096b8276bec4963811849
EXFont: 2bf12f3525494f58c0c5df7ebe21cc0c29a5d366
Expo: 5092b336757a2030e5c25b74fd8c727c9b4dd52c
ExpoFileSystem: 7bd39e7e87ee232a784a82ab3763961161d1999d
ExpoKeepAwake: b84ea3a3f930dcd8f766c3d4840cb3cbe42f0a0d
ExpoModulesCore: c3cd0f3a60dae0dab7be862c1b96f2c4b40a7510
FBLazyVector: 14f62078163e7c4de6350da6b1bf5b9693ef3cf3
FBReactNativeSpec: ece148d0cb5b013acbfdc290eefe0328be54b5d3
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
Expand Down Expand Up @@ -1307,6 +1348,6 @@ SPEC CHECKSUMS:
Swifter: e71dd674404923d7f03ebb03f3f222d1c570bc8e
Yoga: 5f6d85ca2ac7a018ea0ff4c3da3e5514a3f2149c

PODFILE CHECKSUM: a15655f397a85e92ecca3834288dddae790b0c5a
PODFILE CHECKSUM: b99b8d2f5c2bf6a9433cff98783c664f2c1bbfb5

COCOAPODS: 1.13.0
COCOAPODS: 1.14.3
1 change: 1 addition & 0 deletions apps/menu-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@react-native-clipboard/clipboard": "^1.13.1",
"apollo3-cache-persist": "^0.14.1",
"common-types": "1.0.0",
"expo": "^50.0.0-canary-20240109-93608d8",
"graphql": "^16.8.0",
"react": "18.2.0",
"react-native": "0.73.1",
Expand Down
Loading

0 comments on commit 09444bf

Please sign in to comment.