Skip to content

Commit

Permalink
🚀[Release v2.11.1 071024] Merge into Main (#246)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
kcw-grunt authored Oct 8, 2024
1 parent 5c714ad commit 56fc53d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 750 deletions.
39 changes: 0 additions & 39 deletions app/src/main/java/com/breadwallet/BreadApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,45 +110,6 @@ protected void attachBaseContext(Context base) {
public interface OnAppBackgrounded {
void onBackgrounded();
}
private void loadAdvertisingAndPush(String instanceID, Context app) {
new Thread(new Runnable() {
@Override
public void run() {
try {
AdvertisingIdClient.Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(app);
finishedLoadingPushService( instanceID, adInfo);
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (GooglePlayServicesRepairableException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (GooglePlayServicesNotAvailableException e) {
e.printStackTrace();
}
String emptyID = "";
finishedLoadingPushService(emptyID,null);
Bundle params = new Bundle();
params.putString("pusher_instanceid_not_found",emptyID);
AnalyticsManager.logCustomEventWithParams(BRConstants._20200112_ERR, params);
}
}).start();
}
private void finishedLoadingPushService(final String instanceID, AdvertisingIdClient.Info adInfo) {
if(adInfo!=null && instanceID != "") {
// setup Pusher Interests
String adInfoString = adInfo.getId();
String generalAndroidInterest = "general-android";
String debugGeneralAndroidInterest = "debug-general-android";

PushNotifications.start(getApplicationContext(), instanceID);
PushNotifications.addDeviceInterest(generalAndroidInterest);
PushNotifications.addDeviceInterest(debugGeneralAndroidInterest);

//Send params for pusher setup
AnalyticsManager.logCustomEvent(BRConstants._20240123_RAGI);
}
}
private static class CrashReportingTree extends Timber.Tree {
private static final String CRASHLYTICS_KEY_PRIORITY = "priority";
private static final String CRASHLYTICS_KEY_TAG = "tag";
Expand Down
Loading

0 comments on commit 56fc53d

Please sign in to comment.