Skip to content

Commit 0a1f4ff

Browse files
authored
[Capacitor 4] migration to Capacitor 4 (#218)
* feature: bump up to capacitor 4.0.0 * chore: add missing config
1 parent bb5c27a commit 0a1f4ff

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

android/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ buildscript {
44
google()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:4.2.1'
7+
classpath 'com.android.tools.build:gradle:7.2.1'
8+
classpath 'com.google.gms:google-services:4.3.13'
89
}
910
}
1011

1112
apply plugin: 'com.android.library'
1213

1314
android {
14-
compileSdkVersion 30
15+
compileSdkVersion 32
1516
defaultConfig {
16-
minSdkVersion 21
17-
targetSdkVersion 30
17+
minSdkVersion 22
18+
targetSdkVersion 32
1819
versionCode 1
1920
versionName "1.0"
2021
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -28,6 +29,10 @@ android {
2829
lintOptions {
2930
abortOnError false
3031
}
32+
compileOptions {
33+
targetCompatibility JavaVersion.VERSION_11
34+
sourceCompatibility JavaVersion.VERSION_11
35+
}
3136
}
3237

3338
repositories {

ios/Plugin.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
387387
GCC_WARN_UNUSED_FUNCTION = YES;
388388
GCC_WARN_UNUSED_VARIABLE = YES;
389-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
389+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
390390
MTL_ENABLE_DEBUG_INFO = YES;
391391
ONLY_ACTIVE_ARCH = YES;
392392
SDKROOT = iphoneos;
@@ -440,7 +440,7 @@
440440
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441441
GCC_WARN_UNUSED_FUNCTION = YES;
442442
GCC_WARN_UNUSED_VARIABLE = YES;
443-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
443+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
444444
MTL_ENABLE_DEBUG_INFO = NO;
445445
SDKROOT = iphoneos;
446446
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -463,7 +463,7 @@
463463
DYLIB_INSTALL_NAME_BASE = "@rpath";
464464
INFOPLIST_FILE = Plugin/Info.plist;
465465
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
466-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
466+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
467467
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
468468
ONLY_ACTIVE_ARCH = YES;
469469
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
@@ -488,7 +488,7 @@
488488
DYLIB_INSTALL_NAME_BASE = "@rpath";
489489
INFOPLIST_FILE = Plugin/Info.plist;
490490
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
491-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
491+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
492492
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
493493
ONLY_ACTIVE_ARCH = NO;
494494
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;

ios/Podfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
platform :ios, '12.0'
1+
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
2+
3+
platform :ios, '13.0'
24

35
target 'Plugin' do
46
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
@@ -15,3 +17,7 @@ target 'PluginTests' do
1517

1618
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
1719
end
20+
21+
post_install do |installer|
22+
assertDeploymentTarget(installer)
23+
end

0 commit comments

Comments
 (0)