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

[NT-1890] Update Fastlane, add App Store Connect Auth #1466

Merged
merged 1 commit into from
May 10, 2021

Conversation

justinswart
Copy link
Contributor

πŸ“² What

Updates Fastlane and adds App Store Connect API Auth.

πŸ€” Why

Our recent uploads started failing using the app-specific password and it seemed like time to just add this authentication method.

πŸ›  How

πŸ‘€ See

https://docs.fastlane.tools/app-store-connect-api/

βœ… Acceptance criteria

  • One would need to submit a new build to the App Store to fully test this.

app_identifier: ENV["ITUNES_APP_IDENTIFIER"],
app: ENV["ITUNES_APP_ID"],
ipa: "#{gym_dir}/Kickstarter.ipa",
team_name: ENV["ITUNES_TEAM_NAME"],
skip_screenshots: true,
skip_metadata: true
skip_metadata: true,
precheck_include_in_app_purchases: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App Store Connect Auth does not support this during precheck so I've just disabled it for now (we don't have in-app purchases πŸ€·β€β™‚οΈ)

@@ -3,7 +3,7 @@ git_url("https://github.com/kickstarter/ios-certificates")
type("development") # The default type, can be: appstore, adhoc, enterprise or development

# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("user@fastlane.tools") # Your Apple Developer Portal username
username("native-ci@kickstarter.com") # Your Apple Developer Portal username
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this while I was in here so that we don't have to type this in every time we run match.

@codecov
Copy link

codecov bot commented May 7, 2021

Codecov Report

Merging #1466 (49b5315) into master (4d5aa92) will decrease coverage by 1.17%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1466      +/-   ##
==========================================
- Coverage   86.15%   84.98%   -1.18%     
==========================================
  Files        1109     1109              
  Lines       99144    99144              
  Branches        0    27885   +27885     
==========================================
- Hits        85417    84254    -1163     
- Misses      13727    13960     +233     
- Partials        0      930     +930     
Impacted Files Coverage Ξ”
Library/RootCategory.swift 22.72% <0.00%> (-77.28%) ⬇️
KsApi/GraphMutation.swift 50.00% <0.00%> (-50.00%) ⬇️
...iewModels/ProjectActivityUpdateCellViewModel.swift 70.58% <0.00%> (-29.42%) ⬇️
...ry/ViewModels/ActivityFriendBackingViewModel.swift 70.12% <0.00%> (-25.98%) ⬇️
Library/CharacterSet.swift 75.00% <0.00%> (-25.00%) ⬇️
KsApi/extensions/Encodable+Dictionary.swift 75.00% <0.00%> (-25.00%) ⬇️
...raphql/adapters/Project.Country+GraphCountry.swift 75.00% <0.00%> (-25.00%) ⬇️
Library/UserAttribute.swift 43.85% <0.00%> (-24.57%) ⬇️
Library/OptimizelyExperiment.swift 60.00% <0.00%> (-20.00%) ⬇️
...iewModels/ActivitySampleBackingCellViewModel.swift 80.00% <0.00%> (-20.00%) ⬇️
... and 377 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 4d5aa92...49b5315. Read the comment docs.

@jgsamudio
Copy link
Contributor

@justinswart do you know why the test coverage dropped so much?

@@ -128,13 +128,14 @@ platform :ios do
lane :itunes_deliver do
deliver(
force: true,
username: ENV["ITUNES_CONNECT_ACCOUNT"],
api_key_path: "./Frameworks/native-secrets/ios/app-store-connnect-auth.json",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious mostly, does this api_key_path reference another git repo from within itself? Assuming ./Frameworks is a prebuilt binary that gets updated once we run the make secrets command? And it references the remote repo for native-secrets, which is why we need to create the app_store_connect_auth.json there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good question - so we have this private native-secrets repo which just contains stuff that we don't want directly exposed in the open source repo. It's not a framework really, we just clone the repo to that directory. This just ensures that when the open source repo is cloned that those sensitive details aren't exposed along with it.

@justinswart
Copy link
Contributor Author

@justinswart do you know why the test coverage dropped so much?

@jgsamudio I think just some issue with codecov, perhaps it didn't upload its report, these changes wouldn't have affected the actual coverage. I'll try run it again.

Copy link
Contributor

@singhhari singhhari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@justinswart justinswart merged commit 14e5f61 into master May 10, 2021
@justinswart justinswart deleted the NT-1890-update-fastlane branch May 10, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants