Skip to content

Commit

Permalink
fix bug and update version
Browse files Browse the repository at this point in the history
since app communicates over socks proxy with orbot, we must import content context and "Context.RECEIVER_EXPORTED" must be declared with registerReceiver
  • Loading branch information
justinvforvendetta committed Jul 26, 2024
1 parent 657552d commit b2be6a9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
14 changes: 7 additions & 7 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])

api 'com.google.guava:guava:18.0' //TODO ToStringHelper update for updating to 19.0+
api 'com.google.code.findbugs:jsr305:3.0.2' //latest as of 10/2023
api 'com.madgag.spongycastle:core:1.58.0.0' //latest as of 10/2023
api 'com.lambdaworks:scrypt:1.4.0' //latest as of 10/2023
api 'com.google.protobuf:protobuf-java:3.25.3' // updated on 7/22/2024
api 'org.slf4j:slf4j-jdk14:2.0.13' //latest release ver as of 7/22/2024
api 'org.json:json:20240303' //latest as of 7/22/2024
api 'com.squareup.okhttp:okhttp:2.7.5' //latest as of 10/23
api 'com.google.code.findbugs:jsr305:3.0.2'
api 'com.madgag.spongycastle:core:1.58.0.0'
api 'com.lambdaworks:scrypt:1.4.0'
api 'com.google.protobuf:protobuf-java:3.25.3'
api 'org.slf4j:slf4j-jdk14:2.0.13'
api 'org.json:json:20240303'
api 'com.squareup.okhttp:okhttp:2.7.5'

testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-all:1.10.19'
Expand Down
6 changes: 3 additions & 3 deletions wallet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ android {
applicationId "com.vergepay.wallet"
minSdk 31
targetSdkVersion 34
compileSdkVersion 33
compileSdkVersion 34
ndkVersion "21.3.6528147" //shouldn't matter but gradle complains
versionCode 20561
versionName "v2.6"
versionCode 20570
versionName "v2.7"
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package com.vergepay.wallet.ui;



import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
Expand Down Expand Up @@ -120,7 +123,7 @@ protected void onCreate(Bundle savedInstanceState) {
orbotStatusReceiver = new OrbotStatusReceiver(this);

IntentFilter intentFilter = new IntentFilter("org.torproject.android.intent.action.STATUS");
registerReceiver(orbotStatusReceiver, intentFilter);
registerReceiver(orbotStatusReceiver, intentFilter, Context.RECEIVER_EXPORTED);

if (getWalletApplication().getWallet() == null) {
startIntro();
Expand Down

0 comments on commit b2be6a9

Please sign in to comment.