Skip to content
Snippets Groups Projects
Commit f3702dfe authored by poka's avatar poka
Browse files

update flutter, deps, and indexer endpoints

parent b1ef394f
No related branches found
No related tags found
No related merge requests found
Pipeline #37979 waiting for manual action
Showing
with 30 additions and 50 deletions
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gecko.axiomteam.fr">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gecko.axiomteam.fr">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gecko.axiomteam.fr">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
......
......@@ -8,6 +8,7 @@ allprojects {
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
afterEvaluate { android { compileSdkVersion 34 } }
}
subprojects {
project.evaluationDependsOn(':app')
......
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
......@@ -19,8 +19,8 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.android.application" version '7.4.2' apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
include ":app"
......@@ -59,7 +59,7 @@
"yourMnemonic": "Your mnemonic",
"gecko_also_can_forget.png": "gecko_also_can_forget_en.png",
"didYouNoteMnemonicToBeSureTypeWord": "Did you write down your menmonic?\n\n To be sure, please type the **{}th word** of your restoration phrase in the field below:",
"geckoWillGenerateAPassword": "Gecko will now generate for you a short password that will allow you to quickly access your wallets, without having to type your recovery sentence every time.",
"geckoWillGenerateAPassword": "You will now be prompted to set a PIN code that will allow you to quickly access your wallets without having to type your recovery phrase each time.",
"myPassword": "My password",
"thisPasswordProtectsYourWalletsInASecureChest": "This secret code protects your wallets in a safe **which only you have the code for**, so that your wallets cannot be used by others.",
"hereIsThePasswordKeepIt": "Choose your password!\n\nMemorize it or write it down, because you will be asked **every time** you want to make a payment on this device.",
......
......@@ -59,7 +59,7 @@
"yourMnemonic": "tu frase de restauración",
"gecko_also_can_forget.png": "gecko_also_can_forget_es.png",
"didYouNoteMnemonicToBeSureTypeWord": "¿Anotaste bien tu frase de restauración? Para asegurarnos, escriba la **palabra #{}** de tu frase de restauración en el cuadro de abajo:",
"GeckoWillGenerateAPassword": "Ahora Ğecko te generará una contraseña corta que te permitirá acceder rápidamente a tus monederos, sin tener que escribir cada vez tu frase de recuperación.",
"GeckoWillGenerateAPassword": "Ahora se le pedirá que establezca un código PIN que le permitirá acceder rápidamente a sus billeteras sin tener que escribir su frase de recuperación cada vez.",
"myPassword": "Mi contraseña",
"thisPasswordProtectsYourWalletsInASecureChest": "Esta contraseña protege tus monederos en un cofre **del que sólo tú tienes acceso**, para que tus monederos no puedan ser utilizados por otros.",
"hereIsThePasswordKeepIt": "¡Elija su contraseña!\n\nMemorízala o anótala, porque Ğecko te la pedirá **cada vez** que quieras hacer un pago en este dispositivo.",
......
......@@ -59,7 +59,7 @@
"yourMnemonic": "Votre phrase de restauration",
"gecko_also_can_forget.png": "gecko_also_can_forget_fr.png",
"didYouNoteMnemonicToBeSureTypeWord": "Avez-vous bien noté votre phrase de restauration ?\n\nPour en être sûr, veuillez taper dans le champ ci-dessous le **{}ème mot** de votre phrase de restauration :",
"geckoWillGenerateAPassword": "Gecko va maintenant générer pour vous un code secret court qui vous permettra d’accéder rapidement à vos portefeuilles, sans avoir à taper votre phrase de restauration à chaque fois.",
"geckoWillGenerateAPassword": "Vous allez maintenant être invité à définir un code PIN qui vous permettra d’accéder rapidement à vos portefeuilles, sans avoir à taper votre phrase de restauration à chaque fois.",
"myPassword": "Mon code secret",
"thisPasswordProtectsYourWalletsInASecureChest": "Ce code secret protège vos portefeuilles dans un coffre-fort **dont vous seul possédez le code**, de sorte que vos portefeuilles seront inutilisables par d’autres.",
"hereIsThePasswordKeepIt": "Choisissez votre code secret !\n\nMémorisez-le ou notez-le, car il vous sera demandé **à chaque fois** que vous voudrez effectuer un paiement sur cet appareil.",
......
......@@ -59,7 +59,7 @@
"yourMnemonic": "la tua frase di recupero",
"gecko_also_can_forget.png": "gecko_also_can_forget_es.png",
"didYouNoteMnemonicToBeSureTypeWord": "Ti sei segnato bene la frase di recupero? Per assicurarcene, scrivi la **parola {}** della tua frase di recupero:",
"GeckoWillGenerateAPassword": "Ora Ğecko ti creerá una password corta che ti permetterá accedere rapidamente ai tuoi portafogli, senza dover ogni volta inserire la frase di recupero.",
"GeckoWillGenerateAPassword": "Ora ti verrà chiesto di impostare un codice PIN che ti permetterà di accedere rapidamente ai tuoi portafogli senza dover digitare la tua frase di recupero ogni volta.",
"myPassword": "La mia password",
"thisPasswordProtectsYourWalletsInASecureChest": "Questa password protegge i tuo portafogli e uno scrigno **di cui solo tu hai accesso**, cosicché i tuoi portafogli non possano essere usati da altri.",
"hereIsThePasswordKeepIt": "Scegli la tua password!\n\nMemorizzala e annotala, perché Ğecko te la chiederá **ogni volta** che si voglia effettuare un pagamento da questo dispositivo.",
......
[
"squid.gdev.coinduf.eu",
"gdev-squid.axiom-team.fr"
]
......@@ -8,7 +8,7 @@ import 'package:hive_flutter/hive_flutter.dart';
import 'package:logger/logger.dart';
// Version of box data
const int dataVersion = 9;
const int dataVersion = 10;
late String appVersion;
const int pinLength = 4;
......@@ -48,7 +48,7 @@ const Color backgroundColor = Color(0xFFF5F5F5);
const String currencyName = 'ĞD';
// Debug
const debugPin = true;
const debugPin = false;
String indexerEndpoint = '';
late double balanceRatio;
......
......@@ -76,18 +76,11 @@ Future<void> main() async {
if (kReleaseMode && enableSentry) {
await SentryFlutter.init((options) {
options.dsn =
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
options.dsn = 'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
},
appRunner: () => SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp]).then((_) {
appRunner: () => SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(EasyLocalization(
supportedLocales: const [
Locale('en'),
Locale('fr'),
Locale('es'),
Locale('it')
],
supportedLocales: const [Locale('en'), Locale('fr'), Locale('es'), Locale('it')],
path: 'assets/translations',
fallbackLocale: const Locale('en'),
child: const Gecko(),
......@@ -96,16 +89,10 @@ Future<void> main() async {
} else {
log.i('Debug mode enabled: No sentry alert');
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(EasyLocalization(
// test, force locale :: startLocale: Locale.fromSubtags(languageCode: 'it'),
supportedLocales: const [
Locale('en'),
Locale('fr'),
Locale('es'),
Locale('it')
],
supportedLocales: const [Locale('en'), Locale('fr'), Locale('es'), Locale('it')],
path: 'assets/translations',
fallbackLocale: const Locale('en'),
child: const Gecko(),
......@@ -115,7 +102,7 @@ Future<void> main() async {
}
class Gecko extends StatelessWidget {
const Gecko({Key? key}) : super(key: key);
const Gecko({super.key});
@override
Widget build(BuildContext context) {
......@@ -163,8 +150,7 @@ class Gecko extends StatelessWidget {
// ).apply(
// bodyColor: const Color(0xFF000000),
// ),
colorScheme:
ColorScheme.fromSwatch().copyWith(secondary: Colors.grey[850]),
colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.grey[850]),
),
initialRoute: "/",
routes: {
......@@ -182,8 +168,6 @@ class Gecko extends StatelessWidget {
class MyHttpOverrides extends HttpOverrides {
@override
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..badCertificateCallback =
(X509Certificate cert, String host, int port) => true;
return super.createHttpClient(context)..badCertificateCallback = (X509Certificate cert, String host, int port) => true;
}
}
......@@ -30,14 +30,12 @@ TextStyle scaledTextStyle({
class ScaledSizedBox extends SizedBox {
ScaledSizedBox({
Key? key,
super.key,
double? width,
double? height,
Widget? child,
super.child,
}) : super(
key: key,
width: width != null ? scaleSize(width) : null,
height: height != null ? scaleSize(height) : null,
child: child,
);
}
......@@ -10,8 +10,7 @@ import 'package:gecko/widgets/commons/top_appbar.dart';
class CertificationsScreen extends StatelessWidget {
const CertificationsScreen(
{Key? key, required this.address, required this.username})
: super(key: key);
{super.key, required this.address, required this.username});
final String address;
final String username;
......
......@@ -6,7 +6,7 @@ import 'package:gecko/providers/substrate_sdk.dart';
import 'package:provider/provider.dart';
class DebugScreen extends StatelessWidget {
const DebugScreen({Key? key}) : super(key: key);
const DebugScreen({super.key});
@override
Widget build(BuildContext context) {
......
......@@ -25,7 +25,7 @@ import 'package:hive_flutter/hive_flutter.dart';
import 'package:provider/provider.dart';
class HomeScreen extends StatefulWidget {
const HomeScreen({Key? key}) : super(key: key);
const HomeScreen({super.key});
@override
State<HomeScreen> createState() => _HomeScreenState();
......
......@@ -12,7 +12,7 @@ import 'package:gecko/screens/onBoarding/5.dart';
import 'package:provider/provider.dart';
class ChooseChest extends StatefulWidget {
const ChooseChest({Key? key}) : super(key: key);
const ChooseChest({super.key});
@override
State<StatefulWidget> createState() {
......
......@@ -10,7 +10,7 @@ import 'package:gecko/widgets/commons/top_appbar.dart';
import 'package:provider/provider.dart';
class CustomDerivation extends StatefulWidget {
const CustomDerivation({Key? key}) : super(key: key);
const CustomDerivation({super.key});
@override
State<CustomDerivation> createState() => _CustomDerivationState();
......
......@@ -20,7 +20,7 @@ import 'package:gecko/widgets/idty_status.dart';
import 'package:provider/provider.dart';
class ImportG1v1 extends StatelessWidget {
const ImportG1v1({Key? key}) : super(key: key);
const ImportG1v1({super.key});
static const int debouneTime = 600;
@override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment