Tom Underhill пре 5 година
родитељ
комит
fa267d0529

+ 0
- 1106
example/ios/RNCWebViewExample.xcodeproj/project.pbxproj
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 0
- 92
example/ios/RNCWebViewExample.xcodeproj/xcshareddata/xcschemes/RNCWebViewExample.xcscheme Прегледај датотеку

@@ -1,92 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Scheme
3
-   LastUpgradeVersion = "1120"
4
-   version = "1.3">
5
-   <BuildAction
6
-      parallelizeBuildables = "NO"
7
-      buildImplicitDependencies = "YES">
8
-      <BuildActionEntries>
9
-         <BuildActionEntry
10
-            buildForTesting = "YES"
11
-            buildForRunning = "YES"
12
-            buildForProfiling = "YES"
13
-            buildForArchiving = "YES"
14
-            buildForAnalyzing = "YES">
15
-            <BuildableReference
16
-               BuildableIdentifier = "primary"
17
-               BlueprintIdentifier = "83CBBA2D1A601D0E00E9B192"
18
-               BuildableName = "libReact.a"
19
-               BlueprintName = "React"
20
-               ReferencedContainer = "container:../../node_modules/react-native/React/React.xcodeproj">
21
-            </BuildableReference>
22
-         </BuildActionEntry>
23
-         <BuildActionEntry
24
-            buildForTesting = "YES"
25
-            buildForRunning = "YES"
26
-            buildForProfiling = "YES"
27
-            buildForArchiving = "YES"
28
-            buildForAnalyzing = "YES">
29
-            <BuildableReference
30
-               BuildableIdentifier = "primary"
31
-               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
32
-               BuildableName = "RNCWebViewExample.app"
33
-               BlueprintName = "RNCWebViewExample"
34
-               ReferencedContainer = "container:RNCWebViewExample.xcodeproj">
35
-            </BuildableReference>
36
-         </BuildActionEntry>
37
-      </BuildActionEntries>
38
-   </BuildAction>
39
-   <TestAction
40
-      buildConfiguration = "Debug"
41
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43
-      shouldUseLaunchSchemeArgsEnv = "YES">
44
-      <Testables>
45
-      </Testables>
46
-   </TestAction>
47
-   <LaunchAction
48
-      buildConfiguration = "Debug"
49
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
50
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
51
-      launchStyle = "0"
52
-      useCustomWorkingDirectory = "NO"
53
-      ignoresPersistentStateOnLaunch = "NO"
54
-      debugDocumentVersioning = "YES"
55
-      debugServiceExtension = "internal"
56
-      allowLocationSimulation = "YES">
57
-      <BuildableProductRunnable
58
-         runnableDebuggingMode = "0">
59
-         <BuildableReference
60
-            BuildableIdentifier = "primary"
61
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
62
-            BuildableName = "RNCWebViewExample.app"
63
-            BlueprintName = "RNCWebViewExample"
64
-            ReferencedContainer = "container:RNCWebViewExample.xcodeproj">
65
-         </BuildableReference>
66
-      </BuildableProductRunnable>
67
-   </LaunchAction>
68
-   <ProfileAction
69
-      buildConfiguration = "Release"
70
-      shouldUseLaunchSchemeArgsEnv = "YES"
71
-      savedToolIdentifier = ""
72
-      useCustomWorkingDirectory = "NO"
73
-      debugDocumentVersioning = "YES">
74
-      <BuildableProductRunnable
75
-         runnableDebuggingMode = "0">
76
-         <BuildableReference
77
-            BuildableIdentifier = "primary"
78
-            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
79
-            BuildableName = "RNCWebViewExample.app"
80
-            BlueprintName = "RNCWebViewExample"
81
-            ReferencedContainer = "container:RNCWebViewExample.xcodeproj">
82
-         </BuildableReference>
83
-      </BuildableProductRunnable>
84
-   </ProfileAction>
85
-   <AnalyzeAction
86
-      buildConfiguration = "Debug">
87
-   </AnalyzeAction>
88
-   <ArchiveAction
89
-      buildConfiguration = "Release"
90
-      revealArchiveInOrganizer = "YES">
91
-   </ArchiveAction>
92
-</Scheme>

+ 0
- 16
example/ios/RNCWebViewExample/AppDelegate.h Прегледај датотеку

@@ -1,16 +0,0 @@
1
-/**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-#import <React/RCTBridgeDelegate.h>
9
-#import <UIKit/UIKit.h>
10
-
11
-@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
12
-
13
-@property (nonatomic, strong) UIWindow *window;
14
-@property (nonatomic, strong) NSMutableDictionary<NSString *, NSString *> *memoryStorage;
15
-
16
-@end

+ 0
- 46
example/ios/RNCWebViewExample/AppDelegate.m Прегледај датотеку

@@ -1,46 +0,0 @@
1
-/**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-#import "AppDelegate.h"
9
-
10
-#import <React/RCTBridge.h>
11
-
12
-#import <React/RCTBundleURLProvider.h>
13
-#import <React/RCTDevMenu.h>
14
-#import <React/RCTRootView.h>
15
-
16
-@implementation AppDelegate {
17
-  __weak RCTBridge *_bridge;
18
-}
19
-
20
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
21
-{
22
-  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
23
-  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
24
-                                                   moduleName:@"RNCWebViewExample"
25
-                                            initialProperties:nil];
26
-
27
-  rootView.backgroundColor = [UIColor blackColor];
28
-
29
-  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30
-  UIViewController *rootViewController = [UIViewController new];
31
-  rootViewController.view = rootView;
32
-  self.window.rootViewController = rootViewController;
33
-  [self.window makeKeyAndVisible];
34
-  return YES;
35
-}
36
-
37
-- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
38
-{
39
-  #if DEBUG
40
-    return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"example/index" fallbackResource:nil];
41
-  #else
42
-    return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
43
-  #endif
44
-}
45
-
46
-@end

+ 0
- 42
example/ios/RNCWebViewExample/Base.lproj/LaunchScreen.xib Прегледај датотеку

@@ -1,42 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
3
-    <dependencies>
4
-        <deployment identifier="iOS"/>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
6
-        <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
7
-    </dependencies>
8
-    <objects>
9
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
-        <view contentMode="scaleToFill" id="iN0-l3-epB">
12
-            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
13
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
14
-            <subviews>
15
-                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
16
-                    <rect key="frame" x="20" y="439" width="441" height="21"/>
17
-                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
18
-                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19
-                    <nil key="highlightedColor"/>
20
-                </label>
21
-                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RNCWebViewExample" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22
-                    <rect key="frame" x="20" y="140" width="441" height="43"/>
23
-                    <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24
-                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25
-                    <nil key="highlightedColor"/>
26
-                </label>
27
-            </subviews>
28
-            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
29
-            <constraints>
30
-                <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
31
-                <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
32
-                <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
33
-                <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
34
-                <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
35
-                <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
36
-            </constraints>
37
-            <nil key="simulatedStatusBarMetrics"/>
38
-            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
39
-            <point key="canvasLocation" x="548" y="455"/>
40
-        </view>
41
-    </objects>
42
-</document>

+ 0
- 53
example/ios/RNCWebViewExample/Images.xcassets/AppIcon.appiconset/Contents.json Прегледај датотеку

@@ -1,53 +0,0 @@
1
-{
2
-  "images" : [
3
-    {
4
-      "idiom" : "iphone",
5
-      "size" : "20x20",
6
-      "scale" : "2x"
7
-    },
8
-    {
9
-      "idiom" : "iphone",
10
-      "size" : "20x20",
11
-      "scale" : "3x"
12
-    },
13
-    {
14
-      "idiom" : "iphone",
15
-      "size" : "29x29",
16
-      "scale" : "2x"
17
-    },
18
-    {
19
-      "idiom" : "iphone",
20
-      "size" : "29x29",
21
-      "scale" : "3x"
22
-    },
23
-    {
24
-      "idiom" : "iphone",
25
-      "size" : "40x40",
26
-      "scale" : "2x"
27
-    },
28
-    {
29
-      "idiom" : "iphone",
30
-      "size" : "40x40",
31
-      "scale" : "3x"
32
-    },
33
-    {
34
-      "idiom" : "iphone",
35
-      "size" : "60x60",
36
-      "scale" : "2x"
37
-    },
38
-    {
39
-      "idiom" : "iphone",
40
-      "size" : "60x60",
41
-      "scale" : "3x"
42
-    },
43
-    {
44
-      "idiom" : "ios-marketing",
45
-      "size" : "1024x1024",
46
-      "scale" : "1x"
47
-    }
48
-  ],
49
-  "info" : {
50
-    "version" : 1,
51
-    "author" : "xcode"
52
-  }
53
-}

+ 0
- 6
example/ios/RNCWebViewExample/Images.xcassets/Contents.json Прегледај датотеку

@@ -1,6 +0,0 @@
1
-{
2
-  "info" : {
3
-    "version" : 1,
4
-    "author" : "xcode"
5
-  }
6
-}

+ 0
- 70
example/ios/RNCWebViewExample/Info.plist Прегледај датотеку

@@ -1,70 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-	<key>CFBundleDevelopmentRegion</key>
6
-	<string>en</string>
7
-	<key>CFBundleDisplayName</key>
8
-	<string>RNCWebViewExample</string>
9
-	<key>CFBundleExecutable</key>
10
-	<string>$(EXECUTABLE_NAME)</string>
11
-	<key>CFBundleIdentifier</key>
12
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
-	<key>CFBundleInfoDictionaryVersion</key>
14
-	<string>6.0</string>
15
-	<key>CFBundleName</key>
16
-	<string>$(PRODUCT_NAME)</string>
17
-	<key>CFBundlePackageType</key>
18
-	<string>APPL</string>
19
-	<key>CFBundleShortVersionString</key>
20
-	<string>1.0</string>
21
-	<key>CFBundleSignature</key>
22
-	<string>????</string>
23
-	<key>CFBundleURLTypes</key>
24
-	<array>
25
-		<dict>
26
-			<key>CFBundleTypeRole</key>
27
-			<string>Editor</string>
28
-			<key>CFBundleURLName</key>
29
-			<string>org.reactjs.native.example.RNCWebViewExample</string>
30
-			<key>CFBundleURLSchemes</key>
31
-			<array>
32
-				<string>rnc-webview</string>
33
-			</array>
34
-		</dict>
35
-	</array>
36
-	<key>CFBundleVersion</key>
37
-	<string>1</string>
38
-	<key>LSRequiresIPhoneOS</key>
39
-	<true/>
40
-	<key>NSAppTransportSecurity</key>
41
-	<dict>
42
-		<key>NSAllowsArbitraryLoads</key>
43
-		<true/>
44
-		<key>NSExceptionDomains</key>
45
-		<dict>
46
-			<key>localhost</key>
47
-			<dict>
48
-				<key>NSExceptionAllowsInsecureHTTPLoads</key>
49
-				<true/>
50
-			</dict>
51
-		</dict>
52
-	</dict>
53
-	<key>NSLocationWhenInUseUsageDescription</key>
54
-	<string></string>
55
-	<key>UILaunchStoryboardName</key>
56
-	<string>LaunchScreen</string>
57
-	<key>UIRequiredDeviceCapabilities</key>
58
-	<array>
59
-		<string>armv7</string>
60
-	</array>
61
-	<key>UISupportedInterfaceOrientations</key>
62
-	<array>
63
-		<string>UIInterfaceOrientationPortrait</string>
64
-		<string>UIInterfaceOrientationLandscapeLeft</string>
65
-		<string>UIInterfaceOrientationLandscapeRight</string>
66
-	</array>
67
-	<key>UIViewControllerBasedStatusBarAppearance</key>
68
-	<false/>
69
-</dict>
70
-</plist>

+ 0
- 16
example/ios/RNCWebViewExample/main.m Прегледај датотеку

@@ -1,16 +0,0 @@
1
-/**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-#import <UIKit/UIKit.h>
9
-
10
-#import "AppDelegate.h"
11
-
12
-int main(int argc, char * argv[]) {
13
-  @autoreleasepool {
14
-    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15
-  }
16
-}