Skip to content

Commit 87b40ea

Browse files
authored
Merge pull request #85 from CatalystCode/thcao/androidx
Supporting AndroidX and updating docs
2 parents 7ca22df + ca1208a commit 87b40ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+727
-711
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Eric Rozell
3+
Copyright (c) 2020 Microsoft Partner Catalyst Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 704 deletions

android/src/main/java/com/azure/reactnative/notificationhub/ReactNativeNotificationHubModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import android.content.Intent;
77
import android.content.IntentFilter;
88
import android.os.Bundle;
9-
import android.support.v4.content.LocalBroadcastManager;
9+
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
1010

1111
import com.facebook.react.bridge.LifecycleEventListener;
1212
import com.facebook.react.modules.core.DeviceEventManagerModule;

android/src/main/java/com/azure/reactnative/notificationhub/ReactNativeNotificationsHandler.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
import android.net.Uri;
1818
import android.os.Build;
1919
import android.os.Bundle;
20-
import android.support.v4.app.NotificationCompat;
21-
import android.support.v4.content.LocalBroadcastManager;
20+
import androidx.core.app.NotificationCompat;
21+
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
2222
import android.util.Log;
2323

24-
import com.facebook.react.bridge.ReadableMap;
25-
2624
import org.json.JSONArray;
2725
import org.json.JSONException;
2826
import org.json.JSONObject;

android/src/main/java/com/azure/reactnative/notificationhub/ReactNativeRegistrationIntentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import android.app.IntentService;
44
import android.content.Intent;
5-
import android.support.v4.content.LocalBroadcastManager;
5+
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
66
import android.util.Log;
77

88
import com.google.android.gms.tasks.OnSuccessListener;

docs/android-installation.md

Lines changed: 234 additions & 0 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)