From a283660c4233d4ddc0814d7bc053ab74d65aac5e Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Fri, 14 Oct 2022 17:23:24 +0200 Subject: [PATCH] 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 --- android/build.gradle | 2 ++ tool/configure.dart | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 39e58da44..04c2af566 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,4 +1,5 @@ buildscript { + ext.kotlin_version = '1.5.10' repositories { google() jcenter() @@ -7,6 +8,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:4.1.3' classpath 'com.google.gms:google-services:4.3.8' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/tool/configure.dart b/tool/configure.dart index e16e4e13c..3b2414192 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -433,6 +433,15 @@ abstract class MoneroSubaddressList { Future setLabelSubaddress(Object wallet, {required int accountIndex, required int addressIndex, required String label}); } + +abstract class HavenAccountList { + ObservableList get accounts; + void update(Object wallet); + void refresh(Object wallet); + List getAll(Object wallet); + Future addAccount(Object wallet, {required String label}); + Future setLabelAccount(Object wallet, {required int accountIndex, required String label}); +} """; const havenEmptyDefinition = 'Haven? haven;\n';