Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 SwiftPM Support #88

Merged
merged 33 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
47a120b
Dev: add spm support for Android
andriydruk Jan 16, 2024
839403e
Dev: add SPM support for macOS/iOS
andriydruk Jan 25, 2024
568ac0c
Dev: rollback android data
andriydruk Feb 5, 2024
3ab696f
Dev: fix crash in unittest
andriydruk Jan 25, 2024
bb924de
Dev: fix unittest
andriydruk Feb 6, 2024
69bf0ee
Dev: add CI checks
andriydruk Feb 7, 2024
9ed841e
Dev: reconfigure libetpan with poll
andriydruk Feb 7, 2024
a21ed18
Dev: add dynamic library type for mailcore2
andriydruk Feb 7, 2024
2bd7168
Dev: remove swift-install support for this repo
andriydruk Mar 4, 2024
028f8e0
Fix: AB#64400 - Gmail SMTP certificate issue
andriydruk Mar 15, 2024
01efb8d
Merge pull request #83 from readdle/fix/AB-64400-gmail-smtp-certifica…
andriydruk Mar 15, 2024
9a7077a
Dev: fix unsigned char issue on Android
andriydruk Apr 30, 2024
5babf8c
System: use `#filePath` instead of `#file` in Package manifest, AB#67912
lxbndr May 14, 2024
94eb84d
System: update libetpan
lxbndr May 14, 2024
3adb81f
System: use fixed file lists in swift package, AB#67912
lxbndr May 14, 2024
140664a
Merge branch 'spark2' into feature/spm-support
lxbndr Jun 25, 2024
40a54af
System: update libetpan
lxbndr Jul 29, 2024
8fa1a49
Dev: try public macos runner for CI
lxbndr Jul 31, 2024
5b1f5de
Dev: try public macos runner for iOS CI
lxbndr Jul 31, 2024
4363fa4
Dev: actually change runner requirements for iOS
lxbndr Jul 31, 2024
7d3c355
Dev: try public macos runner for Android CI
lxbndr Jul 31, 2024
1a7d6ac
Dev: merge iOS and macOS checks into one with matrix
lxbndr Jul 31, 2024
129432e
System: bump libetpan version
lxbndr Jul 31, 2024
5eb7ade
Dev: put back android CI workload into the script
lxbndr Aug 1, 2024
2d12030
Dev: use xcbeautify for reporting
lxbndr Aug 1, 2024
2161423
Dev: fix timezone in CI android emulator
andriydruk Aug 5, 2024
ee2835b
Test: log providers.json loading
lxbndr Aug 9, 2024
e5cf7a1
Dev: include providers.json into package resources
lxbndr Aug 9, 2024
7898895
Dev: adjust resource loading for swift package
lxbndr Aug 9, 2024
9ec0fad
Cleanup: debug logging
lxbndr Aug 9, 2024
28a4bc1
System: update libetpan
lxbndr Aug 18, 2024
31b2be6
Merge pull request #85 from readdle/feature/spm-support-debug
lxbndr Aug 19, 2024
44c6332
System: update dependencies to tagged versions
lxbndr Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
70 changes: 70 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Pull Request Check

on: pull_request

defaults:
run:
shell: zsh -l {0} # Use zsh iwth login as default shell

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:

Android:
name: "mailcore2 - Android"
runs-on: macos-13

steps:
- uses: actions/checkout@v4
- name: Select XCode 14.2
run: sudo xcode-select --switch /Applications/Xcode_14.2.app
- name: Install NDK
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;25.2.9519653"
- name: Install Swift Android Toolchain
run: wget https://github.com/readdle/swift-android-toolchain/releases/latest/download/swift-android.zip;
unzip swift-android.zip;
swift-android/bin/swift-android tools --update;
- name: Install Android Emulator
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-29;google_apis;x86_64"
- name: Run connected android tests
run: export ANDROID_NDK_ROOT_25C=$ANDROID_HOME/ndk/25.2.9519653;
export SWIFT_ANDROID_HOME_5_7=$(pwd)/swift-android;
./build-scripts/test-android.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - Android - Report
detailed_summary: true
include_passed: true

Darwin:
name: "mailcore2 - ${{ matrix.os }}"
runs-on: macos-latest
timeout-minutes: 60

strategy:
matrix:
os: [macOS, iOS]
include:
- os: macOS
os_lowercased: macos
- os: iOS
os_lowercased: ios

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
run: ./build-scripts/test-${{ matrix.os_lowercased }}.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - ${{ matrix.os }} - Report
detailed_summary: true
include_passed: true
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ cocoapods-build
*.aar
.build
.vs
Package.resolved


LinuxMain.swift
third-party
test.log
junit.xml
.build-ios
ndk-stack.log
43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "ctemplate",
"repositoryURL": "https://github.com/readdle/ctemplate.git",
"state": {
"branch": null,
"revision": "a56e2d43eb57dc1e132a96f0fd9e4df198d1c35b",
"version": "2.2.3-readdle.4"
}
},
{
"package": "etpan",
"repositoryURL": "https://github.com/readdle/libetpan.git",
"state": {
"branch": null,
"revision": "68a9583bb8022f75992e7ebb7956e8bd7197e867",
"version": "1.9.3-readdle.5"
}
},
{
"package": "unicode",
"repositoryURL": "https://github.com/readdle/swift-unicode",
"state": {
"branch": null,
"revision": "fb8aac372834ccb8fab0a5c1742df862d47c4156",
"version": "68.2.0"
}
},
{
"package": "RDHtml5Tidy",
"repositoryURL": "https://github.com/readdle/tidy-html5.git",
"state": {
"branch": null,
"revision": "fa68a7e0ebdc4deab6de668c85a8d8ccf2fb5b19",
"version": "5.4.0-readdle.28"
}
}
]
},
"version": 1
}
Loading
Loading