Skip to content

Commit 741d4b1

Browse files
authored
iOS HockeyApp automation for iOS (#84)
Requires ENV var `HOCKEY_API_TOKEN` to upload to HockeyApp
1 parent 8ab9cc9 commit 741d4b1

File tree

86 files changed

+6423
-2779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+6423
-2779
lines changed

ios/App/App.xcodeproj/project.pbxproj

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
27C58AA4214BBF5F005B589F /* HockeySDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 27C58AA2214BBF5E005B589F /* HockeySDKResources.bundle */; };
11+
27C58AA5214BBF5F005B589F /* HockeySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27C58AA3214BBF5E005B589F /* HockeySDK.framework */; };
1012
2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
1113
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
1214
504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
@@ -18,6 +20,8 @@
1820
/* End PBXBuildFile section */
1921

2022
/* Begin PBXFileReference section */
23+
27C58AA2214BBF5E005B589F /* HockeySDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = HockeySDKResources.bundle; sourceTree = "<group>"; };
24+
27C58AA3214BBF5E005B589F /* HockeySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HockeySDK.framework; sourceTree = "<group>"; };
2125
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
2226
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
2327
504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -37,16 +41,28 @@
3741
isa = PBXFrameworksBuildPhase;
3842
buildActionMask = 2147483647;
3943
files = (
44+
27C58AA5214BBF5F005B589F /* HockeySDK.framework in Frameworks */,
4045
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */,
4146
);
4247
runOnlyForDeploymentPostprocessing = 0;
4348
};
4449
/* End PBXFrameworksBuildPhase section */
4550

4651
/* Begin PBXGroup section */
52+
27C58AA1214BBF5E005B589F /* HockeySDK.embeddedframework */ = {
53+
isa = PBXGroup;
54+
children = (
55+
27C58AA2214BBF5E005B589F /* HockeySDKResources.bundle */,
56+
27C58AA3214BBF5E005B589F /* HockeySDK.framework */,
57+
);
58+
name = HockeySDK.embeddedframework;
59+
path = "HockeySDK-iOS/HockeySDK.embeddedframework";
60+
sourceTree = "<group>";
61+
};
4762
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
4863
isa = PBXGroup;
4964
children = (
65+
27C58AA1214BBF5E005B589F /* HockeySDK.embeddedframework */,
5066
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
5167
);
5268
name = Frameworks;
@@ -106,6 +122,7 @@
106122
504EC3011FED79650016851F /* Frameworks */,
107123
504EC3021FED79650016851F /* Resources */,
108124
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
125+
27C58AA0214BBEE5005B589F /* HockeyApp */,
109126
);
110127
buildRules = (
111128
);
@@ -156,6 +173,7 @@
156173
files = (
157174
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
158175
50B271D11FEDC1A000F3C39B /* public in Resources */,
176+
27C58AA4214BBF5F005B589F /* HockeySDKResources.bundle in Resources */,
159177
504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
160178
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
161179
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
@@ -166,6 +184,20 @@
166184
/* End PBXResourcesBuildPhase section */
167185

168186
/* Begin PBXShellScriptBuildPhase section */
187+
27C58AA0214BBEE5005B589F /* HockeyApp */ = {
188+
isa = PBXShellScriptBuildPhase;
189+
buildActionMask = 2147483647;
190+
files = (
191+
);
192+
inputPaths = (
193+
);
194+
name = HockeyApp;
195+
outputPaths = (
196+
);
197+
runOnlyForDeploymentPostprocessing = 0;
198+
shellPath = /bin/sh;
199+
shellScript = "FILE=\"${SRCROOT}/HockeySDK-iOS/BuildAgent\"\nif [ -f \"$FILE\" ]; then\n\"$FILE\"\nfi";
200+
};
169201
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
170202
isa = PBXShellScriptBuildPhase;
171203
buildActionMask = 2147483647;
@@ -352,8 +384,12 @@
352384
buildSettings = {
353385
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
354386
CODE_SIGN_STYLE = Automatic;
355-
CURRENT_PROJECT_VERSION = 8;
387+
CURRENT_PROJECT_VERSION = 20;
356388
DEVELOPMENT_TEAM = 287TS9B2H2;
389+
FRAMEWORK_SEARCH_PATHS = (
390+
"$(inherited)",
391+
"$(PROJECT_DIR)/HockeySDK-iOS/HockeySDK.embeddedframework",
392+
);
357393
INFOPLIST_FILE = App/Info.plist;
358394
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
359395
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -372,8 +408,12 @@
372408
buildSettings = {
373409
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
374410
CODE_SIGN_STYLE = Automatic;
375-
CURRENT_PROJECT_VERSION = 8;
411+
CURRENT_PROJECT_VERSION = 20;
376412
DEVELOPMENT_TEAM = 287TS9B2H2;
413+
FRAMEWORK_SEARCH_PATHS = (
414+
"$(inherited)",
415+
"$(PROJECT_DIR)/HockeySDK-iOS/HockeySDK.embeddedframework",
416+
);
377417
INFOPLIST_FILE = App/Info.plist;
378418
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
379419
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";

ios/App/App/AppDelegate.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import UIKit
22
import Capacitor
3+
import HockeySDK
34

45
@UIApplicationMain
56
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -9,6 +10,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
910

1011
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1112
// Override point for customization after application launch.
13+
14+
BITHockeyManager.shared().configure(withIdentifier: "188836b6452042cd88ebc47f5a745808")
15+
// Do some additional configuration if needed here
16+
BITHockeyManager.shared().start()
17+
BITHockeyManager.shared().authenticator.authenticateInstallation()
18+
1219
return true
1320
}
1421

ios/App/App/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</dict>
3333
</array>
3434
<key>CFBundleVersion</key>
35-
<string>8</string>
35+
<string>20</string>
3636
<key>LSRequiresIPhoneOS</key>
3737
<true/>
3838
<key>NSAppTransportSecurity</key>

ios/App/HockeySDK-iOS/BuildAgent

35.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)