Skip to content

Commit 56fc53d

Browse files
authored
🚀[Release v2.11.1 071024] Merge into Main (#246)
* replaced the control in PeerManager.c Signed-off-by: kcw-grunt <[email protected]> * reverted BRBitcoinAmount Signed-off-by: kcw-grunt <[email protected]> * Cleaning up the files Signed-off-by: kcw-grunt <[email protected]> * Removed Pusher remnants Signed-off-by: kcw-grunt <[email protected]> --------- Signed-off-by: kcw-grunt <[email protected]>
1 parent 5c714ad commit 56fc53d

File tree

5 files changed

+6
-750
lines changed

5 files changed

+6
-750
lines changed

‎app/src/main/java/com/breadwallet/BreadApp.java

-39
Original file line numberDiff line numberDiff line change
@@ -110,45 +110,6 @@ protected void attachBaseContext(Context base) {
110110
public interface OnAppBackgrounded {
111111
void onBackgrounded();
112112
}
113-
private void loadAdvertisingAndPush(String instanceID, Context app) {
114-
new Thread(new Runnable() {
115-
@Override
116-
public void run() {
117-
try {
118-
AdvertisingIdClient.Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(app);
119-
finishedLoadingPushService( instanceID, adInfo);
120-
} catch (IllegalStateException e) {
121-
e.printStackTrace();
122-
} catch (GooglePlayServicesRepairableException e) {
123-
e.printStackTrace();
124-
} catch (IOException e) {
125-
e.printStackTrace();
126-
} catch (GooglePlayServicesNotAvailableException e) {
127-
e.printStackTrace();
128-
}
129-
String emptyID = "";
130-
finishedLoadingPushService(emptyID,null);
131-
Bundle params = new Bundle();
132-
params.putString("pusher_instanceid_not_found",emptyID);
133-
AnalyticsManager.logCustomEventWithParams(BRConstants._20200112_ERR, params);
134-
}
135-
}).start();
136-
}
137-
private void finishedLoadingPushService(final String instanceID, AdvertisingIdClient.Info adInfo) {
138-
if(adInfo!=null && instanceID != "") {
139-
// setup Pusher Interests
140-
String adInfoString = adInfo.getId();
141-
String generalAndroidInterest = "general-android";
142-
String debugGeneralAndroidInterest = "debug-general-android";
143-
144-
PushNotifications.start(getApplicationContext(), instanceID);
145-
PushNotifications.addDeviceInterest(generalAndroidInterest);
146-
PushNotifications.addDeviceInterest(debugGeneralAndroidInterest);
147-
148-
//Send params for pusher setup
149-
AnalyticsManager.logCustomEvent(BRConstants._20240123_RAGI);
150-
}
151-
}
152113
private static class CrashReportingTree extends Timber.Tree {
153114
private static final String CRASHLYTICS_KEY_PRIORITY = "priority";
154115
private static final String CRASHLYTICS_KEY_TAG = "tag";

0 commit comments

Comments
 (0)