File tree Expand file tree Collapse file tree 2 files changed +44
-12
lines changed Expand file tree Collapse file tree 2 files changed +44
-12
lines changed Original file line number Diff line number Diff line change
1
+ // swift-tools-version:5.3
2
+
3
+ import PackageDescription
4
+
5
+ let package = Package (
6
+ name: " MJExtension " ,
7
+ products: [
8
+ . library( name: " MJExtension " , targets: [ " MJExtension " ] ) ,
9
+ ] ,
10
+ dependencies: [ ] ,
11
+ targets: [
12
+ . target(
13
+ name: " MJExtension " ,
14
+ dependencies: [ ] ,
15
+ path: " MJExtension " ,
16
+ exclude: [ " Info.plist " ] ,
17
+ publicHeadersPath: " . " ,
18
+ cxxSettings: [
19
+ . headerSearchPath( " . " ) ,
20
+ ]
21
+ ) ,
22
+ // Mixed languages are not supported now. Go MJExtension project to see tests.
23
+ // .testTarget(
24
+ // name: "MJExtensionTests",
25
+ // dependencies: ["MJExtension"],
26
+ // path: "MJExtensionTests",
27
+ // exclude: ["Info.plist"]
28
+ // )
29
+ ]
30
+ )
Original file line number Diff line number Diff line change 1
1
MJExtension
2
2
===
3
+ [ ![ SPM supported] ( https://img.shields.io/badge/SPM-supported-4BC51D.svg?style=flat )] ( https://github.com/apple/swift-package-manager )
3
4
[ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/Carthage/Carthage )
4
5
![ podversion] ( https://img.shields.io/cocoapods/v/MJExtension.svg )
5
6
![ Platform] ( https://img.shields.io/cocoapods/p/MJExtension.svg?style=flat )
7
+
6
8
- A fast, convenient and nonintrusive conversion framework between JSON and model.
7
9
- 转换速度快、使用简单方便的字典转模型框架
8
10
@@ -48,27 +50,27 @@ MJExtension
48
50
49
51
### <a id =" Installation " ></a > Installation【安装】
50
52
51
- #### From CocoaPods【使用CocoaPods】
53
+ #### CocoaPods【使用CocoaPods】
52
54
53
55
``` ruby
54
56
pod ' MJExtension'
55
57
```
56
58
59
+ #### Carthage
60
+
61
+ ``` ruby
62
+ github " CoderMJLee/MJExtension"
63
+ ```
64
+
65
+ #### Swift Package Manager
66
+
67
+ Released from [ ` 3.4.0 ` ] ( https://github.com/CoderMJLee/MJExtension/releases/ )
68
+
57
69
#### Manually【手动导入】
70
+
58
71
- Drag all source files under folder ` MJExtension ` to your project.【将` MJExtension ` 文件夹中的所有源代码拽入项目中】
59
72
- Import the main header file:` #import "MJExtension.h" ` 【导入主头文件:` #import "MJExtension.h" ` 】
60
73
61
- ``` objc
62
- MJExtension.h
63
- MJConst.h MJConst.m
64
- MJFoundation.h MJFoundation.m
65
- MJProperty.h MJProperty.m
66
- MJType.h MJType.m
67
- NSObject +MJCoding.h NSObject +MJCoding.m
68
- NSObject +MJProperty.h NSObject +MJProperty.m
69
- NSObject +MJKeyValue.h NSObject +MJKeyValue.m
70
- ```
71
-
72
74
## <a id =" Examples " ></a > Examples【示例】
73
75
74
76
** Add ` MJKeyValue ` protocol to your model if needed【如果有需要, 请在模型中加入 ` MJKeyValue ` 协议】**
You can’t perform that action at this time.
0 commit comments