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

feat!(android): migrate source code to kotlin #123

Merged
merged 57 commits into from
Sep 15, 2021
Merged

Conversation

erisu
Copy link

@erisu erisu commented Aug 27, 2021

Description

Migrate to Kotlin

Related Issue

  • none

Motivation and Context

Cleaner and Eaiser

How Has This Been Tested?

  • Created Cordova Project
  • Tested with Cordova-Android 10.x & 9.x
  • Added Plugin Test
  • Send Push Notification with Firebase Cloud Messaging Console

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

* kotlin@1.5.20
* add before_compile hookscript for cordova-android 9.x support
moved it internal to sendExtras to remove the conflict of choise prviate/internal.
@erisu erisu merged commit da41099 into master Sep 15, 2021
@erisu erisu deleted the dev/3.0.0-kotlin branch September 15, 2021 12:14
erisu added a commit that referenced this pull request Sep 15, 2021
* feat!(android): add kotlin support
  * kotlin@1.5.20
  * add before_compile hookscript for cordova-android 9.x support
* refactor!: convert PushInstanceIDListenerService to Kotlin
* refactor!: convert PushDismissedHandler to Kotlin
* refactor!: convert BackgroundActionButtonHandler to Kotlin
* refactor!: convert PushConstants to Kotlin
* refactor!: convert BackgroundHandlerActivity to Kotlin
* refactor!: convert PushHandlerActivity to Kotlin
* refactor!: convert PushPlugin to Kotlin
* refactor!: convert FCMService to Kotlin
* fix: target-dir path for kotlin files
* refactor: BackgroundActionButtonHandler
* refactor: PushInstanceIDListenerService
* refactor: BackgroundHandlerActivity
* refactor: PushDismissedHandler
* refactor: PushHandlerActivity
* refactor: PushConstants
* refactor: PushPlugin
* refactor: PushPlugin - separate INITIALIZE action
* refactor: PushPlugin - separate UNREGISTER action
* refactor: PushPlugin - separate HAS_PERMISSION action
* refactor: PushPlugin - separate SET_APPLICATION_ICON_BADGE_NUMBER action
* refactor: PushPlugin - separate GET_APPLICATION_ICON_BADGE_NUMBER & CLEAR_ALL_NOTIFICATIONS action
* refactor: PushPlugin - separate SUBSCRIBE action
* refactor: PushPlugin - separate UNSUBSCRIBE action
* refactor: PushPlugin - separate CREATE_CHANNEL action
* refactor: PushPlugin - separate DELETE_CHANNEL action
* refactor: PushPlugin - separate LIST_CHANNELS action
* refactor: PushPlugin - separate CLEAR_NOTIFICATION action
* refactor: Invalid Execute Action Log
* refactor: PushPlugin
* refactor: remove unused sendError
* refactor: remove unused import
* refactor: PushPlugin - moved compainion object to top
* refactor: PushPlugin - commenting
* refactor: PushPlugin - move onPause super call to bottom
* refactor: PushPlugin - removed unused var registration_id
* refactor: PushPlugin - removed getStringResourceByName
* refactor: PushPlugin - convertBundleToJson
  * moved it internal to sendExtras to remove the conflict of choise private/internal.
* chore(lint): remove comments from private methods (CommentOverPrivateFunction)
* chore(lint): move comments from private methods inside (CommentOverPrivateFunction)
* refactor: FCMService - reformat
* refactor: FCMService - reformat again
* refactor: FCMService - reformat some more
* refactor: add IS_ENABLED to PushConstants
* refactor: FCMService LOG_TAG to TAG
* chore: remove lint warning CommentOverPrivateProperty
* chore: fix some lint warnings in FCMService
* chore: removing duplicated code
* chore: removing duplicated code (pushSharedPref)
* refactor: FCMService continue
* fix: remove AppCompatActivity reference
* chore: type cast cordova.activity as Activity
* fix: remove some code warnings in FCMService
* chore: update tag to include plugin name for better logcat filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant