From 5cb9d7b78359738734720d59a5607d358eb71219 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Mon, 2 Nov 2020 15:31:37 +0100 Subject: [PATCH 01/19] add sideEffects --- package.json | 4 ++-- plugin/package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 488b456..28154f2 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build.ios": "bash src-native/ios/build.sh", "build.native": "npm run build.android && npm run build.ios", "build": "npm run build.plugin && npm run build.hooks", - "publish": "npm run setup && npm run build && lerna publish", + "publish": "npm run setup && npm run build && lerna publish --create-release=github", "demo.ios": "npm i && npm run tsc && cd demo && tns run ios", "demo.android": "npm i && npm run tsc && cd demo && tns run android", "clean.demo": "rimraf demo/hooks demo/node_modules demo/platforms", @@ -73,4 +73,4 @@ "@commitlint/config-conventional" ] } -} +} \ No newline at end of file diff --git a/plugin/package.json b/plugin/package.json index bba69cc..5ae6502 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -4,6 +4,7 @@ "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", + "sideEffects": false, "nativescript": { "platforms": { "android": "5.0.0", @@ -40,4 +41,4 @@ "license": "Apache-2.0", "homepage": "https://github.com/nativescript-community/push", "readmeFilename": "README.md" -} +} \ No newline at end of file From c1cb9a2c4cf6f17f0436143736388ba2908bffda Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Mon, 2 Nov 2020 15:31:49 +0100 Subject: [PATCH 02/19] v1.1.6 --- CHANGELOG.md | 8 ++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 8 ++++++++ plugin/package.json | 4 ++-- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 063edbb..2a49f13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.6](https://github.com/farfromrefug/nativescript-push/compare/v1.1.5...v1.1.6) (2020-11-02) + +**Note:** Version bump only for package @nativescript-community/push + + + + + ## [1.1.5](https://github.com/farfromrefug/nativescript-push/compare/v1.1.4...v1.1.5) (2020-10-24) diff --git a/lerna.json b/lerna.json index 38437e3..a73439c 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.5", + "version": "1.1.6", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index 4d77368..e2a4749 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.6](https://github.com/farfromrefug/nativescript-push/compare/v1.1.5...v1.1.6) (2020-11-02) + +**Note:** Version bump only for package @nativescript-community/push + + + + + ## [1.1.5](https://github.com/farfromrefug/nativescript-push/compare/v1.1.4...v1.1.5) (2020-10-24) **Note:** Version bump only for package @nativescript-community/push diff --git a/plugin/package.json b/plugin/package.json index 5ae6502..e805e56 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.5", + "version": "1.1.6", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", @@ -41,4 +41,4 @@ "license": "Apache-2.0", "homepage": "https://github.com/nativescript-community/push", "readmeFilename": "README.md" -} \ No newline at end of file +} From a5696d67aa3f2306fdcce6ab40a1f1fa945bc0ef Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Mon, 21 Dec 2020 18:37:17 +0100 Subject: [PATCH 03/19] Update examples in README * Previously, the example that was taken from (https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/NON_FIREBASE_MESSAGING.md) didn't work because of invalid imports. This fixes that. * Add info about calling the `init()` function. * Remove info on .entitlements, since app.entitlements seems to be the only valid filename --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5081d3d..e809ca6 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Open /platforms/ios/yourproject.__xcworkspace__ (!) and go to your project's tar #### Copy the entitlements file The previous step created a the file`platforms/ios/YourAppName/(Resources/)YourAppName.entitlements`. -Copy that file to `app/App_Resources/iOS/` (if it doesn't exist yet, otherwise merge its contents), +Copy that file to `app/App_Resources/iOS/app.entitlements` (if it doesn't exist yet, otherwise merge its contents), so it's not removed when you remove and re-add the iOS platform. The relevant content for background push in that file is: ```xml @@ -34,7 +34,7 @@ so it's not removed when you remove and re-add the iOS platform. The relevant co development ``` -> Note that the filename can either be `.entitlements` or `app.entitlements`, where `YourAppName` is the iOS foldername, see the path above. +> Note that the filename should be `app.entitlements`, see the path above. #### Configure push notifications in `Info.plist` Tell the plugin to allow an external push provider by adding this to `App_Resources/iOS/Info.plist` (without this, the push token will always be `undefined`!): @@ -58,12 +58,20 @@ The end result should look like [this](https://github.com/EddyVerbruggen/natives #### ## API +### `init` +In your main application JS file, you must call `init()`. + +```typescript +import * as messaging from '@nativescript-community/push'; +messaging.init(); +``` + ### `areNotificationsEnabled` On both iOS and Android the user can disable notifications for your app. If you want to check the current state of this setting, you can do: ```typescript -import { messaging, Message } from "@nativescript-community/push"; +import * as messaging from "@nativescript-community/push"; console.log(`Notifications enabled? ${messaging.areNotificationsEnabled()}`); ``` @@ -72,15 +80,15 @@ console.log(`Notifications enabled? ${messaging.areNotificationsEnabled()}`); The easiest way to register for (receiving) push notifications is calling `registerForPushNotifications`, and passing in a few handlers: ```typescript -import { messaging, Message } from "@nativescript-community/push"; +import * as messaging from "@nativescript-community/push"; messaging.registerForPushNotifications({ onPushTokenReceivedCallback: (token: string): void => { console.log("Firebase plugin received a push token: " + token); }, - onMessageReceivedCallback: (message: Message) => { - console.log("Push message received: " + message.title); + onMessageReceivedCallback: (message: messaging.Message) => { + console.log("Push message received:", message)); }, // Whether you want this plugin to automatically display the notifications or just notify the callback. Currently used on iOS only. Default true. @@ -100,7 +108,7 @@ messaging.registerForPushNotifications({ If - for some reason - you need to manually retrieve the current push registration token of the device, you can do: ```typescript -import { messaging } from "@nativescript-community/push"; +import * as messaging from "@nativescript-community/push"; messaging.getCurrentPushToken() .then(token => console.log(`Current push token: ${token}`)); @@ -121,7 +129,7 @@ They then type their reply, and (because of how the action was configured) the a Interactive Notification, part 1 Interactive Notification, part 2 Interactive Notification, part 3 Interactive Notification, part 4 ```typescript -import { messaging, Message } from "@nativescript-community/push"; +import * as messaging from "@nativescript-community/push"; const model = new messaging.PushNotificationModel(); model.iosSettings = new messaging.IosPushSettings(); @@ -166,7 +174,7 @@ model.iosSettings.interactiveSettings.categories = [{ identifier: "GENERAL" }]; -model.onNotificationActionTakenCallback = (actionIdentifier: string, message: Message) => { +model.onNotificationActionTakenCallback = (actionIdentifier: string, message: messaging.Message) => { console.log(`onNotificationActionTakenCallback fired! Message: ${JSON.stringify(message)}, Action taken: ${actionIdentifier}`); }; From 02baa515d04bf127aa0ccfb85f16a5faada698cd Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 22 Dec 2020 13:35:45 +0100 Subject: [PATCH 04/19] fix: should fix callbacks being called twice --- src/messaging.android.ts | 41 +++++++--------------------------------- src/messaging.ios.ts | 12 +++++++----- 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/src/messaging.android.ts b/src/messaging.android.ts index 1fe3eb5..5612ab6 100755 --- a/src/messaging.android.ts +++ b/src/messaging.android.ts @@ -4,40 +4,13 @@ import { MessagingOptions, PushNotificationModel } from './messaging'; declare const com; let _launchNotification = null; -// let _senderId: string = null; - -// function getSenderId(): Promise { -// return new Promise((resolve, reject) => { -// if (_senderId !== null) { -// resolve(_senderId); -// } - -// const setSenderIdAndResolve = () => { -// const senderIdResourceId = application.android.context -// .getResources() -// .getIdentifier('gcm_defaultSenderId', 'string', application.android.context.getPackageName()); -// if (senderIdResourceId === 0) { -// throw new Error( -// "####################### Seems like you did not include 'google-services.json' in your project! Firebase Messaging will not work properly. #######################" -// ); -// } -// _senderId = application.android.context.getString(senderIdResourceId); -// resolve(_senderId); -// }; - -// if (!application.android.context) { -// // throw new Error("Don't call this function before your app has started."); -// application.on(application.launchEvent, () => setSenderIdAndResolve()); -// } else { -// setSenderIdAndResolve(); -// } -// }); -// } +let initialized = false; async function initPushMessaging(options?: MessagingOptions) { - if (!options) { + if (!options || initialized) { return; } + initialized = true; if (options.showNotificationsWhenInForeground !== undefined) { com.nativescript.push.PushMessagingService.showNotificationsWhenInForeground = options.showNotificationsWhenInForeground; } @@ -111,7 +84,7 @@ export function getCurrentPushToken(): Promise { let _receivedNotificationCallback; function addOnMessageReceivedCallback(callback) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { _receivedNotificationCallback = callback; @@ -137,7 +110,7 @@ function addOnMessageReceivedCallback(callback) { } function addOnPushTokenReceivedCallback(callback) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { let tokenReturned = false; com.nativescript.push.PushMessagingService.setOnPushTokenReceivedCallback( @@ -220,7 +193,7 @@ export function unregisterForPushNotifications(): Promise { } export function subscribeToTopic(topicName) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { const onCompleteListener = new com.google.android.gms.tasks.OnCompleteListener({ onComplete: (task) => { @@ -247,7 +220,7 @@ export function subscribeToTopic(topicName) { } export function unsubscribeFromTopic(topicName) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { const onCompleteListener = new com.google.android.gms.tasks.OnCompleteListener({ onComplete: (task) => { diff --git a/src/messaging.ios.ts b/src/messaging.ios.ts index a6d4664..bfc6ca1 100755 --- a/src/messaging.ios.ts +++ b/src/messaging.ios.ts @@ -28,10 +28,12 @@ let _rejectWhenDidFailToRegisterForNotifications; // This way we can suppress the "Allow notifications" consent popup until the listeners are passed in. // const NOTIFICATIONS_REGISTRATION_KEY = 'Push-RegisterForRemoteNotifications'; -export function initPushMessaging(options) { - if (!options) { +let initialized = false; +async function initPushMessaging(options?: MessagingOptions) { + if (!options || initialized) { return; } + initialized = true; _showNotifications = options.showNotifications === undefined ? _showNotifications : !!options.showNotifications; _showNotificationsWhenInForeground = options.showNotificationsWhenInForeground === undefined @@ -49,7 +51,7 @@ export function initPushMessaging(options) { } export function addOnMessageReceivedCallback(callback: Function) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { // applicationSettings.setBoolean(NOTIFICATIONS_REGISTRATION_KEY, true); @@ -129,7 +131,7 @@ export function handleRemoteNotification(app, userInfo) { } function addOnPushTokenReceivedCallback(callback) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { _receivedPushTokenCallback = callback; // may already be present @@ -454,7 +456,7 @@ function _registerForRemoteNotifications(resolve?, reject?) { } function _addOnNotificationActionTakenCallback(callback: Function) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { _notificationActionTakenCallback = callback; _processPendingActionTakenNotifications(); From 7338c9e2a70aae8af5280d4ce37e05f9ac50bb61 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 22 Dec 2020 13:35:55 +0100 Subject: [PATCH 05/19] fix: remove unecessary logs --- .../push/PushMessagingService.java | 108 ++++-------------- 1 file changed, 21 insertions(+), 87 deletions(-) diff --git a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java index 00d2539..f5abdfe 100644 --- a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java +++ b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java @@ -19,10 +19,6 @@ import org.json.JSONException; import org.json.JSONObject; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; @@ -57,29 +53,6 @@ public void onNewToken(String registrationToken) { // manage this apps subscriptions on the server side, send the // Instance ID token to your app server. } - - /** - * - * /* private void sendNotification(String messageBody) { Intent intent = new - * Intent(this, MainActivity.class); - * intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); PendingIntent pendingIntent - * = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT); - * - * Uri defaultSoundUri= - * RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); - * NotificationCompat.Builder notificationBuilder = new - * NotificationCompat.Builder(this) - * .setSmallIcon(R.drawable.ic_stat_ic_notification) .setContentTitle("FCM - * Message") .setContentText(messageBody) .setAutoCancel(true) - * .setSound(defaultSoundUri) .setContentIntent(pendingIntent); - * - * NotificationManager notificationManager = (NotificationManager) - * getSystemService(Context.NOTIFICATION_SERVICE); - * - * // 0 = id of notification notificationManager.notify(0, - * notificationBuilder.build()); } - */ - public static void registerForPushNotifications(final PushMessagingServiceListener callback) { // new Thread() { @@ -93,47 +66,9 @@ public void onComplete(Task task) { } else { final String token = task.getResult().getToken(); callback.success(token); - // dont call executeOnPushTokenReceivedCallback as it will be called onNewToken - // executeOnPushTokenReceivedCallback(token); } } }); - // // try { - - // FirebaseInstanceId.getInstance().getInstanceId() - // .addOnCompleteListener(new OnCompleteListener() { - // @Override - // public void onComplete(Task task) { - // if (!task.isSuccessful()) { - - // Log.d(TAG, "getInstanceId failed " + task.getException()); - // return; - // } - - // // Get new Instance ID token - // String token = task.getResult().getToken(); - - // if (!preventInitialRegisterTokenCallback) { - // executeOnPushTokenReceivedCallback(token); - // } - - // preventInitialRegisterTokenCallback = false; - // // TODO register token to your server. - - // } - // }); - // // String token = FirebaseInstanceId.getInstance().getToken(senderId, "FCM"); - - // // if (!preventInitialRegisterTokenCallback) { - // // executeOnPushTokenReceivedCallback(token); - // // } - - // // preventInitialRegisterTokenCallback = false; - // // } catch (IOException e) { - // // Log.e(TAG, "Error getting a token from FCM: " + e.getMessage(), e); - // // } - // } - // }.start(); } public static String getCurrentPushToken() { @@ -162,7 +97,6 @@ public static void setOnPushTokenReceivedCallback(PushMessagingServiceListener c onPushTokenReceivedCallback = callbacks; if (currentToken != null) { executeOnPushTokenReceivedCallback(currentToken); - // preventInitialRegisterTokenCallback = true; } } @@ -203,24 +137,24 @@ private int getStringResId(String aString) { public void showNotification(final RemoteMessage.Notification not) { Object color = not.getColor(); - Log.d(TAG, "Message Notification Body: " + not.getBody()); - Log.d(TAG, "Message Notification BodyLocalize: " + not.getBodyLocalizationKey()); - Log.d(TAG, "Message Notification BodyLocalizeArgs: " + not.getBodyLocalizationArgs()); - Log.d(TAG, "Message Notification Title: " + not.getTitle()); - Log.d(TAG, "Message Notification TitleLocalize: " + not.getTitleLocalizationKey()); - Log.d(TAG, "Message Notification TitleLocalizeArgs: " + not.getTitleLocalizationArgs()); - Log.d(TAG, "Message Notification getChannelId: " + not.getChannelId()); - Log.d(TAG, "Message Notification getColor: " + not.getColor()); - Log.d(TAG, "Message Notification getIcon: " + not.getIcon()); - Log.d(TAG, "Message Notification getSound: " + not.getSound()); - Log.d(TAG, "Message Notification getTag: " + not.getTag()); - Log.d(TAG, "Message Notification getTicker: " + not.getTicker()); - Log.d(TAG, "Message Notification getEventTime: " + not.getEventTime()); - Log.d(TAG, "Message Notification getVisibility: " + not.getVisibility()); - Log.d(TAG, "Message Notification getImageUrl: " + not.getImageUrl()); - Log.d(TAG, "Message Notification getSticky: " + not.getSticky()); - Log.d(TAG, "Message Notification getLightSettings: " + not.getLightSettings()); - Log.d(TAG, "Message Notification getVibrateTimings: " + not.getVibrateTimings()); + // Log.d(TAG, "Message Notification Body: " + not.getBody()); + // Log.d(TAG, "Message Notification BodyLocalize: " + not.getBodyLocalizationKey()); + // Log.d(TAG, "Message Notification BodyLocalizeArgs: " + not.getBodyLocalizationArgs()); + // Log.d(TAG, "Message Notification Title: " + not.getTitle()); + // Log.d(TAG, "Message Notification TitleLocalize: " + not.getTitleLocalizationKey()); + // Log.d(TAG, "Message Notification TitleLocalizeArgs: " + not.getTitleLocalizationArgs()); + // Log.d(TAG, "Message Notification getChannelId: " + not.getChannelId()); + // Log.d(TAG, "Message Notification getColor: " + not.getColor()); + // Log.d(TAG, "Message Notification getIcon: " + not.getIcon()); + // Log.d(TAG, "Message Notification getSound: " + not.getSound()); + // Log.d(TAG, "Message Notification getTag: " + not.getTag()); + // Log.d(TAG, "Message Notification getTicker: " + not.getTicker()); + // Log.d(TAG, "Message Notification getEventTime: " + not.getEventTime()); + // Log.d(TAG, "Message Notification getVisibility: " + not.getVisibility()); + // Log.d(TAG, "Message Notification getImageUrl: " + not.getImageUrl()); + // Log.d(TAG, "Message Notification getSticky: " + not.getSticky()); + // Log.d(TAG, "Message Notification getLightSettings: " + not.getLightSettings()); + // Log.d(TAG, "Message Notification getVibrateTimings: " + not.getVibrateTimings()); final String packageName = this.getPackageName(); android.content.pm.ApplicationInfo app; Object iconResource = null; @@ -289,11 +223,11 @@ public void showNotification(final RemoteMessage.Notification not) { public void onMessageReceived(RemoteMessage remoteMessage) { try { final JSONObject json = new JSONObject().put("foreground", isActive).put("from", remoteMessage.getFrom()); - Log.d(TAG, "onMessageReceived: " + remoteMessage.getMessageId() + ", " + remoteMessage.getFrom() + ", " - + remoteMessage.getCollapseKey() + ", " + remoteMessage.getTo() + ", " + remoteMessage.getData()); + // Log.d(TAG, "onMessageReceived: " + remoteMessage.getMessageId() + ", " + remoteMessage.getFrom() + ", " + // + remoteMessage.getCollapseKey() + ", " + remoteMessage.getTo() + ", " + remoteMessage.getData()); final RemoteMessage.Notification not = remoteMessage.getNotification(); - Log.d(TAG, "not: " + not); + // Log.d(TAG, "not: " + not); if (not != null && showNotificationsWhenInForeground && isActive) { showNotification(not); From 3e8edcd6203beab35ba9506a473622e0b0d1a87d Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 22 Dec 2020 13:36:01 +0100 Subject: [PATCH 06/19] chore: lint --- src/scripts/after-prepare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/after-prepare.ts b/src/scripts/after-prepare.ts index 402ef06..b4bf474 100644 --- a/src/scripts/after-prepare.ts +++ b/src/scripts/after-prepare.ts @@ -1,7 +1,7 @@ const path = require('path'); const fs = require('fs'); module.exports = function ($logger, $projectData, hookArgs) { - return new Promise(function (resolve, reject) { + return new Promise(function (resolve, reject) { /* Decide whether to prepare for dev or prod environment */ const validStagingEnvs = ['dev', 'development', 'staging']; const validProdEnvs = ['prod', 'production']; From f535c5110fe84d754abb6b2d8a5acf7b1b8f1bb4 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 22 Dec 2020 13:36:13 +0100 Subject: [PATCH 07/19] chore: prepare --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 28154f2..e3b4c6e 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "scripts": { "setup": "ts-patch install", + "prepare": "npm run setup", "tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck", "clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json", "build.plugin": "npm run tsc && cp README.md plugin/", From 44512d8d34c70927b41bd39d50aae22cbad0b297 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 22 Dec 2020 13:37:21 +0100 Subject: [PATCH 08/19] v1.1.7 --- CHANGELOG.md | 12 ++++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 11 +++++++++++ plugin/package.json | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a49f13..599a9e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.7](https://github.com/farfromrefug/nativescript-push/compare/v1.1.6...v1.1.7) (2020-12-22) + + +### Bug Fixes + +* remove unecessary logs ([7338c9e](https://github.com/farfromrefug/nativescript-push/commit/7338c9e2a70aae8af5280d4ce37e05f9ac50bb61)) +* should fix callbacks being called twice ([02baa51](https://github.com/farfromrefug/nativescript-push/commit/02baa515d04bf127aa0ccfb85f16a5faada698cd)) + + + + + ## [1.1.6](https://github.com/farfromrefug/nativescript-push/compare/v1.1.5...v1.1.6) (2020-11-02) **Note:** Version bump only for package @nativescript-community/push diff --git a/lerna.json b/lerna.json index a73439c..5ab040d 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.6", + "version": "1.1.7", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index e2a4749..2f20f13 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.7](https://github.com/farfromrefug/nativescript-push/compare/v1.1.6...v1.1.7) (2020-12-22) + + +### Bug Fixes + +* remove unecessary logs ([7338c9e](https://github.com/farfromrefug/nativescript-push/commit/7338c9e2a70aae8af5280d4ce37e05f9ac50bb61)) + + + + + ## [1.1.6](https://github.com/farfromrefug/nativescript-push/compare/v1.1.5...v1.1.6) (2020-11-02) **Note:** Version bump only for package @nativescript-community/push diff --git a/plugin/package.json b/plugin/package.json index e805e56..c82c4f8 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.6", + "version": "1.1.7", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", From 404e387db0ee290960f8f8aeddee3f3119f73836 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 12 Jan 2021 14:06:38 +0100 Subject: [PATCH 09/19] fix(android): fix for onNewToken not being called --- .../android/java/com/nativescript/push/PushMessagingService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java index f5abdfe..7242fe2 100644 --- a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java +++ b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java @@ -65,6 +65,7 @@ public void onComplete(Task task) { callback.error(task.getException()); } else { final String token = task.getResult().getToken(); + executeOnPushTokenReceivedCallback(token); callback.success(token); } } From fbde92cba1728cff2051527b5c3b7b23e9969386 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 12 Jan 2021 14:06:58 +0100 Subject: [PATCH 10/19] v1.1.8 --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 11 +++++++++++ plugin/package.json | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 599a9e6..038763e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.8](https://github.com/farfromrefug/nativescript-push/compare/v1.1.7...v1.1.8) (2021-01-12) + + +### Bug Fixes + +* **android:** fix for onNewToken not being called ([404e387](https://github.com/farfromrefug/nativescript-push/commit/404e387db0ee290960f8f8aeddee3f3119f73836)) + + + + + ## [1.1.7](https://github.com/farfromrefug/nativescript-push/compare/v1.1.6...v1.1.7) (2020-12-22) diff --git a/lerna.json b/lerna.json index 5ab040d..0bc7e45 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.7", + "version": "1.1.8", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index 2f20f13..b61589c 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.8](https://github.com/farfromrefug/nativescript-push/compare/v1.1.7...v1.1.8) (2021-01-12) + + +### Bug Fixes + +* **android:** fix for onNewToken not being called ([404e387](https://github.com/farfromrefug/nativescript-push/commit/404e387db0ee290960f8f8aeddee3f3119f73836)) + + + + + ## [1.1.7](https://github.com/farfromrefug/nativescript-push/compare/v1.1.6...v1.1.7) (2020-12-22) diff --git a/plugin/package.json b/plugin/package.json index c82c4f8..33acfeb 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.7", + "version": "1.1.8", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", From f67bc7ed330ae850f21e3f2b21c45ac647083c07 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Wed, 13 Jan 2021 14:08:27 +0100 Subject: [PATCH 11/19] fix(android): bring back resume event to get message on notif tap prevent duplicate callbacks --- src/messaging.android.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/messaging.android.ts b/src/messaging.android.ts index 5612ab6..53de4c5 100755 --- a/src/messaging.android.ts +++ b/src/messaging.android.ts @@ -1,16 +1,16 @@ -import { android as androidApp, launchEvent, on } from '@nativescript/core/application'; +import { android as androidApp, launchEvent, on, resumeEvent } from '@nativescript/core/application'; import { MessagingOptions, PushNotificationModel } from './messaging'; declare const com; let _launchNotification = null; -let initialized = false; +let initPushMessagingDone = false; async function initPushMessaging(options?: MessagingOptions) { - if (!options || initialized) { + if (!options || initPushMessagingDone) { return; } - initialized = true; + initPushMessagingDone = true; if (options.showNotificationsWhenInForeground !== undefined) { com.nativescript.push.PushMessagingService.showNotificationsWhenInForeground = options.showNotificationsWhenInForeground; } @@ -21,13 +21,18 @@ async function initPushMessaging(options?: MessagingOptions) { await addOnPushTokenReceivedCallback(options.onPushTokenReceivedCallback); } } +let initialized = false; export function init() { + if (initialized) { + return; + } + initialized = true; if (!androidApp.context) { - // throw new Error("Don't call this function before your app has started."); on(launchEvent, onAppModuleLaunchEvent); } else { onAppModuleLaunchEvent(); } + on(resumeEvent, onAppModuleResumeEvent); } export function onAppModuleLaunchEvent() { From d2cd30269a0ca93c5aeb74656ef6fc1700649c68 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Wed, 13 Jan 2021 14:08:40 +0100 Subject: [PATCH 12/19] fix(ios): prevent duplicate callbacks --- src/messaging.ios.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/messaging.ios.ts b/src/messaging.ios.ts index bfc6ca1..e6e0535 100755 --- a/src/messaging.ios.ts +++ b/src/messaging.ios.ts @@ -28,12 +28,12 @@ let _rejectWhenDidFailToRegisterForNotifications; // This way we can suppress the "Allow notifications" consent popup until the listeners are passed in. // const NOTIFICATIONS_REGISTRATION_KEY = 'Push-RegisterForRemoteNotifications'; -let initialized = false; +let initPushMessagingDone = false; async function initPushMessaging(options?: MessagingOptions) { - if (!options || initialized) { + if (!options || initPushMessagingDone) { return; } - initialized = true; + initPushMessagingDone = true; _showNotifications = options.showNotifications === undefined ? _showNotifications : !!options.showNotifications; _showNotificationsWhenInForeground = options.showNotificationsWhenInForeground === undefined @@ -233,12 +233,17 @@ function addBackgroundRemoteNotificationHandler(appDelegate) { }; } + +let initialized = false; export function init() { + if (initialized) { + return; + } + initialized = true; prepAppDelegate(); const delegate = getAppDelegate(); addAppDelegateMethods(delegate); addBackgroundRemoteNotificationHandler(delegate); - // initPushMessaging(arg); } export function registerForInteractivePush(model?: PushNotificationModel): void { From 3ef003357a46fb66f719eef67a759e06724fb681 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Wed, 13 Jan 2021 14:10:16 +0100 Subject: [PATCH 13/19] v1.1.9 --- CHANGELOG.md | 12 ++++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 8 ++++++++ plugin/package.json | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 038763e..0a59d3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.9](https://github.com/farfromrefug/nativescript-push/compare/v1.1.8...v1.1.9) (2021-01-13) + + +### Bug Fixes + +* **android:** bring back resume event to get message on notif tap ([f67bc7e](https://github.com/farfromrefug/nativescript-push/commit/f67bc7ed330ae850f21e3f2b21c45ac647083c07)) +* **ios:** prevent duplicate callbacks ([d2cd302](https://github.com/farfromrefug/nativescript-push/commit/d2cd30269a0ca93c5aeb74656ef6fc1700649c68)) + + + + + ## [1.1.8](https://github.com/farfromrefug/nativescript-push/compare/v1.1.7...v1.1.8) (2021-01-12) diff --git a/lerna.json b/lerna.json index 0bc7e45..803bc95 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.8", + "version": "1.1.9", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index b61589c..af37932 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.9](https://github.com/farfromrefug/nativescript-push/compare/v1.1.8...v1.1.9) (2021-01-13) + +**Note:** Version bump only for package @nativescript-community/push + + + + + ## [1.1.8](https://github.com/farfromrefug/nativescript-push/compare/v1.1.7...v1.1.8) (2021-01-12) diff --git a/plugin/package.json b/plugin/package.json index 33acfeb..b2de8c7 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.8", + "version": "1.1.9", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", From 3c2183408e0f889e49e72d06ab9d63429aeececf Mon Sep 17 00:00:00 2001 From: fleminze <100688999+fleminze@users.noreply.github.com> Date: Mon, 18 Jul 2022 17:27:50 +0200 Subject: [PATCH 14/19] fix: Don't use deprecated Firebase iid classes. --- plugin/platforms/android/include.gradle | 2 +- .../push/PushMessagingService.java | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/plugin/platforms/android/include.gradle b/plugin/platforms/android/include.gradle index 090bd9c..63d314f 100644 --- a/plugin/platforms/android/include.gradle +++ b/plugin/platforms/android/include.gradle @@ -1,6 +1,6 @@ dependencies { - def firebaseMessagingVersion = project.hasProperty("firebaseMessagingVersion") ? project.firebaseMessagingVersion : "20.1.0" + def firebaseMessagingVersion = project.hasProperty("firebaseMessagingVersion") ? project.firebaseMessagingVersion : "23.0.6" def androidXCoreVersion = project.hasProperty("androidXCoreVersion") ? project.androidXCoreVersion : "1.2.0" // for reading google-services.json and configuration diff --git a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java index 7242fe2..cda43d6 100644 --- a/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java +++ b/plugin/platforms/android/java/com/nativescript/push/PushMessagingService.java @@ -7,8 +7,6 @@ import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; -import com.google.firebase.iid.FirebaseInstanceId; -import com.google.firebase.iid.InstanceIdResult; import com.google.firebase.messaging.FirebaseMessaging; import androidx.core.app.NotificationCompat; import androidx.core.app.NotificationManagerCompat; @@ -58,13 +56,13 @@ public static void registerForPushNotifications(final PushMessagingServiceListen // new Thread() { // public void run() { FirebaseMessaging.getInstance().setAutoInitEnabled(true); - FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener() { + FirebaseMessaging.getInstance().getToken().addOnCompleteListener(new OnCompleteListener() { @Override - public void onComplete(Task task) { + public void onComplete(Task task) { if (!task.isSuccessful()) { callback.error(task.getException()); } else { - final String token = task.getResult().getToken(); + final String token = task.getResult(); executeOnPushTokenReceivedCallback(token); callback.success(token); } @@ -77,13 +75,17 @@ public static String getCurrentPushToken() { } public static void unregisterForPushNotifications() { - try { - FirebaseMessaging.getInstance().setAutoInitEnabled(false); - FirebaseInstanceId.getInstance().deleteInstanceId(); - currentToken = null; - } catch (IOException e) { - Log.e(TAG, "Error deleting token in FCM: " + e.getMessage(), e); - } + FirebaseMessaging.getInstance().setAutoInitEnabled(false); + FirebaseMessaging.getInstance().deleteToken().addOnCompleteListener(new OnCompleteListener() { + @Override + public void onComplete(Task task) { + if (!task.isSuccessful()) { + Log.e(TAG, "Error deleting token in FCM: " + task.getException().getMessage(), task.getException()); + } + } + }); + + currentToken = null; } public static void setOnPushTokenReceivedCallback(PushMessagingServiceListener callbacks) { From 8f2cf5f3fd36cf2523a37df3c04f3bdebc9858cb Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 19 Jul 2022 15:06:31 +0200 Subject: [PATCH 15/19] chore: project --- package.json | 2 +- plugin/.npmignore | 1 + plugin/platforms/android/buildscript.gradle | 2 +- tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e3b4c6e..30309e9 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "build.ios": "bash src-native/ios/build.sh", "build.native": "npm run build.android && npm run build.ios", "build": "npm run build.plugin && npm run build.hooks", - "publish": "npm run setup && npm run build && lerna publish --create-release=github", + "publish": "npm run setup && npm run build && lerna publish --create-release=github --force-publish", "demo.ios": "npm i && npm run tsc && cd demo && tns run ios", "demo.android": "npm i && npm run tsc && cd demo && tns run android", "clean.demo": "rimraf demo/hooks demo/node_modules demo/platforms", diff --git a/plugin/.npmignore b/plugin/.npmignore index 229ec73..0f63c6a 100644 --- a/plugin/.npmignore +++ b/plugin/.npmignore @@ -1,4 +1,5 @@ node_modules/ +pnpm-global/ bin/ hooks/ src/ diff --git a/plugin/platforms/android/buildscript.gradle b/plugin/platforms/android/buildscript.gradle index 15e8185..403bc9d 100644 --- a/plugin/platforms/android/buildscript.gradle +++ b/plugin/platforms/android/buildscript.gradle @@ -1,6 +1,6 @@ repositories { - jcenter() google() + mavenCentral() } dependencies { classpath 'com.google.gms:google-services:4.3.3' diff --git a/tsconfig.json b/tsconfig.json index f022b9d..07168c0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "declaration": true, "removeComments": false, "noLib": false, - "emitDecoratorMetadata": true, + "emitDecoratorMetadata": false, "experimentalDecorators": true, "lib": ["es6", "dom"], "sourceMap": true, From 2d584de47e661038ba8fc4617e896353ed50d6e0 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 19 Jul 2022 15:07:01 +0200 Subject: [PATCH 16/19] v1.1.10 --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 11 +++++++++++ plugin/package.json | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a59d3e..f56dfa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.10](https://github.com/farfromrefug/nativescript-push/compare/v1.1.9...v1.1.10) (2022-07-19) + + +### Bug Fixes + +* Don't use deprecated Firebase iid classes. ([3c21834](https://github.com/farfromrefug/nativescript-push/commit/3c2183408e0f889e49e72d06ab9d63429aeececf)) + + + + + ## [1.1.9](https://github.com/farfromrefug/nativescript-push/compare/v1.1.8...v1.1.9) (2021-01-13) diff --git a/lerna.json b/lerna.json index 803bc95..c212b97 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.9", + "version": "1.1.10", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index af37932..3e16388 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.10](https://github.com/farfromrefug/nativescript-push/compare/v1.1.9...v1.1.10) (2022-07-19) + + +### Bug Fixes + +* Don't use deprecated Firebase iid classes. ([3c21834](https://github.com/farfromrefug/nativescript-push/commit/3c2183408e0f889e49e72d06ab9d63429aeececf)) + + + + + ## [1.1.9](https://github.com/farfromrefug/nativescript-push/compare/v1.1.8...v1.1.9) (2021-01-13) **Note:** Version bump only for package @nativescript-community/push diff --git a/plugin/package.json b/plugin/package.json index b2de8c7..c8c7909 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.9", + "version": "1.1.10", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", From 4d8243ae170049af32b9b5ecf95e9c8215389cdb Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 20 Sep 2022 13:05:26 +0200 Subject: [PATCH 17/19] fix(android): prevent error while building Needs a cli update --- plugin/platforms/android/include.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/platforms/android/include.gradle b/plugin/platforms/android/include.gradle index 63d314f..33863c7 100644 --- a/plugin/platforms/android/include.gradle +++ b/plugin/platforms/android/include.gradle @@ -10,4 +10,6 @@ dependencies { implementation "com.google.firebase:firebase-messaging:$firebaseMessagingVersion" } -apply plugin: 'com.google.gms.google-services' \ No newline at end of file +if (!project.hasProperty("tempBuild")) { + apply plugin: 'com.google.gms.google-services' +} \ No newline at end of file From c071acd4f4cc7041b6bc40848a552a60e3c9ec1f Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 20 Sep 2022 13:05:46 +0200 Subject: [PATCH 18/19] v1.1.11 --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 11 +++++++++++ plugin/package.json | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f56dfa5..f2a4961 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.11](https://github.com/farfromrefug/nativescript-push/compare/v1.1.10...v1.1.11) (2022-09-20) + + +### Bug Fixes + +* **android:** prevent error while building ([4d8243a](https://github.com/farfromrefug/nativescript-push/commit/4d8243ae170049af32b9b5ecf95e9c8215389cdb)) + + + + + ## [1.1.10](https://github.com/farfromrefug/nativescript-push/compare/v1.1.9...v1.1.10) (2022-07-19) diff --git a/lerna.json b/lerna.json index c212b97..e522536 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "1.1.10", + "version": "1.1.11", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index 3e16388..76c3d27 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.11](https://github.com/farfromrefug/nativescript-push/compare/v1.1.10...v1.1.11) (2022-09-20) + + +### Bug Fixes + +* **android:** prevent error while building ([4d8243a](https://github.com/farfromrefug/nativescript-push/commit/4d8243ae170049af32b9b5ecf95e9c8215389cdb)) + + + + + ## [1.1.10](https://github.com/farfromrefug/nativescript-push/compare/v1.1.9...v1.1.10) (2022-07-19) diff --git a/plugin/package.json b/plugin/package.json index c8c7909..ccedbce 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/push", - "version": "1.1.10", + "version": "1.1.11", "description": "Very simple push notification plugin", "main": "./messaging", "typings": "./messaging.d.ts", From 3537c44a79d8f83363225fe908ca7c8fc48c0447 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Wed, 22 Nov 2023 16:02:13 +0100 Subject: [PATCH 19/19] Create FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..04d38ab --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [farfromrefug]