@situm/cordova 3.3.4 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/azure/common-steps.yaml +1 -1
- package/azure-pipelines.yml +0 -24
- package/example/android/app/build.gradle +2 -2
- package/example/android/app/src/main/java/com/situm/{capacitor_example → capacitorexample}/MainActivity.java +1 -1
- package/example/android/app/src/main/res/values/strings.xml +2 -2
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/angular.json +4 -1
- package/example/azure/build-examples.yaml +138 -0
- package/example/azure/common-steps.yaml +66 -0
- package/example/azure-pipelines.yml +147 -0
- package/example/capacitor.config.ts +1 -1
- package/example/ios/App/App/Info.plist +14 -0
- package/example/ios/App/fastlane/Fastfile +69 -0
- package/example/package-lock.json +1304 -212
- package/example/package.json +1 -0
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/app/build.gradle +1 -1
- package/src/android/situm.gradle +1 -1
- package/src/ios/Podfile +1 -1
- package/www/map-view.js +1 -1
package/azure/common-steps.yaml
CHANGED
package/azure-pipelines.yml
CHANGED
|
@@ -240,30 +240,6 @@ jobs:
|
|
|
240
240
|
bitbucket_pass: $(bitbucket_pass)
|
|
241
241
|
release: "cordova"
|
|
242
242
|
|
|
243
|
-
- checkout: cordova_sdk_validation
|
|
244
|
-
fetchTags: false
|
|
245
|
-
fetchDepth: 1
|
|
246
|
-
displayName: Checkout Cordova app example
|
|
247
|
-
|
|
248
|
-
- bash: |
|
|
249
|
-
cd cordova-sdk-validation
|
|
250
|
-
echo -e "\n[+] Setting git remote credentials\n"
|
|
251
|
-
git remote set-url origin https://$(bitbucket_user):$(bitbucket_pass)@bitbucket.org/situm/cordova-sdk-validation.git
|
|
252
|
-
|
|
253
|
-
cat .git/config
|
|
254
|
-
|
|
255
|
-
echo -e "\n[+] Fetch branches"
|
|
256
|
-
git fetch origin master
|
|
257
|
-
echo -e "\n[+] Checkout to master branch\n"
|
|
258
|
-
git checkout master
|
|
259
|
-
|
|
260
|
-
echo -e "\n[+] Commit empty change to run examples repo\n"
|
|
261
|
-
git commit -m "Publish Cordova SDK plugin release $(version)" --allow-empty
|
|
262
|
-
echo -e "\n[+] Push empty change \n"
|
|
263
|
-
git push origin master
|
|
264
|
-
|
|
265
|
-
displayName: Execute example app
|
|
266
|
-
|
|
267
243
|
- bash: |
|
|
268
244
|
if [ -d "cordova" ]; then
|
|
269
245
|
cd cordova
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
apply plugin: 'com.android.application'
|
|
2
2
|
|
|
3
3
|
android {
|
|
4
|
-
namespace "com.situm.
|
|
4
|
+
namespace "com.situm.capacitorexample"
|
|
5
5
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
6
6
|
defaultConfig {
|
|
7
|
-
applicationId "com.situm.
|
|
7
|
+
applicationId "com.situm.capacitorexample"
|
|
8
8
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
9
9
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
10
10
|
versionCode 1
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
<resources>
|
|
3
3
|
<string name="app_name">Situm Capacitor Example</string>
|
|
4
4
|
<string name="title_activity_main">Situm Capacitor Example</string>
|
|
5
|
-
<string name="package_name">com.situm.
|
|
6
|
-
<string name="custom_url_scheme">com.situm.
|
|
5
|
+
<string name="package_name">com.situm.capacitorexample</string>
|
|
6
|
+
<string name="custom_url_scheme">com.situm.capacitorexample</string>
|
|
7
7
|
</resources>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
5
|
zipStoreBase=GRADLE_USER_HOME
|
|
6
6
|
zipStorePath=wrapper/dists
|
package/example/angular.json
CHANGED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
parameters:
|
|
2
|
+
- name: system
|
|
3
|
+
type: string
|
|
4
|
+
- name: XAPIEMAIL
|
|
5
|
+
type: string
|
|
6
|
+
- name: BUILDINGID
|
|
7
|
+
type: string
|
|
8
|
+
- name: BUILDNUMBER
|
|
9
|
+
type: string
|
|
10
|
+
default: "202430015"
|
|
11
|
+
- name: MAPVIEWERDOMAIN
|
|
12
|
+
type: string
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- ${{ if contains(parameters.system, 'macOS') }}:
|
|
16
|
+
- task: DownloadSecureFile@1
|
|
17
|
+
name: api_key
|
|
18
|
+
inputs:
|
|
19
|
+
secureFile: api_key.json
|
|
20
|
+
|
|
21
|
+
- task: InstallAppleCertificate@2
|
|
22
|
+
inputs:
|
|
23
|
+
certSecureFile: AppleCert23.p12
|
|
24
|
+
|
|
25
|
+
- task: InstallAppleCertificate@2
|
|
26
|
+
inputs:
|
|
27
|
+
certSecureFile: DistributorWildcard.p12
|
|
28
|
+
|
|
29
|
+
- task: InstallAppleProvisioningProfile@1
|
|
30
|
+
inputs:
|
|
31
|
+
provisioningProfileLocation: 'secureFiles'
|
|
32
|
+
provProfileSecureFile: Situm_Cordova_SDK_Example.mobileprovision
|
|
33
|
+
removeProfile: true
|
|
34
|
+
|
|
35
|
+
- task: InstallAppleProvisioningProfile@1
|
|
36
|
+
inputs:
|
|
37
|
+
provisioningProfileLocation: 'secureFiles'
|
|
38
|
+
provProfileSecureFile: DistributorOnline.mobileprovision
|
|
39
|
+
removeProfile: true
|
|
40
|
+
|
|
41
|
+
- bash: |
|
|
42
|
+
echo -e "\n[+] Install iOS example dependencies\n"
|
|
43
|
+
cd example
|
|
44
|
+
|
|
45
|
+
echo -e "\n[+] Build ios app\n"
|
|
46
|
+
npx ionic cap sync ios
|
|
47
|
+
|
|
48
|
+
cd ios/App
|
|
49
|
+
|
|
50
|
+
echo -e "\n[+] Pod install with --repo-update option \n"
|
|
51
|
+
pod install --repo-update
|
|
52
|
+
|
|
53
|
+
displayName: Install iOS example dependencies
|
|
54
|
+
|
|
55
|
+
- bash: |
|
|
56
|
+
|
|
57
|
+
echo -e "\n[+] Selecting the Xcode version $(xcodeVersion)\n"
|
|
58
|
+
|
|
59
|
+
sudo xcode-select -switch $(xcodeVersion)
|
|
60
|
+
|
|
61
|
+
cd example/ios/App/fastlane
|
|
62
|
+
|
|
63
|
+
echo -e "\n[+] Setting Apple connection options"
|
|
64
|
+
|
|
65
|
+
cp $(api_key.secureFilePath) .
|
|
66
|
+
|
|
67
|
+
echo -e "\n[+] Install fastlane \n"
|
|
68
|
+
gem install fastlane
|
|
69
|
+
|
|
70
|
+
export WHATS_NEW="Plugin version: $(pluginVersion), USER: ${{parameters.XAPIEMAIL}}, BUILDINGID: ${{ parameters.BUILDINGID }}, DASHBOARD_URL: https://dashboard.situm.com MAPVIEWER_DOMAIN: ${{ parameters.MAPVIEWERDOMAIN}}"
|
|
71
|
+
export BUILDNUMBER=${{ parameters.BUILDNUMBER }}
|
|
72
|
+
export appleDevTeamId=$(appleDevTeamId)
|
|
73
|
+
echo -e "\n[+] Setting variables to deploy:"
|
|
74
|
+
echo -e "\t[+] Set WHATS_NEW: $WHATS_NEW"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
echo -e "\n[+] Build example with fastlane \n"
|
|
78
|
+
fastlane ios beta
|
|
79
|
+
|
|
80
|
+
displayName: Build iOS example
|
|
81
|
+
|
|
82
|
+
- ${{ if contains(parameters.system, 'ubuntu') }}:
|
|
83
|
+
- task: JavaToolInstaller@0
|
|
84
|
+
inputs:
|
|
85
|
+
versionSpec: '17'
|
|
86
|
+
jdkArchitectureOption: 'x64'
|
|
87
|
+
jdkSourceOption: 'PreInstalled'
|
|
88
|
+
displayName: Install Java 17 for Gradle
|
|
89
|
+
|
|
90
|
+
- bash: |
|
|
91
|
+
cd example
|
|
92
|
+
|
|
93
|
+
echo -e "\n[+] Build android app \n"
|
|
94
|
+
npx ionic capacitor sync android
|
|
95
|
+
|
|
96
|
+
cd android
|
|
97
|
+
./gradlew assembleDebug
|
|
98
|
+
|
|
99
|
+
displayName: Build Android dependencies
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
- bash: |
|
|
103
|
+
if [[ "$(Build.Reason)" == "Manual" ]];then
|
|
104
|
+
folder="$(CordovaExample_folder)/Manual"
|
|
105
|
+
else
|
|
106
|
+
folder="$(CordovaExample_folder)"
|
|
107
|
+
fi
|
|
108
|
+
branchName=$(echo $(Build.SourceBranch)| cut -d "/" -f 3,4 | sed 's/\//_/g')
|
|
109
|
+
branchFolder="$branchName"
|
|
110
|
+
destinationFolder="$(pluginVersion)"
|
|
111
|
+
|
|
112
|
+
echo -e "\n[+] Variables to Sharepoint Upload:"
|
|
113
|
+
echo -e "\t[+] Folder: $folder"
|
|
114
|
+
echo -e "\t[+] Branch Name: $branchName"
|
|
115
|
+
echo -e "\t[+] Branch folder: $folder/$branchFolder"
|
|
116
|
+
echo -e "\t[+] Destination folder: $folder/$branchFolder/$destinationFolder"
|
|
117
|
+
echo -e "\t[+] Plugin Version: $(pluginVersion)"
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
echo -e "\n[+] Install $(office365Cli) cli\n"
|
|
121
|
+
|
|
122
|
+
npm i -g $(office365Cli)
|
|
123
|
+
|
|
124
|
+
echo -e "\n[+] Login in Sharepoint \n"
|
|
125
|
+
m365 login --authType password --userName $(sharepoint_user) --password $(sharepoint_pass)
|
|
126
|
+
|
|
127
|
+
echo -e "\n[+] Create Branch folder $folder/$branchFolder\n"
|
|
128
|
+
m365 spo folder add -p $folder -u $(SharepointUrl) --name $branchFolder
|
|
129
|
+
|
|
130
|
+
echo -e "\n[+] Create Destination folder $folder/$branchFolder/$destinationFolder\n"
|
|
131
|
+
m365 spo folder add -p $folder/$branchFolder -u $(SharepointUrl) --name $destinationFolder
|
|
132
|
+
|
|
133
|
+
echo -e "\n[+] Upload APK to $folder/$branchFolder/$destinationFolder\n"
|
|
134
|
+
cd example/android/app/build/outputs/apk/debug
|
|
135
|
+
mv app-debug.apk ${{ parameters.BUILDNUMBER }}-debug.apk
|
|
136
|
+
m365 spo file add -p ${{ parameters.BUILDNUMBER }}-debug.apk -u $(SharepointUrl) -f $folder/$branchFolder/$destinationFolder
|
|
137
|
+
|
|
138
|
+
displayName: Upload APK
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
parameters:
|
|
2
|
+
- name: system
|
|
3
|
+
type: string
|
|
4
|
+
- name: XAPIEMAIL
|
|
5
|
+
type: string
|
|
6
|
+
- name: XAPIKEY
|
|
7
|
+
type: string
|
|
8
|
+
- name: BUILDINGID
|
|
9
|
+
type: string
|
|
10
|
+
- name: MAPVIEWERDOMAIN
|
|
11
|
+
type: string
|
|
12
|
+
- name: REMOTEIDENTIFIER
|
|
13
|
+
type: string
|
|
14
|
+
- name: BUILDNUMBER
|
|
15
|
+
type: string
|
|
16
|
+
default: "Value only set in iOS"
|
|
17
|
+
steps:
|
|
18
|
+
- checkout: self
|
|
19
|
+
fetchDepth: 1
|
|
20
|
+
fetchTags: false
|
|
21
|
+
displayName: Clone repository
|
|
22
|
+
|
|
23
|
+
- task: NodeTool@0
|
|
24
|
+
inputs:
|
|
25
|
+
versionSource: "spec" # 'spec' | 'fromFile'. Required. Source of version. Default: spec.
|
|
26
|
+
versionSpec: $(nodeVersion)
|
|
27
|
+
|
|
28
|
+
- bash: |
|
|
29
|
+
|
|
30
|
+
echo -e "\n[+] Installing NPM version $(npmVersion)\n"
|
|
31
|
+
npm install -g $(npmVersion)
|
|
32
|
+
|
|
33
|
+
echo -e "\n[+] Install $(ioniccli)\n"
|
|
34
|
+
npm install $(ioniccli)
|
|
35
|
+
|
|
36
|
+
echo -e "\n[+] Install plugin dependencies\n"
|
|
37
|
+
npm install
|
|
38
|
+
|
|
39
|
+
echo -e "\n[+] Install example dependencies\n"
|
|
40
|
+
cd example
|
|
41
|
+
rm -rf ios/Podfile.lock
|
|
42
|
+
npm install
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
displayName: Install plugin dependencies
|
|
46
|
+
|
|
47
|
+
- bash: |
|
|
48
|
+
|
|
49
|
+
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
|
|
50
|
+
pluginVersion=$(grep -E '"version": "[0-9]+\.[0-9]+\.[0-9]+"' package.json | awk -F"\"" '{print $4}')
|
|
51
|
+
echo "##vso[task.setvariable variable=pluginVersion]$(echo $pluginVersion)"
|
|
52
|
+
|
|
53
|
+
echo -e "\n[+] Variables to set:"
|
|
54
|
+
echo -e "\t[+] X-API-EMAIL: ${{ parameters.XAPIEMAIL }}"
|
|
55
|
+
echo -e "\t[+] BUILDINGID: ${{ parameters.BUILDINGID }}"
|
|
56
|
+
echo -e "\t[+] MAPVIEWERDOMAIN: ${{ parameters.MAPVIEWERDOMAIN }}"
|
|
57
|
+
echo -e "\t[+] BUILDNUMBER: ${{ parameters.BUILDNUMBER }}"
|
|
58
|
+
echo -e "\t[+] Plugin Version used: $pluginVersion"
|
|
59
|
+
|
|
60
|
+
echo "export const API_USER = '${{ parameters.XAPIEMAIL }}';" > example/src/constants.ts
|
|
61
|
+
echo "export const API_KEY = '${{ parameters.XAPIKEY }}';" >> example/src/constants.ts
|
|
62
|
+
echo "export const BUILDING_IDENTIFIER = '${{ parameters.BUILDINGID }}';" >> example/src/constants.ts
|
|
63
|
+
echo "export const VIEWER_DOMAIN = '${{ parameters.MAPVIEWERDOMAIN }}';" >> example/src/constants.ts
|
|
64
|
+
echo "export const REMOTE_IDENTIFIER = '${{ parameters.REMOTEIDENTIFIER }}';" >> example/src/constants.ts
|
|
65
|
+
|
|
66
|
+
displayName: Configure credentials
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Starter pipeline
|
|
2
|
+
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
3
|
+
# Add steps that build, run tests, deploy, and more:
|
|
4
|
+
# https://aka.ms/yaml
|
|
5
|
+
|
|
6
|
+
trigger:
|
|
7
|
+
- master
|
|
8
|
+
|
|
9
|
+
pr: none
|
|
10
|
+
|
|
11
|
+
parameters:
|
|
12
|
+
- name: XAPIEMAIL
|
|
13
|
+
type: string
|
|
14
|
+
displayName: X-API-EMAIL
|
|
15
|
+
default: user@email.com
|
|
16
|
+
- name: XAPIKEY
|
|
17
|
+
type: string
|
|
18
|
+
displayName: X-API-KEY
|
|
19
|
+
default: user-api-key
|
|
20
|
+
- name: BUILDINGID
|
|
21
|
+
type: string
|
|
22
|
+
default: "1"
|
|
23
|
+
- name: MAPVIEWERDOMAIN
|
|
24
|
+
type: string
|
|
25
|
+
default: "https://map-viewer.situm.com"
|
|
26
|
+
- name: REMOTEIDENTIFIER
|
|
27
|
+
type: string
|
|
28
|
+
default: "demo"
|
|
29
|
+
|
|
30
|
+
variables:
|
|
31
|
+
- group: Passwords
|
|
32
|
+
- group: SoftwareVersions
|
|
33
|
+
- group: SharepointPaths
|
|
34
|
+
|
|
35
|
+
resources:
|
|
36
|
+
repositories:
|
|
37
|
+
- repository: sys_kubernetes_templates
|
|
38
|
+
type: bitbucket
|
|
39
|
+
endpoint: Bitbucket - sistemas
|
|
40
|
+
name: situm/sys-kubernetes-templates.git
|
|
41
|
+
|
|
42
|
+
jobs:
|
|
43
|
+
#===============================================================
|
|
44
|
+
# Job for Android app
|
|
45
|
+
#===============================================================
|
|
46
|
+
- job:
|
|
47
|
+
displayName: Build Android App
|
|
48
|
+
pool:
|
|
49
|
+
vmImage: $(ubuntuVersion)
|
|
50
|
+
steps:
|
|
51
|
+
- ${{ if ne(variables['Build.Reason'],'manual') }}:
|
|
52
|
+
- bash: |
|
|
53
|
+
echo "##vso[task.setvariable variable=XAPIKEY]$(echo $(XAPIKEY_EXAMPLES))"
|
|
54
|
+
echo "##vso[task.setvariable variable=XAPIEMAIL]$(echo $(XAPIEMAIL_EXAMPLES))"
|
|
55
|
+
echo "##vso[task.setvariable variable=BUILDINGID]$(echo $(BUILDING_ID_EXAMPLES))"
|
|
56
|
+
echo "##vso[task.setvariable variable=MAPVIEWERDOMAIN]$(echo $(DEFAULT_MAPVIEWURL))"
|
|
57
|
+
echo "##vso[task.setvariable variable=REMOTEIDENTIFIER]$(echo $(DEFAULT_REMOTEIDENTIFIER))"
|
|
58
|
+
echo "##vso[task.setvariable variable=BUILDNUMBER]$(echo $(Build.BuildNumber) | awk -F"." '{if ($2 < 10) print $1"0"$2; else print $1$2}')"
|
|
59
|
+
|
|
60
|
+
echo -e "\n[!] I'm a shy step so I don't show any information. You'll see my work in the Configure Credentials step"
|
|
61
|
+
displayName: Configure Automatic run Vars
|
|
62
|
+
|
|
63
|
+
- ${{ if eq(variables['Build.Reason'],'manual') }}:
|
|
64
|
+
- bash: |
|
|
65
|
+
echo "##vso[task.setvariable variable=XAPIKEY]$(echo ${{parameters.XAPIKEY}})"
|
|
66
|
+
echo "##vso[task.setvariable variable=XAPIEMAIL]$(echo ${{ parameters.XAPIEMAIL}})"
|
|
67
|
+
echo "##vso[task.setvariable variable=BUILDINGID]$(echo ${{ parameters.BUILDINGID}})"
|
|
68
|
+
echo "##vso[task.setvariable variable=MAPVIEWERDOMAIN]$(echo ${{ parameters.MAPVIEWERDOMAIN }})"
|
|
69
|
+
echo "##vso[task.setvariable variable=REMOTEIDENTIFIER]$(echo ${{ parameters.REMOTEIDENTIFIER }})"
|
|
70
|
+
echo "##vso[task.setvariable variable=BUILDNUMBER]$(echo $(Build.BuildNumber) | awk -F"." '{if ($2 < 10) print $1"0"$2; else print $1$2}')"
|
|
71
|
+
|
|
72
|
+
echo -e "\n[!] I'm a shy step so I don't show any information. You'll see my work in the Configure Credentials step"
|
|
73
|
+
displayName: Configure Manual run Vars
|
|
74
|
+
|
|
75
|
+
- template: azure/common-steps.yaml
|
|
76
|
+
parameters:
|
|
77
|
+
XAPIKEY: $(XAPIKEY)
|
|
78
|
+
XAPIEMAIL: $(XAPIEMAIL)
|
|
79
|
+
BUILDINGID: $(BUILDINGID)
|
|
80
|
+
MAPVIEWERDOMAIN: $(MAPVIEWERDOMAIN)
|
|
81
|
+
REMOTEIDENTIFIER: $(REMOTEIDENTIFIER)
|
|
82
|
+
system: $(ubuntuVersion)
|
|
83
|
+
BUILDNUMBER: $(BUILDNUMBER)
|
|
84
|
+
|
|
85
|
+
- template: azure/build-examples.yaml
|
|
86
|
+
parameters:
|
|
87
|
+
system: $(ubuntuVersion)
|
|
88
|
+
BUILDINGID: $(BUILDINGID)
|
|
89
|
+
XAPIEMAIL: $(XAPIEMAIL)
|
|
90
|
+
MAPVIEWERDOMAIN: $(MAPVIEWERDOMAIN)
|
|
91
|
+
BUILDNUMBER: $(BUILDNUMBER)
|
|
92
|
+
|
|
93
|
+
#===============================================================
|
|
94
|
+
# Job for iOS app
|
|
95
|
+
#===============================================================
|
|
96
|
+
- job:
|
|
97
|
+
displayName: Build iOS App
|
|
98
|
+
pool:
|
|
99
|
+
vmImage: $(macOSVersion)
|
|
100
|
+
steps:
|
|
101
|
+
- ${{ if ne(variables['Build.Reason'],'manual') }}:
|
|
102
|
+
- bash: |
|
|
103
|
+
echo "##vso[task.setvariable variable=XAPIKEY]$(echo $(XAPIKEY_EXAMPLES))"
|
|
104
|
+
echo "##vso[task.setvariable variable=XAPIEMAIL]$(echo $(XAPIEMAIL_EXAMPLES))"
|
|
105
|
+
echo "##vso[task.setvariable variable=BUILDINGID]$(echo $(BUILDING_ID_EXAMPLES))"
|
|
106
|
+
echo "##vso[task.setvariable variable=MAPVIEWERDOMAIN]$(DEFAULT_MAPVIEWURL)"
|
|
107
|
+
echo "##vso[task.setvariable variable=REMOTEIDENTIFIER]$(echo $(DEFAULT_REMOTEIDENTIFIER))"
|
|
108
|
+
echo "##vso[task.setvariable variable=BUILDNUMBER]$(echo $(Build.BuildNumber) | awk -F"." '{if ($2 < 10) print $1"0"$2; else print $1$2}')"
|
|
109
|
+
|
|
110
|
+
echo -e "\n[!] I'm a shy step so I don't show any information. You'll see my work in the Configure Credentials step"
|
|
111
|
+
displayName: Configure Automatic run Vars
|
|
112
|
+
|
|
113
|
+
- ${{ if eq(variables['Build.Reason'],'manual') }}:
|
|
114
|
+
- bash: |
|
|
115
|
+
echo "##vso[task.setvariable variable=XAPIKEY]$(echo ${{parameters.XAPIKEY}})"
|
|
116
|
+
echo "##vso[task.setvariable variable=XAPIEMAIL]$(echo ${{ parameters.XAPIEMAIL}})"
|
|
117
|
+
echo "##vso[task.setvariable variable=BUILDINGID]$(echo ${{ parameters.BUILDINGID}})"
|
|
118
|
+
echo "##vso[task.setvariable variable=MAPVIEWERDOMAIN]$(echo ${{ parameters.MAPVIEWERDOMAIN }})"
|
|
119
|
+
echo "##vso[task.setvariable variable=REMOTEIDENTIFIER]$(echo ${{ parameters.REMOTEIDENTIFIER }})"
|
|
120
|
+
echo "##vso[task.setvariable variable=BUILDNUMBER]$(echo $(Build.BuildNumber) | awk -F"." '{if ($2 < 10) print $1"0"$2; else print $1$2}')"
|
|
121
|
+
|
|
122
|
+
echo -e "\n[!] I'm a shy step so I don't show any information. You'll see my work in the Configure Credentials step"
|
|
123
|
+
displayName: Configure Manual run Vars
|
|
124
|
+
|
|
125
|
+
- bash: |
|
|
126
|
+
echo -e "\n[+] Install gnu-sed\n"
|
|
127
|
+
brew install gnu-sed
|
|
128
|
+
displayName: Install gnu-sed
|
|
129
|
+
|
|
130
|
+
- template: azure/common-steps.yaml
|
|
131
|
+
parameters:
|
|
132
|
+
XAPIKEY: $(XAPIKEY)
|
|
133
|
+
XAPIEMAIL: $(XAPIEMAIL)
|
|
134
|
+
BUILDINGID: $(BUILDINGID)
|
|
135
|
+
system: $(macOSVersion)
|
|
136
|
+
BUILDNUMBER: $(BUILDNUMBER)
|
|
137
|
+
MAPVIEWERDOMAIN: $(MAPVIEWERDOMAIN)
|
|
138
|
+
REMOTEIDENTIFIER: $(REMOTEIDENTIFIER)
|
|
139
|
+
|
|
140
|
+
- template: azure/build-examples.yaml
|
|
141
|
+
parameters:
|
|
142
|
+
MAPVIEWERDOMAIN: $(MAPVIEWERDOMAIN)
|
|
143
|
+
system: $(macOSVersion)
|
|
144
|
+
XAPIEMAIL: $(XAPIEMAIL)
|
|
145
|
+
BUILDINGID: $(BUILDINGID)
|
|
146
|
+
BUILDNUMBER: $(BUILDNUMBER)
|
|
147
|
+
|
|
@@ -28,6 +28,20 @@
|
|
|
28
28
|
<string>Location is required to find out where you are</string>
|
|
29
29
|
<key>NSLocationWhenInUseUsageDescription</key>
|
|
30
30
|
<string>Location is required to find out where you are</string>
|
|
31
|
+
<key>NSCalendarsUsageDescription</key>
|
|
32
|
+
<string>This app requires calendar access to function properly.</string>
|
|
33
|
+
<key>NSContactsUsageDescription</key>
|
|
34
|
+
<string>This app requires contacts access to function properly.</string>
|
|
35
|
+
<key>NSPhotoLibraryUsageDescription</key>
|
|
36
|
+
<string>This app requires photo library access to function properly.</string>
|
|
37
|
+
<key>NSMicrophoneUsageDescription</key>
|
|
38
|
+
<string>This app requires Microphone access to function properly.</string>
|
|
39
|
+
<key>NSMotionUsageDescription</key>
|
|
40
|
+
<string>This app requires Motion access to function properly.</string>
|
|
41
|
+
<key>NSBluetoothAlwaysUsageDescription</key>
|
|
42
|
+
<string>This app requires Bluetooth access to function properly.</string>
|
|
43
|
+
<key>ITSAppUsesNonExemptEncryption</key>
|
|
44
|
+
<false />
|
|
31
45
|
<key>UILaunchStoryboardName</key>
|
|
32
46
|
<string>LaunchScreen</string>
|
|
33
47
|
<key>UIMainStoryboardFile</key>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# This file contains the fastlane.tools configuration
|
|
2
|
+
# You can find the documentation at https://docs.fastlane.tools
|
|
3
|
+
#
|
|
4
|
+
# For a list of all available actions, check out
|
|
5
|
+
#
|
|
6
|
+
# https://docs.fastlane.tools/actions
|
|
7
|
+
#
|
|
8
|
+
# For a list of all available plugins, check out
|
|
9
|
+
#
|
|
10
|
+
# https://docs.fastlane.tools/plugins/available-plugins
|
|
11
|
+
#
|
|
12
|
+
|
|
13
|
+
# Uncomment the line if you want fastlane to automatically update itself
|
|
14
|
+
# update_fastlane
|
|
15
|
+
|
|
16
|
+
default_platform(:ios)
|
|
17
|
+
|
|
18
|
+
platform :ios do
|
|
19
|
+
desc "Build example"
|
|
20
|
+
lane :beta do
|
|
21
|
+
#=================================================
|
|
22
|
+
#Get Latest version and build number
|
|
23
|
+
#=================================================
|
|
24
|
+
latest_testflight_build_number(
|
|
25
|
+
api_key_path:"./fastlane/api_key.json",
|
|
26
|
+
app_identifier:"com.situm.capacitorexample",
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
#====================================================
|
|
30
|
+
#Increment version number and build number
|
|
31
|
+
#
|
|
32
|
+
#====================================================
|
|
33
|
+
#
|
|
34
|
+
version_number = lane_context[SharedValues::LATEST_TESTFLIGHT_VERSION]
|
|
35
|
+
increment_version_number(
|
|
36
|
+
version_number: version_number
|
|
37
|
+
)
|
|
38
|
+
increment_build_number(
|
|
39
|
+
build_number: ENV['BUILDNUMBER']
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
#=================================================
|
|
44
|
+
# Build iOS Example RNSDK
|
|
45
|
+
# ================================================
|
|
46
|
+
build_app(
|
|
47
|
+
workspace: "App.xcworkspace",
|
|
48
|
+
configuration: "Release",
|
|
49
|
+
scheme: "App",
|
|
50
|
+
export_method: "app-store",
|
|
51
|
+
xcargs: "CODE_SIGN_STYLE=Manual PROVISIONING_PROFILE_SPECIFIER=\"Situm Cordova SDK Example\" DEVELOPMENT_TEAM=\""+ENV['appleDevTeamId']+"\" PRODUCT_BUNDLE_IDENTIFIER=\"com.situm.capacitorexample\"",
|
|
52
|
+
export_options: {
|
|
53
|
+
provisioningProfiles: {
|
|
54
|
+
"com.situm.capacitorexample" => "DistributorOnline"
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
#=================================================
|
|
60
|
+
# Upload to Testflight
|
|
61
|
+
# ================================================
|
|
62
|
+
upload_to_testflight(
|
|
63
|
+
api_key_path:"./fastlane/api_key.json",
|
|
64
|
+
skip_submission: true,
|
|
65
|
+
skip_waiting_for_build_processing: true,
|
|
66
|
+
changelog: ENV['WHATS_NEW']
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
end
|