Skip to content

Commit cd4e84d

Browse files
committed
feat(all): add Cartile && update 0.2.0
1 parent add51a1 commit cd4e84d

File tree

5 files changed

+31
-17
lines changed

5 files changed

+31
-17
lines changed

Framework/LLDynamicLaunchScreen.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@
183183
CLANG_WARN_UNREACHABLE_CODE = YES;
184184
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185185
COPY_PHASE_STRIP = NO;
186-
CURRENT_PROJECT_VERSION = 0.1.9;
186+
CURRENT_PROJECT_VERSION = 0.2.0;
187187
DEBUG_INFORMATION_FORMAT = dwarf;
188-
DYLIB_CURRENT_VERSION = 0.1.9;
188+
DYLIB_CURRENT_VERSION = 0.2.0;
189189
ENABLE_STRICT_OBJC_MSGSEND = YES;
190190
ENABLE_TESTABILITY = YES;
191191
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -246,9 +246,9 @@
246246
CLANG_WARN_UNREACHABLE_CODE = YES;
247247
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
248248
COPY_PHASE_STRIP = NO;
249-
CURRENT_PROJECT_VERSION = 0.1.9;
249+
CURRENT_PROJECT_VERSION = 0.2.0;
250250
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
251-
DYLIB_CURRENT_VERSION = 0.1.9;
251+
DYLIB_CURRENT_VERSION = 0.2.0;
252252
ENABLE_NS_ASSERTIONS = NO;
253253
ENABLE_STRICT_OBJC_MSGSEND = YES;
254254
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -273,7 +273,7 @@
273273
isa = XCBuildConfiguration;
274274
buildSettings = {
275275
CODE_SIGN_STYLE = Automatic;
276-
CURRENT_PROJECT_VERSION = 0.1.9;
276+
CURRENT_PROJECT_VERSION = 0.2.0;
277277
DEFINES_MODULE = YES;
278278
DYLIB_COMPATIBILITY_VERSION = 1;
279279
DYLIB_CURRENT_VERSION = 1;
@@ -286,7 +286,7 @@
286286
"@executable_path/Frameworks",
287287
"@loader_path/Frameworks",
288288
);
289-
MARKETING_VERSION = 0.1.9;
289+
MARKETING_VERSION = 0.2.0;
290290
PRODUCT_BUNDLE_IDENTIFIER = com.internetwei.launchScreen;
291291
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
292292
SKIP_INSTALL = YES;
@@ -298,7 +298,7 @@
298298
isa = XCBuildConfiguration;
299299
buildSettings = {
300300
CODE_SIGN_STYLE = Automatic;
301-
CURRENT_PROJECT_VERSION = 0.1.9;
301+
CURRENT_PROJECT_VERSION = 0.2.0;
302302
DEFINES_MODULE = YES;
303303
DYLIB_COMPATIBILITY_VERSION = 1;
304304
DYLIB_CURRENT_VERSION = 1;
@@ -311,7 +311,7 @@
311311
"@executable_path/Frameworks",
312312
"@loader_path/Frameworks",
313313
);
314-
MARKETING_VERSION = 0.1.9;
314+
MARKETING_VERSION = 0.2.0;
315315
PRODUCT_BUNDLE_IDENTIFIER = com.internetwei.launchScreen;
316316
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
317317
SKIP_INSTALL = YES;

LLDynamicLaunchScreen.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'LLDynamicLaunchScreen'
3-
s.version = '0.1.6'
3+
s.version = '0.2.0'
44
s.summary = 'Dynamically modify the iOS Launch Image'
55
s.homepage = 'https://github.com/internetWei/LLDynamicLaunchScreen'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

LLDynamicLaunchScreen/LLDynamicLaunchScreen.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,16 @@ + (void)backupSystemLaunchImage {
292292
}
293293

294294
// 3.将启动图保存到备份文件夹
295-
if (verticalLightImage) {
295+
if (verticalLightImage && verticalLightPath) {
296296
[UIImageJPEGRepresentation(verticalLightImage, 0.8) writeToFile:verticalLightPath atomically:YES];
297297
}
298-
if (verticalDarkImage) {
298+
if (verticalDarkImage && verticalDarkPath) {
299299
[UIImageJPEGRepresentation(verticalDarkImage, 0.8) writeToFile:verticalDarkPath atomically:YES];
300300
}
301-
if (horizontalLightImage) {
301+
if (horizontalLightImage && horizontalLightPath) {
302302
[UIImageJPEGRepresentation(horizontalLightImage, 0.8) writeToFile:horizontalLightPath atomically:YES];
303303
}
304-
if (horizontalDarkImage) {
304+
if (horizontalDarkImage && horizontalDarkPath) {
305305
[UIImageJPEGRepresentation(horizontalDarkImage, 0.8) writeToFile:horizontalDarkPath atomically:YES];
306306
}
307307

@@ -342,6 +342,8 @@ + (BOOL)launchImageCustomBlock:(void (^) (NSString *tmpDirectory))complete {
342342
// 还原系统启动图信息
343343
moveResult = [fileManager moveItemAtPath:tmpDirectory toPath:systemDirectory error:nil];
344344

345+
if (!moveResult) return NO;
346+
345347
// 清理工作目录
346348
if ([fileManager fileExistsAtPath:tmpDirectory]) {
347349
[fileManager removeItemAtPath:tmpDirectory error:nil];

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
LLDynamicLaunchScreen
22
==============
3-
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/internetWei/llDark/blob/master/LICENSE)  [![CocoaPods](https://img.shields.io/badge/pod-0.1.6-blue)](http://cocoapods.org/pods/LLDark)  [![Platform](https://img.shields.io/badge/platform-ios-lightgrey)](https://www.apple.com/nl/ios)  [![Support](https://img.shields.io/badge/support-iOS%209%2B-blue)](https://www.apple.com/nl/ios)
3+
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/internetWei/llDark/blob/master/LICENSE)  [![Carthage](https://img.shields.io/badge/Carthage-compatible-blue)](https://github.com/Carthage/Carthage)  [![CocoaPods](https://img.shields.io/badge/pod-0.2.0-blue)](http://cocoapods.org/pods/LLDark)  [![Platform](https://img.shields.io/badge/platform-ios-lightgrey)](https://www.apple.com/nl/ios)  [![Support](https://img.shields.io/badge/support-iOS%209%2B-blue)](https://www.apple.com/nl/ios)
44

55
Solve the problem of abnormal display of iOS startup map, and support dynamic replacement of startup map.<br>
66
Chinese mainland users can access[This link](https://gitee.com/internetWei/lldynamic-launch-screen)<br>
@@ -47,7 +47,13 @@ Installation
4747
### CocoaPods
4848
1. Add pod 'LLDynamicLaunchScreen' to your Podfile.
4949
2. Run pod install --repo-update.
50-
3. Import <LLDynamicLaunchScreen/LLDynamicLaunchScreen.h>.
50+
3. Import \<LLDynamicLaunchScreen/LLDynamicLaunchScreen.h\>.
51+
52+
### Carthage
53+
54+
1. Add `github "internetWei/LLDynamicLaunchScreen"` to your Cartfile.
55+
2. Run `carthage update --platform ios` and add the framework to your project.
56+
3. Import \<LLDynamicLaunchScreen/LLDynamicLaunchScreen.h\>.
5157
5258
### Manually
5359
1. Download all the files in the LLDynamicLaunchScreen subdirectory.

README_CN.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
LLDynamicLaunchScreen
22
==============
3-
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/internetWei/llDark/blob/master/LICENSE)&nbsp; [![CocoaPods](https://img.shields.io/badge/pod-0.1.6-blue)](http://cocoapods.org/pods/LLDark)&nbsp; [![Platform](https://img.shields.io/badge/platform-ios-lightgrey)](https://www.apple.com/nl/ios)&nbsp; [![Support](https://img.shields.io/badge/support-iOS%209%2B-blue)](https://www.apple.com/nl/ios)
3+
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/internetWei/llDark/blob/master/LICENSE)&nbsp; [![Carthage](https://img.shields.io/badge/Carthage-compatible-blue)](https://github.com/Carthage/Carthage)&nbsp; [![CocoaPods](https://img.shields.io/badge/pod-0.2.0-blue)](http://cocoapods.org/pods/LLDark)&nbsp; [![Platform](https://img.shields.io/badge/platform-ios-lightgrey)](https://www.apple.com/nl/ios)&nbsp; [![Support](https://img.shields.io/badge/support-iOS%209%2B-blue)](https://www.apple.com/nl/ios)
44

55
解决iOS启动图显示异常的问题,并且支持动态更换启动图。<br>
66
中国大陆用户可以访问[这个链接](https://gitee.com/internetWei/lldynamic-launch-screen)
@@ -46,7 +46,13 @@ LLDynamicLaunchScreen.hasDarkImageBlock = ^BOOL(UIImage * _Nonnull image) {
4646
### CocoaPods
4747
1. 在 Podfile 中添加 pod 'LLDynamicLaunchScreen'。
4848
2. 执行 pod install --repo-update。
49-
3. 导入 <LLDynamicLaunchScreen/LLDynamicLaunchScreen.h>。
49+
3. 导入 \<LLDynamicLaunchScreen/LLDynamicLaunchScreen.h\>。
50+
51+
### Carthage
52+
1. 在 Cartfile 中添加 `github "internetWei/LLDynamicLaunchScreen"`。
53+
2. 执行 `carthage update --platform ios` 并将生成的 framework 添加到你的工程。
54+
3. 导入 \<LLDynamicLaunchScreen/LLDynamicLaunchScreen.h\>。
55+
4. [Xcode12生成Cartifle失败参考文章](https://www.liangzl.com/get-article-detail-210255.html)
5056
5157
### 手动安装
5258
1. 下载 LLDynamicLaunchScreen 文件夹内的所有内容。

0 commit comments

Comments
 (0)