Skip to content

Commit c8aa227

Browse files
committed
update website url
1 parent 2b03685 commit c8aa227

File tree

57 files changed

+149
-146
lines changed

Some content is hidden

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

57 files changed

+149
-146
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ A secure and light weight wallet to store your Scala coins on any Android device
1818
* Forked from [monerujo](https://github.com/m2049r/xmrwallet)
1919

2020
## Contacts
21-
* [Website](https://scalaproject.io/)
22-
* [hello@scalaproject.io](mailto:hello@scalaproject.io)
21+
* [Website](https://scala.network/)
22+
* [hello@scala.network](mailto:hello@scala.network)
2323
* [Discord](https://discord.gg/djAFVvy)
2424
* [Telegram](https://t.me/scalaofficial)
2525
* [Twitter](https://twitter.com/scalahq)

app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"nodes": [{
3-
"host": "remote.one.scalaproject.io",
3+
"host": "remote.one.scala.network",
44
"port": "11812"
55
},
66
{
7-
"host": "remote.two.scalaproject.io",
7+
"host": "remote.two.scala.network",
88
"port": "11812"
99
},
1010
{

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
compileSdk 33
88
minSdkVersion 21
99
targetSdkVersion 33
10-
versionCode 12
11-
versionName "1.1.1"
10+
versionCode 13
11+
versionName "1.1.2"
1212

1313
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1414
externalNativeBuild {

app/src/main/java/io/scalaproject/vault/LoginActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class LoginActivity extends BaseActivity
104104
// USAGE: The GitHub raw file might not be available in some countries, so the IPFS option
105105
// is a fallback. When the DEFAULT_NODES_REPOSITORY file is modified, we need to upload the new file
106106
// to the IPNS gateway as well.
107-
static private final String IPNS_NAME = "node-list.scalaproject.io";
107+
static private final String IPNS_NAME = "node-list.scala.network";
108108
static private final String[] NODES_REPOSITORY_IPNS_GATEWAYS = {
109109
"https://dweb.link/ipns/",
110110
"https://ipfs.io/ipns/",
@@ -115,7 +115,7 @@ public class LoginActivity extends BaseActivity
115115
static private final String DEFAULT_NODE = "{\n" +
116116
"\"nodes\": [\n" +
117117
"{\n" +
118-
"\"host\": \"remote.one.scalaproject.io\",\n" +
118+
"\"host\": \"remote.one.scala.network\",\n" +
119119
"\"port\": \"11812\"\n" +
120120
"} ]\n" +
121121
"}";

app/src/main/java/io/scalaproject/vault/ScalaVaultApplication.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@
3737
import timber.log.Timber;
3838

3939
@AcraCore(buildConfigClass = BuildConfig.class)
40-
@AcraMailSender(mailTo = "[email protected]")
40+
@AcraMailSender(mailTo = "[email protected]")
4141
public class ScalaVaultApplication extends Application {
4242
@Override
4343
public void onCreate() {
4444
super.onCreate();
4545
SharedPreferences preferences = getSharedPreferences(getPackageName() + "_preferences", MODE_PRIVATE);
4646
Config.initialize(preferences);
47-
48-
if (BuildConfig.DEBUG) {
49-
Timber.plant(new Timber.DebugTree());
50-
}
5147
}
5248

5349
@Override

app/src/main/java/io/scalaproject/vault/TxFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private void show(TransactionInfo info) {
250250
tvTxId.setOnClickListener(new View.OnClickListener() {
251251
@Override
252252
public void onClick(View v) {
253-
String paymentURL = "https://explorer.scalaproject.io/tx/" + tvTxId.getText();
253+
String paymentURL = "https://explorer.scala.network/tx/" + tvTxId.getText();
254254
Uri uri = Uri.parse(paymentURL);
255255
startActivity(new Intent(Intent.ACTION_VIEW, uri));
256256
}

app/src/main/java/io/scalaproject/vault/WalletActivity.java

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,16 @@ public void run() {
807807
});
808808
}
809809

810-
Wallet wal = getWallet();
811-
String walletAddress = wal.getAddress();
812-
if (walletAddress != null) {
813-
runOnUiThread(new Runnable() {
814-
public void run() {
815-
initWalletFragmentAddress(walletAddress);
816-
}
817-
});
810+
Wallet wallet = getWallet();
811+
if(wallet != null ) {
812+
String walletAddress = wallet.getAddress();
813+
if (walletAddress != null) {
814+
runOnUiThread(new Runnable() {
815+
public void run() {
816+
initWalletFragmentAddress(walletAddress);
817+
}
818+
});
819+
}
818820
}
819821
}
820822

@@ -881,11 +883,13 @@ public void onProgress(final String text) {
881883
try {
882884
final WalletFragment walletFragment = (WalletFragment)
883885
getSupportFragmentManager().findFragmentByTag(WalletFragment.class.getName());
884-
runOnUiThread(new Runnable() {
885-
public void run() {
886-
walletFragment.setProgress(text);
887-
}
888-
});
886+
if(walletFragment != null) {
887+
runOnUiThread(new Runnable() {
888+
public void run() {
889+
walletFragment.setProgress(text);
890+
}
891+
});
892+
}
889893
} catch (ClassCastException ex) {
890894
// not in wallet fragment (probably send scala)
891895
Timber.d(ex.getLocalizedMessage());
@@ -1326,8 +1330,11 @@ private void addAccount() {
13261330
}
13271331

13281332
public void onCopyAddress(View view) {
1329-
Helper.clipBoardCopy(this, getString(R.string.label_copy_address), getWallet().getAddress());
1330-
Toast.makeText(this, getString(R.string.message_copy_address), Toast.LENGTH_SHORT).show();
1333+
Wallet wallet = getWallet();
1334+
if(wallet != null) {
1335+
Helper.clipBoardCopy(this, getString(R.string.label_copy_address), getWallet().getAddress());
1336+
Toast.makeText(this, getString(R.string.message_copy_address), Toast.LENGTH_SHORT).show();
1337+
}
13311338
}
13321339

13331340
private class AsyncAddAccount extends AsyncTask<Void, Void, Boolean> {

app/src/main/java/io/scalaproject/vault/WalletFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ private void updateWalletInfo(Wallet wallet) {
529529
tvAddressType.setText("Subaddress");
530530
}
531531

532-
if(wallet == null)
532+
if(wallet != null)
533533
tvWalletAddress.setText(Helper.getPrettyAddress(wallet.getAddress()));
534534
}
535535

app/src/main/java/io/scalaproject/vault/fragment/send/SendSuccessWizardFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void onResumeFragment() {
129129
tvTxId.setOnClickListener(new View.OnClickListener() {
130130
@Override
131131
public void onClick(View v) {
132-
String paymentURL = "https://explorer.scalaproject.io/tx/" + tvTxId.getText();
132+
String paymentURL = "https://explorer.scala.network/tx/" + tvTxId.getText();
133133
Uri uri = Uri.parse(paymentURL);
134134
startActivity(new Intent(Intent.ACTION_VIEW, uri));
135135
}

app/src/main/java/io/scalaproject/vault/service/exchange/kraken/ExchangeApiImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public ExchangeApiImpl(@NonNull final OkHttpClient okHttpClient, final HttpUrl b
5858
}
5959

6060
public ExchangeApiImpl(@NonNull final OkHttpClient okHttpClient) {
61-
this(okHttpClient, HttpUrl.parse("https://prices.scalaproject.io/"));
61+
this(okHttpClient, HttpUrl.parse("https://prices.scala.network/"));
6262
}
6363

6464
@Override

0 commit comments

Comments
 (0)