Skip to content

Commit 71e1578

Browse files
committed
Upgrade to Monero v0.17.1.1
1 parent 5f18146 commit 71e1578

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ apply plugin: 'kotlin-kapt'
55
apply plugin: 'kotlinx-serialization'
66

77
static def computeVersionCode() {
8-
111
8+
112
99
}
1010

1111
static def computeVersionName() {
12-
return "2.0.0"
12+
return "2.1.0"
1313
}
1414

1515
android {
16-
compileSdkVersion 28
16+
compileSdkVersion 29
1717
defaultConfig {
1818
applicationId "io.wookey.wallet.monero"
1919
minSdkVersion 21
20-
targetSdkVersion 28
20+
targetSdkVersion 29
2121
versionCode computeVersionCode()
2222
versionName computeVersionName()
2323
// testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

app/src/main/java/io/wookey/wallet/feature/asset/AssetFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AssetFragment : BaseFragment() {
8080
viewModel.openAssetDetail.observe(this, Observer { value ->
8181
value?.let {
8282
startActivity(it.apply {
83-
setClass(context, AssetDetailActivity::class.java)
83+
setClass(context!!, AssetDetailActivity::class.java)
8484
})
8585
}
8686
})

app/src/main/java/io/wookey/wallet/feature/setting/MarketActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MarketActivity : BaseTitleSecondActivity() {
7171
"zar"
7272
)
7373

74-
private var currentCurrency = sharedPreferences().getString("currentCurrency", CURRENCY_LIST[0])
74+
private var currentCurrency = sharedPreferences().getString("currentCurrency", CURRENCY_LIST[0])?:CURRENCY_LIST[0]
7575

7676
override fun onCreate(savedInstanceState: Bundle?) {
7777
super.onCreate(savedInstanceState)

app/src/main/java/io/wookey/wallet/support/extensions/Extensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fun AppCompatActivity.copy(value: String?) {
7070
}
7171
val cmb = getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
7272
if (cmb != null) {
73-
cmb.primaryClip = ClipData.newPlainText(null, value)
73+
cmb.setPrimaryClip(ClipData.newPlainText(null, value))
7474
toast(R.string.copy_success)
7575
}
7676
}
@@ -95,7 +95,7 @@ fun androidx.fragment.app.Fragment.copy(value: String?) {
9595
}
9696
val cmb = context!!.getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
9797
if (cmb != null) {
98-
cmb.primaryClip = ClipData.newPlainText(null, value)
98+
cmb.setPrimaryClip(ClipData.newPlainText(null, value))
9999
toast(R.string.copy_success)
100100
}
101101
}

monero/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 28
4+
compileSdkVersion 29
55

66
defaultConfig {
77
minSdkVersion 21
8-
targetSdkVersion 28
8+
targetSdkVersion 29
99
versionCode 1
1010
versionName "1.0"
1111

monero/src/main/java/io/wookey/monero/util/RestoreHeight.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ static public RestoreHeight getInstance() {
113113
blockheight.put("2020-04-01", 2066806L);
114114
blockheight.put("2020-05-01", 2088411L);
115115
blockheight.put("2020-06-01", 2110702L);
116+
blockheight.put("2020-07-01", 2132318L);
117+
blockheight.put("2020-08-01", 2154590L);
118+
blockheight.put("2020-09-01", 2176790L);
119+
blockheight.put("2020-10-01", 2198370L);
116120
}
117121

118122
public long getHeight(String date) {

0 commit comments

Comments
 (0)