Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelnyandoro committed Jul 4, 2024
1 parent 19b6d55 commit 7686bbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ android {
}

dependencies {
//butter knife
implementation libs.firebase.messaging
implementation libs.core
//The mpesa Library
implementation project(':mpesa')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

import android.content.SharedPreferences;
import android.util.Log;

import androidx.annotation.NonNull;

import com.google.firebase.messaging.FirebaseMessagingService;

public class MPESAInstanceIDService extends FirebaseMessagingService {
private static final String TAG = "MPESAInstanceIDService";
@Override
public void onNewToken(String token) {
public void onNewToken(@NonNull String token) {
Log.d(TAG, "Refreshed token: " + token);

// Save token to shared preferences
Expand Down

0 comments on commit 7686bbd

Please sign in to comment.