Skip to content

Commit

Permalink
Merge pull request #2655 from crherman7/feat/fastlane_ios_compile
Browse files Browse the repository at this point in the history
feat(fastlane): update ios compile lane
  • Loading branch information
NickBurkhartBB authored Mar 15, 2024
2 parents f3bcca9 + 66e239f commit 4d33380
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 2 deletions.
82 changes: 82 additions & 0 deletions docs/src/pages/en/packages/plugins/fastlane/v2.0.1.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
title: Plugin Fastlane
description: brandingbrand/code-plugin-fastlane
layout: ../../../../../layouts/docs.astro
lang: en
---

import CodeCopy from "../../../../../components/code-copy.astro";

## Plugin Fastlane

`@brandingbrand/code-plugin-fastlane` is a package that will generate native fastlane code necessary for your ci/cd integrations. Right now this contains the appcenter fastlaene integration.

### Getting Started

<div class="flex w-full my-6">
<CodeCopy args="yarn add -D @brandingbrand/code-plugin-fastlane" />
</div>

Add the above noted package and the plugin is available in the Flagship Code plugin ecosystem.

### Usage

After adding this plugin as a dev dependency it is necessary to add it to the code plugins configuration via the `package.json`.

`package.json`

```
"code": {
"plugins": [
"@brandingbrand/code-plugin-fastlane"
]
},
```

Your Flagship Code environment should also be updated with the `@brandingbrand/code-plugin-fastlane` required props from the defined interface.

<aside class="p-2 bg-yellow-100 rounded-md mb-2">
In the context of Continuous Integration/Continuous Deployment (CI/CD), the manual invocation of the `code keys` command becomes obsolete, as fastlane adeptly manages all aspects of codesigning.
</aside>

`.coderc/env/env.<env>.ts`

```
codePluginFastlane: {
code: {
ios: {
appCenter: {
organization: 'Your-Org',
appName: 'TestApp-iOS-Internal',
destinationType: 'group',
destinations: ['IAT', 'UAT'],
},
buildScheme: 'appname',
},
android: {
appCenter: {
organization: 'Your-Org',
appName: 'TestApp-Android-Internal',
destinationType: 'group',
destinations: ['IAT', 'UAT'],
},
},
},
},
```

The interface in your `.coderc/env/env.<env>.ts` has the following props:

<div class="my-4 overflow-scroll">
| attribute | description |
| :-------- | :---------- |
| code.ios.appcenter.organization | appcenter account name of the owner of the app (username or organization URL name |
| code.ios.appcenter.appName | appcenter app name (as seen in app URL) |
| code.ios.appcenter.destinationType | Destination type of distribution destination. 'group' and 'store' are supported (default: group) |
| code.ios.appcenter.destinations | Comma separated list of destination names, use '*' for all distribution groups if destination type is 'group'. Both distribution groups and stores are supported. All names are required to be of the same destination type (default: Collaborators) |
| code.ios.buildScheme | xcode project name |
| code.android.appcenter.organization | appcenter account name of the owner of the app (username or organization URL name |
| code.android.appcenter.appName | appcenter app name (as seen in app URL) |
| code.android.appcenter.destinationType | Destination type of distribution destination. 'group' and 'store' are supported (default: group) |
| code.android.appcenter.destinations | Comma separated list of destination names, use '*' for all distribution groups if destination type is 'group'. Both distribution groups and stores are supported. All names are required to be of the same destination type (default: Collaborators) |
</div>
6 changes: 6 additions & 0 deletions packages/plugin-fastlane/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @brandingbrand/code-plugin-fastlane

## 2.0.1

### Patch Changes

- Update ios compile lane

## 2.0.0

### Major Changes
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin-fastlane/assets/ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ end
# make an unprovisioned build
lane :compile do
gym(
xcargs: "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED='NO' CODE_SIGN_ENTITLEMENTS='' CODE_SIGNING_ALLOWED='NO'"
clean: true,
skip_archive: true,
skip_codesigning: true,
)
end

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-fastlane/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brandingbrand/code-plugin-fastlane",
"version": "2.0.0",
"version": "2.0.1",
"description": "plugin for Flagship Code for fastlane app center builds",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 4d33380

Please sign in to comment.