Skip to content

Commit

Permalink
MOD: <ScreenShield>
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukieSama committed Feb 18, 2022
1 parent 62ec90b commit 8669d74
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 1,636 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ playground.xcworkspace
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Example/Pods
Example/Podfile.lock

# Carthage
#
Expand Down
1 change: 1 addition & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ target 'Swifty_Example' do
# pod 'RyukieSwifty/FullScreen', :path => '../'
# pod 'RyukieSwifty/Router', :path => '../'
# pod 'RyukieSwifty/SwiftyServiceProtocol', :path => '../'
# pod 'RyukieSwifty/ScreenShield', :path => '../'

target 'Swifty_Tests' do
inherit! :search_paths
Expand Down
47 changes: 0 additions & 47 deletions Example/Podfile.lock

This file was deleted.

47 changes: 0 additions & 47 deletions Example/Pods/Manifest.lock

This file was deleted.

1,456 changes: 0 additions & 1,456 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

38 changes: 19 additions & 19 deletions Example/Swifty.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
607FACCC1AFB9204008FA782 /* Sources */,
607FACCD1AFB9204008FA782 /* Frameworks */,
607FACCE1AFB9204008FA782 /* Resources */,
D5F76C2FC8984D02F3BCC17C /* [CP] Embed Pods Frameworks */,
059CCA863845A526DFDAEAAD /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -263,6 +263,24 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
059CCA863845A526DFDAEAAD /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Swifty_Example/Pods-Swifty_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/RyukieSwifty/RyukieSwifty.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RyukieSwifty.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Swifty_Example/Pods-Swifty_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
7D9B47179DB1B6A18445560A /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -325,24 +343,6 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
D5F76C2FC8984D02F3BCC17C /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Swifty_Example/Pods-Swifty_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/RyukieSwifty/RyukieSwifty.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RyukieSwifty.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Swifty_Example/Pods-Swifty_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swifty
# Swifty - Make swift code swifty

[![CI Status](https://img.shields.io/travis/RyukieSama/RyukieSwifty.svg?style=flat)](https://travis-ci.org/RyukieSama/RyukieSwifty)
[![Version](https://img.shields.io/cocoapods/v/RyukieSwifty.svg?style=flat)](https://cocoapods.org/pods/RyukieSwifty)
Expand All @@ -16,13 +16,13 @@ To run the example project, clone the repo, and run `pod install` from the Examp
Swifty is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

## All install
## All install - 安装全部

```ruby
pod 'RyukieSwifty'
```

## Subspec install
## Subspec install - 子模块安装

### UIKit Extension

Expand All @@ -36,13 +36,13 @@ pod 'RyukieSwifty/UIKit'
pod 'RyukieSwifty/CloudKit'
```

### CloudKit Extension
### Foundation Extension

```ruby
pod 'RyukieSwifty/Foundation'
```

### CloudKit Extension
### FullScreen Extension

```ruby
pod 'RyukieSwifty/FullScreen'
Expand All @@ -54,12 +54,22 @@ pod 'RyukieSwifty/FullScreen'
pod 'RyukieSwifty/Router'
```

### Service Protocol
### Service Protocol - MoyaStyleProtocol

混编项目(AFN)或者自定义网络库,通过该协议可以使 `Swift` 内容中的网络请求实现有 `Moya` 的风格,更加 `Swifty`

```ruby
pod 'RyukieSwifty/SwiftyServiceProtocol'
```

### ScreenShield - 截屏防护

极其轻量化的截屏防护方案,任何需要被保护的 `View` 作为子视图放入 `ScreenShieldView` 即可达到截屏时隐藏内容的效果。

```ruby
pod 'RyukieSwifty/ScreenShield'
```

## Author

RyukieSama, [email protected]
Expand Down
6 changes: 5 additions & 1 deletion RyukieSwifty.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = "RyukieSwifty"
s.summary = "Swifty for iOS by.RyukieSama"
s.version = "0.1.2"
s.version = "0.1.3"

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
Expand Down Expand Up @@ -79,4 +79,8 @@ TODO: Add long description of the pod here.
ss.dependency 'RyukieSwifty/Core'
end

s.subspec 'ScreenShield' do |ss|
ss.source_files = 'Swifty/Classes/UIKit/UIView/View/ScreenShieldView.swift'
end

end

0 comments on commit 8669d74

Please sign in to comment.