Skip to content

Commit 37b5732

Browse files
committed
add several fixes and features
* add RGB invoices (creation/parsing) * add spendable balance (view and send logic) * download rgb-lib logs * show future allocations on list unspents * auto paste address/invoice on edittext click * coppy address/invoice on box click * add hide assets capability * add asset metadata view * inform user on needed sats to use rgb * update rgb-lib-android to 0.1.3 * minor fixes
1 parent ac906fd commit 37b5732

53 files changed

Lines changed: 1589 additions & 485 deletions

Some content is hidden

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

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ dependencies {
153153
implementation "androidx.room:room-ktx:$room_version"
154154
ksp "androidx.room:room-compiler:$room_version"
155155

156-
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha03'
156+
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha04'
157157

158158
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
159159

@@ -164,7 +164,7 @@ dependencies {
164164
implementation 'com.github.lelloman:android-identicons:v11'
165165

166166
// Google
167-
implementation 'com.google.android.gms:play-services-auth:20.3.0'
167+
implementation 'com.google.android.gms:play-services-auth:20.4.0'
168168

169169
implementation 'com.google.android.material:material:1.7.0'
170170

@@ -174,7 +174,7 @@ dependencies {
174174
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
175175

176176
// RGB-Tools
177-
implementation 'org.rgbtools:rgb-lib-android:0.1.2'
177+
implementation 'org.rgbtools:rgb-lib-android:0.1.3'
178178

179179
// Squareup
180180
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"formatVersion": 1,
3+
"database": {
4+
"version": 2,
5+
"identityHash": "6ee5194ec6f0e898912a72275e10969e",
6+
"entities": [
7+
{
8+
"tableName": "AutomaticTransaction",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`txid` TEXT NOT NULL, PRIMARY KEY(`txid`))",
10+
"fields": [
11+
{
12+
"fieldPath": "txid",
13+
"columnName": "txid",
14+
"affinity": "TEXT",
15+
"notNull": true
16+
}
17+
],
18+
"primaryKey": {
19+
"columnNames": [
20+
"txid"
21+
],
22+
"autoGenerate": false
23+
},
24+
"indices": [],
25+
"foreignKeys": []
26+
},
27+
{
28+
"tableName": "HiddenAsset",
29+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, PRIMARY KEY(`id`))",
30+
"fields": [
31+
{
32+
"fieldPath": "id",
33+
"columnName": "id",
34+
"affinity": "TEXT",
35+
"notNull": true
36+
}
37+
],
38+
"primaryKey": {
39+
"columnNames": [
40+
"id"
41+
],
42+
"autoGenerate": false
43+
},
44+
"indices": [],
45+
"foreignKeys": []
46+
},
47+
{
48+
"tableName": "RgbPendingAsset",
49+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`assetID` TEXT NOT NULL, `schema` TEXT NOT NULL, `amount` INTEGER NOT NULL, `name` TEXT NOT NULL, `precision` INTEGER NOT NULL, `ticker` TEXT, `description` TEXT, `parentID` TEXT, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`assetID`))",
50+
"fields": [
51+
{
52+
"fieldPath": "assetID",
53+
"columnName": "assetID",
54+
"affinity": "TEXT",
55+
"notNull": true
56+
},
57+
{
58+
"fieldPath": "schema",
59+
"columnName": "schema",
60+
"affinity": "TEXT",
61+
"notNull": true
62+
},
63+
{
64+
"fieldPath": "amount",
65+
"columnName": "amount",
66+
"affinity": "INTEGER",
67+
"notNull": true
68+
},
69+
{
70+
"fieldPath": "name",
71+
"columnName": "name",
72+
"affinity": "TEXT",
73+
"notNull": true
74+
},
75+
{
76+
"fieldPath": "precision",
77+
"columnName": "precision",
78+
"affinity": "INTEGER",
79+
"notNull": true
80+
},
81+
{
82+
"fieldPath": "ticker",
83+
"columnName": "ticker",
84+
"affinity": "TEXT",
85+
"notNull": false
86+
},
87+
{
88+
"fieldPath": "description",
89+
"columnName": "description",
90+
"affinity": "TEXT",
91+
"notNull": false
92+
},
93+
{
94+
"fieldPath": "parentID",
95+
"columnName": "parentID",
96+
"affinity": "TEXT",
97+
"notNull": false
98+
},
99+
{
100+
"fieldPath": "timestamp",
101+
"columnName": "timestamp",
102+
"affinity": "INTEGER",
103+
"notNull": true
104+
}
105+
],
106+
"primaryKey": {
107+
"columnNames": [
108+
"assetID"
109+
],
110+
"autoGenerate": false
111+
},
112+
"indices": [],
113+
"foreignKeys": []
114+
}
115+
],
116+
"views": [],
117+
"setupQueries": [
118+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
119+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6ee5194ec6f0e898912a72275e10969e')"
120+
]
121+
}
122+
}

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<uses-permission android:name="android.permission.INTERNET" />
88
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
99
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
10+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
1011

1112
<application
1213
android:name=".IrisWallet"
@@ -37,7 +38,8 @@
3738
android:exported="true"
3839
android:launchMode="singleTask"
3940
android:screenOrientation="portrait"
40-
android:theme="@style/AppTheme.Splash">
41+
android:theme="@style/AppTheme.Splash"
42+
android:windowSoftInputMode="adjustPan">
4143
<intent-filter>
4244
<action android:name="android.intent.action.MAIN" />
4345
<category android:name="android.intent.category.LAUNCHER" />

0 commit comments

Comments
 (0)