@@ -19,9 +19,9 @@ Generate a list of licenses for the Swift Package libraries that your app depend
19
19
20
20
## Requirements
21
21
22
+ - Development with Xcode 15.2+
22
23
- Written in Swift 5.9
23
24
- Compatible with iOS 14.0+
24
- - Development with Xcode 15.2+
25
25
26
26
## Privacy Manifest
27
27
@@ -31,15 +31,43 @@ This library does not collect or track user information, so it does not include
31
31
32
32
LicenseList is available through [ Swift Package Manager] ( https://github.com/apple/swift-package-manager/ ) .
33
33
34
- 1 . Integrate LicenseList in your project
35
- - File > Add Packages...
36
- - Search ` https://github.com/cybozu/LicenseList.git `
37
- - Choose ` LicenseList ` product and add it to your application target
38
- <img src =" ./Screenshots/installation-1.png " width =" 600px " />
39
- 2 . Link LicenseList in your application target
40
- - Application Target > ` General ` > ` Frameworks, Libraries, and Embedded Content ` > ` + `
41
- - Choose ` LicenseList `
42
- <img src =" ./Screenshots/installation-2.png " width =" 500px " />
34
+ ** Xcode**
35
+
36
+ 1 . File > Add Package Dependencies…
37
+ 2 . Search ` https://github.com/cybozu/LicenseList.git ` .
38
+ <img src =" Screenshots/add-package-dependencies.png " width =" 800px " >
39
+ 3 . Add package and link ` LicenseList ` to your application target.
40
+ <img src =" Screenshots/add-package.png " width =" 600px " >
41
+
42
+ ** CLI**
43
+
44
+ 1 . Create ` Package.swift ` that describes dependencies.
45
+ ``` swift
46
+ // swift-tools-version: 5.9
47
+ import PackageDescription
48
+
49
+ let package = Package (
50
+ name : " SomeProduct" ,
51
+ products : [
52
+ .library (name : " SomeProduct" , targets : [" SomeProduct" ])
53
+ ],
54
+ dependencies : [
55
+ .package (url : " https://github.com/cybozu/LicenseList.git" , exact : " 0.7.0" )
56
+ ],
57
+ targets : [
58
+ .target (
59
+ name : " SomeProduct" ,
60
+ dependencies : [
61
+ .product (name : " LicenseList" , package : " LicenseList" )
62
+ ]
63
+ )
64
+ ]
65
+ )
66
+ ```
67
+ 2 . Run the following command in Terminal.
68
+ ``` sh
69
+ $ swift package resolve
70
+ ```
43
71
44
72
## Usage
45
73
0 commit comments