generated from nventive/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
832aac5
commit 3f97977
Showing
6 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
parameters: | ||
- name: pathToSrc | ||
type: string | ||
default: '' | ||
|
||
steps: | ||
- task: DownloadSecureFile@1 | ||
name: firebaseJson | ||
displayName: "Download Keystore from Secure Files" | ||
inputs: | ||
secureFile: ${{ if eq(variables['ApplicationEnvironment'], 'Production') }}: | ||
then: | ||
- $(FirebaseJson) | ||
else: | ||
- $(InternalFirebaseJson) | ||
|
||
- task: DownloadSecureFile@1 | ||
name: firebaseOptionsDart | ||
displayName: "Download Keystore from Secure Files" | ||
inputs: | ||
secureFile: ${{ if eq(variables['ApplicationEnvironment'], 'Production') }}: | ||
then: | ||
- $(FirebaseOptionsDart) | ||
else: | ||
- $(InternalFirebaseOptionsDart) | ||
|
||
- task: DownloadSecureFile@1 | ||
name: googleServicesJson | ||
displayName: "Download Keystore from Secure Files" | ||
inputs: | ||
secureFile: ${{ if eq(variables['ApplicationEnvironment'], 'Production') }}: | ||
then: | ||
- $(GoogleServicesJson) | ||
else: | ||
- $(InternalGoogleServicesJson) | ||
|
||
- task: PowerShell@2 | ||
displayName: Copy firebase Configuration Files | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Copy-Item -Path '$(firebaseJson.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\firebase.json' | ||
Write-Host 'Firebase.json copied to ${{ parameters.pathToSrc }}/app/firebase.json' | ||
Copy-Item -Path '$(firebaseOptionsDart.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\lib\firebase_options.dart' | ||
Write-Host 'FirebaseOptions.Dart copied to ${{ parameters.pathToSrc }}/app/lib/firebase_options.dart' | ||
Copy-Item -Path '$(googleServicesJson.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\android\app\google-services.json' | ||
Write-Host 'GoogleServices.json copied to ${{ parameters.pathToSrc }}\app\android\app\google-services.json' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters