Skip to content

Commit 76ddb7b

Browse files
author
wslaghekke
committed
Update plugin for capacitor v7
1 parent 0af610c commit 76ddb7b

File tree

11 files changed

+3451
-5162
lines changed

11 files changed

+3451
-5162
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: '18'
13+
node-version: '22'
1414
- run: npm ci
1515
- run: npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
1616
- run: npm version --commit-hooks=false --allow-same-version=true ${GITHUB_REF##*/}

.github/workflows/validation.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-node@v3
1818
with:
19-
node-version: '18'
19+
node-version: '22'
2020
- run: npm install
2121
- run: npm run lint
2222

@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v3
2727
- uses: actions/setup-node@v3
2828
with:
29-
node-version: '14'
29+
node-version: '22'
3030
- run: npm install
3131
- run: npm run verify:web
3232

@@ -36,12 +36,12 @@ jobs:
3636
- uses: actions/checkout@v3
3737
- uses: actions/setup-node@v3
3838
with:
39-
node-version: '18'
39+
node-version: '22'
4040
- name: Setup jdk
4141
uses: actions/setup-java@v3
4242
with:
4343
distribution: 'temurin'
44-
java-version: '17'
44+
java-version: '21'
4545
- run: npm install
4646
- run: npm run verify:android
4747

@@ -51,6 +51,6 @@ jobs:
5151
- uses: actions/checkout@v3
5252
- uses: actions/setup-node@v3
5353
with:
54-
node-version: '18'
54+
node-version: '22'
5555
- run: npm install
5656
- run: npm run verify:ios

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

RecognizebvCapacitorPluginMsauth.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.author = package['author']
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
1313
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14-
s.ios.deployment_target = '13.0'
14+
s.ios.deployment_target = '14.0'
1515
s.dependency 'Capacitor'
1616
s.dependency 'MSAL', '~>1.1'
1717
s.swift_version = '5.1'

android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ext {
33
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
44
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
55
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
6-
recognizebvMSALVersion = project.hasProperty("recognizebvMSALVersion") ? rootProject.ext.recognizebvMSALVersion : '5.4.0'
6+
recognizebvMSALVersion = project.hasProperty("recognizebvMSALVersion") ? rootProject.ext.recognizebvMSALVersion : '5.10.0'
77
}
88

99
buildscript {
@@ -12,18 +12,18 @@ buildscript {
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath 'com.android.tools.build:gradle:8.2.1'
15+
classpath 'com.android.tools.build:gradle:8.7.2'
1616
}
1717
}
1818

1919
apply plugin: 'com.android.library'
2020

2121
android {
2222
namespace "nl.recognize.msauthplugin.capacitorpluginmsauth"
23-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
23+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
2424
defaultConfig {
25-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
26-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
25+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
26+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
2727
versionCode 1
2828
versionName "1.0"
2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -39,8 +39,8 @@ android {
3939
}
4040

4141
compileOptions {
42-
sourceCompatibility JavaVersion.VERSION_17
43-
targetCompatibility JavaVersion.VERSION_17
42+
sourceCompatibility JavaVersion.VERSION_21
43+
targetCompatibility JavaVersion.VERSION_21
4444
}
4545

4646
packagingOptions {

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

ios/Plugin.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378378
GCC_WARN_UNUSED_FUNCTION = YES;
379379
GCC_WARN_UNUSED_VARIABLE = YES;
380-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
380+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
381381
MTL_ENABLE_DEBUG_INFO = YES;
382382
ONLY_ACTIVE_ARCH = YES;
383383
SDKROOT = iphoneos;
@@ -431,7 +431,7 @@
431431
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
432432
GCC_WARN_UNUSED_FUNCTION = YES;
433433
GCC_WARN_UNUSED_VARIABLE = YES;
434-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
434+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
435435
MTL_ENABLE_DEBUG_INFO = NO;
436436
SDKROOT = iphoneos;
437437
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -454,7 +454,7 @@
454454
DYLIB_INSTALL_NAME_BASE = "@rpath";
455455
INFOPLIST_FILE = Plugin/Info.plist;
456456
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
457-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
457+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
458458
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
459459
ONLY_ACTIVE_ARCH = YES;
460460
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
@@ -479,7 +479,7 @@
479479
DYLIB_INSTALL_NAME_BASE = "@rpath";
480480
INFOPLIST_FILE = Plugin/Info.plist;
481481
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
482-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
482+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
483483
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
484484
ONLY_ACTIVE_ARCH = NO;
485485
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '13.0'
1+
platform :ios, '14.0'
22

33
def capacitor_pods
44
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks

0 commit comments

Comments
 (0)