Skip to content

Commit b9ec407

Browse files
Merge pull request #204 from hamadsuniverse/master
Bump to Capacitor V7
2 parents 6cae3b8 + 9c7c6e1 commit b9ec407

File tree

8 files changed

+58
-110
lines changed

8 files changed

+58
-110
lines changed

.prettierignore

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

android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ buildscript {
1919
mavenCentral()
2020
}
2121
dependencies {
22-
classpath 'com.android.tools.build:gradle:8.2.1'
22+
classpath 'com.android.tools.build:gradle:8.7.2'
2323
}
2424
}
2525

2626
apply plugin: 'com.android.library'
2727

2828
android {
2929
namespace "co.boundstate.capacitorbranchdeeplinks"
30-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
30+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
3131
buildFeatures {
3232
buildConfig = true
3333
}
3434
defaultConfig {
35-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
36-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
35+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
36+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
3737
versionCode 1
3838
versionName "1.0"
3939
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -46,8 +46,8 @@ android {
4646
}
4747
}
4848
compileOptions {
49-
sourceCompatibility JavaVersion.VERSION_17
50-
targetCompatibility JavaVersion.VERSION_17
49+
sourceCompatibility JavaVersion.VERSION_21
50+
targetCompatibility JavaVersion.VERSION_21
5151
}
5252
lintOptions {
5353
abortOnError false
@@ -66,7 +66,7 @@ dependencies {
6666
implementation project(':capacitor-android')
6767
implementation 'androidx.annotation:annotation:1.4.0'
6868
implementation 'androidx.appcompat:appcompat:1.5.0'
69-
api 'io.branch.sdk.android:library:5.15.1'
69+
api 'io.branch.sdk.android:library:5.18.1'
7070
testImplementation "junit:junit:$junitVersion"
7171
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
7272
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"

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

ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
platform :ios, '13.0'
1+
platform :ios, '14.0'
22

33
def capacitor_pods
44
use_frameworks!
55
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
66
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
7-
pod 'BranchSDK', '~> 3.9.0'
7+
pod 'BranchSDK', '~> 3.12.1'
88
end
99

1010
target 'Plugin' do

ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PODS:
2-
- BranchSDK (3.9.0)
3-
- Capacitor (6.2.0):
2+
- BranchSDK (3.12.1)
3+
- Capacitor (7.2.0):
44
- CapacitorCordova
5-
- CapacitorCordova (6.2.0)
5+
- CapacitorCordova (7.2.0)
66

77
DEPENDENCIES:
8-
- BranchSDK (~> 3.9.0)
8+
- BranchSDK (~> 3.12.1)
99
- "Capacitor (from `../node_modules/@capacitor/ios`)"
1010
- "CapacitorCordova (from `../node_modules/@capacitor/ios`)"
1111

@@ -20,10 +20,10 @@ EXTERNAL SOURCES:
2020
:path: "../node_modules/@capacitor/ios"
2121

2222
SPEC CHECKSUMS:
23-
BranchSDK: caa0aad74d39bcd08573661d13ae0821feecdada
24-
Capacitor: 1f3c7b9802d958cd8c4eb63895fff85dff2e1eea
25-
CapacitorCordova: b33e7f4aa4ed105dd43283acdd940964374a87d9
23+
BranchSDK: 7135af6602a105fa6be3ad6c606a7f78b0131b5d
24+
Capacitor: 106e7a4205f4618d582b886a975657c61179138d
25+
CapacitorCordova: 5967b9ba03915ef1d585469d6e31f31dc49be96f
2626

27-
PODFILE CHECKSUM: 8997a24b5d8780d5611e0cf2d1d4aa3cf1c5d2ae
27+
PODFILE CHECKSUM: 5bf346ce6fad3fc64adca97bcc93cca449774333
2828

2929
COCOAPODS: 1.16.2

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "capacitor-branch-deep-links",
3-
"version": "8.4.0",
3+
"version": "9.0.0-beta.2",
44
"description": "Capacitor plugin for Branch.io deep links",
55
"main": "dist/plugin.cjs.js",
66
"module": "dist/esm/index.js",
77
"types": "dist/esm/index.d.ts",
88
"scripts": {
99
"lint": "npm run prettier -- --check && npm run swiftlint -- lint",
10-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
10+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
1111
"swiftlint": "node-swiftlint",
12-
"build": "npm run clean && tsc && rollup -c rollup.config.js",
12+
"build": "npm run clean && tsc && rollup -c rollup.config.mjs",
1313
"clean": "rimraf ./dist",
1414
"watch": "tsc --watch",
1515
"examples": "echo 'generate examples'; node ./src/scripts/examples",
@@ -19,24 +19,24 @@
1919
"author": "Bound State Software <info@boundstatesoftware.com>",
2020
"license": "MIT",
2121
"devDependencies": {
22-
"@capacitor/android": "^6.0.0",
23-
"@capacitor/cli": "^6.0.0",
24-
"@capacitor/core": "^6.0.0",
25-
"@capacitor/ios": "^6.2.0",
26-
"@ionic/prettier-config": "^1.0.0",
27-
"@ionic/swiftlint-config": "^1.0.0",
28-
"@rollup/plugin-node-resolve": "^8.1.0",
22+
"@capacitor/android": "^7.0.0",
23+
"@capacitor/cli": "^7.0.0",
24+
"@capacitor/core": "^7.0.0",
25+
"@capacitor/ios": "^7.0.0",
26+
"@ionic/prettier-config": "^4.0.0",
27+
"@ionic/swiftlint-config": "^2.0.0",
28+
"@rollup/plugin-node-resolve": "^16.0.1",
2929
"husky": "^4.2.5",
3030
"lint-staged": "^10.2.11",
31-
"prettier": "^2.0.5",
32-
"prettier-plugin-java": "^0.8.0",
33-
"rimraf": "^3.0.0",
34-
"rollup": "^2.21.0",
35-
"swiftlint": "^1.0.1",
31+
"prettier": "^3.4.2",
32+
"prettier-plugin-java": "^2.6.6",
33+
"rimraf": "^6.0.1",
34+
"rollup": "^4.30.1",
35+
"swiftlint": "^2.0.0",
3636
"typescript": "^5.1.3"
3737
},
3838
"peerDependencies": {
39-
"@capacitor/core": "^6.0.0"
39+
"@capacitor/core": ">=7.0.0"
4040
},
4141
"files": [
4242
"src/",
File renamed without changes.

src/web.ts

Lines changed: 24 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -15,120 +15,70 @@ import {
1515
BranchInitEvent,
1616
} from './definitions';
1717

18-
export class BranchDeepLinksWeb
19-
extends WebPlugin
20-
implements BranchDeepLinksPlugin
21-
{
18+
export class BranchDeepLinksWeb extends WebPlugin implements BranchDeepLinksPlugin {
2219
constructor() {
23-
super({
24-
name: 'BranchDeepLinks',
25-
platforms: ['web'],
26-
});
20+
super();
2721
}
2822

2923
handleUrl(_: BranchUrlParams): Promise<void> {
30-
return Promise.reject(
31-
new Error('BranchDeepLinks does not have web implementation'),
32-
);
24+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
3325
}
3426

3527
generateShortUrl(_: BranchShortUrlParams): Promise<BranchShortUrlResponse> {
36-
return Promise.reject(
37-
new Error('BranchDeepLinks does not have web implementation'),
38-
);
28+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
3929
}
4030

4131
showShareSheet(_: BranchShowShareSheetParams): Promise<void> {
42-
return Promise.reject(
43-
new Error('BranchDeepLinks does not have web implementation'),
44-
);
32+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
4533
}
4634

4735
getStandardEvents(): Promise<{ [index: number]: string }> {
48-
return Promise.reject(
49-
new Error('BranchDeepLinks does not have web implementation'),
50-
);
36+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
5137
}
5238

53-
sendBranchEvent(_: {
54-
eventName: string;
55-
metaData: { [key: string]: any };
56-
}): Promise<void> {
57-
return Promise.reject(
58-
new Error('BranchDeepLinks does not have web implementation'),
59-
);
39+
sendBranchEvent(_: { eventName: string; metaData: { [key: string]: any } }): Promise<void> {
40+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
6041
}
6142

6243
handleATTAuthorizationStatus(_: { status: number }): Promise<void> {
63-
return Promise.reject(
64-
new Error('BranchDeepLinks does not have web implementation'),
65-
);
44+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
6645
}
6746

6847
disableTracking(_: { isEnabled: false }): Promise<BranchTrackingResponse> {
69-
return Promise.reject(
70-
new Error('BranchDeepLinks does not have web implementation'),
71-
);
48+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
7249
}
7350

74-
setIdentity(_: {
75-
newIdentity: string;
76-
}): Promise<BranchReferringParamsResponse> {
77-
return Promise.reject(
78-
new Error('BranchDeepLinks does not have web implementation'),
79-
);
51+
setIdentity(_: { newIdentity: string }): Promise<BranchReferringParamsResponse> {
52+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
8053
}
8154

8255
logout(): Promise<BranchLoggedOutResponse> {
83-
return Promise.reject(
84-
new Error('BranchDeepLinks does not have web implementation'),
85-
);
56+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
8657
}
8758

8859
getBranchQRCode(_: BranchQRCodeParams): Promise<BranchQRCodeResponse> {
89-
return Promise.reject(
90-
new Error('BranchDeepLinks does not have web implementation'),
91-
);
60+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
9261
}
9362

9463
getLatestReferringParams(): Promise<BranchReferringParamsResponse> {
95-
return Promise.reject(
96-
new Error('BranchDeepLinks does not have web implementation'),
97-
);
64+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
9865
}
9966

10067
getFirstReferringParams(): Promise<BranchReferringParamsResponse> {
101-
return Promise.reject(
102-
new Error('BranchDeepLinks does not have web implementation'),
103-
);
68+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
10469
}
10570

10671
setDMAParamsForEEA(_: BranchDMAParams): Promise<void> {
107-
return Promise.reject(
108-
new Error('BranchDeepLinks does not have web implementation'),
109-
);
72+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
11073
}
11174

11275
setConsumerProtectionAttributionLevel(_: { level: string }): Promise<void> {
113-
return Promise.reject(
114-
new Error('BranchDeepLinks does not have web implementation'),
115-
);
116-
}
117-
118-
addListener(
119-
_eventName: 'init',
120-
_listenerFunc: (event: BranchInitEvent) => void,
121-
): Promise<PluginListenerHandle>;
122-
addListener(
123-
_eventName: 'initError',
124-
_listenerFunc: (error: any) => void,
125-
): Promise<PluginListenerHandle>;
126-
addListener(
127-
_eventName: string,
128-
_listenerFunc: (event: any) => void,
129-
): Promise<PluginListenerHandle> {
130-
return Promise.reject(
131-
new Error('BranchDeepLinks does not have web implementation'),
132-
);
76+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
77+
}
78+
79+
addListener(_eventName: 'init', _listenerFunc: (event: BranchInitEvent) => void): Promise<PluginListenerHandle>;
80+
addListener(_eventName: 'initError', _listenerFunc: (error: any) => void): Promise<PluginListenerHandle>;
81+
addListener(_eventName: string, _listenerFunc: (event: any) => void): Promise<PluginListenerHandle> {
82+
return Promise.reject(new Error('BranchDeepLinks does not have web implementation'));
13383
}
13484
}

0 commit comments

Comments
 (0)