Skip to content

Commit 0f9c0f9

Browse files
committed
publish v1.0.5
1 parent 324ffd0 commit 0f9c0f9

File tree

8 files changed

+410
-1
lines changed

8 files changed

+410
-1
lines changed

ios/SplashScreen.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// SplashScreen.h
3+
// SplashScreen
4+
// 出自:http://www.cboy.me
5+
// GitHub:https://github.com/crazycodeboy
6+
// Eamil:crazycodeboy@gmail.com
7+
8+
9+
#import "RCTBridgeModule.h"
10+
11+
@interface SplashScreen : NSObject<RCTBridgeModule>
12+
+ (void)show;
13+
@end

ios/SplashScreen.m

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// SplashScreen
2+
// 出自:http://www.cboy.me
3+
// GitHub:https://github.com/crazycodeboy
4+
// Eamil:crazycodeboy@gmail.com
5+
6+
#import "SplashScreen.h"
7+
8+
static bool waiting = true;
9+
10+
@implementation SplashScreen
11+
- (dispatch_queue_t)methodQueue{
12+
return dispatch_get_main_queue();
13+
}
14+
RCT_EXPORT_MODULE()
15+
16+
+ (void)show {
17+
while (waiting) {
18+
NSDate* later = [NSDate dateWithTimeIntervalSinceNow:0.1];
19+
[[NSRunLoop mainRunLoop] runUntilDate:later];
20+
}
21+
}
22+
23+
RCT_EXPORT_METHOD(hide) {
24+
dispatch_async(dispatch_get_main_queue(),
25+
^{
26+
waiting = false;
27+
});
28+
}
29+
@end
Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
3D7682841D8E76D10014119E /* SplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D7682831D8E76D10014119E /* SplashScreen.m */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXCopyFilesBuildPhase section */
14+
3D7682741D8E76B80014119E /* 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+
3D7682761D8E76B80014119E /* libSplashScreen.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSplashScreen.a; sourceTree = BUILT_PRODUCTS_DIR; };
27+
3D7682821D8E76D10014119E /* SplashScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SplashScreen.h; sourceTree = "<group>"; };
28+
3D7682831D8E76D10014119E /* SplashScreen.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SplashScreen.m; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
3D7682731D8E76B80014119E /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
3D76826D1D8E76B80014119E = {
43+
isa = PBXGroup;
44+
children = (
45+
3D7682821D8E76D10014119E /* SplashScreen.h */,
46+
3D7682831D8E76D10014119E /* SplashScreen.m */,
47+
3D7682771D8E76B80014119E /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
3D7682771D8E76B80014119E /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
3D7682761D8E76B80014119E /* libSplashScreen.a */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
/* End PBXGroup section */
60+
61+
/* Begin PBXNativeTarget section */
62+
3D7682751D8E76B80014119E /* SplashScreen */ = {
63+
isa = PBXNativeTarget;
64+
buildConfigurationList = 3D76827F1D8E76B80014119E /* Build configuration list for PBXNativeTarget "SplashScreen" */;
65+
buildPhases = (
66+
3D7682721D8E76B80014119E /* Sources */,
67+
3D7682731D8E76B80014119E /* Frameworks */,
68+
3D7682741D8E76B80014119E /* CopyFiles */,
69+
);
70+
buildRules = (
71+
);
72+
dependencies = (
73+
);
74+
name = SplashScreen;
75+
productName = SplashScreen;
76+
productReference = 3D7682761D8E76B80014119E /* libSplashScreen.a */;
77+
productType = "com.apple.product-type.library.static";
78+
};
79+
/* End PBXNativeTarget section */
80+
81+
/* Begin PBXProject section */
82+
3D76826E1D8E76B80014119E /* Project object */ = {
83+
isa = PBXProject;
84+
attributes = {
85+
LastUpgradeCheck = 0730;
86+
ORGANIZATIONNAME = cboy;
87+
TargetAttributes = {
88+
3D7682751D8E76B80014119E = {
89+
CreatedOnToolsVersion = 7.3.1;
90+
DevelopmentTeam = Y3MLDMF5L7;
91+
};
92+
};
93+
};
94+
buildConfigurationList = 3D7682711D8E76B80014119E /* Build configuration list for PBXProject "SplashScreen" */;
95+
compatibilityVersion = "Xcode 3.2";
96+
developmentRegion = English;
97+
hasScannedForEncodings = 0;
98+
knownRegions = (
99+
en,
100+
);
101+
mainGroup = 3D76826D1D8E76B80014119E;
102+
productRefGroup = 3D7682771D8E76B80014119E /* Products */;
103+
projectDirPath = "";
104+
projectRoot = "";
105+
targets = (
106+
3D7682751D8E76B80014119E /* SplashScreen */,
107+
);
108+
};
109+
/* End PBXProject section */
110+
111+
/* Begin PBXSourcesBuildPhase section */
112+
3D7682721D8E76B80014119E /* Sources */ = {
113+
isa = PBXSourcesBuildPhase;
114+
buildActionMask = 2147483647;
115+
files = (
116+
3D7682841D8E76D10014119E /* SplashScreen.m in Sources */,
117+
);
118+
runOnlyForDeploymentPostprocessing = 0;
119+
};
120+
/* End PBXSourcesBuildPhase section */
121+
122+
/* Begin XCBuildConfiguration section */
123+
3D76827D1D8E76B80014119E /* Debug */ = {
124+
isa = XCBuildConfiguration;
125+
buildSettings = {
126+
ALWAYS_SEARCH_USER_PATHS = NO;
127+
CLANG_ANALYZER_NONNULL = YES;
128+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
129+
CLANG_CXX_LIBRARY = "libc++";
130+
CLANG_ENABLE_MODULES = YES;
131+
CLANG_ENABLE_OBJC_ARC = YES;
132+
CLANG_WARN_BOOL_CONVERSION = YES;
133+
CLANG_WARN_CONSTANT_CONVERSION = YES;
134+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
135+
CLANG_WARN_EMPTY_BODY = YES;
136+
CLANG_WARN_ENUM_CONVERSION = YES;
137+
CLANG_WARN_INT_CONVERSION = YES;
138+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
139+
CLANG_WARN_UNREACHABLE_CODE = YES;
140+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
141+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
142+
COPY_PHASE_STRIP = NO;
143+
DEBUG_INFORMATION_FORMAT = dwarf;
144+
ENABLE_STRICT_OBJC_MSGSEND = YES;
145+
ENABLE_TESTABILITY = YES;
146+
GCC_C_LANGUAGE_STANDARD = gnu99;
147+
GCC_DYNAMIC_NO_PIC = NO;
148+
GCC_NO_COMMON_BLOCKS = YES;
149+
GCC_OPTIMIZATION_LEVEL = 0;
150+
GCC_PREPROCESSOR_DEFINITIONS = (
151+
"DEBUG=1",
152+
"$(inherited)",
153+
);
154+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
155+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
156+
GCC_WARN_UNDECLARED_SELECTOR = YES;
157+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
158+
GCC_WARN_UNUSED_FUNCTION = YES;
159+
GCC_WARN_UNUSED_VARIABLE = YES;
160+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
161+
MTL_ENABLE_DEBUG_INFO = YES;
162+
ONLY_ACTIVE_ARCH = YES;
163+
SDKROOT = iphoneos;
164+
};
165+
name = Debug;
166+
};
167+
3D76827E1D8E76B80014119E /* Release */ = {
168+
isa = XCBuildConfiguration;
169+
buildSettings = {
170+
ALWAYS_SEARCH_USER_PATHS = NO;
171+
CLANG_ANALYZER_NONNULL = YES;
172+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
173+
CLANG_CXX_LIBRARY = "libc++";
174+
CLANG_ENABLE_MODULES = YES;
175+
CLANG_ENABLE_OBJC_ARC = YES;
176+
CLANG_WARN_BOOL_CONVERSION = YES;
177+
CLANG_WARN_CONSTANT_CONVERSION = YES;
178+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
179+
CLANG_WARN_EMPTY_BODY = YES;
180+
CLANG_WARN_ENUM_CONVERSION = YES;
181+
CLANG_WARN_INT_CONVERSION = YES;
182+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
183+
CLANG_WARN_UNREACHABLE_CODE = YES;
184+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
186+
COPY_PHASE_STRIP = NO;
187+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
188+
ENABLE_NS_ASSERTIONS = NO;
189+
ENABLE_STRICT_OBJC_MSGSEND = YES;
190+
GCC_C_LANGUAGE_STANDARD = gnu99;
191+
GCC_NO_COMMON_BLOCKS = YES;
192+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
193+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
194+
GCC_WARN_UNDECLARED_SELECTOR = YES;
195+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
196+
GCC_WARN_UNUSED_FUNCTION = YES;
197+
GCC_WARN_UNUSED_VARIABLE = YES;
198+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
199+
MTL_ENABLE_DEBUG_INFO = NO;
200+
SDKROOT = iphoneos;
201+
VALIDATE_PRODUCT = YES;
202+
};
203+
name = Release;
204+
};
205+
3D7682801D8E76B80014119E /* Debug */ = {
206+
isa = XCBuildConfiguration;
207+
buildSettings = {
208+
HEADER_SEARCH_PATHS = (
209+
"$(inherited)",
210+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
211+
"$(SRCROOT)/../../../React/**",
212+
"$(SRCROOT)/../../react-native/React/**",
213+
);
214+
OTHER_LDFLAGS = "-ObjC";
215+
PRODUCT_NAME = "$(TARGET_NAME)";
216+
SKIP_INSTALL = YES;
217+
};
218+
name = Debug;
219+
};
220+
3D7682811D8E76B80014119E /* Release */ = {
221+
isa = XCBuildConfiguration;
222+
buildSettings = {
223+
HEADER_SEARCH_PATHS = (
224+
"$(inherited)",
225+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
226+
"$(SRCROOT)/../../../React/**",
227+
"$(SRCROOT)/../../react-native/React/**",
228+
);
229+
OTHER_LDFLAGS = "-ObjC";
230+
PRODUCT_NAME = "$(TARGET_NAME)";
231+
SKIP_INSTALL = YES;
232+
};
233+
name = Release;
234+
};
235+
/* End XCBuildConfiguration section */
236+
237+
/* Begin XCConfigurationList section */
238+
3D7682711D8E76B80014119E /* Build configuration list for PBXProject "SplashScreen" */ = {
239+
isa = XCConfigurationList;
240+
buildConfigurations = (
241+
3D76827D1D8E76B80014119E /* Debug */,
242+
3D76827E1D8E76B80014119E /* Release */,
243+
);
244+
defaultConfigurationIsVisible = 0;
245+
defaultConfigurationName = Release;
246+
};
247+
3D76827F1D8E76B80014119E /* Build configuration list for PBXNativeTarget "SplashScreen" */ = {
248+
isa = XCConfigurationList;
249+
buildConfigurations = (
250+
3D7682801D8E76B80014119E /* Debug */,
251+
3D7682811D8E76B80014119E /* Release */,
252+
);
253+
defaultConfigurationIsVisible = 0;
254+
};
255+
/* End XCConfigurationList section */
256+
};
257+
rootObject = 3D76826E1D8E76B80014119E /* Project object */;
258+
}

ios/SplashScreen.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0730"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
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 = "3D7682751D8E76B80014119E"
18+
BuildableName = "libSplashScreen.a"
19+
BlueprintName = "SplashScreen"
20+
ReferencedContainer = "container:SplashScreen.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "3D7682751D8E76B80014119E"
49+
BuildableName = "libSplashScreen.a"
50+
BlueprintName = "SplashScreen"
51+
ReferencedContainer = "container:SplashScreen.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "3D7682751D8E76B80014119E"
67+
BuildableName = "libSplashScreen.a"
68+
BlueprintName = "SplashScreen"
69+
ReferencedContainer = "container:SplashScreen.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>

0 commit comments

Comments
 (0)