Skip to content

Commit

Permalink
Prepare release v4.2.0-OS42 (second pull request) (#109)
Browse files Browse the repository at this point in the history
* RMET-2361 ::: Add Play Video  (#76)

* feat: add play video to js bridge

* fix: remove empty line

* RMET-2346 ::: Multimedia metadata (#77)

* feat: added includeMetadata flag.

* feat: added includeMetadata flag.

* chore: updated CHANGELOG

* RMET-2359 Camera Plugin - Android play video (#78)

* feat: implement play video and include necessary file paths

* chore: update dependency to lib

* refactor: use constant

* chore: update changelog

* feat: use more meaningful error

* feat: iOS | Implement Play Video Action (#79)

Update iOS library to include the code related with the Play Video client action. Add a new structure to deal with the input parameters coming from the JavaScript file.

Co-authored-by: Nelson Lopes da Silva <5671236+nflsilva@users.noreply.github.com>

* feat: add xcframework with the return of metadata (#80)

* Change UI tests to MobilePluginsE2ETests (#82)

* Changes tests implementation to MobilePluginsE2ETests

* FIxing case

* RMET-2347 Camera Plugin - Add metadata output for features on Android (#81)

* feat: include metadata output parameter for RecordVideo feature

References: https://outsystemsrd.atlassian.net/browse/RMET-2347

* feat: add metadata output for ChooseFromGallery feature

References: https://outsystemsrd.atlassian.net/browse/RMET-2347

* refactor: call method inside coroutine

References: https://outsystemsrd.atlassian.net/browse/RMET-2347

* chore: update library

* chore: update dependency to lib

* chore: update lib

* RMET-2400 :: Update Errors and fixing bugs (#84)

* feat: update iOS xcframework

* feat: add .aar

* chore: update changelog

* Parallel E2E test execution and splits the pipeline into different jobs (#83)

* Breaking pipeline into smaller jobs

* Checking out at each job

* WIP branch for ODC pipeline

* No need to specify MABS or package ID here

* Properly passing variables between jobs

* debugging

* Using variables for package paths on upload

* debugging upload

* Using upload artifacts to pass builds between jobs

* Changing PublishPipelineArtifact implementation

* Fix?

* 🙃

* Reagregate build creation and upload

* Fixing dependencies

* Revmoes isOutput att for package path variables

* Fixing storage id reference

* Improving task descriptions

* Points to main branch for E2E Tests

* StorageID Handling

* Changes task to get storageID value

* chore: update lib version

* RMET-2472 Camera Plugin - Request for gallery permissions if saveToGallery (#85)

* fix: request for gallery permissions if saveToGallery

References: https://outsystemsrd.atlassian.net/browse/RMET-2472

* chore: update changelog

* feat: delete files from cache in pluginInitialize

* refactor: remove unnecessary operation

* chore: update lib version

* chore: update lib version

* RMET-2496 :: Prepare release (#86)

* chore: update Camera Android lib version

References: https://outsystemsrd.atlassian.net/browse/RMET-2496

* chore: update xcframework + changelog

---------

Co-authored-by: Alexandre Jacinto <alexandre.jacinto@outsystems.com>

* feat: add includeMetadata input param (#88)

* RMET-2489 :: Add Allow Edit choose from gallery (#90)

* Feat/rmet 2560 (#91)

* Update azure-pipeline-test.yml

* Update azure-pipeline-test.yml

* Update azure-pipeline-test.yml

* Update azure-pipeline-test.yml

to revert this commit

* Update azure-pipeline-test.yml

* Update azure-pipeline-test.yml

* Revert "Update azure-pipeline-test.yml"

This reverts commit 1e86328.

* Update azure-pipeline-test.yml

* fix: iOS | Selecting iCloud Assets (#92)

Update OSCameraLib.xcframework to the latest version that contains the fix for the selection iCloud assets issue.

* Identify Old and New Version of TakePicture (#95)

* fix: checkArgs method

Apply the `argscheck.checkArgs` to the correct method.

* feat: Add latestVersion to takePicture

Add the new latestVersion property to the takePicture method argument list. This will allow the native libraries to identify if it's dealing with the latest client action or the deprecated one.

* feat: iOS | Add MediaResult to TakePicture Output (#96)

Update `OSCameraLib.xcframework` to use the latest version that includes the latest `takePicture` implementation.
Add the new `latestVersion` property to `OSCAMRPictureParameters`. This and `includeMetadata` are defined as `Bool?` as the deprecated version doesn't use it.
Apply other small refactors.

* RMET-2493 ::: Allow edit in Choose From Gallery pictures (#94)

* added allow edit logic in choose from gallery. updated CHANGELOG

* updated library for testing

* removed unecessary comment in build.gradle

* RMET-2491 Camera Plugin - Android - Add MediaResult to TakePicture (#97)

* feat: optionally return mediaResult in TakePicture

References: https://outsystemsrd.atlassian.net/browse/RMET-2491

* feat: use proper fileName for pictures

References: https://outsystemsrd.atlassian.net/browse/RMET-2491

* feat: include parameters in camParameters object

References: https://outsystemsrd.atlassian.net/browse/RMET-2491

* chore: update dependency

* fix: fixing lib version

* feat: add new parameter to TakePicture in JS

* feat: deal with optional parameters

* fix: set optional variables to their default value

References: https://outsystemsrd.atlassian.net/browse/RMET-2491

* chore: update changelog

* chore: update lib

* chore: update lib

* RMET-2571 OSCameraLib-Android - Refactor - Remove old code from TakePicture and ChoosePicture (#99)

* refactor: remove unnecessary parameters

References: https://outsystemsrd.atlassian.net/browse/RMET-2571

* chore: update dependency

References: https://outsystemsrd.atlassian.net/browse/RMET-2571

* refactor: iOS | Delete unused files (#100)

Delete unused files from the solution. These files are not used anymore since the revamp and new architecture application.

* feat: iOS | Add AllowEdit Parameter to Choose from Gallery (#98)

Update `OSCameraLib.xcframework` to use the latest version that includes adding `allowEdit` to the `Choose from Gallery` feature.
Pass the `allowEdit` property from `OSCAMRChooseGalleryParameters` to the plugin's `chooseMultimedia` method.

* RMET-2564/5 ::: Bridge ::: Add EditURIPicture. (#101)

* feat: Add `EditURIPicture` to Javascript

Include the new `EditURIPicture` to the `Camera.js` file. This will bridge the Outsystems implementation to the Android/iOS native libraries.

* chore: Include PR comment

Change `let` expression to do it all at once.

* feat: iOS | Edit Picture with URIs (#102)

Update `OSCameraLib.xcframework` to use the latest version that includes the new `editPicture` for URIs.
Add new `editURIPicture` to `OSCamera`. This is method enables picture editing from an URI.
Create a `OSCAMREditPictureParameters` struct to receive the parameters from the JS API. This also allows the opportunity to split all Parameter structs into separate files, making it easier to manage.

* RMET-2565 Camera Plugin - EditURIPicture feature (#103)

* feat: first implementation of EditURIPicture

References: https://outsystemsrd.atlassian.net/browse/RMET-2565

* feat: handle result of editing picture from URI

References: https://outsystemsrd.atlassian.net/browse/RMET-2565

* feat: save editPicture to gallery and deal with permissions

References: https://outsystemsrd.atlassian.net/browse/RMET-2565

* feat: improve permission request

References: https://outsystemsrd.atlassian.net/browse/RMET-2565

* chore: update changelog

* refactor: update data object name

* chore: update lib version

* chore: updated lib version for testing (#105)

* chore: updated lib version for testing

* chore: updated lib version

* chore: updated changelog

* fix: iOS | Update Library (#106)

Update `OSCameraLib.xcframework` to use the latest version that includes the fix for the rotated image flip.

* chore: Set Release Tag

Update OSCameraLib.xcframework to the latest version (Release 1.1.0).
Update the release tag.

* RDSTF-401 fix ci pipeline (#107)

* added variable group for ios credential

* use another stampsinformation file

* reimplemented saucelabs upload

* REVERT - use my branch

* fix working directory

* REVERT - comment out the tests

* use team's saucelabs creds

* added android tests

* use my branch

* added new parameters

* fix pipeline to run the correct scripts

* uncommented all tests!

* removed unnecessary vars

var group "Camera Plugin Variables" has those values

* moved variables same place

* Update azure-pipeline-test.yml

* Update azure-pipeline-test.yml

---------

Co-authored-by: Sandra Rodrigues <44206174+sandrarodrigues76@users.noreply.github.com>

---------

Co-authored-by: Marta Carlos <101343976+OS-martacarlos@users.noreply.github.com>
Co-authored-by: Alexandre Jacinto <alexandre.jacinto@outsystems.com>
Co-authored-by: Ricardo Silva <97543217+OS-ricardomoreirasilva@users.noreply.github.com>
Co-authored-by: Felipe Cepriano <Felipe.nascimento@outsystems.com>
Co-authored-by: Sandra Rodrigues <44206174+sandrarodrigues76@users.noreply.github.com>
Co-authored-by: OS-ricardomoreirasilva <ricardo.moreira.silva@outsystems.com>
Co-authored-by: MarioPires <mario.pires@outsystems.com>
  • Loading branch information
8 people authored Jun 14, 2023
1 parent 128d916 commit 3778889
Showing 1 changed file with 39 additions and 43 deletions.
82 changes: 39 additions & 43 deletions build/ci/azure-pipeline-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,74 +22,67 @@ resources:
name: OutSystems/MobilePluginsODCPipeline
endpoint: OutSystems

variables:
- name: StampsInformationFileName
value: "eng-osrd-mobile-neo1.StampsInformation.json"
- name: PLUGIN_APP_KEY
value: "7acb2c1d-51bf-4ef4-8cb8-a05573501b6a" # ODC Camera Plugin
- name: SAMPLEAPP_APP_KEY
value: "15d54f75-779d-4cae-948f-1bc119a7e813" # ODC CloneOfCameraSampleApp
# value: "3c0451ef-0d99-4e09-adb5-718e009deb9d" # ODC CameraSampleApp
- name: MABS_VERSION
value: "9.0"
- group: MobileConfigCredentials
- group: "Saucelabs User Variables"
- group: "Camera Plugin Variables"

stages:
- stage: Camera_E2E_Tests_Android
variables:
- group: "Camera Plugin Variables"
- group: "Saucelabs User Variables"
jobs:

- job: update_wrapper
displayName: "Update the plugin wrapper"
steps:
- checkout: self
- checkout: MobilePluginsODCPipeline
- template: build/ci/update-wrapper.yaml@MobilePluginsODCPipeline
parameters:
secretFileName: "eng-osrd-mobile-neo1-StampsInformation.json"
PLUGIN_APP_KEY: "7acb2c1d-51bf-4ef4-8cb8-a05573501b6a"
PLUGIN_UPDATE_URL: "https://github.com/OutSystems/cordova-plugin-camera#$(Build.SourceBranchName)"
secretFileName: $(StampsInformationFileName)
scriptToRun: UpdateExtensibilityOnPluginWrapper
PLUGIN_APP_KEY: $(PLUGIN_APP_KEY)
PLUGIN_UPDATE_URL: "https://github.com/OutSystems/cordova-plugin-camera#$(Build.SourceBranchName)" # TODO: try to use Build variable for the repo url
PLUGIN_UPDATE_VERSION: "$(Build.SourceBranchName)"
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsODCPipeline

- job: update_sampleapp
dependsOn: update_wrapper
displayName: "Refresh dependencies on the Sample App, deploy to QA and build packages"
steps:
- checkout: self
- checkout: MobilePluginsODCPipeline
- checkout: MobilePluginsE2ETests

- template: build/ci/refresh-sampleapp.yaml@MobilePluginsODCPipeline
parameters:
secretFileName: "eng-osrd-mobile-neo1-StampsInformation.json"
SAMPLEAPP_APP_KEY: "3c0451ef-0d99-4e09-adb5-718e009deb9d"
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsODCPipeline
secretFileName: $(StampsInformationFileName)
scriptToRun: RefreshSampleAppDependencies
SAMPLEAPP_APP_KEY: $(SAMPLEAPP_APP_KEY)
ANDROID_APP_IDENTIFIER: "com.outsystems.CloneOfCameraSampleApp" # $(ANDROID_APP_ID)
IOS_APP_IDENTIFIER: "com.outsystems.rd.CloneOfCameraSampleApp" # $(IOS_APP_ID)
MABS_VERSION: $(MABS_VERSION)

- template: build/ci/upload-packages-saucelabs.yaml@MobilePluginsODCPipeline
parameters:
SAMPLEAPP_APP_KEY: $(SAMPLEAPP_APP_KEY)
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsODCPipeline

- script: |
echo "##vso[task.setvariable variable=apkPath]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.apk-path)"
cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.apk-path
echo "##vso[task.setvariable variable=ipaPath]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ipa-path)"
cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ipa-path
name: set_path_vars
displayName: "Set package variables"
- task: NodeTool@0
displayName: "Use Node 14.15.4"
inputs:
versionSpec: "14.15.4"
checkLatest: true
- task: npmAuthenticate@0
displayName: "npm Authenticate .npmrc"
inputs:
workingFile: "$(System.DefaultWorkingDirectory)/MobilePluginsE2ETests/.npmrc"
- task: CmdLine@2
name: install_dep_cp2
displayName: "Install dependencies using yarn"
inputs:
script: "yarn"
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests/
continueOnError: true
- script: |
echo "APK: $(apkPath)"
ls -la $(ipaPath)
echo "IPA: $(ipaPath)"
ls -la $(ipaPath)
node ./scripts/upload_application.js -- -f $(apkPath) -o /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.android-slid
node ./scripts/upload_application.js -- -f $(ipaPath) -o /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ios-slid
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests
name: upload_packages
displayName: "Upload package to SauceLabs"
- script: |
echo "##vso[task.setvariable variable=androidSLID;isOutput=true]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.android-slid)"
echo "##vso[task.setvariable variable=iosSLID;isOutput=true]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ios-slid)"
echo "##vso[task.setvariable variable=androidSLID;isOutput=true]$(cat $(System.DefaultWorkingDirectory)/MobilePluginsODCPipeline/src/OutSystems.Platform.Milestone.Tests/bin/Debug/$(SAMPLEAPP_APP_KEY)-android-slid.txt)"
echo "##vso[task.setvariable variable=iosSLID;isOutput=true]$(cat $(System.DefaultWorkingDirectory)/MobilePluginsODCPipeline/src/OutSystems.Platform.Milestone.Tests/bin/Debug/$(SAMPLEAPP_APP_KEY)-ios-slid.txt)"
name: set_slid_vars
displayName: "Set SauceLabs Storage IDs variables"
- job: android_e2e_tests_P0s
displayName: "Android E2E P0 tests"
dependsOn: update_sampleapp
Expand All @@ -114,6 +107,7 @@ stages:
THREADS: 3
STORAGE_ID: $(storageID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests

- job: android_e2e_tests_non_P0s
dependsOn: android_e2e_tests_P0s
displayName: "Android E2E Non P0 tests"
Expand All @@ -137,6 +131,7 @@ stages:
THREADS: 3
STORAGE_ID: $(storageID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests

- job: iOS_e2e_tests_P0s
displayName: "iOS E2E P0 tests"
dependsOn: update_sampleapp
Expand All @@ -160,6 +155,7 @@ stages:
THREADS: 3
STORAGE_ID: $(storageID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests

- job: iOS_e2e_tests_non_P0s
dependsOn: iOS_e2e_tests_P0s
displayName: "iOS E2E Non P0 tests"
Expand Down

0 comments on commit 3778889

Please sign in to comment.