Skip to content

Commit

Permalink
Merge pull request #29 from cybozu/change-spp-to-internal
Browse files Browse the repository at this point in the history
Change SourcePackagesParser to internal target.
  • Loading branch information
Kyome22 committed Feb 29, 2024
2 parents 9b75f18 + 93fe443 commit 37fd936
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 87 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/release-artifact-bundle.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Dispatch Workflow
name: Run Test

on:
workflow_dispatch:
push:
tags:
- "*.*.*"

jobs:
run-unit-test:
Expand All @@ -22,7 +25,7 @@ jobs:
run: |
xcodebuild -scheme spp test \
-only-testing:SourcePackagesParserTests \
-destination "platform=macOS,arch=x86_64" \
-destination "platform=macOS,arch=arm64" \
-resultBundlePath SourcePackagesParserTests | \
xcpretty -c && exit ${PIPESTATUS[0]}
Expand Down
9 changes: 1 addition & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ let package = Package(
.iOS(.v14)
],
products: [
.executable(
name: "spp",
targets: ["spp"]
),
.library(
name: "LicenseList",
targets: ["LicenseList"]
Expand All @@ -30,10 +26,7 @@ let package = Package(
.testTarget(
name: "SourcePackagesParserTests",
dependencies: [
.target(
name: "spp",
condition: .when(platforms: [.macOS])
)
.target(name: "spp", condition: .when(platforms: [.macOS]))
],
resources: [
.copy("Resources/CouldNotRead"),
Expand Down
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Generate a list of licenses for the Swift Package libraries that your app depend

- Written in Swift 5.9
- Compatible with iOS 14.0+
- Development with Xcode 15.0+
- Development with Xcode 15.2+

## Installation

Expand Down Expand Up @@ -77,19 +77,3 @@ struct ContentView: View {
This repository includes demonstration app for UIKit & SwiftUI.

Open [LicenseDemo/LicenseDemo.xcodeproj](/LicenseDemo/LicenseDemo.xcodeproj) and Run it.

## SourcePackagesParser (spp)

SourcePackagesParser is a command line tool that parses the license information of the Swift Package libraries on which the project depends based on workspace-state.json inside the DerivedData directory.

### Usage

```
$ swift run spp [output directory path] [SourcePackages directory path]
```

- [output directory path]
Path to the directory where the LicenseList.swift file will be placed.

- [SourcePackages directory path]
Example: `~/Library/Developer/Xcode/DerivedData/project-name-xxxxxxxx/SourcePackages`
Binary file modified Screenshots/installation-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37fd936

Please sign in to comment.