Skip to content

Generate assets #136

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

Merged
merged 40 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a1594f0
Update Crash CoreData and Data Model
melekr Jul 15, 2024
3431fa5
Migrate Backtrace.podspec resources attribute to multi-platform resou…
melekr Jul 15, 2024
367e24a
Add pod lib lint command to workflows and scripts
melekr Jul 15, 2024
ac01943
Add BacktraceResources bundle
melekr Jul 16, 2024
66179f9
Specify Podfile project .xcworkspace
melekr Jul 16, 2024
4198a7f
Update project.pbxproj
melekr Jul 16, 2024
9a464a5
Update github workflows
melekr Jul 16, 2024
6b63060
Update deploy.yml
melekr Jul 16, 2024
70a771a
Update deploy.sh
melekr Jul 16, 2024
83f654d
Bump backtraceVersion and update changelog
melekr Jul 16, 2024
f743a72
Create xcframeworks
melekr Jul 26, 2024
6eb59cb
Disable CODE_SIGNING for bundle
melekr Jul 26, 2024
8a6bfee
Update project.pbxproj
melekr Jul 26, 2024
3ab83b0
Update project.pbxproj
melekr Jul 26, 2024
0c36aea
Update deploy.yml
melekr Jul 27, 2024
f799b71
Copy dependency framework
melekr Jul 30, 2024
2feeac8
Update deploy.yml
melekr Jul 31, 2024
56bcd6c
Update deploy.yml
melekr Jul 31, 2024
9ba19ed
Update deploy.yml
melekr Jul 31, 2024
400c7b1
Update deploy.yml
melekr Jul 31, 2024
cb9eb5a
Update deploy.yml
melekr Jul 31, 2024
7eadb39
Disable Bundle automatic signing
melekr Jul 31, 2024
21b8724
Update project.pbxproj
melekr Jul 31, 2024
ca93b7b
Update Podfile
melekr Aug 1, 2024
ee70a1a
Update deploy.yml
melekr Aug 1, 2024
eeb703c
Update deploy.yml
melekr Aug 1, 2024
aacfa85
Update xcframeworkgen.sh
melekr Aug 1, 2024
1a102b4
Add macos signing and provisioning
melekr Aug 1, 2024
022e20b
Update project.pbxproj
melekr Aug 1, 2024
c1f56b2
Remove unused vendored framework
melekr Aug 2, 2024
1b13b09
Add Simulator support
melekr Aug 2, 2024
9b4b9c2
Set DEVELOPMENT_TEAM secret
melekr Aug 2, 2024
e1782ad
Update Build frameworks step
melekr Aug 2, 2024
2bc4b39
Use vars instead of secrets
melekr Aug 2, 2024
ada7457
Update DEVELOPMENT_TEAM
melekr Aug 2, 2024
4e873d8
Merge branch 'master' into generate-assets
melekr Aug 5, 2024
633d662
Delete Podfile
melekr Aug 5, 2024
5ab00e5
Bump sdk version and update Changelog
melekr Aug 5, 2024
2c902c1
Exit when xcframework is not generated
melekr Aug 6, 2024
8116ae8
Restore pod trunk
melekr Aug 6, 2024
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
34 changes: 34 additions & 0 deletions .github/workflows/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# We do not support iOS <11, so set that as minimum
platform :ios, '11.0'

plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Based on the environment variable, either build with our without Swift libraries embedded (needed for iOS >10, <12.2) https://developer.apple.com/documentation/xcode-release-notes/swift-5-release-notes-for-xcode-10_2
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = ENV['SWIFT_EMBEDDED']
config.build_settings['SWIFT_VERSION'] = '5'

# Based on the environment variable, either build with our without Bitcode
config.build_settings['ENABLE_BITCODE'] = ENV['ENABLE_BITCODE']
config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'

# Exclude building for arm64 simulator (M1 chipset). XCFrameworks are needed to support this properly, future work
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'

# These two options seem to be defaults already, so probably not critical
config.build_settings['VALIDATE_WORKSPACE'] = 'YES'
config.build_settings['BUILD_LIBRARIES_FOR_DISTRIBUTION'] = 'YES'
end
end

installer.pods_project.save
},

dsym: true,
configuration: 'Release'
}

target 'backtrace' do
use_frameworks!
pod 'Backtrace'
end
53 changes: 53 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sh scripts/install.sh
- name: Run pod lib lint
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'
# END COPY PASTE FROM TEST.YML

deploy-cocoapods:
Expand All @@ -43,3 +45,54 @@ jobs:
run: sh scripts/deploy.sh
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

build-dynamic-frameworks:
runs-on: macos-latest
needs: [pod-lint, test]

strategy:
matrix:
ENABLE_BITCODE: [YES, NO]
SWIFT_EMBEDDED: [YES, NO]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Install cocoapods and rome
run: gem install cocoapods cocoapods-rome

- name: Run pod install with Podfile from workflows directory
run: cp .github/workflows/Podfile . && pod install
env:
ENABLE_BITCODE: ${{ matrix.ENABLE_BITCODE }}
SWIFT_EMBEDDED: ${{ matrix.SWIFT_EMBEDDED }}
BACKTRACE_VERSION: ${{ github.ref_name }}

- name: Tar files to preserve file permissions
run: tar -cvzf Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz Rome/ dSYM/

- uses: actions/upload-artifact@v3
with:
name: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}
path: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz

upload-to-github-release:
runs-on: ubuntu-latest
needs: build-dynamic-frameworks

steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
id: download
with:
path: artifacts/

- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ steps.download.outputs.download-path }}
draft: true
verbose: env.ACTIONS_STEP_DEBUG
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sh scripts/install.sh
- name: Run pod lib lint
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'
4 changes: 2 additions & 2 deletions Backtrace.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = "Backtrace"
s.version = "2.0.4"
s.version = "2.0.5-beta2"
s.swift_version = '5'
s.summary = "Backtrace's integration with iOS, macOS and tvOS"
s.description = "Reliable crash and hang reporting for iOS, macOS and tvOS."
Expand All @@ -33,6 +33,6 @@ Pod::Spec.new do |s|
s.tvos.public_header_files = ["Backtrace-tvOS/**/*.h*"]
s.static_framework = true
s.dependency "PLCrashReporter", '1.11'
s.resources = 'Sources/**/*.xcdatamodeld'
s.resource_bundle = { 'BacktraceResources' => 'Sources/**/*.xcdatamodeld' }

end
Loading
Loading