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
5 changes: 5 additions & 0 deletions .changeset/twenty-rabbits-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@capacitor/background-runner": minor
---

iOS: Adding support for Swift Package Manager
12 changes: 9 additions & 3 deletions .github/workflows/reusable_unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
- name: Install PNPM
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 10
run_install: false
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_16.2.0.app && /usr/bin/xcodebuild -version
- name: Run ios-engine unit tests
run: cd ./packages/ios-engine && swift package clean && swift test
run: |
cd ./packages/capacitor-plugin
pnpm run verify:ios

unit-test-android:
runs-on: macos-13
Expand Down
28 changes: 28 additions & 0 deletions apps/example-app-spm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.vscode
.idea

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Optional eslint cache
.eslintcache
84 changes: 84 additions & 0 deletions apps/example-app-spm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Change Log

## 1.0.9

### Patch Changes

- Updated dependencies [2eda1d1]
- Updated dependencies [b76dbd4]
- Updated dependencies [a484f9f]
- Updated dependencies [ef998c1]
- Updated dependencies [8ef1ca0]
- @capacitor/background-runner@2.2.0

## 1.0.8

### Patch Changes

- Updated dependencies [0e13e79]
- @capacitor/background-runner@2.1.0

## 1.0.7

### Patch Changes

- Updated dependencies [4cc44dd]
- Updated dependencies [7adb608]
- Updated dependencies [36d9a61]
- Updated dependencies [4957271]
- Updated dependencies [3194a7d]
- @capacitor/background-runner@2.0.0

## 1.0.6

### Patch Changes

- Updated dependencies [174f2fe]
- Updated dependencies [11124d2]
- Updated dependencies [142e96d]
- Updated dependencies [18f72b6]
- Updated dependencies [d6511b2]
- Updated dependencies [b09f30e]
- @capacitor/background-runner@1.1.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.5](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.4...1.0.5) (2023-08-17)

**Note:** Version bump only for package example-app

## [1.0.4](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.3...1.0.4) (2023-08-10)

**Note:** Version bump only for package example-app

## [1.0.3](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.2...1.0.3) (2023-08-10)

**Note:** Version bump only for package example-app

## [1.0.2](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.1...1.0.2) (2023-08-10)

**Note:** Version bump only for package example-app

## [1.0.1](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.0...1.0.1) (2023-08-09)

### Bug Fixes

- setting JavaVersion to 17 ([#14](https://github.com/ionic-team/capacitor-background-runner/issues/14)) ([5844d0c](https://github.com/ionic-team/capacitor-background-runner/commit/5844d0c814378b9c4ebafe752c297d7110e8c2ba))
- Supporting post install script on Windows ([#12](https://github.com/ionic-team/capacitor-background-runner/issues/12)) ([75b4ed0](https://github.com/ionic-team/capacitor-background-runner/commit/75b4ed0cdb44c4caa506c9969b7fdbbe2e122779))

# 1.0.0 (2023-07-18)

### Features

- Android JS Engine / Plugin ([#6](https://github.com/ionic-team/enterprise-background-runner/issues/6)) ([1f52918](https://github.com/ionic-team/enterprise-background-runner/commit/1f52918784d91558a3e7798d5449887d7fb5cd32))
- Capacitor Plugin ([#3](https://github.com/ionic-team/enterprise-background-runner/issues/3)) ([ffac505](https://github.com/ionic-team/enterprise-background-runner/commit/ffac505560c144d2478ed6de49dc7d0c5130b15c))
- **iOS:** Adding Capacitor Web APIs ([#4](https://github.com/ionic-team/enterprise-background-runner/issues/4)) ([7daa335](https://github.com/ionic-team/enterprise-background-runner/commit/7daa3350335989e8caf20c7258074a6dfa5d2cfe))

# 1.0.0-rc.1 (2023-07-18)

### Features

- Android JS Engine / Plugin ([#6](https://github.com/ionic-team/capacitor-background-runner/issues/6)) ([1f52918](https://github.com/ionic-team/capacitor-background-runner/commit/1f52918784d91558a3e7798d5449887d7fb5cd32))
- Capacitor Plugin ([#3](https://github.com/ionic-team/capacitor-background-runner/issues/3)) ([ffac505](https://github.com/ionic-team/capacitor-background-runner/commit/ffac505560c144d2478ed6de49dc7d0c5130b15c))
- **iOS:** Adding Capacitor Web APIs ([#4](https://github.com/ionic-team/capacitor-background-runner/issues/4)) ([7daa335](https://github.com/ionic-team/capacitor-background-runner/commit/7daa3350335989e8caf20c7258074a6dfa5d2cfe))
22 changes: 22 additions & 0 deletions apps/example-app-spm/capacitor.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/// <reference types="@capacitor/background-runner" />

import { CapacitorConfig } from "@capacitor/cli";

const config: CapacitorConfig = {
appId: "io.ionic.starter",
appName: "example-app",
webDir: "build",
bundledWebRuntime: false,
plugins: {
BackgroundRunner: {
label: "com.example.background.task",
src: "background.js",
event: "monitorLocation",
repeat: true,
interval: 2,
autoStart: false,
},
},
};

export default config;
7 changes: 7 additions & 0 deletions apps/example-app-spm/ionic.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "example-app",
"integrations": {
"capacitor": {}
},
"type": "react"
}
13 changes: 13 additions & 0 deletions apps/example-app-spm/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
App/build
App/Pods
App/output
App/App/public
DerivedData
xcuserdata

# Cordova plugins for Capacitor
capacitor-cordova-ios-plugins

# Generated Config files
App/App/capacitor.config.json
App/App/config.xml
Loading
Loading