Skip to content

Commit

Permalink
Merge pull request #61 from nevissecurity/release-3.8.0-to-main
Browse files Browse the repository at this point in the history
NEVISACCESSAPP-6304: Release 3.8.0
  • Loading branch information
tamas-toth authored Nov 15, 2024
2 parents 40a92ae + 072a5ba commit 4fc3912
Show file tree
Hide file tree
Showing 35 changed files with 489 additions and 498 deletions.
2 changes: 1 addition & 1 deletion .github/actions/create-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
using: composite
steps:
- name: Create Tag
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
TAG_NAME: ${{ inputs.build-category }}/${{ inputs.app-version }}/${{ inputs.build-number }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: composite
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/setup-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ runs:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
working-directory: 'ios'

- name: Add Private Cocoapods Repo
if: ${{ env.BUILD_TYPE == 'SNAPSHOT' }}
shell: bash
run: |
pod repo remove ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY_NAME }} &> /dev/null || true
pod repo add ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY_NAME }} ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY_URL }}
2 changes: 1 addition & 1 deletion .github/actions/setup-pub-credentials/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ runs:
shell: bash
run: |
echo Setting up Pub credentials...
echo '${{ env.PRIVATE_REPOSITORY_API_KEY }}' | dart pub token add ${{ env.PRIVATE_DART_REPOSITORY }}
echo '${{ env.PRIVATE_REPOSITORY_API_KEY }}' | dart pub token add ${{ env.PRIVATE_DART_REPOSITORY_URL }}
4 changes: 2 additions & 2 deletions .github/actions/update-config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ runs:
using: composite
steps:
- name: Update Configuration (loginRequestURL)
uses: jossef/action-set-json-field@v2.1
uses: jossef/action-set-json-field@v2.2
with:
file: assets/config_authentication_cloud.json
field: login.loginRequestURL
value: "https://${{ env.HOST_NAME }}.mauth.nevis.cloud/_app/auth/pwd"

- name: Update Configuration (hostname)
uses: jossef/action-set-json-field@v2.1
uses: jossef/action-set-json-field@v2.2
with:
file: assets/config_authentication_cloud.json
field: sdk.hostname
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/update-flutter-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
changes: |
{
"dependencies.nevis_mobile_authentication_sdk": "",
"dependencies.nevis_mobile_authentication_sdk.hosted": "${{ env.PRIVATE_DART_REPOSITORY }}",
"dependencies.nevis_mobile_authentication_sdk.hosted": "${{ env.PRIVATE_DART_REPOSITORY_URL }}",
"dependencies.nevis_mobile_authentication_sdk.version": "${{ inputs.sdk-version }}"
}
commitChange: false
Expand All @@ -28,4 +28,4 @@ runs:

- name: Resolve Flutter Packages
shell: bash
run: flutter pub get
run: flutter pub get
19 changes: 10 additions & 9 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ env:
BUILD_TYPE: 'SNAPSHOT' # Allowed values: 'SNAPSHOT', 'RELEASE', 'RELEASE_CANDIDATE'
FLUTTER_VERSION: '3.19.0'
XCODE_VERSION: '15.4'
JAVA_VERSION: '11'
JAVA_VERSION: '17'
RUBY_VERSION: '3.1'
HOST_NAME: ${{ secrets.HOST_NAME }}
PRIVATE_REPOSITORY_API_KEY: ${{ secrets.PRIVATE_REPOSITORY_API_KEY }}
PRIVATE_DART_REPOSITORY: ${{ secrets.PRIVATE_DART_REPOSITORY }}
PRIVATE_NATIVE_IOS_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY }}
PRIVATE_NATIVE_ANDROID_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_ANDROID_REPOSITORY }}
PRIVATE_DART_REPOSITORY_URL: ${{ secrets.PRIVATE_DART_REPOSITORY_URL }}
PRIVATE_NATIVE_IOS_REPOSITORY_URL: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY_URL }}
PRIVATE_NATIVE_IOS_REPOSITORY_NAME: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY_NAME }}
PRIVATE_NATIVE_ANDROID_REPOSITORY_URL: ${{ secrets.PRIVATE_NATIVE_ANDROID_REPOSITORY_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
Expand Down Expand Up @@ -88,8 +89,8 @@ jobs:

- name: Build And Distribute The iOS Example App
env:
PRIVATE_NATIVE_REPOSITORY: ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY }}
uses: maierj/fastlane-action@v3.0.0
PRIVATE_NATIVE_REPOSITORY_URL: ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY_URL }}
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'develop'
subdirectory: 'ios'
Expand Down Expand Up @@ -128,8 +129,8 @@ jobs:

- name: Build And Distribute The Android Example App
env:
PRIVATE_NATIVE_REPOSITORY: ${{ env.PRIVATE_NATIVE_ANDROID_REPOSITORY }}
uses: maierj/fastlane-action@v3.0.0
PRIVATE_NATIVE_REPOSITORY_URL: ${{ env.PRIVATE_NATIVE_ANDROID_REPOSITORY_URL }}
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'develop'
subdirectory: 'android'
Expand All @@ -145,7 +146,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create Tag
uses: ./.github/actions/create-tag
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ env:
BUILD_TYPE: 'RELEASE' # Allowed values: 'SNAPSHOT', 'RELEASE', 'RELEASE_CANDIDATE'
FLUTTER_VERSION: '3.19.0'
XCODE_VERSION: '15.4'
JAVA_VERSION: '11'
JAVA_VERSION: '17'
RUBY_VERSION: '3.1'
HOST_NAME: ${{ secrets.HOST_NAME }}
PRIVATE_REPOSITORY_API_KEY: ${{ secrets.PRIVATE_REPOSITORY_API_KEY }}
PRIVATE_DART_REPOSITORY: ${{ secrets.PRIVATE_DART_REPOSITORY }}
PRIVATE_NATIVE_IOS_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY }}
PRIVATE_NATIVE_ANDROID_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_ANDROID_REPOSITORY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
Expand Down Expand Up @@ -88,7 +84,7 @@ jobs:
uses: ./.github/actions/setup-ios

- name: Build And Distribute The iOS Example App
uses: maierj/fastlane-action@v3.0.0
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'main'
subdirectory: 'ios'
Expand Down Expand Up @@ -124,7 +120,7 @@ jobs:
uses: ./.github/actions/setup-android

- name: Build And Distribute The Android Example App
uses: maierj/fastlane-action@v3.0.0
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'main'
subdirectory: 'android'
Expand All @@ -140,7 +136,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create Tag
uses: ./.github/actions/create-tag
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ env:
BUILD_TYPE: 'SNAPSHOT' # Allowed values: 'SNAPSHOT', 'RELEASE', 'RELEASE_CANDIDATE'
FLUTTER_VERSION: '3.19.0'
XCODE_VERSION: '15.4'
JAVA_VERSION: '11'
JAVA_VERSION: '17'
RUBY_VERSION: '3.1'
HOST_NAME: ${{ secrets.HOST_NAME }}
PRIVATE_REPOSITORY_API_KEY: ${{ secrets.PRIVATE_REPOSITORY_API_KEY }}
PRIVATE_DART_REPOSITORY: ${{ secrets.PRIVATE_DART_REPOSITORY }}
PRIVATE_NATIVE_IOS_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY }}
PRIVATE_NATIVE_ANDROID_REPOSITORY: ${{ secrets.PRIVATE_NATIVE_ANDROID_REPOSITORY }}
PRIVATE_DART_REPOSITORY_URL: ${{ secrets.PRIVATE_DART_REPOSITORY_URL }}
PRIVATE_NATIVE_IOS_REPOSITORY_URL: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY_URL }}
PRIVATE_NATIVE_IOS_REPOSITORY_NAME: ${{ secrets.PRIVATE_NATIVE_IOS_REPOSITORY_NAME }}
PRIVATE_NATIVE_ANDROID_REPOSITORY_URL: ${{ secrets.PRIVATE_NATIVE_ANDROID_REPOSITORY_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
Expand Down Expand Up @@ -76,8 +77,8 @@ jobs:

- name: Build iOS Example App
env:
PRIVATE_NATIVE_REPOSITORY: ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY }}
uses: maierj/fastlane-action@v3.0.0
PRIVATE_NATIVE_REPOSITORY_URL: ${{ env.PRIVATE_NATIVE_IOS_REPOSITORY_URL }}
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'pr'
subdirectory: 'ios'
Expand All @@ -103,8 +104,8 @@ jobs:

- name: Build Android Example App
env:
PRIVATE_NATIVE_REPOSITORY: ${{ env.PRIVATE_NATIVE_ANDROID_REPOSITORY }}
uses: maierj/fastlane-action@v3.0.0
PRIVATE_NATIVE_REPOSITORY_URL: ${{ env.PRIVATE_NATIVE_ANDROID_REPOSITORY_URL }}
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'pr'
subdirectory: 'android'
subdirectory: 'android'
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
BUILD_TYPE: 'RELEASE_CANDIDATE' # Allowed values: 'SNAPSHOT', 'RELEASE', 'RELEASE_CANDIDATE'
FLUTTER_VERSION: '3.19.0'
XCODE_VERSION: '15.4'
JAVA_VERSION: '11'
JAVA_VERSION: '17'
RUBY_VERSION: '3.1'
HOST_NAME: ${{ secrets.HOST_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -30,16 +30,10 @@ jobs:
flutter-validation:
name: Validate Flutter
runs-on: ubuntu-latest
outputs:
sdk-version: ${{ steps.get-versions.outputs.sdk-version }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Fetch SDK Version
id: get-versions
uses: ./.github/actions/get-versions

- name: Setup Flutter
uses: ./.github/actions/setup-flutter

Expand Down Expand Up @@ -67,7 +61,7 @@ jobs:
uses: ./.github/actions/setup-ios

- name: Build iOS Example App
uses: maierj/fastlane-action@v3.0.0
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'pr'
subdirectory: 'ios'
Expand All @@ -90,7 +84,7 @@ jobs:
uses: ./.github/actions/setup-android

- name: Build Android Example App
uses: maierj/fastlane-action@v3.0.0
uses: maierj/fastlane-action@v3.1.0
with:
lane: 'pr'
subdirectory: 'android'
subdirectory: 'android'
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ Your development setup has to meet the following prerequisites:
* Xcode 15.x, including Swift 5.7 or later
* Android 6 or later, with API level 23 -or-
* Android 10 or later, with API level 29, for the biometric authenticator to work
* Gradle 7.4 or later
* Android Gradle Plugin `com.android.tools.build:gradle` 7.0.0 or later
* Kotlin Gradle Plugin `org.jetbrains.kotlin:kotlin-gradle-plugin` 1.8.0 or later
* Gradle 8.4 or later
* Android Gradle Plugin `com.android.tools.build:gradle` 8.3.0 or later
* Kotlin Gradle Plugin `org.jetbrains.kotlin:kotlin-gradle-plugin` 1.8.22 or later
* Dart SDK 3.3.0 or later
* Java 17

### Initialization

Expand Down Expand Up @@ -244,4 +245,4 @@ Out-of-band operations occur when a message is delivered to the application thro

During registration, the device information can be provided that contains the name identifying your device, and also the Firebase Cloud Messaging registration token. Updating both the name and the token is implemented in the [ChangeDeviceInformationUseCase](lib/domain/usecase/change_device_information_usecase.dart) class.

© 2023 made with ❤ by Nevis
© 2024 made with ❤ by Nevis
2 changes: 1 addition & 1 deletion android/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "fastlane"
gem 'fastlane', '~> 2.225'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading

0 comments on commit 4fc3912

Please sign in to comment.