Skip to content

Commit

Permalink
Merge pull request #17 from GrioSF/fast-lane-keys-inclusion
Browse files Browse the repository at this point in the history
Updated fast lane script to setup JIRA on the TestFlight Build
  • Loading branch information
hgarcia-grio authored Aug 10, 2019
2 parents 82a29e3 + ca9092f commit e641f19
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
4 changes: 1 addition & 3 deletions BugSnap Demo App/BugSnap Demo App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<key>CFBundleVersion</key>
<string>7</string>
<string>8</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down Expand Up @@ -55,7 +55,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
</plist>
21 changes: 21 additions & 0 deletions BugSnap/BugSnap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@
7F2716F322E62B980068C502 /* UIApplication+ScreenRecording.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIApplication+ScreenRecording.swift"; sourceTree = "<group>"; };
7F2716F522E766470068C502 /* VideoFileWriter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoFileWriter.swift; sourceTree = "<group>"; };
7F2716F722E772C90068C502 /* UIViewController+JIRAIssueFlow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+JIRAIssueFlow.swift"; sourceTree = "<group>"; };
7F4C1E5522FE3C8200FEDE79 /* Pluginfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Pluginfile; sourceTree = "<group>"; };
7F4C1E5622FE3C8200FEDE79 /* Appfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Appfile; sourceTree = "<group>"; };
7F4C1E5722FE3C8200FEDE79 /* Fastfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Fastfile; sourceTree = "<group>"; };
7F4C1E5822FE3C8200FEDE79 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
7F4C1E5922FE3C8200FEDE79 /* Matchfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Matchfile; sourceTree = "<group>"; };
7F4C1E5A22FE3C8200FEDE79 /* report.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = report.xml; sourceTree = "<group>"; };
7F4C8E0122F89445001EAD96 /* CaptureOptionSheetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CaptureOptionSheetViewController.swift; sourceTree = "<group>"; };
7F4C8E0322F8982D001EAD96 /* ScreenshotButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScreenshotButton.swift; sourceTree = "<group>"; };
7F4C8E0522F898DD001EAD96 /* ScreenRecordingButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScreenRecordingButton.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -228,6 +234,7 @@
7F0BCF2C22AFFF53006B4F26 /* BugSnap */ = {
isa = PBXGroup;
children = (
7F4C1E5422FE3C8200FEDE79 /* fastlane */,
7FE43E1622F1050D000F8ABC /* BugSnap.podspec */,
7F87683722B44A5E0018AC74 /* LICENSE */,
7F87683622B44A5E0018AC74 /* README.md */,
Expand Down Expand Up @@ -277,6 +284,20 @@
path = ViewControllers;
sourceTree = "<group>";
};
7F4C1E5422FE3C8200FEDE79 /* fastlane */ = {
isa = PBXGroup;
children = (
7F4C1E5522FE3C8200FEDE79 /* Pluginfile */,
7F4C1E5622FE3C8200FEDE79 /* Appfile */,
7F4C1E5722FE3C8200FEDE79 /* Fastfile */,
7F4C1E5822FE3C8200FEDE79 /* README.md */,
7F4C1E5922FE3C8200FEDE79 /* Matchfile */,
7F4C1E5A22FE3C8200FEDE79 /* report.xml */,
);
name = fastlane;
path = ../../fastlane;
sourceTree = "<group>";
};
7F4C8E0922F9D218001EAD96 /* AccessoryViews */ = {
isa = PBXGroup;
children = (
Expand Down
8 changes: 8 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ platform :ios do
)
end

desc "Setup JIRA Environment from Environment Variables."
private_lane :setup_jira_keys do
set_info_plist_value(path: "./BugSnap Demo App/BugSnap Demo App/Info.plist", key: "JIRA.URL", value: ENV["JIRA_URL"])
set_info_plist_value(path: "./BugSnap Demo App/BugSnap Demo App/Info.plist", key: "JIRA.User", value: ENV["JIRA_User"])
set_info_plist_value(path: "./BugSnap Demo App/BugSnap Demo App/Info.plist", key: "JIRA.APIKey", value: ENV["JIRA_APIKey"])
end

private_lane :setup_keychain do
if is_ci?
# Create a temporary keychain to store the certificates.
Expand Down Expand Up @@ -76,6 +83,7 @@ platform :ios do

desc "Push a new beta build to TestFlight"
lane :beta do
setup_jira_keys
setup_keychain
set_match(appstore: true)

Expand Down

0 comments on commit e641f19

Please sign in to comment.