Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
a51edb7
New translations create.md (Danish)
ltm May 24, 2019
6016fbe
New translations native-core.md (Danish)
ltm May 24, 2019
8e6849d
New translations android.md (Danish)
ltm May 24, 2019
3052399
New translations tips.md (Danish)
ltm May 24, 2019
f924691
New translations security.md (Danish)
ltm May 24, 2019
d460a9b
New translations runtime.md (Danish)
ltm May 24, 2019
dd095cd
New translations native.md (Danish)
ltm May 24, 2019
6e9be16
New translations glossary.md (Danish)
ltm May 24, 2019
3ca7924
New translations cors.md (Danish)
ltm May 24, 2019
779aa83
New translations build.md (Danish)
ltm May 24, 2019
a5caf70
New translations vibration.md (Danish)
ltm May 24, 2019
589b3aa
New translations statusbar.md (Danish)
ltm May 24, 2019
0095fa8
New translations splashscreen.md (Danish)
ltm May 24, 2019
902b2f7
New translations screen-orientation.md (Danish)
ltm May 24, 2019
33810c9
New translations network-information.md (Danish)
ltm May 24, 2019
20b2b91
New translations nativestorage.md (Danish)
ltm May 24, 2019
4e2cf0f
New translations mparticle.md (Danish)
ltm May 24, 2019
43f450f
New translations cli.md (Danish)
ltm May 24, 2019
3cc0ec1
New translations device.md (Danish)
ltm May 24, 2019
713294a
New translations apple-payment-pass.md (Danish)
ltm May 24, 2019
f7b92ab
New translations appversion.md (Danish)
ltm May 24, 2019
f4e54e3
New translations badge.md (Danish)
ltm May 24, 2019
877d8bd
New translations calendar.md (Danish)
ltm May 24, 2019
3fef1fd
New translations camera.md (Danish)
ltm May 24, 2019
cf6a0bf
New translations clipboard.md (Danish)
ltm May 24, 2019
49ba3b1
New translations dialogs.md (Danish)
ltm May 24, 2019
c7a9ea5
New translations media.md (Danish)
ltm May 24, 2019
a033bc6
New translations email-composer.md (Danish)
ltm May 24, 2019
cae8a11
New translations filesystem.md (Danish)
ltm May 24, 2019
cd15781
New translations geolocation.md (Danish)
ltm May 24, 2019
2b5bf93
New translations identity-vault.md (Danish)
ltm May 24, 2019
a5c4ef2
New translations inappbrowser.md (Danish)
ltm May 24, 2019
a4ae088
New translations media-capture.md (Danish)
ltm May 24, 2019
12dc540
New translations cdn.md (Danish)
ltm May 24, 2019
e7d3ede
New translations environment.md (Danish)
ltm May 24, 2019
27f4bf9
New translations identity-vault.md (Danish)
ltm May 24, 2019
b0fe395
New translations advanced.md (Danish)
ltm May 24, 2019
eae7164
New translations native.md (Danish)
ltm May 24, 2019
0d72b35
New translations intro.md (Danish)
ltm May 24, 2019
5612d48
New translations index.md (Danish)
ltm May 24, 2019
1890a69
New translations enterprise.md (Danish)
ltm May 24, 2019
77782fc
New translations components.md (Danish)
ltm May 24, 2019
71b4b8a
New translations cli.md (Danish)
ltm May 24, 2019
3fe39e9
New translations appflow.md (Danish)
ltm May 24, 2019
4906b58
New translations api.md (Danish)
ltm May 24, 2019
b4106ce
New translations platform.md (Danish)
ltm May 24, 2019
cff5a21
New translations config.md (Danish)
ltm May 24, 2019
7903c98
New translations platform-styles.md (Danish)
ltm May 24, 2019
1687cda
New translations css-variables.md (Danish)
ltm May 24, 2019
579b27f
New translations color-generator.md (Danish)
ltm May 24, 2019
6db22ae
New translations basics.md (Danish)
ltm May 24, 2019
5162baa
New translations progressive-web-app.md (Danish)
ltm May 24, 2019
94323ff
New translations ios.md (Danish)
ltm May 24, 2019
ba62950
New translations grid.md (Danish)
ltm May 24, 2019
8ac937d
New translations browser-support.md (Danish)
ltm May 24, 2019
8aa054e
New translations concepts.md (Danish)
ltm May 24, 2019
942aff5
New translations support.md (Danish)
ltm May 24, 2019
bcf48b9
New translations versioning.md (Danish)
ltm May 24, 2019
c34f3ad
New translations css-utilities.md (Danish)
ltm May 24, 2019
2f122be
New translations global-stylesheets.md (Danish)
ltm May 24, 2019
3d4dbe5
New translations rtl.md (Danish)
ltm May 24, 2019
dd54b78
New translations play-store.md (Danish)
ltm May 24, 2019
ab842e2
New translations structure.md (Danish)
ltm May 24, 2019
c20c15f
New translations angular.md (Danish)
ltm May 24, 2019
f245ca7
New translations overview.md (Danish)
ltm May 24, 2019
b0afb6a
New translations angular.md (Danish)
ltm May 24, 2019
7c36a98
New translations app-store.md (Danish)
ltm May 24, 2019
8d30d6e
New translations desktop-app.md (Danish)
ltm May 24, 2019
f0421cb
New translations android-permissions.md (Danish)
ltm May 24, 2019
a9a5e5a
New translations identity-vault.md (Danish)
ltm May 24, 2019
f2b20bf
New translations environments.md (Danish)
ltm May 24, 2019
19cbb8a
New translations credentials.md (Danish)
ltm May 24, 2019
ffb07ee
New translations push.md (Danish)
ltm May 24, 2019
5e35c05
New translations package.md (Danish)
ltm May 24, 2019
8421c4a
New translations native-config.md (Danish)
ltm May 24, 2019
5c76ef3
New translations ionic-remote.md (Danish)
ltm May 24, 2019
050cc9a
New translations installation.md (Danish)
ltm May 24, 2019
3faaf4d
New translations github.md (Danish)
ltm May 24, 2019
4bcd3f7
New translations environment.md (Danish)
ltm May 24, 2019
dd203a5
New translations deploy.md (Danish)
ltm May 24, 2019
0770d31
New translations connect.md (Danish)
ltm May 24, 2019
3c78c28
New translations bitbucket.md (Danish)
ltm May 24, 2019
373858d
New translations bitbucket-server.md (Danish)
ltm May 24, 2019
e60c8b7
New translations automation.md (Danish)
ltm May 24, 2019
d228206
New translations native-configs.md (Danish)
ltm May 24, 2019
8f2bc8c
New translations intro.md (Danish)
ltm May 24, 2019
db549e3
New translations cli.md (Danish)
ltm May 24, 2019
3317ae4
New translations devapp.md (Danish)
ltm May 24, 2019
05e3e6f
New translations builds.md (Danish)
ltm May 24, 2019
f0e00b8
New translations intro.md (Danish)
ltm May 24, 2019
ab49498
New translations webhooks.md (Danish)
ltm May 24, 2019
9202a7a
New translations intro.md (Danish)
ltm May 24, 2019
1b34c1c
New translations private_git.md (Danish)
ltm May 24, 2019
f714e7b
New translations private_npm_modules.md (Danish)
ltm May 24, 2019
5922ecc
New translations api.md (Danish)
ltm May 24, 2019
dcc7afe
New translations channels.md (Danish)
ltm May 24, 2019
08f7f5a
New translations builds.md (Danish)
ltm May 24, 2019
cf96900
New translations cli.md (Danish)
ltm May 24, 2019
cb64ea8
New translations intro.md (Danish)
ltm May 24, 2019
984366b
New translations setup.md (Danish)
ltm May 24, 2019
8cf0112
New translations tutorials.md (Danish)
ltm May 24, 2019
08ab9db
New translations adding-credentials.md (Danish)
ltm May 24, 2019
2aed124
New translations build-types.md (Danish)
ltm May 24, 2019
5b13799
New translations concurrency-limits.md (Danish)
ltm May 24, 2019
647d0d5
New translations monitoring.md (Danish)
ltm May 24, 2019
ba419e7
New translations identity-vault.md (Danish)
ltm May 24, 2019
a28f524
New translations theming.md (Danish)
ltm May 24, 2019
c243d10
New translations realtime-updates-ionic-deploy.md (Danish)
ltm May 24, 2019
71f4cef
New translations theming.md (Danish)
ltm May 24, 2019
b63a36a
New translations track-bugs-ionic-monitoring.md (Danish)
ltm May 24, 2019
05bf5e0
New translations creating-photo-gallery-device-storage.md (Danish)
ltm May 24, 2019
d496ab9
New translations intro.md (Danish)
ltm May 24, 2019
0d0bd8d
New translations ios-android-camera.md (Danish)
ltm May 24, 2019
f5fa26e
New translations books.md (Danish)
ltm May 24, 2019
5e6835d
New translations intro.md (Danish)
ltm May 24, 2019
ccc68af
New translations courses.md (Danish)
ltm May 24, 2019
7984ec6
New translations guides.md (Danish)
ltm May 24, 2019
1c76dc8
New translations posts.md (Danish)
ltm May 24, 2019
c95eb66
New translations tools.md (Danish)
ltm May 24, 2019
b551e7c
New translations videos.md (Danish)
ltm May 24, 2019
48ddb67
New translations identity-vault.md (Danish)
ltm May 24, 2019
709cf77
New translations ios-android-camera.md (Danish)
ltm May 24, 2019
34e7c7a
New translations creating-photo-gallery-device-storage.md (Danish)
ltm May 24, 2019
3df41e1
New translations quickstart.md (Danish)
ltm May 24, 2019
aa6ff7d
New translations scaffolding.md (Danish)
ltm May 24, 2019
bbb1a7c
New translations android.md (Danish)
ltm May 24, 2019
73fda8c
New translations contributing.md (Danish)
ltm May 24, 2019
312fa42
New translations cross-platform.md (Danish)
ltm May 24, 2019
3b05026
New translations ios.md (Danish)
ltm May 24, 2019
de6b83b
New translations migration.md (Danish)
ltm May 24, 2019
e47449c
New translations running.md (Danish)
ltm May 24, 2019
68b031b
New translations starting.md (Danish)
ltm May 24, 2019
8b5454d
New translations alert.md (Danish)
ltm May 24, 2019
9762f77
New translations storage.md (Danish)
ltm May 24, 2019
2a5327a
New translations testing.md (Danish)
ltm May 24, 2019
e9a5671
New translations webview.md (Danish)
ltm May 24, 2019
8a06de9
New translations configuration.md (Danish)
ltm May 24, 2019
198d87a
New translations using-a-proxy.md (Danish)
ltm May 24, 2019
dbc3d82
New translations action-sheet.md (Danish)
ltm May 24, 2019
fdb9c68
New translations release-notes.md (Danish)
ltm May 24, 2019
02fc317
New translations cli.json (Danish)
ltm May 24, 2019
146a3bb
New translations native.json (Danish)
ltm May 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,680 changes: 3,680 additions & 0 deletions scripts/data/da/cli.json

Large diffs are not rendered by default.

3,542 changes: 3,542 additions & 0 deletions scripts/data/da/native.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/pages/da/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
template: api-index
---

# API Index

Each Ionic [component](/docs/components) consists of one or more [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements). Each custom element, in turn, may expose properties, methods, events, and CSS custom properties.
37 changes: 37 additions & 0 deletions src/pages/da/appflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Welcome to Appflow
---

Appflow is a continuous integration (CI) and continuous deployment (CD) platform for Ionic development teams. Appflow helps development teams continuously build and ship their iOS, Android, and web apps faster than ever.

<docs-cards class="static-width"> <docs-card header="Quickstart" href="/docs/appflow/quickstart/connect" img="/docs/assets/icons/guide-quickstart.png">

Get your app set up with multiple environments that automatically build new binaries for iOS and Android and provide real time updates for your users instantly every time your team commits new code.</docs-card>

<docs-card header="Deploy" href="/docs/appflow/deploy/intro" icon="/docs/assets/icons/guide-deploy-icon.png">

Provide live updates and hotfixes to user devices instantly without going through the app stores.</docs-card>

<docs-card header="Package" href="/docs/appflow/package/intro" icon="/docs/assets/icons/guide-package-icon.png">

Build native iOS and Android binaries in the cloud without the headache of maintaining your own build servers.</docs-card>

<docs-card header="Automate" href="/docs/appflow/automation/intro" icon="/docs/assets/icons/guide-automate-icon.png">

Automate your Deploy and Package builds to help you team ship better updates faster.</docs-card>

<docs-card header="News & Updates" href="https://ionic.zendesk.com/hc/en-us/categories/360000410554-Announcements" icon="/docs/assets/icons/guide-news-icon.png">

Learn about recent Appflow updates & announcements.</docs-card>

<docs-card header="Package FAQ" href="https://ionic.zendesk.com/hc/en-us/categories/360000410494-Package" icon="/docs/assets/icons/guide-faq-icon.png">

Find answers to common questions about building native binaries.</docs-card>

<docs-card header="Deploy FAQ" href="https://ionic.zendesk.com/hc/en-us/categories/360000409113-Deploy" icon="/docs/assets/icons/guide-faq-icon.png">

Find answers to common questions about live updates.</docs-card>

<docs-card header="Billing FAQ" href="https://ionic.zendesk.com/hc/en-us/categories/360000410574-Billing-Support" icon="/docs/assets/icons/guide-faq-icon.png">

Find answers to common billing questions.</docs-card> </docs-cards>
69 changes: 69 additions & 0 deletions src/pages/da/appflow/automation/create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
previousText: 'Introduction'
previousUrl: '/docs/appflow/automation/intro'
nextText: 'Environments'
nextUrl: '/docs/appflow/automation/environments'
---

# Using Automations

## Managing Automations

Creating and customizing automations is simple. To get started, navigate to the `Automate` tab within the desired app.

To **create a new automation**, click the `New Automation` button on the top right of the `Automate` dashboard. When clicked, the automation customization form will appear, which has several fields available to customize the automation (Read more about these [below](#customizing-automations)).

To **edit an automation**, click the three dots next to the one you'd like to modify.

## Customizing Automations

There are a number of customizations available to specify the specific behavior of a given automation. They are shown on the create/edit automation form below.

### Basic Automation Info

All automations need a name and git branch to trigger from. Whenever code is pushed to the selected branch, the automation will run.

![Choosing an Automation Type](/docs/assets/img/appflow/ss-automation-create-type.png)

#### Fields

* **Name:** A name to identify the automation task.
* **Git Branch:** The branch which will trigger the automation. This will run a build any time a `git push` is made to the specified branch.
* **Automation Type:** The type of job this automation will run.

In addition to name and git branches, automations have a number of customizations available depending on the type of job selected.

##### Note about Git Branch naming

It is possible to specify one or multiple `*` wildcards character to match multiple branches within a single automation; for instance:

* a branch simply set to `*` will match all the branches and will trigger the automation for any single git push
* a branch set to `dev*` will match any branch with a name starting with `dev` including `dev` itself
* a branch set to `dev*other` will match any branch with a name starting with `dev` and ending with `other` including `devother`

### Package Automations

Package automations create native builds which can be downloaded and run on devices. They have the following customizations:

![Creating a package automation](/docs/assets/img/appflow/ss-automation-create-package.png)

#### Fields

* **Environment:** The [custom build environment](/docs/appflow/environments/#custom-environments) (if any) to use when this automations is triggered.
* **Native Config:** The [native config](/docs/appflow/package/intro#native-configs) (if any) to use when this automations is triggered.
* **Target Platform:** The platform being targeted, can be Android or iOS (for either Xcode 8 or 9)
* **Build Type:** The type of build to create. Options depend on the selected platform.
* **Security Profile:** Which security profile to use. Learn more about them [here](/docs/appflow/package/credentials).
* **Webhook:** (optional) If specified, a POST with information about completed builds will be sent to the entered URL. Learn more about their content [here](/docs/appflow/automation/webhooks).

### Web Automations

Web automations build the javascript portion of an application and interface with the [Deploy](/docs/appflow/deploy/intro) service to enable live app updates.

![Creating a web automation](/docs/assets/img/appflow/ss-automation-create-web.png)

#### Fields

* **Environment:** The [custom build environment](/docs/appflow/environments/#custom-environments) (if any) to use when this automations is triggered.
* **Channel:** The [Deploy Channel](/docs/appflow/deploy/channels) where web builds from this automation will be assigned.
* **Webhook:** (optional) If specified, a POST with information about completed builds will be sent to the entered URL. Learn more about their content [here](/docs/appflow/automation/webhooks).
108 changes: 108 additions & 0 deletions src/pages/da/appflow/automation/environments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
previousText: 'Create Automations'
previousUrl: '/docs/appflow/automation/create'
nextText: 'Webhooks'
nextUrl: '/docs/appflow/automation/webhooks'
---

# Build Environments

## Introduction

Environments give you a way to customize the build process for your application in order to produce different versions of your applications for different environments from the same code base. All environment variables are accessible to any build scripts that run during the `npm run install` and `npm run build` portion of your builds.

There are two types of Enviornment variables available to use:

* [Predefined Environments](#predefined-environments) (Available on all Builds)
* [Custom Environments](#custom-environments) (Available on select plans)

## Predefined Environments

Every time a Build occurs, it's done in a secure environment where we provide some predefined variables which are key/value pairs that are made available in the environment and are available by using [process.env.MY_VAR](https://nodejs.org/docs/latest-v8.x/api/process.html#process_process_env) syntax in NodeJS or via `$MY_VAR` syntax in a standard shell script. These variables can be leveraged to [customize the build and outputs](#usage).

The following environment variables are provided in every build, which can be accessed in build scripts:

* `CI_APP_ID` **(string):** Your Ionic app's unique ID.
* `CI_APP_NAME` **(string):** Your Ionic app's name.
* `CI_AUTOMATED_BUILD` **(int):** Whether this build occurred as a result of an automation (`0` for `false`, `1` for `true`).
* `CI_AUTOMATION_ID` **(optional int):** The unique ID of the automation which created this build.
* `CI_AUTOMATION_NAME` **(optional string):** The name of the automation which created this build.
* `CI_GIT_COMMIT_SHA` **(string):** The SHA for the commit on which the build was run.
* `CI_GIT_COMMIT_MSG` **(string):** The message for the commit on which the build was run.
* `CI_GIT_REF` **(string):** The git ref from which the build was created (i.e. `master`).
* `CI_GIT_REF_TYPE` **(string):** The git ref type (i.e. `branch`).

## Custom Environments

<blockquote>
<p><b>Note:</b>This feature is only available on our <a href="/pricing">Growth plans</a> and above.</p>
</blockquote>

In addition to the [predefined environments](#predefined-environments), customers on the [plans with access to automations](/pricing) will have access to create custom environments. With custom environments it's easy to create and manage custom sets of key/value pairs to further customize builds on Ionic Appflow. Common use cases include customizing your build process in order to build staging & QA versions of your app that connect to different APIs or to build different white labeled versions of your application. To get started with custom environments, open the app you wish to work on and navigate in the sidebar to **Automate -> Environments**, then click **New Environment** on the top right. You should see a form like this:

![Create Environment Form](/docs/assets/img/appflow/ss-environments-create.png)

As can be noticed, there are 2 different sets of environment variables sections that can be utilized:

* Secrets
* Variables

The only difference is that the secrets are hidden and never shown in the dashboard after they have been added, while the variables are always available to be read.

The environments dashboard also lists available custom environments along with their configured key/value pairs and secrets keys.

![Environments List View](/docs/assets/img/appflow/ss-environments-list.png)

## Usage

For example you could replace your `build` script in the `package.json` with a custom shell script that reads the branch and triggers a custom build.

```json
// customize the build script in the package.json
{
...
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "./mybuild.sh",
"lint": "ionic-app-scripts lint"
},
...
```

#!/bin/bash
if [ "$CI_GIT_REF" = "master" ]; then
npx ionic build --prod
else
npx ionic build
fi


As of `@ionic/app-scripts@3.2.0` you can also use [environment variables directly in your source code](https://github.com/ionic-team/ionic-app-scripts#environments) and they will be replaced at build time so that you can customize your code based on the environment.

For example:

```typescript
productionConfig = {
api: 'https://my.production.api.com',
analyticsKey: 'my-production-key'
}
stagingConfig = {
api: 'https://my.staging.api.com',
analyticsKey: 'my-staging-key'
}

localConfig = {
api: 'https://localhost:7000'
analyticsKey: 'my-local-key'
}

switch (process.env.CI_GIT_REF) {
case 'master':
return productionConfig;
case 'staging':
return stagingConfig;
default:
return localConfig;
}
```
21 changes: 21 additions & 0 deletions src/pages/da/appflow/automation/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: 'Automations'
previousText: 'Package'
previousUrl: '/docs/appflow/package/cli'
nextText: 'Create Automations'
nextUrl: '/docs/appflow/automation/create'
---

<blockquote>
<p><b>Note:</b>This feature is only available on our <a href="/pricing">Growth plans</a> and above.</p>
</blockquote>

Ionic Appflow's automation features let you generate builds whenever you need them. Webhooks with secure, signed download URL's and build information are also easily configurable and updatable, ensuring your app gets in the necessary hands quickly and automatically.

Automations enable you and your team to utilize the full CI/CD powers of Appflow. You can create automations that trigger [package builds](/docs/appflow/package/builds) and [deploy builds](/docs/appflow/deploy/builds) every time your team checks in new code to a given branch and you can even configure the automations to use different [environments](/docs/appflow/automation/environments#custom-environments) and [native configurations](/docs/appflow/package/native-configs) so that you can build different versions of your app for development, staging, and production.

##### Helpful links

<docs-cards class="max-measure"> <docs-card header="Create an Automation" href="/docs/appflow/quickstart/automation" icon="/docs/assets/icons/guide-quickstart-icon.png">

Create your first Android development binary automation using our quickstart guide!</docs-card> </docs-cards>
Loading