Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: CI

on:
push:
branches:
- "**"
pull_request:
push:
branches:
- "**"
- main
jobs:
test:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install xcpretty
run: gem install xcpretty
- name: Run Tests
Expand All @@ -29,7 +27,7 @@ jobs:
steps:
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install cocoapods
run: gem install cocoapods
- name: Lint Podspec
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22.x
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Build Configuration
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22.x
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Build Configuration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install build dependencies
run: gem install cocoapods xcpretty fastlane
- name: Assign version to RELEASE_VERSION environment variable
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ jobs:
steps:
- name: Show Xcode version
run: xcodebuild -version
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Verify release tag
run: |
PODSPEC_VERSION="$(ruby -e "puts File.read('IonicPortals.podspec').match(/s\.version\s*=\s*'([^']+)'/)[1]")"
if [ "$GITHUB_REF_NAME" != "$PODSPEC_VERSION" ]; then
echo "Tag '$GITHUB_REF_NAME' does not match podspec version '$PODSPEC_VERSION'."
exit 1
fi
- name: Install build dependencies
run: gem install cocoapods
- name: Validate podspec
Expand Down
1 change: 1 addition & 0 deletions IonicPortals.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/IonicPortals/**/*.swift'
s.dependency 'Capacitor', '~> 8.0.0'
s.dependency 'IonicLiveUpdates', '>= 0.5.0', '< 0.6.0'
s.dependency 'LiveUpdateProvider', '~> 1.0.0'
s.swift_version = '5.7'
end
8 changes: 5 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.6

import PackageDescription

Expand All @@ -14,15 +14,17 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm", .upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/ionic-team/ionic-live-updates-releases", "0.5.0"..<"0.6.0"),
.package(url: "https://github.com/pointfreeco/swift-clocks", .upToNextMajor(from: "1.0.2"))
.package(url: "https://github.com/pointfreeco/swift-clocks", .upToNextMajor(from: "1.0.2")),
.package(url: "https://github.com/ionic-team/live-update-provider-sdk", .upToNextMajor(from: "1.0.0"))
],
targets: [
.target(
name: "IonicPortals",
dependencies: [
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "IonicLiveUpdates", package: "ionic-live-updates-releases")
.product(name: "IonicLiveUpdates", package: "ionic-live-updates-releases"),
.product(name: "LiveUpdateProvider", package: "live-update-provider-sdk")
]
),
.testTarget(
Expand Down
1 change: 0 additions & 1 deletion Sources/IonicPortals/AssetMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import Foundation
import IonicLiveUpdates

public struct AssetMap {
/// The name to index the asset map by.
Expand Down
16 changes: 0 additions & 16 deletions Sources/IonicPortals/Color+PortalBlue.swift

This file was deleted.

5 changes: 2 additions & 3 deletions Sources/IonicPortals/IonicPortals.docc/Portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Create a Portal

- ``init(name:startDir:index:devModeEnabled:bundle:initialContext:assetMaps:plugins:liveUpdateManager:liveUpdateConfig:)``
- ``init(name:startDir:index:devModeEnabled:bundle:initialContext:assetMaps:plugins:liveUpdateSource:)``
- ``init(stringLiteral:)``

### Web App Location
Expand All @@ -26,8 +26,7 @@

### Live Updates

- ``liveUpdateConfig``
- ``liveUpdateManager``
- ``liveUpdateSource``

### Initial Application State

Expand Down
187 changes: 0 additions & 187 deletions Sources/IonicPortals/Logo.swift

This file was deleted.

Loading
Loading