diff --git a/.github/ISSUE_TEMPLATE/QUESTION.md b/.github/ISSUE_TEMPLATE/QUESTION.md index 2f8cd3d..bcf708e 100644 --- a/.github/ISSUE_TEMPLATE/QUESTION.md +++ b/.github/ISSUE_TEMPLATE/QUESTION.md @@ -10,13 +10,10 @@ about: Create a bug question. ## Expected Behavior - ## Current Behavior - ## Detailed Description (Include Screenshots) - ## Environment - Library version: @@ -29,4 +26,4 @@ about: Create a bug question. - Devices/Simulators: -- CocoaPods/Carthage version: +- Carthage version: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 09f8477..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Publish -on: - release: - types: [published] -jobs: - publish: - name: Publish - runs-on: macOS-10.15 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.ref }} - - - name: Validation - run: true && [ "${GITHUB_REF##*/}" = "$(cat .version)" ] - - - name: Get ruby gem cache - id: gem-cache - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-1-gem-${{ hashFiles('Gemfile.lock') }} - restore-keys: ${{ runner.os }}-1-gem- - - - name: Install ruby gems - if: steps.gem-cache.cache.outputs.cache-hit != 'true' - run: make gem - - - name: CocoaPods trunk push - run: make pod-release - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/.gitignore b/.gitignore index 4c5dc94..c9dcd2c 100644 --- a/.gitignore +++ b/.gitignore @@ -30,9 +30,6 @@ node_modules ## Carthage Carthage/Build -## CocoaPods -Pods/ - ## SwiftPM .swiftpm .build diff --git a/.version b/.version deleted file mode 100644 index 42045ac..0000000 --- a/.version +++ /dev/null @@ -1 +0,0 @@ -0.3.4 diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 4b39a39..0000000 --- a/Gemfile +++ /dev/null @@ -1,3 +0,0 @@ -source "https://rubygems.org" - -gem 'cocoapods', '1.10.0' diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 38a110f..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,93 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - CFPropertyList (3.0.2) - activesupport (5.2.4.4) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) - algoliasearch (1.27.5) - httpclient (~> 2.8, >= 2.8.3) - json (>= 1.5.1) - atomos (0.1.3) - claide (1.0.3) - cocoapods (1.10.0) - addressable (~> 2.6) - claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.10.0) - cocoapods-deintegrate (>= 1.0.3, < 2.0) - cocoapods-downloader (>= 1.4.0, < 2.0) - cocoapods-plugins (>= 1.0.0, < 2.0) - cocoapods-search (>= 1.0.0, < 2.0) - cocoapods-trunk (>= 1.4.0, < 2.0) - cocoapods-try (>= 1.1.0, < 2.0) - colored2 (~> 3.1) - escape (~> 0.0.4) - fourflusher (>= 2.3.0, < 3.0) - gh_inspector (~> 1.0) - molinillo (~> 0.6.6) - nap (~> 1.0) - ruby-macho (~> 1.4) - xcodeproj (>= 1.19.0, < 2.0) - cocoapods-core (1.10.0) - activesupport (> 5.0, < 6) - addressable (~> 2.6) - algoliasearch (~> 1.0) - concurrent-ruby (~> 1.1) - fuzzy_match (~> 2.0.4) - nap (~> 1.0) - netrc (~> 0.11) - public_suffix - typhoeus (~> 1.0) - cocoapods-deintegrate (1.0.4) - cocoapods-downloader (1.4.0) - cocoapods-plugins (1.0.0) - nap - cocoapods-search (1.0.0) - cocoapods-trunk (1.5.0) - nap (>= 0.8, < 2.0) - netrc (~> 0.11) - cocoapods-try (1.2.0) - colored2 (3.1.2) - concurrent-ruby (1.1.7) - escape (0.0.4) - ethon (0.12.0) - ffi (>= 1.3.0) - ffi (1.13.1) - fourflusher (2.3.1) - fuzzy_match (2.0.4) - gh_inspector (1.1.3) - httpclient (2.8.3) - i18n (1.8.5) - concurrent-ruby (~> 1.0) - json (2.3.1) - minitest (5.14.2) - molinillo (0.6.6) - nanaimo (0.3.0) - nap (1.1.0) - netrc (0.11.0) - public_suffix (4.0.6) - ruby-macho (1.4.0) - thread_safe (0.3.6) - typhoeus (1.4.0) - ethon (>= 0.9.0) - tzinfo (1.2.7) - thread_safe (~> 0.1) - xcodeproj (1.19.0) - CFPropertyList (>= 2.3.3, < 4.0) - atomos (~> 0.1.3) - claide (>= 1.0.2, < 2.0) - colored2 (~> 3.1) - nanaimo (~> 0.3.0) - -PLATFORMS - ruby - -DEPENDENCIES - cocoapods (= 1.10.0) - -BUNDLED WITH - 2.1.4 diff --git a/Makefile b/Makefile index 3cd78c7..9518cf7 100644 --- a/Makefile +++ b/Makefile @@ -20,23 +20,6 @@ format: lint: $(SWIFT_RUN) --package-path Tools swift-format -r -m lint Sources Tests -.PHONY: pod-lib-lint -pod-lib-lint: - for lib in $(LIBS); do \ - bundle exec pod lib lint --quick $$lib.podspec; \ - done - -.PHONY: pod-release -pod-release: - for lib in $(LIBS); do \ - bundle exec pod trunk push $$lib.podspec; \ - done - -.PHONY: gem -gem: - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 - .PHONY: npm npm: npm i diff --git a/Playbook.podspec b/Playbook.podspec deleted file mode 100644 index 668e20c..0000000 --- a/Playbook.podspec +++ /dev/null @@ -1,21 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'Playbook' - spec.version = `cat .version` - spec.author = { 'ra1028' => 'r.fe51028.r@gmail.com' } - spec.homepage = 'https://github.com/playbook-ui/playbook-ios' - spec.documentation_url = 'https://playbook-ui.github.io/playbook-ios' - spec.summary = 'A library for isolated developing UI components and automatically taking snapshots of them.' - spec.source = { :git => 'https://github.com/playbook-ui/playbook-ios.git', :tag => spec.version.to_s } - spec.license = { :type => 'Apache 2.0', :file => 'LICENSE' } - - spec.requires_arc = true - spec.swift_versions = '5.1' - spec.ios.deployment_target = '11.0' - spec.ios.source_files = 'Sources/Playbook/**/*.swift' - spec.ios.weak_frameworks = 'SwiftUI', 'Combine' - - spec.pod_target_xcconfig = { - 'APPLICATION_EXTENSION_API_ONLY' => 'YES', - 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' - } -end diff --git a/PlaybookSnapshot.podspec b/PlaybookSnapshot.podspec deleted file mode 100644 index f1044ce..0000000 --- a/PlaybookSnapshot.podspec +++ /dev/null @@ -1,25 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'PlaybookSnapshot' - spec.version = `cat .version` - spec.author = { 'ra1028' => 'r.fe51028.r@gmail.com' } - spec.homepage = 'https://github.com/playbook-ui/playbook-ios' - spec.documentation_url = 'https://playbook-ui.github.io/playbook-ios' - spec.summary = 'A library for generating snapshot images of components managed by Playbook.' - spec.source = { :git => 'https://github.com/playbook-ui/playbook-ios.git', :tag => spec.version.to_s } - spec.license = { :type => 'Apache 2.0', :file => 'LICENSE' } - - spec.requires_arc = true - spec.swift_versions = '5.1' - spec.ios.deployment_target = '11.0' - spec.ios.source_files = 'Sources/PlaybookSnapshot/**/*.swift' - spec.dependency 'Playbook', "~> #{`cat .version`}" - - spec.pod_target_xcconfig = { - 'APPLICATION_EXTENSION_API_ONLY' => 'YES', - 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES', - 'ENABLE_BITCODE' => 'NO' - } - spec.user_target_xcconfig = { - 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks"' - } -end diff --git a/PlaybookUI.podspec b/PlaybookUI.podspec deleted file mode 100644 index 86ce55c..0000000 --- a/PlaybookUI.podspec +++ /dev/null @@ -1,22 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'PlaybookUI' - spec.version = `cat .version` - spec.author = { 'ra1028' => 'r.fe51028.r@gmail.com' } - spec.homepage = 'https://github.com/playbook-ui/playbook-ios' - spec.documentation_url = 'https://playbook-ui.github.io/playbook-ios' - spec.summary = 'UI library for displaying components managed by Playbook.' - spec.source = { :git => 'https://github.com/playbook-ui/playbook-ios.git', :tag => spec.version.to_s } - spec.license = { :type => 'Apache 2.0', :file => 'LICENSE' } - - spec.requires_arc = true - spec.swift_versions = '5.1' - spec.ios.deployment_target = '13.0' - spec.ios.source_files = 'Sources/PlaybookUI/**/*.swift' - spec.ios.frameworks = 'SwiftUI', 'Combine' - spec.dependency 'Playbook', "~> #{`cat .version`}" - - spec.pod_target_xcconfig = { - 'APPLICATION_EXTENSION_API_ONLY' => 'YES', - 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' - } -end diff --git a/README.md b/README.md index 0362daa..087afbe 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,6 @@
Release Swift Package Manager -CocoaPods Carthage `Playbook` is a library that provides a sandbox for building UI components without having to worry about application-specific dependencies, strongly inspired by [Storybook](https://storybook.js.org/) for JavaScript in web-frontend development. @@ -198,23 +197,6 @@ Playbook features are separated into the following frameworks. - `PlaybookSnapshot`: Generates snapshots of all components. - `PlaybookUI`: Products a browsing UI for components managed by Playbook. -### [CocoaPods](https://cocoapods.org) - -Add the following to your `Podfile`: - -```ruby -target 'YourPlaybook' do - pod 'Playbook' - pod 'PlaybookUI' - - target 'YourPlaybookTests' do - inherit! :search_paths - - pod 'PlaybookSnapshot' - end -end -``` - ### [Carthage](https://github.com/Carthage/Carthage) Add the following to your `Cartfile`: