Skip to content

Commit 1fd2064

Browse files
authored
Merge pull request #27 from joinflux/capacitor-7
feat(capacitor): upgrade to capacitor 7
2 parents 3ff09e3 + 0032099 commit 1fd2064

File tree

12 files changed

+771
-726
lines changed

12 files changed

+771
-726
lines changed

.prettierignore

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

JoinfluxCapacitorSegment.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ 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 = '15.0'
15-
s.dependency 'Capacitor', '~> 6.0'
14+
s.ios.deployment_target = '15.0'
15+
s.dependency 'Capacitor', '~> 7.0'
1616
s.dependency 'Analytics', '~> 4.0'
1717
s.swift_version = '5.1'
1818
end

android/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ext {
22
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
5-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
3+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
66
}
77

88
buildscript {
@@ -11,18 +11,18 @@ buildscript {
1111
mavenCentral()
1212
}
1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:8.2.1'
14+
classpath 'com.android.tools.build:gradle:8.7.2'
1515
}
1616
}
1717

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

2020
android {
2121
namespace "com.joinflux.flux.segment"
22-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
22+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
2323
defaultConfig {
24-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
24+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
25+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
2626
versionCode 1
2727
versionName "1.0"
2828
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -37,8 +37,8 @@ android {
3737
abortOnError false
3838
}
3939
compileOptions {
40-
sourceCompatibility JavaVersion.VERSION_17
41-
targetCompatibility JavaVersion.VERSION_17
40+
sourceCompatibility JavaVersion.VERSION_21
41+
targetCompatibility JavaVersion.VERSION_21
4242
}
4343
}
4444

-19.3 KB
Binary file not shown.

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.2.1-all.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

android/gradlew

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/gradlew.bat

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Plugin.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
375375
GCC_WARN_UNUSED_FUNCTION = YES;
376376
GCC_WARN_UNUSED_VARIABLE = YES;
377-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
377+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
378378
MTL_ENABLE_DEBUG_INFO = YES;
379379
ONLY_ACTIVE_ARCH = YES;
380380
SDKROOT = iphoneos;
@@ -434,7 +434,7 @@
434434
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
435435
GCC_WARN_UNUSED_FUNCTION = YES;
436436
GCC_WARN_UNUSED_VARIABLE = YES;
437-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
437+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
438438
MTL_ENABLE_DEBUG_INFO = NO;
439439
SDKROOT = iphoneos;
440440
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -457,7 +457,7 @@
457457
DYLIB_INSTALL_NAME_BASE = "@rpath";
458458
INFOPLIST_FILE = Plugin/Info.plist;
459459
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
460-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
460+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
461461
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
462462
ONLY_ACTIVE_ARCH = YES;
463463
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
@@ -483,7 +483,7 @@
483483
DYLIB_INSTALL_NAME_BASE = "@rpath";
484484
INFOPLIST_FILE = Plugin/Info.plist;
485485
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
486-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
486+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
487487
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
488488
ONLY_ACTIVE_ARCH = NO;
489489
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)