Added QR scanner to wallet send card #1194
3 changed files with 13 additions and 9 deletions
|
@ -122,6 +122,9 @@ dependencies {
|
|||
implementation 'org.bitcoinj:bitcoinj-tools:0.14.7'
|
||||
implementation 'org.java-websocket:Java-WebSocket:1.5.1'
|
||||
|
||||
implementation ('com.journeyapps:zxing-android-embedded:4.1.0') { transitive = false }
|
||||
implementation 'com.google.zxing:core:3.3.0'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok:1.18.10'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.10'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
||||
|
@ -134,9 +137,6 @@ dependencies {
|
|||
|
||||
__32bitImplementation 'io.lbry:lbrysdk32:0.94.1'
|
||||
__64bitImplementation 'io.lbry:lbrysdk64:0.94.1'
|
||||
|
||||
implementation ('com.journeyapps:zxing-android-embedded:4.1.0') { transitive = false }
|
||||
implementation 'com.google.zxing:core:3.3.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
|
|
|
@ -101,6 +101,11 @@
|
|||
android:theme="@style/AppTheme.NoActionBarTranslucent"
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
|
||||
<activity
|
||||
android:name="com.journeyapps.barcodescanner.CaptureActivity"
|
||||
android:screenOrientation="fullSensor"
|
||||
tools:replace="screenOrientation" />
|
||||
|
||||
<service
|
||||
android:name="io.lbry.browser.LbrynetMessagingService"
|
||||
android:exported="false">
|
||||
|
|
|
@ -377,7 +377,7 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
|
|||
buttonQRScanAddress.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
IntentIntegrator.forSupportFragment(WalletFragment.this).initiateScan();
|
||||
IntentIntegrator.forSupportFragment(WalletFragment.this).setOrientationLocked(false).initiateScan();
|
||||
}
|
||||
});
|
||||
buttonSend.setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -820,5 +820,4 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
|
|||
inputSendAddress.setText(code);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue