Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cordova #599

Merged
merged 17 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
SDK-523 remove targetSdk check. It doesn't exist in newer manifests.
  • Loading branch information
echo-branch committed Oct 1, 2019
commit 1e065d24be516f1ffe87bcdbc334a13a9c8949da
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "branch-cordova-sdk",
"description": "Branch Metrics Cordova SDK",
"main": "src/index.js",
"version": "3.2.0",
"version": "3.3.0",
"homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking",
"repository": {
"type": "git",
Expand Down
12 changes: 2 additions & 10 deletions src/scripts/android/updateAndroidManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
manifest.file,
manifest.mainActivityIndex,
preferences,
manifest.targetSdk
);

// save manifest
Expand Down Expand Up @@ -71,14 +70,11 @@
const mainActivityIndex = getMainLaunchActivityIndex(
manifest.manifest.application[0].activity
);
const targetSdk =
manifest.manifest["uses-sdk"][0].$["android:targetSdkVersion"];

return {
file: manifest,
path: pathToManifest,
mainActivityIndex: mainActivityIndex,
targetSdk: targetSdk
mainActivityIndex: mainActivityIndex
};
}

Expand Down Expand Up @@ -230,8 +226,7 @@
function updateBranchAppLinks(
manifest,
mainActivityIndex,
preferences,
targetSdk
preferences
) {
let intentFilters =
manifest.manifest.application[0].activity[mainActivityIndex][
Expand All @@ -243,9 +238,6 @@
"android:name": androidName,
"android:autoVerify": "true"
};
if (targetSdk && parseInt(targetSdk) < 23) {
delete header["android:autoVerify"];
}

// remove
intentFilters = removeBasedOnAndroidName(intentFilters, androidName);
Expand Down