Skip to content

Commit

Permalink
Adding swift package support (#16)
Browse files Browse the repository at this point in the history
* Added Swift Package Manager

* changed class AnyObject

* Fixed README.md

* Added Github Action for test and code coverage and updated podspec

* updated podspec

* updated minimum deployment target
  • Loading branch information
noursandid authored Oct 31, 2023
1 parent 4854206 commit ba2015c
Show file tree
Hide file tree
Showing 101 changed files with 610 additions and 5,497 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on:
push:
branches:
- '**'

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Set up Swift
run: |
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
echo 'export PATH="/usr/bin:$PATH"' >> $GITHUB_PATH
- name: Build and Test
run: |
xcodebuild clean build test -project "SundeedQLiteLibrary.xcodeproj" -scheme "SundeedQLiteLibrary" -destination "platform=iOS Simulator,OS=16.2,name=iPhone 13 Pro" -enableCodeCoverage YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
- name: Install Slather
run: gem install slather
- name: Convert .xcresult to .lcov
run: slather coverage --cobertura-xml --input-format profdata --scheme SundeedQLiteLibrary --output-directory . --ignore "Pods/**/*" SundeedQLiteLibrary.xcodeproj
- name: List files
run: ls -ltr
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cobertura.xml
fail_ci_if_error: true

26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

10 changes: 0 additions & 10 deletions Example/SundeedQLiteExample/Podfile

This file was deleted.

16 changes: 0 additions & 16 deletions Example/SundeedQLiteExample/Podfile.lock

This file was deleted.

16 changes: 0 additions & 16 deletions Example/SundeedQLiteExample/Pods/Manifest.lock

This file was deleted.

710 changes: 0 additions & 710 deletions Example/SundeedQLiteExample/Pods/Pods.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

Loading

0 comments on commit ba2015c

Please sign in to comment.