Skip to content

Commit 9c060c6

Browse files
committed
996ICU license
1 parent a4ca3ad commit 9c060c6

File tree

4 files changed

+74
-22
lines changed

4 files changed

+74
-22
lines changed

Diff for: LICENSE

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
Copyright (c) 2018 douking <[email protected]>
2-
3-
Permission is hereby granted, free of charge, to any person obtaining a copy
4-
of this software and associated documentation files (the "Software"), to deal
5-
in the Software without restriction, including without limitation the rights
6-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7-
copies of the Software, and to permit persons to whom the Software is
8-
furnished to do so, subject to the following conditions:
9-
10-
The above copyright notice and this permission notice shall be included in
11-
all copies or substantial portions of the Software.
12-
13-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
1+
LICENSE.MIT AND LICENSE.NPL

Diff for: LICENSE.MIT

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 DouKing <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: LICENSE.NPL

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Copyright (c) 2019 DouKing <[email protected]>
2+
3+
996 License Version 1.0 (Draft)
4+
5+
Permission is hereby granted to any individual or legal entity
6+
obtaining a copy of this licensed work (including the source code,
7+
documentation and/or related items, hereinafter collectively referred
8+
to as the "licensed work"), free of charge, to deal with the licensed
9+
work for any purpose, including without limitation, the rights to use,
10+
reproduce, prepare derivative works of, distribute and sublicense the
11+
licensed work, subject to the following conditions:
12+
13+
1. The individual or the legal entity must conspicuously display,
14+
without modification, this License on each redistributed or derivative
15+
copy of the Licensed Work.
16+
17+
2. The individual or the legal entity must strictly comply with all
18+
applicable laws, regulations, rules and standards of the jurisdiction
19+
relating to labor and employment where the individual is physically
20+
located or where the individual was born or naturalized; or where the
21+
legal entity is registered or is operating (whichever is stricter). In
22+
case that the jurisdiction has no such laws, regulations, rules and
23+
standards or its laws, regulations, rules and standards are
24+
unenforceable, the individual or the legal entity are required to
25+
comply with Core International Labor Standards.
26+
27+
3. The individual or the legal entity shall not induce or force its
28+
employee(s), whether full-time or part-time, or its independent
29+
contractor(s), in any methods, to agree in oral or written form, to
30+
directly or indirectly restrict, weaken or relinquish his or her
31+
rights or remedies under such laws, regulations, rules and standards
32+
relating to labor and employment as mentioned above, no matter whether
33+
such written or oral agreement are enforceable under the laws of the
34+
said jurisdiction, nor shall such individual or the legal entity
35+
limit, in any methods, the rights of its employee(s) or independent
36+
contractor(s) from reporting or complaining to the copyright holder or
37+
relevant authorities monitoring the compliance of the license about
38+
its violation(s) of the said license.
39+
40+
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
42+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
43+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
44+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
45+
OTHERWISE, ARISING FROM, OUT OF OR IN ANY WAY CONNECTION WITH THE
46+
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.

Diff for: README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
2+
[![LICENSE](https://img.shields.io/badge/license-NPL%20(The%20996%20Prohibited%20License)-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)
3+
14
# STMScriptMessageHandler
25

36
![capture](./Capture.gif)
@@ -16,11 +19,11 @@ iOS 8.0+
1619

1720
```objectivec
1821

19-
//When the native register a `STMScriptMessageHandler` called Bridge, ths js register a object called `App.Bridge`.
22+
//When the native register a STMScriptMessageHandler called `Bridge`, the js register a object called `App.Bridge`.
2023
STMScriptMessageHandler *messageHandler = [[STMScriptMessageHandler alloc] initWithScriptMessageHandlerName:@"Bridge" forWebView:self.webView];
2124
[self.webView stm_addScriptMessageHandler:messageHandler];
2225

23-
// register a message handler named `Page`, so the js should call your method (that the message handler registered) use App.Page.callMethod...
26+
// register a message handler named `Page`, so the js should call your method (that the message handler registered) use `App.Page.callMethod...`
2427
STMScriptMessageHandler *page = [[STMScriptMessageHandler alloc] initWithScriptMessageHandlerName:@"Page" forWebView:self.webView];
2528
[self.webView registerScriptMessageHandler:page];
2629

@@ -58,4 +61,4 @@ pod 'STMScriptMessageHandler'
5861

5962
## License
6063

61-
STMScriptMessageHandler is available under the MIT license. See the LICENSE file for more info.
64+
STMScriptMessageHandler is available under the MIT license and 996ICU license. See file `LICENSE.MIT` and `LICENSE.NPL` for more info.

0 commit comments

Comments
 (0)