Skip to content

Commit 88d35f7

Browse files
author
definitely_not_vlad
authored
Merge pull request #2 from shoutem/feature/implement-podspec
Feature/implement podspec
2 parents 67c37a1 + 9917155 commit 88d35f7

File tree

6 files changed

+48
-59
lines changed

6 files changed

+48
-59
lines changed

CalendarManager.podspec

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Pod::Spec.new do |s|
2+
s.name = "CalendarManager"
3+
s.version = "1.1.0"
4+
s.summary = "Native Shoutem extension used for access to Firebase SDK"
5+
6+
s.homepage = "http://www.shoutem.com"
7+
s.license = { :type => "BSD" }
8+
s.author = { "Vladimir Vdović" => "vlad@definitely-not-vlad.com" }
9+
s.platforms = { :ios => "8.0" }
10+
s.source = { :git => "https://github.com/shoutem/react-native-calendar-manager.git", :tag => "1.0" }
11+
12+
s.source_files = '**/*.{h,m}'
13+
14+
s.dependency 'React'
15+
end

CalendarManager.xcodeproj/project.pbxproj

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
};
66
objectVersion = 46;
77
objects = {
8-
98
/* Begin PBXBuildFile section */
10-
A4B4CC741CE4A5C800F02149 /* CalendarManager.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A4B4CC731CE4A5C800F02149 /* CalendarManager.h */; };
119
A4B4CC761CE4A5C800F02149 /* CalendarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A4B4CC751CE4A5C800F02149 /* CalendarManager.m */; };
1210
/* End PBXBuildFile section */
1311

@@ -92,7 +90,7 @@
9290
A4B4CC681CE4A5C800F02149 /* Project object */ = {
9391
isa = PBXProject;
9492
attributes = {
95-
LastUpgradeCheck = 0730;
93+
LastUpgradeCheck = 0920;
9694
ORGANIZATIONNAME = ShoutEm;
9795
TargetAttributes = {
9896
A4B4CC6F1CE4A5C800F02149 = {
@@ -133,23 +131,28 @@
133131
isa = XCBuildConfiguration;
134132
buildSettings = {
135133
ALWAYS_SEARCH_USER_PATHS = NO;
136-
CLANG_ANALYZER_NONNULL = YES;
137134
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
138135
CLANG_CXX_LIBRARY = "libc++";
139136
CLANG_ENABLE_MODULES = YES;
140137
CLANG_ENABLE_OBJC_ARC = YES;
138+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
141139
CLANG_WARN_BOOL_CONVERSION = YES;
140+
CLANG_WARN_COMMA = YES;
142141
CLANG_WARN_CONSTANT_CONVERSION = YES;
143142
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
144143
CLANG_WARN_EMPTY_BODY = YES;
145144
CLANG_WARN_ENUM_CONVERSION = YES;
145+
CLANG_WARN_INFINITE_RECURSION = YES;
146146
CLANG_WARN_INT_CONVERSION = YES;
147+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
148+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
147149
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
150+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
151+
CLANG_WARN_STRICT_PROTOTYPES = YES;
152+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
148153
CLANG_WARN_UNREACHABLE_CODE = YES;
149154
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
150-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
151155
COPY_PHASE_STRIP = NO;
152-
DEBUG_INFORMATION_FORMAT = dwarf;
153156
ENABLE_STRICT_OBJC_MSGSEND = YES;
154157
ENABLE_TESTABILITY = YES;
155158
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -160,13 +163,14 @@
160163
"DEBUG=1",
161164
"$(inherited)",
162165
);
166+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
163167
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
164168
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
165169
GCC_WARN_UNDECLARED_SELECTOR = YES;
166170
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
167171
GCC_WARN_UNUSED_FUNCTION = YES;
168172
GCC_WARN_UNUSED_VARIABLE = YES;
169-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
173+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
170174
MTL_ENABLE_DEBUG_INFO = YES;
171175
ONLY_ACTIVE_ARCH = YES;
172176
SDKROOT = iphoneos;
@@ -177,23 +181,28 @@
177181
isa = XCBuildConfiguration;
178182
buildSettings = {
179183
ALWAYS_SEARCH_USER_PATHS = NO;
180-
CLANG_ANALYZER_NONNULL = YES;
181184
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
182185
CLANG_CXX_LIBRARY = "libc++";
183186
CLANG_ENABLE_MODULES = YES;
184187
CLANG_ENABLE_OBJC_ARC = YES;
188+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
185189
CLANG_WARN_BOOL_CONVERSION = YES;
190+
CLANG_WARN_COMMA = YES;
186191
CLANG_WARN_CONSTANT_CONVERSION = YES;
187192
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
188193
CLANG_WARN_EMPTY_BODY = YES;
189194
CLANG_WARN_ENUM_CONVERSION = YES;
195+
CLANG_WARN_INFINITE_RECURSION = YES;
190196
CLANG_WARN_INT_CONVERSION = YES;
197+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
198+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
191199
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
200+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
201+
CLANG_WARN_STRICT_PROTOTYPES = YES;
202+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
192203
CLANG_WARN_UNREACHABLE_CODE = YES;
193204
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
194-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
195-
COPY_PHASE_STRIP = NO;
196-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
205+
COPY_PHASE_STRIP = YES;
197206
ENABLE_NS_ASSERTIONS = NO;
198207
ENABLE_STRICT_OBJC_MSGSEND = YES;
199208
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -204,7 +213,7 @@
204213
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
205214
GCC_WARN_UNUSED_FUNCTION = YES;
206215
GCC_WARN_UNUSED_VARIABLE = YES;
207-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
216+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
208217
MTL_ENABLE_DEBUG_INFO = NO;
209218
SDKROOT = iphoneos;
210219
VALIDATE_PRODUCT = YES;
@@ -217,11 +226,12 @@
217226
HEADER_SEARCH_PATHS = (
218227
"$(inherited)",
219228
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
220-
"$(SRCROOT)/../../node_modules/react-native/React/**",
221-
"$(SRCROOT)/node_modules/react-native/React/**",
229+
"$(SRCROOT)/../../React/**",
230+
"$(SRCROOT)/../react-native/React/**",
222231
);
232+
LIBRARY_SEARCH_PATHS = "$(inherited)";
223233
OTHER_LDFLAGS = "-ObjC";
224-
PRODUCT_NAME = "$(TARGET_NAME)";
234+
PRODUCT_NAME = CalendarManager;
225235
SKIP_INSTALL = YES;
226236
};
227237
name = Debug;
@@ -232,11 +242,12 @@
232242
HEADER_SEARCH_PATHS = (
233243
"$(inherited)",
234244
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
235-
"$(SRCROOT)/../../node_modules/react-native/React/**",
236-
"$(SRCROOT)/node_modules/react-native/React/**",
245+
"$(SRCROOT)/../../React/**",
246+
"$(SRCROOT)/../react-native/React/**",
237247
);
248+
LIBRARY_SEARCH_PATHS = "$(inherited)";
238249
OTHER_LDFLAGS = "-ObjC";
239-
PRODUCT_NAME = "$(TARGET_NAME)";
250+
PRODUCT_NAME = CalendarManager;
240251
SKIP_INSTALL = YES;
241252
};
242253
name = Release;
@@ -260,6 +271,7 @@
260271
A4B4CC7B1CE4A5C800F02149 /* Release */,
261272
);
262273
defaultConfigurationIsVisible = 0;
274+
defaultConfigurationName = Release;
263275
};
264276
/* End XCConfigurationList section */
265277
};

CalendarManager/CalendarManager.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ @implementation CalendarManager
5454
editEventController.event = event;
5555
editEventController.eventStore = self.eventStore;
5656
editEventController.editViewDelegate = self;
57-
57+
5858
UIViewController *root = RCTPresentedViewController();
5959
[root presentViewController:editEventController animated:YES completion:nil];
6060
}
@@ -89,4 +89,3 @@ - (void)initEventStoreWithCalendarCapabilities:(NSDictionary *)details callback:
8989
}
9090

9191
@end
92-

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
22
"name": "react-native-calendar-manager",
3-
"version": "1.0.7",
3+
"version": "1.1.0",
44
"description": "A calendar manager for react-native",
55
"main": "index",
66
"repository": {
77
"type": "git",
8-
"url": "git@bitbucket.org:fiveminutes/react-native-calendar-manager.git"
9-
},
10-
"dependencies": {
11-
"xcode": "0.8.4",
12-
"rnpm": "1.6.5"
8+
"url": "https://github.com/shoutem/react-native-calendar-manager"
139
},
1410
"ios": {
1511
"project": "CalendarManager.xcodeproj"

react-native.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/add-to-header-search-path.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)