Skip to content

Commit bd6c25c

Browse files
committed
added xcodeporj
1 parent ec8752b commit bd6c25c

File tree

4 files changed

+296
-9
lines changed

4 files changed

+296
-9
lines changed

ios/Example/Example.xcodeproj/project.pbxproj

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
1414
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
1515
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
16-
01CFB91B1C34286000F6A3EF /* UIImagePickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 01CFB91A1C34286000F6A3EF /* UIImagePickerManager.m */; };
16+
014A3BB21C6CF84500B6D375 /* libRNImagePicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 014A3BB11C6CF82F00B6D375 /* libRNImagePicker.a */; };
1717
133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
1818
139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
1919
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
@@ -61,6 +61,13 @@
6161
remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
6262
remoteInfo = RCTVibration;
6363
};
64+
014A3BB01C6CF82F00B6D375 /* PBXContainerItemProxy */ = {
65+
isa = PBXContainerItemProxy;
66+
containerPortal = 014A3BAC1C6CF82F00B6D375 /* RNImagePicker.xcodeproj */;
67+
proxyType = 2;
68+
remoteGlobalIDString = 014A3B5C1C6CF33500B6D375;
69+
remoteInfo = RNImagePicker;
70+
};
6471
139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
6572
isa = PBXContainerItemProxy;
6673
containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
@@ -105,8 +112,7 @@
105112
00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
106113
00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
107114
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
108-
01CFB9191C34286000F6A3EF /* UIImagePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UIImagePickerManager.h; path = ../UIImagePickerManager.h; sourceTree = "<group>"; };
109-
01CFB91A1C34286000F6A3EF /* UIImagePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; name = UIImagePickerManager.m; path = ../UIImagePickerManager.m; sourceTree = "<group>"; tabWidth = 4; };
115+
014A3BAC1C6CF82F00B6D375 /* RNImagePicker.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNImagePicker.xcodeproj; path = ../RNImagePicker.xcodeproj; sourceTree = "<group>"; };
110116
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
111117
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
112118
13B07F961A680F5B00A75B9A /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -126,6 +132,7 @@
126132
isa = PBXFrameworksBuildPhase;
127133
buildActionMask = 2147483647;
128134
files = (
135+
014A3BB21C6CF84500B6D375 /* libRNImagePicker.a in Frameworks */,
129136
146834051AC3E58100842450 /* libReact.a in Frameworks */,
130137
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
131138
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
@@ -182,6 +189,14 @@
182189
name = Products;
183190
sourceTree = "<group>";
184191
};
192+
014A3BAD1C6CF82F00B6D375 /* Products */ = {
193+
isa = PBXGroup;
194+
children = (
195+
014A3BB11C6CF82F00B6D375 /* libRNImagePicker.a */,
196+
);
197+
name = Products;
198+
sourceTree = "<group>";
199+
};
185200
139105B71AF99BAD00B5F7CC /* Products */ = {
186201
isa = PBXGroup;
187202
children = (
@@ -231,8 +246,7 @@
231246
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
232247
isa = PBXGroup;
233248
children = (
234-
01CFB9191C34286000F6A3EF /* UIImagePickerManager.h */,
235-
01CFB91A1C34286000F6A3EF /* UIImagePickerManager.m */,
249+
014A3BAC1C6CF82F00B6D375 /* RNImagePicker.xcodeproj */,
236250
146833FF1AC3E56700842450 /* React.xcodeproj */,
237251
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
238252
00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
@@ -355,6 +369,10 @@
355369
ProductGroup = 146834001AC3E56700842450 /* Products */;
356370
ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
357371
},
372+
{
373+
ProductGroup = 014A3BAD1C6CF82F00B6D375 /* Products */;
374+
ProjectRef = 014A3BAC1C6CF82F00B6D375 /* RNImagePicker.xcodeproj */;
375+
},
358376
);
359377
projectRoot = "";
360378
targets = (
@@ -399,6 +417,13 @@
399417
remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
400418
sourceTree = BUILT_PRODUCTS_DIR;
401419
};
420+
014A3BB11C6CF82F00B6D375 /* libRNImagePicker.a */ = {
421+
isa = PBXReferenceProxy;
422+
fileType = archive.ar;
423+
path = libRNImagePicker.a;
424+
remoteRef = 014A3BB01C6CF82F00B6D375 /* PBXContainerItemProxy */;
425+
sourceTree = BUILT_PRODUCTS_DIR;
426+
};
402427
139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
403428
isa = PBXReferenceProxy;
404429
fileType = archive.ar;
@@ -456,7 +481,6 @@
456481
files = (
457482
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
458483
13B07FC11A68108700A75B9A /* main.m in Sources */,
459-
01CFB91B1C34286000F6A3EF /* UIImagePickerManager.m in Sources */,
460484
);
461485
runOnlyForDeploymentPostprocessing = 0;
462486
};
@@ -482,7 +506,6 @@
482506
HEADER_SEARCH_PATHS = (
483507
"$(inherited)",
484508
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
485-
"$(SRCROOT)/node_modules/react-native/React/**",
486509
);
487510
INFOPLIST_FILE = iOS/Info.plist;
488511
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -501,7 +524,6 @@
501524
HEADER_SEARCH_PATHS = (
502525
"$(inherited)",
503526
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
504-
"$(SRCROOT)/node_modules/react-native/React/**",
505527
);
506528
INFOPLIST_FILE = iOS/Info.plist;
507529
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
014A3B6A1C6CF34500B6D375 /* UIImagePickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 014A3B691C6CF34500B6D375 /* UIImagePickerManager.m */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXCopyFilesBuildPhase section */
14+
014A3B5A1C6CF33500B6D375 /* CopyFiles */ = {
15+
isa = PBXCopyFilesBuildPhase;
16+
buildActionMask = 2147483647;
17+
dstPath = "include/$(PRODUCT_NAME)";
18+
dstSubfolderSpec = 16;
19+
files = (
20+
);
21+
runOnlyForDeploymentPostprocessing = 0;
22+
};
23+
/* End PBXCopyFilesBuildPhase section */
24+
25+
/* Begin PBXFileReference section */
26+
014A3B5C1C6CF33500B6D375 /* libRNImagePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNImagePicker.a; sourceTree = BUILT_PRODUCTS_DIR; };
27+
014A3B681C6CF34500B6D375 /* UIImagePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIImagePickerManager.h; sourceTree = "<group>"; };
28+
014A3B691C6CF34500B6D375 /* UIImagePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIImagePickerManager.m; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
014A3B591C6CF33500B6D375 /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
014A3B531C6CF33500B6D375 = {
43+
isa = PBXGroup;
44+
children = (
45+
014A3B681C6CF34500B6D375 /* UIImagePickerManager.h */,
46+
014A3B691C6CF34500B6D375 /* UIImagePickerManager.m */,
47+
014A3B5D1C6CF33500B6D375 /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
014A3B5D1C6CF33500B6D375 /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
014A3B5C1C6CF33500B6D375 /* libRNImagePicker.a */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
/* End PBXGroup section */
60+
61+
/* Begin PBXNativeTarget section */
62+
014A3B5B1C6CF33500B6D375 /* RNImagePicker */ = {
63+
isa = PBXNativeTarget;
64+
buildConfigurationList = 014A3B651C6CF33500B6D375 /* Build configuration list for PBXNativeTarget "RNImagePicker" */;
65+
buildPhases = (
66+
014A3B581C6CF33500B6D375 /* Sources */,
67+
014A3B591C6CF33500B6D375 /* Frameworks */,
68+
014A3B5A1C6CF33500B6D375 /* CopyFiles */,
69+
);
70+
buildRules = (
71+
);
72+
dependencies = (
73+
);
74+
name = RNImagePicker;
75+
productName = RNImagePicker;
76+
productReference = 014A3B5C1C6CF33500B6D375 /* libRNImagePicker.a */;
77+
productType = "com.apple.product-type.library.static";
78+
};
79+
/* End PBXNativeTarget section */
80+
81+
/* Begin PBXProject section */
82+
014A3B541C6CF33500B6D375 /* Project object */ = {
83+
isa = PBXProject;
84+
attributes = {
85+
LastUpgradeCheck = 0720;
86+
ORGANIZATIONNAME = "Marc Shilling";
87+
TargetAttributes = {
88+
014A3B5B1C6CF33500B6D375 = {
89+
CreatedOnToolsVersion = 7.2.1;
90+
};
91+
};
92+
};
93+
buildConfigurationList = 014A3B571C6CF33500B6D375 /* Build configuration list for PBXProject "RNImagePicker" */;
94+
compatibilityVersion = "Xcode 3.2";
95+
developmentRegion = English;
96+
hasScannedForEncodings = 0;
97+
knownRegions = (
98+
en,
99+
);
100+
mainGroup = 014A3B531C6CF33500B6D375;
101+
productRefGroup = 014A3B5D1C6CF33500B6D375 /* Products */;
102+
projectDirPath = "";
103+
projectRoot = "";
104+
targets = (
105+
014A3B5B1C6CF33500B6D375 /* RNImagePicker */,
106+
);
107+
};
108+
/* End PBXProject section */
109+
110+
/* Begin PBXSourcesBuildPhase section */
111+
014A3B581C6CF33500B6D375 /* Sources */ = {
112+
isa = PBXSourcesBuildPhase;
113+
buildActionMask = 2147483647;
114+
files = (
115+
014A3B6A1C6CF34500B6D375 /* UIImagePickerManager.m in Sources */,
116+
);
117+
runOnlyForDeploymentPostprocessing = 0;
118+
};
119+
/* End PBXSourcesBuildPhase section */
120+
121+
/* Begin XCBuildConfiguration section */
122+
014A3B631C6CF33500B6D375 /* Debug */ = {
123+
isa = XCBuildConfiguration;
124+
buildSettings = {
125+
ALWAYS_SEARCH_USER_PATHS = NO;
126+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127+
CLANG_CXX_LIBRARY = "libc++";
128+
CLANG_ENABLE_MODULES = YES;
129+
CLANG_ENABLE_OBJC_ARC = YES;
130+
CLANG_WARN_BOOL_CONVERSION = YES;
131+
CLANG_WARN_CONSTANT_CONVERSION = YES;
132+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133+
CLANG_WARN_EMPTY_BODY = YES;
134+
CLANG_WARN_ENUM_CONVERSION = YES;
135+
CLANG_WARN_INT_CONVERSION = YES;
136+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
137+
CLANG_WARN_UNREACHABLE_CODE = YES;
138+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
139+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
140+
COPY_PHASE_STRIP = NO;
141+
DEBUG_INFORMATION_FORMAT = dwarf;
142+
ENABLE_STRICT_OBJC_MSGSEND = YES;
143+
ENABLE_TESTABILITY = YES;
144+
GCC_C_LANGUAGE_STANDARD = gnu99;
145+
GCC_DYNAMIC_NO_PIC = NO;
146+
GCC_NO_COMMON_BLOCKS = YES;
147+
GCC_OPTIMIZATION_LEVEL = 0;
148+
GCC_PREPROCESSOR_DEFINITIONS = (
149+
"DEBUG=1",
150+
"$(inherited)",
151+
);
152+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
153+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
154+
GCC_WARN_UNDECLARED_SELECTOR = YES;
155+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
156+
GCC_WARN_UNUSED_FUNCTION = YES;
157+
GCC_WARN_UNUSED_VARIABLE = YES;
158+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
159+
MTL_ENABLE_DEBUG_INFO = YES;
160+
ONLY_ACTIVE_ARCH = YES;
161+
SDKROOT = iphoneos;
162+
};
163+
name = Debug;
164+
};
165+
014A3B641C6CF33500B6D375 /* Release */ = {
166+
isa = XCBuildConfiguration;
167+
buildSettings = {
168+
ALWAYS_SEARCH_USER_PATHS = NO;
169+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
170+
CLANG_CXX_LIBRARY = "libc++";
171+
CLANG_ENABLE_MODULES = YES;
172+
CLANG_ENABLE_OBJC_ARC = YES;
173+
CLANG_WARN_BOOL_CONVERSION = YES;
174+
CLANG_WARN_CONSTANT_CONVERSION = YES;
175+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
176+
CLANG_WARN_EMPTY_BODY = YES;
177+
CLANG_WARN_ENUM_CONVERSION = YES;
178+
CLANG_WARN_INT_CONVERSION = YES;
179+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
180+
CLANG_WARN_UNREACHABLE_CODE = YES;
181+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
182+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
183+
COPY_PHASE_STRIP = NO;
184+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
185+
ENABLE_NS_ASSERTIONS = NO;
186+
ENABLE_STRICT_OBJC_MSGSEND = YES;
187+
GCC_C_LANGUAGE_STANDARD = gnu99;
188+
GCC_NO_COMMON_BLOCKS = YES;
189+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
190+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
191+
GCC_WARN_UNDECLARED_SELECTOR = YES;
192+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
193+
GCC_WARN_UNUSED_FUNCTION = YES;
194+
GCC_WARN_UNUSED_VARIABLE = YES;
195+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
196+
MTL_ENABLE_DEBUG_INFO = NO;
197+
SDKROOT = iphoneos;
198+
VALIDATE_PRODUCT = YES;
199+
};
200+
name = Release;
201+
};
202+
014A3B661C6CF33500B6D375 /* Debug */ = {
203+
isa = XCBuildConfiguration;
204+
buildSettings = {
205+
HEADER_SEARCH_PATHS = (
206+
"$(SRCROOT)/../node_modules/react-native/React/**",
207+
"$(SRCROOT)/../../react-native/React/**",
208+
);
209+
OTHER_LDFLAGS = "-ObjC";
210+
PRODUCT_NAME = "$(TARGET_NAME)";
211+
SKIP_INSTALL = YES;
212+
};
213+
name = Debug;
214+
};
215+
014A3B671C6CF33500B6D375 /* Release */ = {
216+
isa = XCBuildConfiguration;
217+
buildSettings = {
218+
HEADER_SEARCH_PATHS = (
219+
"$(SRCROOT)/../node_modules/react-native/React/**",
220+
"$(SRCROOT)/../../react-native/React/**",
221+
);
222+
OTHER_LDFLAGS = "-ObjC";
223+
PRODUCT_NAME = "$(TARGET_NAME)";
224+
SKIP_INSTALL = YES;
225+
};
226+
name = Release;
227+
};
228+
/* End XCBuildConfiguration section */
229+
230+
/* Begin XCConfigurationList section */
231+
014A3B571C6CF33500B6D375 /* Build configuration list for PBXProject "RNImagePicker" */ = {
232+
isa = XCConfigurationList;
233+
buildConfigurations = (
234+
014A3B631C6CF33500B6D375 /* Debug */,
235+
014A3B641C6CF33500B6D375 /* Release */,
236+
);
237+
defaultConfigurationIsVisible = 0;
238+
defaultConfigurationName = Release;
239+
};
240+
014A3B651C6CF33500B6D375 /* Build configuration list for PBXNativeTarget "RNImagePicker" */ = {
241+
isa = XCConfigurationList;
242+
buildConfigurations = (
243+
014A3B661C6CF33500B6D375 /* Debug */,
244+
014A3B671C6CF33500B6D375 /* Release */,
245+
);
246+
defaultConfigurationIsVisible = 0;
247+
defaultConfigurationName = Release;
248+
};
249+
/* End XCConfigurationList section */
250+
};
251+
rootObject = 014A3B541C6CF33500B6D375 /* Project object */;
252+
}

ios/UIImagePickerManager.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ - (instancetype)init
108108
to mimic an action sheet */
109109
self.alertController.popoverPresentationController.sourceView = root.view;
110110
self.alertController.popoverPresentationController.sourceRect = CGRectMake(root.view.bounds.size.width / 2.0, root.view.bounds.size.height, 1.0, 1.0);
111+
112+
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
113+
self.alertController.popoverPresentationController.permittedArrowDirections = 0;
114+
for (id subview in self.alertController.view.subviews) {
115+
if ([subview isMemberOfClass:[UIView class]]) {
116+
((UIView *)subview).backgroundColor = [UIColor whiteColor];
117+
}
118+
}
119+
}
120+
111121
[root presentViewController:self.alertController animated:YES completion:nil];
112122
});
113123
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
"native",
2626
"image",
2727
"picker"
28-
]
28+
],
29+
"devDependencies": {
30+
"react-native": "^0.19.0"
31+
}
2932
}

0 commit comments

Comments
 (0)