ios build run

This commit is contained in:
sangeetha 2024-06-18 10:47:16 +05:30
parent 3f89eba73a
commit 74df4828ec
6 changed files with 1853 additions and 41 deletions

View File

@ -1,3 +1,4 @@
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
@ -5,7 +6,9 @@ require Pod::Executable.execute_command('node', ['-p',
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
platform :ios, '17.0'
$FirebaseSDKVersion = '10.17.0'
$RNFirebaseAsStaticFramework = true
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
@ -26,10 +29,24 @@ if linkage != nil
end
target 'TedQu' do
use_expo_modules!
post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
@ -38,7 +55,10 @@ target 'TedQu' do
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'Firebase/Analytics'
pod 'FirebaseCore',:modular_headers => true
pod 'GoogleUtilities',:modular_headers => true
pod 'ExpoModulesCore', path: "../node_modules/expo-modules-core"
target 'TedQuTests' do
inherit! :complete
# Pods for testing
@ -51,5 +71,10 @@ target 'TedQu' do
config[:reactNativePath],
:mac_catalyst_enabled => false
)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end
end
end

1755
ios/Podfile.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@ -25,25 +25,25 @@
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
remoteInfo = "TedQu";
remoteInfo = TedQu;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
00E356EE1AD99517003FC87E /* TedQuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TedQuTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
00E356EE1AD99517003FC87E /* TedQuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TedQuTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* TedQuTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "TedQuTests.m"; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* TedQuTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TedQuTests.m; sourceTree = "<group>"; };
04FFC6ED7D84D1414FD723FB /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-TedQu/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* TedQu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TedQu.app"; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = "TedQu/AppDelegate.h"; sourceTree = "<group>"; };
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = "TedQu/AppDelegate.mm"; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = "TedQu/Images.xcassets"; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = "TedQu/Info.plist"; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = "TedQu/main.m"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* TedQu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TedQu.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TedQu/AppDelegate.h; sourceTree = "<group>"; };
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = TedQu/AppDelegate.mm; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = TedQu/Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TedQu/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TedQu/main.m; sourceTree = "<group>"; };
37E40B543D9A7729E0861997 /* libPods-TedQu-TedQuTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TedQu-TedQuTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
399A4F5F2825582C82AEBF5C /* Pods-TedQu.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TedQu.debug.xcconfig"; path = "Target Support Files/Pods-TedQu/Pods-TedQu.debug.xcconfig"; sourceTree = "<group>"; };
6FEDAA102C1970B7006C933B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = "TedQu/LaunchScreen.storyboard"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = TedQu/LaunchScreen.storyboard; sourceTree = "<group>"; };
8398061A6CC35596641028B6 /* libPods-TedQu.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TedQu.a"; sourceTree = BUILT_PRODUCTS_DIR; };
8FB95E7EC06F68F062E60EB7 /* Pods-TedQu-TedQuTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TedQu-TedQuTests.debug.xcconfig"; path = "Target Support Files/Pods-TedQu-TedQuTests/Pods-TedQu-TedQuTests.debug.xcconfig"; sourceTree = "<group>"; };
E1CF819C9AD504310F237199 /* Pods-TedQu-TedQuTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TedQu-TedQuTests.release.xcconfig"; path = "Target Support Files/Pods-TedQu-TedQuTests/Pods-TedQu-TedQuTests.release.xcconfig"; sourceTree = "<group>"; };
@ -78,7 +78,7 @@
00E356F21AD99517003FC87E /* TedQuTests.m */,
00E356F01AD99517003FC87E /* Supporting Files */,
);
path = "TedQuTests";
path = TedQuTests;
sourceTree = "<group>";
};
00E356F01AD99517003FC87E /* Supporting Files */ = {
@ -100,7 +100,7 @@
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
13B07FB71A68108700A75B9A /* main.m */,
);
name = "TedQu";
name = TedQu;
sourceTree = "<group>";
};
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
@ -118,7 +118,7 @@
children = (
04FFC6ED7D84D1414FD723FB /* ExpoModulesProvider.swift */,
);
name = "TedQu";
name = TedQu;
sourceTree = "<group>";
};
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
@ -178,7 +178,7 @@
children = (
F2A4A24EB72FA8993EEB6E9B /* ExpoModulesProvider.swift */,
);
name = "TedQuTests";
name = TedQuTests;
sourceTree = "<group>";
};
/* End PBXGroup section */
@ -201,8 +201,7 @@
dependencies = (
00E356F51AD99517003FC87E /* PBXTargetDependency */,
);
name = "TedQuTests";
productname = "TedQuTests";
name = TedQuTests;
productReference = 00E356EE1AD99517003FC87E /* TedQuTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
@ -224,8 +223,8 @@
);
dependencies = (
);
name = "TedQu";
productName = "TedQu";
name = TedQu;
productName = TedQu;
productReference = 13B07F961A680F5B00A75B9A /* TedQu.app */;
productType = "com.apple.product-type.application";
};
@ -507,7 +506,7 @@
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "TedQuTests/Info.plist";
INFOPLIST_FILE = TedQuTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -520,7 +519,7 @@
"$(inherited)",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = "com.tedqu";
PRODUCT_BUNDLE_IDENTIFIER = com.tedqu;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TedQu.app/TedQu";
};
@ -532,7 +531,7 @@
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = "TedQuTests/Info.plist";
INFOPLIST_FILE = TedQuTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -545,7 +544,7 @@
"$(inherited)",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = "com.tedqu";
PRODUCT_BUNDLE_IDENTIFIER = com.tedqu;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TedQu.app/TedQu";
};
@ -562,8 +561,8 @@
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
INFOPLIST_FILE = "TedQu/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "TedQu";
INFOPLIST_FILE = TedQu/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = TedQu;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.books";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -579,8 +578,8 @@
"-ld64",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = "com.tedqu";
PRODUCT_NAME = "TedQu";
PRODUCT_BUNDLE_IDENTIFIER = com.tedqu;
PRODUCT_NAME = TedQu;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
@ -597,8 +596,8 @@
DEVELOPMENT_TEAM = G8SD74MTY2;
EXCLUDED_ARCHS = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
INFOPLIST_FILE = "TedQu/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "TedQu";
INFOPLIST_FILE = TedQu/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = TedQu;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.books";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -613,8 +612,8 @@
"-ld64",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = "com.tedqu";
PRODUCT_NAME = "TedQu";
PRODUCT_BUNDLE_IDENTIFIER = com.tedqu;
PRODUCT_NAME = TedQu;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};

View File

@ -1,6 +1,7 @@
#import <RCTAppDelegate.h>
#import <Expo/Expo.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : RCTAppDelegate
@interface AppDelegate : EXAppDelegateWrapper
@end
@end

View File

@ -1,5 +1,6 @@
#import "AppDelegate.h"
#import <Firebase.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTLinkingManager.h>
@implementation AppDelegate
@ -9,7 +10,7 @@
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[FIRApp configure];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

View File

@ -26,16 +26,47 @@
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
<key>NSAllowsArbitraryLoads</key>
<false/>
<true/>
<key>NSAllowsLocalNetworking</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>213.210.36.103</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<string/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>NSCameraUsageDescription</key>
<string>We need access to your camera to enable you to capture photos and videos within the app. Your photos and videos will only be used within the app for take your profile picture, and will not be shared with any third parties.</string>
<key>NSContactsUsageDescription</key>
<string>Allow contact access</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>AIzaSyClPYMkRJrTY9ENwFVBWmFerJXPv07QqZM</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Turning on location services allows us to show you when tedqu are nearby</string>
<key>NSMicrophoneUsageDescription</key>
<string>Need to access your microphone to record a video.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We require access to your photo library to allow you to select and upload photos from your device within the app. Your photos will be used solely for enhancing your user experience, such as upload your profile pictures.</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
@ -49,4 +80,4 @@
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
</plist>