Update android build configs (#534)

* Update compile sdk version
Update kotlin version

* Add missing HavenAccountList class to configure to be generated with haven.dart file

* Revert compile sdk and ndk changes
This commit is contained in:
Omar Hatem 2022-10-14 17:23:24 +02:00 committed by GitHub
parent c10bf5df52
commit a283660c42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -1,4 +1,5 @@
buildscript { buildscript {
ext.kotlin_version = '1.5.10'
repositories { repositories {
google() google()
jcenter() jcenter()
@ -7,6 +8,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.3' classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.google.gms:google-services:4.3.8' classpath 'com.google.gms:google-services:4.3.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }

View file

@ -433,6 +433,15 @@ abstract class MoneroSubaddressList {
Future<void> setLabelSubaddress(Object wallet, Future<void> setLabelSubaddress(Object wallet,
{required int accountIndex, required int addressIndex, required String label}); {required int accountIndex, required int addressIndex, required String label});
} }
abstract class HavenAccountList {
ObservableList<Account> get accounts;
void update(Object wallet);
void refresh(Object wallet);
List<Account> getAll(Object wallet);
Future<void> addAccount(Object wallet, {required String label});
Future<void> setLabelAccount(Object wallet, {required int accountIndex, required String label});
}
"""; """;
const havenEmptyDefinition = 'Haven? haven;\n'; const havenEmptyDefinition = 'Haven? haven;\n';