Skip to content

Commit bfcd158

Browse files
committed
fastlane, ci, cleanup
1 parent d4fc7c9 commit bfcd158

File tree

13 files changed

+164
-422
lines changed

13 files changed

+164
-422
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Django Files iOS CI"
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
jobs:
10+
build:
11+
name: "CI"
12+
runs-on: macos-15
13+
steps:
14+
- name: "Add Match Repo SSH Key"
15+
uses: webfactory/[email protected]
16+
with:
17+
ssh-private-key: ${{ secrets.SSH_KEY }}
18+
- uses: actions/checkout@v4
19+
- name: "Fastlane Tests"
20+
run: fastlane tests
21+
env:
22+
CI: true
23+
# - name: "Fastlane CI"
24+
# run: fastlane ci
25+
# env:
26+
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
27+
# MATCH_URL: [email protected]:django-files/ios-match-certs.git
28+
# CI: true
29+
# APPLE_ID: ${{ secrets.APPLE_ID }}
30+
# ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
31+
# ASC_API_KEY: ${{ secrets.ASC_API_KEY }}
32+
# ASC_API_ID: ${{ secrets.ASC_API_ID }}
33+
# BUILD_NUMBER: ${{ github.run_number }}

.github/workflows/ios-testflight.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: build-ios-app
22
on:
33
push:
44
branches:
5-
- 'master'
6-
- 'fastlane'
5+
- 'main'
76
jobs:
87
build:
98
runs-on: macos-15
@@ -21,4 +20,9 @@ jobs:
2120
env:
2221
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
2322
MATCH_URL: [email protected]:django-files/ios-match-certs.git
24-
CI: false
23+
CI: false
24+
APPLE_ID: ${{ secrets.APPLE_ID }}
25+
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
26+
ASC_API_KEY: ${{ secrets.ASC_API_KEY }}
27+
ASC_API_ID: ${{ secrets.ASC_API_ID }}
28+
BUILD_NUMBER: ${{ github.run_number }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ xcuserdata/
1313
*.dSYM
1414

1515
.build/
16-
Django Files.xcodeproj/project.xcworkspace/xcuserdata/
16+
fastlane/

Django Files.xcodeproj/project.pbxproj

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
4C82CB892D624E8700C0893B /* UploadAndCopy.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 4C82CB7F2D624E8700C0893B /* UploadAndCopy.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1313
4CA2E48A2D6D49D6006EF3F0 /* HTTPTypes in Frameworks */ = {isa = PBXBuildFile; productRef = 4CA2E4892D6D49D6006EF3F0 /* HTTPTypes */; };
1414
4CA2E48C2D6D49D6006EF3F0 /* HTTPTypesFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 4CA2E48B2D6D49D6006EF3F0 /* HTTPTypesFoundation */; };
15+
4CE57E8B2D7C9F440073CFC1 /* SnapshotHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE57E8A2D7C9F440073CFC1 /* SnapshotHelper.swift */; };
1516
/* End PBXBuildFile section */
1617

1718
/* Begin PBXContainerItemProxy section */
@@ -57,6 +58,7 @@
5758
4C5E21002D603C3B009EE83A /* Django FilesTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Django FilesTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
5859
4C5E210A2D603C3B009EE83A /* Django FilesUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Django FilesUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
5960
4C82CB7F2D624E8700C0893B /* UploadAndCopy.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = UploadAndCopy.appex; sourceTree = BUILT_PRODUCTS_DIR; };
61+
4CE57E8A2D7C9F440073CFC1 /* SnapshotHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SnapshotHelper.swift; path = fastlane/SnapshotHelper.swift; sourceTree = "<group>"; };
6062
/* End PBXFileReference section */
6163

6264
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -157,6 +159,7 @@
157159
4C5E20E32D603C3B009EE83A = {
158160
isa = PBXGroup;
159161
children = (
162+
4CE57E8A2D7C9F440073CFC1 /* SnapshotHelper.swift */,
160163
4C5E20EE2D603C3B009EE83A /* Django Files */,
161164
4C5E21032D603C3B009EE83A /* Django FilesTests */,
162165
4C5E210D2D603C3B009EE83A /* Django FilesUITests */,
@@ -320,6 +323,7 @@
320323
minimizedProjectReferenceProxies = 1;
321324
packageReferences = (
322325
4C82CB4F2D62372200C0893B /* XCRemoteSwiftPackageReference "swift-http-types" */,
326+
4CE57E892D7C9EB70073CFC1 /* XCRemoteSwiftPackageReference "fastlane" */,
323327
);
324328
preferredProjectObjectVersion = 77;
325329
productRefGroup = 4C5E20ED2D603C3B009EE83A /* Products */;
@@ -384,6 +388,7 @@
384388
isa = PBXSourcesBuildPhase;
385389
buildActionMask = 2147483647;
386390
files = (
391+
4CE57E8B2D7C9F440073CFC1 /* SnapshotHelper.swift in Sources */,
387392
);
388393
runOnlyForDeploymentPostprocessing = 0;
389394
};
@@ -424,7 +429,7 @@
424429
CODE_SIGN_IDENTITY = "Apple Development";
425430
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
426431
CODE_SIGN_STYLE = Manual;
427-
CURRENT_PROJECT_VERSION = 6;
432+
CURRENT_PROJECT_VERSION = 8;
428433
DEVELOPMENT_ASSET_PATHS = "\"Django Files/Preview Content\"";
429434
DEVELOPMENT_TEAM = "";
430435
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ZY6BPTGK47;
@@ -467,7 +472,7 @@
467472
CODE_SIGN_IDENTITY = "Apple Development";
468473
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
469474
CODE_SIGN_STYLE = Manual;
470-
CURRENT_PROJECT_VERSION = 6;
475+
CURRENT_PROJECT_VERSION = 8;
471476
DEVELOPMENT_ASSET_PATHS = "\"Django Files/Preview Content\"";
472477
DEVELOPMENT_TEAM = "";
473478
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ZY6BPTGK47;
@@ -668,6 +673,10 @@
668673
MARKETING_VERSION = 1.0;
669674
PRODUCT_BUNDLE_IDENTIFIER = blastsoftstudios.djangofilesUITests;
670675
PRODUCT_NAME = "$(TARGET_NAME)";
676+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
677+
SUPPORTS_MACCATALYST = NO;
678+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
679+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
671680
SWIFT_EMIT_LOC_STRINGS = NO;
672681
SWIFT_VERSION = 5.0;
673682
TARGETED_DEVICE_FAMILY = "1,2";
@@ -685,6 +694,10 @@
685694
MARKETING_VERSION = 1.0;
686695
PRODUCT_BUNDLE_IDENTIFIER = blastsoftstudios.djangofilesUITests;
687696
PRODUCT_NAME = "$(TARGET_NAME)";
697+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
698+
SUPPORTS_MACCATALYST = NO;
699+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
700+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
688701
SWIFT_EMIT_LOC_STRINGS = NO;
689702
SWIFT_VERSION = 5.0;
690703
TARGETED_DEVICE_FAMILY = "1,2";
@@ -699,7 +712,7 @@
699712
CODE_SIGN_IDENTITY = "Apple Development";
700713
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
701714
CODE_SIGN_STYLE = Manual;
702-
CURRENT_PROJECT_VERSION = 5;
715+
CURRENT_PROJECT_VERSION = 8;
703716
DEVELOPMENT_TEAM = "";
704717
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ZY6BPTGK47;
705718
GENERATE_INFOPLIST_FILE = YES;
@@ -734,7 +747,7 @@
734747
CODE_SIGN_IDENTITY = "Apple Development";
735748
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
736749
CODE_SIGN_STYLE = Manual;
737-
CURRENT_PROJECT_VERSION = 5;
750+
CURRENT_PROJECT_VERSION = 8;
738751
DEVELOPMENT_TEAM = "";
739752
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ZY6BPTGK47;
740753
GENERATE_INFOPLIST_FILE = YES;
@@ -821,6 +834,14 @@
821834
minimumVersion = 1.3.1;
822835
};
823836
};
837+
4CE57E892D7C9EB70073CFC1 /* XCRemoteSwiftPackageReference "fastlane" */ = {
838+
isa = XCRemoteSwiftPackageReference;
839+
repositoryURL = "https://github.com/fastlane/fastlane";
840+
requirement = {
841+
kind = upToNextMajorVersion;
842+
minimumVersion = 2.226.0;
843+
};
844+
};
824845
/* End XCRemoteSwiftPackageReference section */
825846

826847
/* Begin XCSwiftPackageProductDependency section */

Django Files.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Django Files.xcodeproj/project.xcworkspace/xcuserdata/michael.xcuserdatad/xcdebugger/Expressions.xcexplist

Lines changed: 0 additions & 54 deletions
This file was deleted.
-51.5 KB
Binary file not shown.

Django Files/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>ITSAppUsesNonExemptEncryption</key>
6+
<false/>
57
<key>CFBundleIdentifier</key>
68
<string>com.djangofiles.app</string>
79
<key>CFBundleURLTypes</key>

Django FilesUITests/Snapfile.swift

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)