From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- .../ios/reactnativeapp/AppDelegate.h | 9 +++ .../ios/reactnativeapp/AppDelegate.mm | 62 +++++++++++++++++ .../AppIcon.appiconset/App-Icon-1024x1024@1x.png | Bin 0 -> 191330 bytes .../AppIcon.appiconset/Contents.json | 14 ++++ .../reactnativeapp/Images.xcassets/Contents.json | 6 ++ .../SplashScreen.imageset/Contents.json | 21 ++++++ .../SplashScreen.imageset/image.png | Bin 0 -> 50017 bytes .../SplashScreenBackground.imageset/Contents.json | 21 ++++++ .../SplashScreenBackground.imageset/image.png | Bin 0 -> 68 bytes src/react-native-app/ios/reactnativeapp/Info.plist | 77 +++++++++++++++++++++ .../ios/reactnativeapp/PrivacyInfo.xcprivacy | 48 +++++++++++++ .../ios/reactnativeapp/SplashScreen.storyboard | 51 ++++++++++++++ .../ios/reactnativeapp/Supporting/Expo.plist | 12 ++++ src/react-native-app/ios/reactnativeapp/main.m | 10 +++ .../ios/reactnativeapp/noop-file.swift | 0 .../reactnativeapp-Bridging-Header.h | 5 ++ .../ios/reactnativeapp/reactnativeapp.entitlements | 6 ++ 17 files changed, 342 insertions(+) create mode 100644 src/react-native-app/ios/reactnativeapp/AppDelegate.h create mode 100644 src/react-native-app/ios/reactnativeapp/AppDelegate.mm create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/image.png create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json create mode 100644 src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/image.png create mode 100644 src/react-native-app/ios/reactnativeapp/Info.plist create mode 100644 src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy create mode 100644 src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard create mode 100644 src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist create mode 100644 src/react-native-app/ios/reactnativeapp/main.m create mode 100644 src/react-native-app/ios/reactnativeapp/noop-file.swift create mode 100644 src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h create mode 100644 src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements (limited to 'src/react-native-app/ios/reactnativeapp') diff --git a/src/react-native-app/ios/reactnativeapp/AppDelegate.h b/src/react-native-app/ios/reactnativeapp/AppDelegate.h new file mode 100644 index 0000000..99b0e89 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/AppDelegate.h @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +#import +#import +#import + +@interface AppDelegate : EXAppDelegateWrapper + +@end diff --git a/src/react-native-app/ios/reactnativeapp/AppDelegate.mm b/src/react-native-app/ios/reactnativeapp/AppDelegate.mm new file mode 100644 index 0000000..b27f832 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/AppDelegate.mm @@ -0,0 +1,62 @@ +#import "AppDelegate.h" + +#import +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.moduleName = @"main"; + + // 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 = @{}; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge +{ + return [self bundleURL]; +} + +- (NSURL *)bundleURL +{ +#if DEBUG + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; +#endif +} + +// Linking API +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { + return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; +} + +// Universal Links +- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { + BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; + return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken +{ + return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error +{ + return [super application:application didFailToRegisterForRemoteNotificationsWithError:error]; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler +{ + return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler]; +} + +@end diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png b/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png new file mode 100644 index 0000000..104d8ef Binary files /dev/null and b/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png differ diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json b/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..5f6956c --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images": [ + { + "filename": "App-Icon-1024x1024@1x.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json b/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json new file mode 100644 index 0000000..ed285c2 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "expo" + } +} diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json new file mode 100644 index 0000000..7d28020 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "image.png", + "scale": "1x" + }, + { + "idiom": "universal", + "scale": "2x" + }, + { + "idiom": "universal", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/image.png b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/image.png new file mode 100644 index 0000000..cc4aaad Binary files /dev/null and b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/image.png differ diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json new file mode 100644 index 0000000..7d28020 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "image.png", + "scale": "1x" + }, + { + "idiom": "universal", + "scale": "2x" + }, + { + "idiom": "universal", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/image.png b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/image.png new file mode 100644 index 0000000..33ddf20 Binary files /dev/null and b/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/image.png differ diff --git a/src/react-native-app/ios/reactnativeapp/Info.plist b/src/react-native-app/ios/reactnativeapp/Info.plist new file mode 100644 index 0000000..ef9c9c0 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Info.plist @@ -0,0 +1,77 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Astronomy Shop App + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleURLTypes + + + CFBundleURLSchemes + + myapp + io.opentelemetry.reactnativeapp + + + + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSAllowsLocalNetworking + + + NSUserActivityTypes + + $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + + UILaunchStoryboardName + SplashScreen + UIRequiredDeviceCapabilities + + arm64 + + UIRequiresFullScreen + + UIStatusBarStyle + UIStatusBarStyleDefault + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIUserInterfaceStyle + Automatic + UIViewControllerBasedStatusBarAppearance + + + diff --git a/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy b/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..5bb83c5 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy @@ -0,0 +1,48 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 0A2A.1 + 3B52.1 + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + 85F4.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard b/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard new file mode 100644 index 0000000..ec54574 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist b/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist new file mode 100644 index 0000000..7fa7911 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist @@ -0,0 +1,12 @@ + + + + + EXUpdatesCheckOnLaunch + ALWAYS + EXUpdatesEnabled + + EXUpdatesLaunchWaitMs + 0 + + diff --git a/src/react-native-app/ios/reactnativeapp/main.m b/src/react-native-app/ios/reactnativeapp/main.m new file mode 100644 index 0000000..25181b6 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/main.m @@ -0,0 +1,10 @@ +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} + diff --git a/src/react-native-app/ios/reactnativeapp/noop-file.swift b/src/react-native-app/ios/reactnativeapp/noop-file.swift new file mode 100644 index 0000000..e69de29 diff --git a/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h b/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h new file mode 100644 index 0000000..f8f0758 --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h @@ -0,0 +1,5 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// diff --git a/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements b/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements new file mode 100644 index 0000000..a4942dc --- /dev/null +++ b/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements @@ -0,0 +1,6 @@ + + + + + + -- cgit v1.2.3