Skip to content

Commit

Permalink
Fix buffer error for android
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeydarrenlau committed May 28, 2024
1 parent 3f442cd commit 13cd466
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 3 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { App, Editor, MarkdownView, Modal, Notice, Plugin, PluginManifest, Plugi
import { SpotifyApi, AccessToken } from '@spotify/web-api-ts-sdk';
import { RefreshClass } from './RefreshClass';

var Buffer = require('buffer/').Buffer


/**
* Declares the global interface for the `window` object.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"authorUrl": "https://github.com/Darren-project",
"fundingUrl": "https://www.buymeacoffee.com/mickeydarrenlau",
"isDesktopOnly": false,
"version": "1.3.0"
"version": "1.4.0"
}
62 changes: 62 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"dependencies": {
"@spotify/web-api-ts-sdk": "^1.2.0",
"buffer": "^6.0.3",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion version-bump.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFileSync, writeFileSync } from "fs";

const targetVersion = "1.3.0";
const targetVersion = "1.4.0";

// read minAppVersion from manifest.json and bump version to target version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"1.2.0": "0.15.0",
"1.2.1": "0.15.0",
"1.2.2": "0.15.0",
"1.3.0": "0.15.0"
"1.3.0": "0.15.0",
"1.4.0": "0.15.0"
}

0 comments on commit 13cd466

Please sign in to comment.