Skip to content

Commit b98ae4a

Browse files
committed
CircleCI config
1 parent 221c622 commit b98ae4a

File tree

72 files changed

+249
-1
lines changed

Some content is hidden

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

72 files changed

+249
-1
lines changed

Diff for: .circleci/config.yml

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# For a detailed guide to building and testing on iOS, read the docs:
2+
# https://circleci.com/docs/2.0/testing-ios/
3+
4+
version: 2.1
5+
6+
orbs:
7+
node: circleci/[email protected]
8+
9+
jobs:
10+
build_android:
11+
docker:
12+
- image: circleci/android:api-28-node
13+
steps:
14+
- checkout
15+
- run: sudo mkdir /opt/gradle
16+
- run: sudo wget https://services.gradle.org/distributions/gradle-6.7-bin.zip
17+
- run: sudo unzip -d /opt/gradle gradle-6.7-bin.zip
18+
- run: echo 'export export PATH=$PATH:/opt/gradle/gradle-6.7/bin:$PATH' >> $BASH_ENV
19+
- run: gradle -v
20+
- run:
21+
name: Installing JDK 1.8 required for Cordova support
22+
command: |
23+
sudo apt update
24+
sudo apt install software-properties-common
25+
sudo apt update
26+
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
27+
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
28+
sudo apt update
29+
sudo apt install adoptopenjdk-8-hotspot
30+
echo 'export PATH=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin:$PATH' >> $BASH_ENV
31+
echo 'export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64' >> $BASH_ENV
32+
source $BASH_ENV
33+
- run:
34+
name: Setup PATH variables
35+
command: |
36+
export PATH=$ANDROID_HOME/platform-tools:$PATH
37+
export PATH=$ANDROID_HOME/tools:$PATH
38+
- restore_cache:
39+
keys:
40+
- node-modules-cache
41+
- run:
42+
name: Install Cordova
43+
command: sudo npm install -g cordova ionic
44+
- run:
45+
name: Install Dependencies
46+
command: cd examples/AlanBasicExample && npm install
47+
- run:
48+
name: Remove android platform
49+
command: cd examples/AlanFoodDelivery && ionic cordova platform rm android
50+
- run:
51+
name: Add platfrom Android
52+
command: cd examples/AlanFoodDelivery && ionic cordova platform add [email protected]
53+
- run:
54+
name: Build Cordova app for Android
55+
command: cd examples/AlanBasicExample && ionic cordova build android
56+
- save_cache:
57+
key: node-modules-cache
58+
paths:
59+
- ./node_modules
60+
build_ios:
61+
macos:
62+
xcode: 11.3.0
63+
steps:
64+
- checkout
65+
- node/install:
66+
install-yarn: true
67+
install-npm: true
68+
node-version: 10.22.0
69+
- run: node --version
70+
- run:
71+
name: decode Certificates
72+
command: base64 -D -o Certificates.p12 \<<< $Certificates
73+
- run:
74+
name: make Provisioning Profiles directory
75+
command: mkdir -pv ~/Library/MobileDevice/Provisioning\ Profiles/
76+
- run:
77+
name: decode Provisioning Profiles
78+
command: base64 -D -o ~/Library/MobileDevice/Provisioning\ Profiles/App_Store.mobileprovision \<<< $App_Store_Profile
79+
- run: bundle exec fastlane clean
80+
- restore_cache:
81+
keys:
82+
- node-modules-cache
83+
- run:
84+
name: Install Ionic and Cordova
85+
command: sudo npm install -g cordova ionic
86+
- run:
87+
name: export path
88+
command: echo 'export PATH="$PATH:/usr/local/bin"' >> $BASH_ENV
89+
- run:
90+
name: Install Dependencies
91+
command: cd examples/AlanFoodDelivery && npm install
92+
- run:
93+
name: Add platfrom iOS
94+
command: cd examples/AlanFoodDelivery && ionic cordova platform remove android && ionic cordova platform remove ios && ionic cordova platform add ios
95+
- run:
96+
name: Build Ionic Food Delivery for iOS
97+
command: cd examples/AlanFoodDelivery && ionic cordova build ios
98+
- save_cache:
99+
key: node-modules-cache
100+
paths:
101+
- ./node_modules
102+
103+
workflows:
104+
version: 2.1
105+
build-android-and-ios:
106+
jobs:
107+
- build_android
108+
- build_ios
109+
110+

Diff for: Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Gemfile
2+
source "https://rubygems.org"
3+
gem 'fastlane'

Diff for: examples/AlanBasicExample/config.xml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>MyApp</name>
4+
<description>An awesome Ionic/Cordova app.</description>
5+
<author email="[email protected]" href="http://ionicframework.com/">Ionic Framework Team</author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<allow-intent href="http://*/*" />
9+
<allow-intent href="https://*/*" />
10+
<allow-intent href="tel:*" />
11+
<allow-intent href="sms:*" />
12+
<allow-intent href="mailto:*" />
13+
<allow-intent href="geo:*" />
14+
<preference name="ScrollEnabled" value="false" />
15+
<preference name="BackupWebStorage" value="none" />
16+
<preference name="SplashMaintainAspectRatio" value="true" />
17+
<preference name="FadeSplashScreenDuration" value="300" />
18+
<preference name="SplashShowOnlyFirstTime" value="false" />
19+
<preference name="SplashScreen" value="screen" />
20+
<preference name="SplashScreenDelay" value="3000" />
21+
<platform name="android">
22+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
23+
<application android:networkSecurityConfig="@xml/network_security_config" />
24+
</edit-config>
25+
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
26+
<allow-intent href="market:*" />
27+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
28+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
29+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
30+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
31+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
32+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
33+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
34+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
35+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
36+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
37+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
38+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
39+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
40+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
41+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
42+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
43+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
44+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
45+
</platform>
46+
<platform name="ios">
47+
<allow-intent href="itms:*" />
48+
<allow-intent href="itms-apps:*" />
49+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
50+
<icon height="114" src="resources/ios/icon/[email protected]" width="114" />
51+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
52+
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
53+
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
54+
<icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
55+
<icon height="40" src="resources/ios/icon/[email protected]" width="40" />
56+
<icon height="60" src="resources/ios/icon/[email protected]" width="60" />
57+
<icon height="48" src="resources/ios/icon/[email protected]" width="48" />
58+
<icon height="55" src="resources/ios/icon/[email protected]" width="55" />
59+
<icon height="29" src="resources/ios/icon/icon-29.png" width="29" />
60+
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
61+
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
62+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
63+
<icon height="80" src="resources/ios/icon/[email protected]" width="80" />
64+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
65+
<icon height="88" src="resources/ios/icon/[email protected]" width="88" />
66+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
67+
<icon height="100" src="resources/ios/icon/[email protected]" width="100" />
68+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
69+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
70+
<icon height="180" src="resources/ios/icon/[email protected]" width="180" />
71+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
72+
<icon height="144" src="resources/ios/icon/[email protected]" width="144" />
73+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
74+
<icon height="152" src="resources/ios/icon/[email protected]" width="152" />
75+
<icon height="167" src="resources/ios/icon/[email protected]" width="167" />
76+
<icon height="172" src="resources/ios/icon/[email protected]" width="172" />
77+
<icon height="196" src="resources/ios/icon/[email protected]" width="196" />
78+
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
79+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
80+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
81+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
82+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
83+
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
84+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
85+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
86+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
87+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
88+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
89+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
90+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
91+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
92+
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
93+
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
94+
</platform>
95+
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
96+
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
97+
<plugin name="cordova-plugin-device" spec="2.0.2" />
98+
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
99+
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
100+
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
101+
</widget>

Diff for: examples/AlanBasicExample/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"private": true,
1515
"dependencies": {
1616
"@alan-ai/alan-button": "^1.5.6",
17-
"@alan-ai/cordova-plugin-alan-voice": "^1.5.4",
17+
"@alan-ai/cordova-plugin-alan-voice": "^1.6.1",
1818
"@angular/common": "~9.1.6",
1919
"@angular/core": "~9.1.6",
2020
"@angular/forms": "~9.1.6",

Diff for: examples/AlanBasicExample/resources/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<domain-config cleartextTrafficPermitted="true">
4+
<domain includeSubdomains="true">localhost</domain>
5+
</domain-config>
6+
</network-security-config>

Diff for: examples/AlanBasicExample/resources/icon.png

59.4 KB
60 KB
686 Bytes
1.89 KB
3.34 KB
2.54 KB
2.99 KB
1.24 KB
3.28 KB
1.89 KB
5.13 KB
8.06 KB
2.69 KB
6.68 KB
3.34 KB
8.06 KB
14.1 KB
4.16 KB
10.8 KB
4.82 KB
11.4 KB
12.4 KB
13.2 KB
1.24 KB
3.28 KB
3.2 KB
8.03 KB
50.1 KB

Diff for: examples/AlanBasicExample/resources/splash.png

76.8 KB

Diff for: fastlane/Fastfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# fastlane/Fastfile
2+
default_platform :ios
3+
4+
platform :ios do
5+
before_all do
6+
setup_circle_ci
7+
import_certificate(
8+
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
9+
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
10+
certificate_path: 'Certificates.p12',
11+
certificate_password: ENV["CERTIFICATE_PASSWORD"] || "default"
12+
)
13+
end
14+
15+
desc "Clean"
16+
lane :clean do
17+
clear_derived_data
18+
end
19+
20+
end

0 commit comments

Comments
 (0)