Skip to content

Commit

Permalink
RMET-2496 :: Prepare release (#87)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Alexandre Jacinto <alexandre.jacinto@outsystems.com>
Co-authored-by: Nelson Lopes da Silva <5671236+nflsilva@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>
  • Loading branch information
5 people authored Apr 21, 2023
1 parent 1f2fdd3 commit d5aa2ba
Show file tree
Hide file tree
Showing 25 changed files with 418 additions and 145 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ The changes documented here do not include those from the original repository.

## [Unreleased]

## [4.2.0-OS41]

### Features
- [Android] Ask for gallery permissions for RecordVideo (https://outsystemsrd.atlassian.net/browse/RMET-2472).
- [Android] Update Error Codes and Error Messages (https://outsystemsrd.atlassian.net/browse/RMET-2400).
- [Android] Add compression to big images (https://outsystemsrd.atlassian.net/browse/RMET-2409).
- [iOS] Update Error Codes and Error Messages (https://outsystemsrd.atlassian.net/browse/RMET-2400).
- [iOS] Add return of Metadata to `Choose from Gallery` and `Record Video` (https://outsystemsrd.atlassian.net/browse/RMET-2349).
- [Bridge] Add `include Metadata` client action input parameter (https://outsystemsrd.atlassian.net/browse/RMET-2346).
- [iOS] Add `Play Video` client action (https://outsystemsrd.atlassian.net/browse/RMET-2360).
- [Android] Play Video for Android (https://outsystemsrd.atlassian.net/browse/RMET-2359)
- [Bridge] Add `Play Video` client action (https://outsystemsrd.atlassian.net/browse/RMET-2361).
- [Android] Add `Choose from Gallery` client action, allowing a multiple or single selection of pictures and/or videos (https://outsystemsrd.atlassian.net/browse/RMET-2327)
- [Android] Add `Thumbnail` property to `Media Result` (https://outsystemsrd.atlassian.net/browse/RMET-2351)
- [iOS] Implement `Choose from Gallery` client action, allowing a multiple or single selection of pictures and/or videos (https://outsystemsrd.atlassian.net/browse/RMET-2326).
Expand Down
94 changes: 57 additions & 37 deletions build/ci/azure-pipeline-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "E2E UI Test"
name: "Camera Plugin ODC Pipeline"

pr: none
trigger:
Expand All @@ -11,10 +11,10 @@ pool:

resources:
repositories:
- repository: mobile-ui-tests
- repository: MobilePluginsE2ETests
type: github
ref: master
name: OutSystems/mobile-ui-tests
ref: main
name: OutSystems/MobilePluginsE2ETests
endpoint: OutSystems
- repository: MobilePluginsODCPipeline
type: github
Expand All @@ -28,10 +28,10 @@ stages:
- group: "Camera Plugin Variables"
- group: "Saucelabs User Variables"
jobs:
- job: checkout_repos
- job: update_wrapper
displayName: "Update the plugin wrapper"
steps:
- checkout: self
- checkout: mobile-ui-tests
- checkout: MobilePluginsODCPipeline
- template: build/ci/update-wrapper.yaml@MobilePluginsODCPipeline
parameters:
Expand All @@ -40,6 +40,13 @@ stages:
PLUGIN_UPDATE_URL: "https://github.com/OutSystems/cordova-plugin-camera#$(Build.SourceBranchName)"
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"
Expand All @@ -51,65 +58,78 @@ stages:
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"
displayName: "Set package variables"
- task: NodeTool@0
displayName: 'Use Node 14.15.4'
displayName: "Use Node 14.15.4"
inputs:
versionSpec: '14.15.4'
versionSpec: "14.15.4"
checkLatest: true
- task: npmAuthenticate@0
displayName: 'npm Authenticate .npmrc'
displayName: "npm Authenticate .npmrc"
inputs:
workingFile: '$(System.DefaultWorkingDirectory)/mobile-ui-tests/.npmrc'
workingFile: "$(System.DefaultWorkingDirectory)/MobilePluginsE2ETests/.npmrc"
- task: CmdLine@2
name: install_dep_cp2
displayName: 'Install dependencies using yarn'
displayName: "Install dependencies using yarn"
inputs:
script: 'yarn'
workingDirectory: $(System.DefaultWorkingDirectory)/mobile-ui-tests/
continueOnError: true
script: "yarn"
workingDirectory: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests/
continueOnError: true
- script: |
node ./scripts/upload_application.js -- -u $SAUCELABS_USER_NAME -k $SAUCELABS_USER_KEY -f $(apkPath) -o /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.android-slid
node ./scripts/upload_application.js -- -u $SAUCELABS_USER_NAME -k $SAUCELABS_USER_KEY -f $(ipaPath) -o /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ios-slid
workingDirectory: $(System.DefaultWorkingDirectory)/mobile-ui-tests
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]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.android-slid)"
echo "##vso[task.setvariable variable=iosSLID]$(cat /tmp/3c0451ef-0d99-4e09-adb5-718e009deb9d.ios-slid)"
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)"
name: set_slid_vars
displayName: "Set SauceLabs Storage IDs variables"
- template: pipelines/templates/build-and-execute-tests-template.yml@mobile-ui-tests
- job: android_e2e_tests
dependsOn: update_sampleapp
displayName: "Android E2E tests"
variables:
- name: storageID
value: $[ dependencies.update_sampleapp.outputs['set_slid_vars.androidSLID'] ]
steps:
- checkout: self
- checkout: MobilePluginsE2ETests
- template: build/ci/templates/run-tests.yaml@MobilePluginsE2ETests
parameters:
PACKAGE: $(ANDROID_PACKAGE_ID)
MABS: 9
DATACENTER: eu
DEVICE: "samsung or google"
DEVICE_PLATFORM: Android
DEVICE_VERSION: 12
PLATFORM_TYPE: Mobile
PLUGIN: camera
TAGS: "@p0"
PLUGIN: Camera
RETRY: 1
TEST_TYPE: native
THREADS: 3
STORAGE_ID: $(androidSLID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/mobile-ui-tests
- template: pipelines/templates/build-and-execute-tests-template.yml@mobile-ui-tests
STORAGE_ID: $(storageID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests
- job: iOS_e2e_tests
dependsOn: update_sampleapp
displayName: "iOS E2E tests"
variables:
- name: storageID
value: $[ dependencies.update_sampleapp.outputs['set_slid_vars.iosSLID'] ]
steps:
- checkout: self
- checkout: MobilePluginsE2ETests
- template: build/ci/templates/run-tests.yaml@MobilePluginsE2ETests
parameters:
PACKAGE: $(IOS_BUNDLE_ID)
MABS: 9
DATACENTER: eu
DEVICE_PLATFORM: iOS
DEVICE_VERSION: 16
PLATFORM_TYPE: Mobile
PLUGIN: camera
TAGS: "@p0"
PLUGIN: Camera
RETRY: 1
TEST_TYPE: native
THREADS: 3
STORAGE_ID: $(iosSLID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/mobile-ui-tests



STORAGE_ID: $(storageID)
WORKING_DIR: $(System.DefaultWorkingDirectory)/MobilePluginsE2ETests
3 changes: 1 addition & 2 deletions libs/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ apply plugin: 'kotlin-kapt'
dependencies {
implementation("com.github.outsystems:oscore-android:1.1.0@aar")
implementation("com.github.outsystems:oscordova-android:1.1.0@aar")
//TODO Update library version for to match the last camera lib android before release
implementation("com.github.outsystems:oscamera-android:0.0.20.7@aar")
implementation("com.github.outsystems:oscamera-android:1.0.0@aar")
}

// Defer the definition of the dependencies to the end
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
</config-file>

<source-file src="src/ios/OSCamera.swift" />
<source-file src="src/ios/OSCAMRChooseGalleryParameters.swift" />
<source-file src="src/ios/OSCAMRParametersStruct.swift" />
<source-file src="src/ios/OSCAMRPictureOptions+CordovaInitializer.swift" />
<framework src="src/ios/frameworks/OSCameraLib.xcframework" embed="true" custom="true" />

Expand Down
Loading

0 comments on commit d5aa2ba

Please sign in to comment.