Skip to content

Commit 6fa59ad

Browse files
committed
Fix iOS project settins and add podspec
1 parent 2d80852 commit 6fa59ad

File tree

5 files changed

+95
-98
lines changed

5 files changed

+95
-98
lines changed
File renamed without changes.
File renamed without changes.

ios/RNHourFormat.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
Pod::Spec.new do |s|
3+
s.name = "RNHourFormat"
4+
s.version = "1.1.0"
5+
s.summary = "RNHourFormat"
6+
s.description = <<-DESC
7+
Get time format used in user device
8+
DESC
9+
s.homepage = ""
10+
s.license = "MIT"
11+
# s.license = { :type => "MIT", :file => "../LICENSE" }
12+
s.author = { "author" => "mironiasty" }
13+
s.platform = :ios, "9.0"
14+
s.source = { :git => "https://github.com/softwaremansion/react-native-hour-format.git", :tag => "master" }
15+
s.source_files = "RNHourFormat/**/*.{h,m}"
16+
s.requires_arc = true
17+
18+
19+
s.dependency "React"
20+
#s.dependency "others"
21+
22+
end
23+
24+

ios/RNHourFormat.xcodeproj/project.pbxproj

Lines changed: 62 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,33 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 48;
6+
objectVersion = 46;
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
C4F438C81FE0082A00B76CF1 /* RNHourFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = C4F438C71FE0082A00B76CF1 /* RNHourFormat.m */; };
11-
C4F438C91FE0082A00B76CF1 /* RNHourFormat.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4F438C61FE0082A00B76CF1 /* RNHourFormat.h */; };
10+
B3E7B58A1CC2AC0600A0062D /* RNHourFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNHourFormat.m */; };
1211
/* End PBXBuildFile section */
1312

1413
/* Begin PBXCopyFilesBuildPhase section */
15-
C4F438C11FE0082900B76CF1 /* CopyFiles */ = {
14+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
1615
isa = PBXCopyFilesBuildPhase;
1716
buildActionMask = 2147483647;
1817
dstPath = "include/$(PRODUCT_NAME)";
1918
dstSubfolderSpec = 16;
2019
files = (
21-
C4F438C91FE0082A00B76CF1 /* RNHourFormat.h in CopyFiles */,
2220
);
2321
runOnlyForDeploymentPostprocessing = 0;
2422
};
2523
/* End PBXCopyFilesBuildPhase section */
2624

2725
/* Begin PBXFileReference section */
28-
C4F438C31FE0082A00B76CF1 /* libRNHourFormat.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNHourFormat.a; sourceTree = BUILT_PRODUCTS_DIR; };
29-
C4F438C61FE0082A00B76CF1 /* RNHourFormat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNHourFormat.h; sourceTree = "<group>"; };
30-
C4F438C71FE0082A00B76CF1 /* RNHourFormat.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNHourFormat.m; sourceTree = "<group>"; };
26+
134814201AA4EA6300B7C361 /* libRNHourFormat.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNHourFormat.a; sourceTree = BUILT_PRODUCTS_DIR; };
27+
B3E7B5881CC2AC0600A0062D /* RNHourFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNHourFormat.h; sourceTree = "<group>"; };
28+
B3E7B5891CC2AC0600A0062D /* RNHourFormat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNHourFormat.m; sourceTree = "<group>"; };
3129
/* End PBXFileReference section */
3230

3331
/* Begin PBXFrameworksBuildPhase section */
34-
C4F438C01FE0082900B76CF1 /* Frameworks */ = {
32+
58B511D81A9E6C8500147676 /* Frameworks */ = {
3533
isa = PBXFrameworksBuildPhase;
3634
buildActionMask = 2147483647;
3735
files = (
@@ -41,255 +39,221 @@
4139
/* End PBXFrameworksBuildPhase section */
4240

4341
/* Begin PBXGroup section */
44-
C4F438BA1FE0082900B76CF1 = {
42+
134814211AA4EA7D00B7C361 /* Products */ = {
4543
isa = PBXGroup;
4644
children = (
47-
C4F438C51FE0082A00B76CF1 /* RNHourFormat */,
48-
C4F438C41FE0082A00B76CF1 /* Products */,
49-
);
50-
sourceTree = "<group>";
51-
};
52-
C4F438C41FE0082A00B76CF1 /* Products */ = {
53-
isa = PBXGroup;
54-
children = (
55-
C4F438C31FE0082A00B76CF1 /* libRNHourFormat.a */,
45+
134814201AA4EA6300B7C361 /* libRNHourFormat.a */,
5646
);
5747
name = Products;
5848
sourceTree = "<group>";
5949
};
60-
C4F438C51FE0082A00B76CF1 /* RNHourFormat */ = {
50+
58B511D21A9E6C8500147676 = {
6151
isa = PBXGroup;
6252
children = (
63-
C4F438C61FE0082A00B76CF1 /* RNHourFormat.h */,
64-
C4F438C71FE0082A00B76CF1 /* RNHourFormat.m */,
53+
B3E7B5881CC2AC0600A0062D /* RNHourFormat.h */,
54+
B3E7B5891CC2AC0600A0062D /* RNHourFormat.m */,
55+
134814211AA4EA7D00B7C361 /* Products */,
6556
);
66-
path = RNHourFormat;
6757
sourceTree = "<group>";
6858
};
6959
/* End PBXGroup section */
7060

7161
/* Begin PBXNativeTarget section */
72-
C4F438C21FE0082900B76CF1 /* RNHourFormat */ = {
62+
58B511DA1A9E6C8500147676 /* RNHourFormat */ = {
7363
isa = PBXNativeTarget;
74-
buildConfigurationList = C4F438CC1FE0082A00B76CF1 /* Build configuration list for PBXNativeTarget "RNHourFormat" */;
64+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNHourFormat" */;
7565
buildPhases = (
76-
C4F438BF1FE0082900B76CF1 /* Sources */,
77-
C4F438C01FE0082900B76CF1 /* Frameworks */,
78-
C4F438C11FE0082900B76CF1 /* CopyFiles */,
66+
58B511D71A9E6C8500147676 /* Sources */,
67+
58B511D81A9E6C8500147676 /* Frameworks */,
68+
58B511D91A9E6C8500147676 /* CopyFiles */,
7969
);
8070
buildRules = (
8171
);
8272
dependencies = (
8373
);
8474
name = RNHourFormat;
85-
productName = RNHourFormat;
86-
productReference = C4F438C31FE0082A00B76CF1 /* libRNHourFormat.a */;
75+
productName = RCTDataManager;
76+
productReference = 134814201AA4EA6300B7C361 /* libRNHourFormat.a */;
8777
productType = "com.apple.product-type.library.static";
8878
};
8979
/* End PBXNativeTarget section */
9080

9181
/* Begin PBXProject section */
92-
C4F438BB1FE0082900B76CF1 /* Project object */ = {
82+
58B511D31A9E6C8500147676 /* Project object */ = {
9383
isa = PBXProject;
9484
attributes = {
95-
LastUpgradeCheck = 0910;
96-
ORGANIZATIONNAME = "Miron Pawlik";
85+
LastUpgradeCheck = 0830;
86+
ORGANIZATIONNAME = Facebook;
9787
TargetAttributes = {
98-
C4F438C21FE0082900B76CF1 = {
99-
CreatedOnToolsVersion = 9.1;
100-
ProvisioningStyle = Automatic;
88+
58B511DA1A9E6C8500147676 = {
89+
CreatedOnToolsVersion = 6.1.1;
10190
};
10291
};
10392
};
104-
buildConfigurationList = C4F438BE1FE0082900B76CF1 /* Build configuration list for PBXProject "RNHourFormat" */;
105-
compatibilityVersion = "Xcode 8.0";
106-
developmentRegion = en;
93+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNHourFormat" */;
94+
compatibilityVersion = "Xcode 3.2";
95+
developmentRegion = English;
10796
hasScannedForEncodings = 0;
10897
knownRegions = (
10998
en,
11099
);
111-
mainGroup = C4F438BA1FE0082900B76CF1;
112-
productRefGroup = C4F438C41FE0082A00B76CF1 /* Products */;
100+
mainGroup = 58B511D21A9E6C8500147676;
101+
productRefGroup = 58B511D21A9E6C8500147676;
113102
projectDirPath = "";
114103
projectRoot = "";
115104
targets = (
116-
C4F438C21FE0082900B76CF1 /* RNHourFormat */,
105+
58B511DA1A9E6C8500147676 /* RNHourFormat */,
117106
);
118107
};
119108
/* End PBXProject section */
120109

121110
/* Begin PBXSourcesBuildPhase section */
122-
C4F438BF1FE0082900B76CF1 /* Sources */ = {
111+
58B511D71A9E6C8500147676 /* Sources */ = {
123112
isa = PBXSourcesBuildPhase;
124113
buildActionMask = 2147483647;
125114
files = (
126-
C4F438C81FE0082A00B76CF1 /* RNHourFormat.m in Sources */,
115+
B3E7B58A1CC2AC0600A0062D /* RNHourFormat.m in Sources */,
127116
);
128117
runOnlyForDeploymentPostprocessing = 0;
129118
};
130119
/* End PBXSourcesBuildPhase section */
131120

132121
/* Begin XCBuildConfiguration section */
133-
C4F438CA1FE0082A00B76CF1 /* Debug */ = {
122+
58B511ED1A9E6C8500147676 /* Debug */ = {
134123
isa = XCBuildConfiguration;
135124
buildSettings = {
136125
ALWAYS_SEARCH_USER_PATHS = NO;
137-
CLANG_ANALYZER_NONNULL = YES;
138-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
139-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
126+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140127
CLANG_CXX_LIBRARY = "libc++";
141128
CLANG_ENABLE_MODULES = YES;
142129
CLANG_ENABLE_OBJC_ARC = YES;
143-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
144130
CLANG_WARN_BOOL_CONVERSION = YES;
145-
CLANG_WARN_COMMA = YES;
146131
CLANG_WARN_CONSTANT_CONVERSION = YES;
147132
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
148-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
149133
CLANG_WARN_EMPTY_BODY = YES;
150134
CLANG_WARN_ENUM_CONVERSION = YES;
151135
CLANG_WARN_INFINITE_RECURSION = YES;
152136
CLANG_WARN_INT_CONVERSION = YES;
153-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
154-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
155137
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
156-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
157-
CLANG_WARN_STRICT_PROTOTYPES = YES;
158138
CLANG_WARN_SUSPICIOUS_MOVE = YES;
159-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
160139
CLANG_WARN_UNREACHABLE_CODE = YES;
161140
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
162-
CODE_SIGN_IDENTITY = "iPhone Developer";
163141
COPY_PHASE_STRIP = NO;
164-
DEBUG_INFORMATION_FORMAT = dwarf;
165142
ENABLE_STRICT_OBJC_MSGSEND = YES;
166143
ENABLE_TESTABILITY = YES;
167-
GCC_C_LANGUAGE_STANDARD = gnu11;
144+
GCC_C_LANGUAGE_STANDARD = gnu99;
168145
GCC_DYNAMIC_NO_PIC = NO;
169146
GCC_NO_COMMON_BLOCKS = YES;
170147
GCC_OPTIMIZATION_LEVEL = 0;
171148
GCC_PREPROCESSOR_DEFINITIONS = (
172149
"DEBUG=1",
173150
"$(inherited)",
174151
);
152+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
175153
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
176154
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
177155
GCC_WARN_UNDECLARED_SELECTOR = YES;
178156
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
179157
GCC_WARN_UNUSED_FUNCTION = YES;
180158
GCC_WARN_UNUSED_VARIABLE = YES;
181-
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
159+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
182160
MTL_ENABLE_DEBUG_INFO = YES;
183161
ONLY_ACTIVE_ARCH = YES;
184162
SDKROOT = iphoneos;
185163
};
186164
name = Debug;
187165
};
188-
C4F438CB1FE0082A00B76CF1 /* Release */ = {
166+
58B511EE1A9E6C8500147676 /* Release */ = {
189167
isa = XCBuildConfiguration;
190168
buildSettings = {
191169
ALWAYS_SEARCH_USER_PATHS = NO;
192-
CLANG_ANALYZER_NONNULL = YES;
193-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
194-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
170+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
195171
CLANG_CXX_LIBRARY = "libc++";
196172
CLANG_ENABLE_MODULES = YES;
197173
CLANG_ENABLE_OBJC_ARC = YES;
198-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
199174
CLANG_WARN_BOOL_CONVERSION = YES;
200-
CLANG_WARN_COMMA = YES;
201175
CLANG_WARN_CONSTANT_CONVERSION = YES;
202176
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
204177
CLANG_WARN_EMPTY_BODY = YES;
205178
CLANG_WARN_ENUM_CONVERSION = YES;
206179
CLANG_WARN_INFINITE_RECURSION = YES;
207180
CLANG_WARN_INT_CONVERSION = YES;
208-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
209-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
210181
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
211-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
212-
CLANG_WARN_STRICT_PROTOTYPES = YES;
213182
CLANG_WARN_SUSPICIOUS_MOVE = YES;
214-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
215183
CLANG_WARN_UNREACHABLE_CODE = YES;
216184
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
217-
CODE_SIGN_IDENTITY = "iPhone Developer";
218-
COPY_PHASE_STRIP = NO;
219-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
185+
COPY_PHASE_STRIP = YES;
220186
ENABLE_NS_ASSERTIONS = NO;
221187
ENABLE_STRICT_OBJC_MSGSEND = YES;
222-
GCC_C_LANGUAGE_STANDARD = gnu11;
188+
GCC_C_LANGUAGE_STANDARD = gnu99;
223189
GCC_NO_COMMON_BLOCKS = YES;
224190
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
225191
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
226192
GCC_WARN_UNDECLARED_SELECTOR = YES;
227193
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
228194
GCC_WARN_UNUSED_FUNCTION = YES;
229195
GCC_WARN_UNUSED_VARIABLE = YES;
230-
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
196+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
231197
MTL_ENABLE_DEBUG_INFO = NO;
232198
SDKROOT = iphoneos;
233199
VALIDATE_PRODUCT = YES;
234200
};
235201
name = Release;
236202
};
237-
C4F438CD1FE0082A00B76CF1 /* Debug */ = {
203+
58B511F01A9E6C8500147676 /* Debug */ = {
238204
isa = XCBuildConfiguration;
239205
buildSettings = {
240-
CODE_SIGN_STYLE = Automatic;
241-
DEVELOPMENT_TEAM = XLZKCVXA66;
242206
HEADER_SEARCH_PATHS = (
243-
"$(SRCROOT)/../../../react-native/React/**",
207+
"$(inherited)",
208+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
209+
"$(SRCROOT)/../../../React/**",
244210
"$(SRCROOT)/../../react-native/React/**",
245-
"$(SRCROOT)/../../react-native/Libraries",
246211
);
212+
LIBRARY_SEARCH_PATHS = "$(inherited)";
247213
OTHER_LDFLAGS = "-ObjC";
248-
PRODUCT_NAME = "$(TARGET_NAME)";
214+
PRODUCT_NAME = RNHourFormat;
249215
SKIP_INSTALL = YES;
250-
TARGETED_DEVICE_FAMILY = "1,2";
251216
};
252217
name = Debug;
253218
};
254-
C4F438CE1FE0082A00B76CF1 /* Release */ = {
219+
58B511F11A9E6C8500147676 /* Release */ = {
255220
isa = XCBuildConfiguration;
256221
buildSettings = {
257-
CODE_SIGN_STYLE = Automatic;
258-
DEVELOPMENT_TEAM = XLZKCVXA66;
259222
HEADER_SEARCH_PATHS = (
260-
"$(SRCROOT)/../../../react-native/React/**",
223+
"$(inherited)",
224+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
225+
"$(SRCROOT)/../../../React/**",
261226
"$(SRCROOT)/../../react-native/React/**",
262-
"$(SRCROOT)/../../react-native/Libraries",
263227
);
228+
LIBRARY_SEARCH_PATHS = "$(inherited)";
264229
OTHER_LDFLAGS = "-ObjC";
265-
PRODUCT_NAME = "$(TARGET_NAME)";
230+
PRODUCT_NAME = RNHourFormat;
266231
SKIP_INSTALL = YES;
267-
TARGETED_DEVICE_FAMILY = "1,2";
268232
};
269233
name = Release;
270234
};
271235
/* End XCBuildConfiguration section */
272236

273237
/* Begin XCConfigurationList section */
274-
C4F438BE1FE0082900B76CF1 /* Build configuration list for PBXProject "RNHourFormat" */ = {
238+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNHourFormat" */ = {
275239
isa = XCConfigurationList;
276240
buildConfigurations = (
277-
C4F438CA1FE0082A00B76CF1 /* Debug */,
278-
C4F438CB1FE0082A00B76CF1 /* Release */,
241+
58B511ED1A9E6C8500147676 /* Debug */,
242+
58B511EE1A9E6C8500147676 /* Release */,
279243
);
280244
defaultConfigurationIsVisible = 0;
281245
defaultConfigurationName = Release;
282246
};
283-
C4F438CC1FE0082A00B76CF1 /* Build configuration list for PBXNativeTarget "RNHourFormat" */ = {
247+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNHourFormat" */ = {
284248
isa = XCConfigurationList;
285249
buildConfigurations = (
286-
C4F438CD1FE0082A00B76CF1 /* Debug */,
287-
C4F438CE1FE0082A00B76CF1 /* Release */,
250+
58B511F01A9E6C8500147676 /* Debug */,
251+
58B511F11A9E6C8500147676 /* Release */,
288252
);
289253
defaultConfigurationIsVisible = 0;
290254
defaultConfigurationName = Release;
291255
};
292256
/* End XCConfigurationList section */
293257
};
294-
rootObject = C4F438BB1FE0082900B76CF1 /* Project object */;
258+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
295259
}

ios/RNHourFormat.xcworkspace/contents.xcworkspacedata

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)