update build numbers (#1441)

* update build numbers * fix UI issue * Add Nano to secret generation properly [skip ci] * remove to utc from expiration time

Omar Hatem committed May 10, 2024 at 21:28 UTC 678dc3b13570f9b5a07b70f839f006d56252b021
7 files changed +29 -15
cw_tron/lib/tron_client.dart
+2 -2
@@ -208,7 +208,7 @@ class TronClient {
208 TransactionContract(type: contract.contractType, parameter: parameter);
209
210 // Set the transaction expiration time (maximum 24 hours)
211 - final expireTime = DateTime.now().toUtc().add(const Duration(hours: 24));
211 + final expireTime = DateTime.now().add(const Duration(hours: 24));
212
213 // Create a raw transaction
214 TransactionRaw rawTransaction = TransactionRaw(
@@ -369,7 +369,7 @@ class TronClient {
369 TransactionContract(type: contract.contractType, parameter: parameter);
370
371 // Set the transaction expiration time (maximum 24 hours)
372 - final expireTime = DateTime.now().toUtc().add(const Duration(hours: 24));
372 + final expireTime = DateTime.now().add(const Duration(hours: 24));
373
374 // Create a raw transaction
375 TransactionRaw rawTransaction = TransactionRaw(
lib/src/screens/dashboard/pages/balance_page.dart
+3 -3
@@ -69,14 +69,14 @@ class BalancePage extends StatelessWidget {
69 ),
70 labelColor:
71 Theme.of(context).extension<DashboardPageTheme>()!.pageTitleTextColor,
72 - dividerColor:
73 - Theme.of(context).extension<DashboardPageTheme>()!.pageTitleTextColor,
72 + dividerColor: Colors.transparent,
73 indicatorColor:
74 Theme.of(context).extension<DashboardPageTheme>()!.pageTitleTextColor,
75 unselectedLabelColor: Theme.of(context)
76 .extension<DashboardPageTheme>()!
77 .pageTitleTextColor
78 .withOpacity(0.5),
79 + tabAlignment: TabAlignment.start,
80 tabs: [
81 Tab(text: 'My Crypto'),
82 Tab(text: 'My NFTs'),
@@ -351,7 +351,7 @@ class BalanceRowWidget extends StatelessWidget {
351 style: TextStyle(
352 fontSize: 16,
353 fontFamily: 'Lato',
354 - fontWeight: FontWeight.w500,
354 + fontWeight: FontWeight.w500,
355 color: Theme.of(context).extension<BalancePageTheme>()!.textColor,
356 height: 1)),
357 ],
macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+4 -4
@@ -15,7 +15,7 @@
15 <BuildableReference
16 BuildableIdentifier = "primary"
17 BlueprintIdentifier = "33CC10EC2044A3C60003C045"
18 - BuildableName = "Monero.com.app"
18 + BuildableName = "Cake Wallet.app"
19 BlueprintName = "Runner"
20 ReferencedContainer = "container:Runner.xcodeproj">
21 </BuildableReference>
@@ -31,7 +31,7 @@
31 <BuildableReference
32 BuildableIdentifier = "primary"
33 BlueprintIdentifier = "33CC10EC2044A3C60003C045"
34 - BuildableName = "Monero.com.app"
34 + BuildableName = "Cake Wallet.app"
35 BlueprintName = "Runner"
36 ReferencedContainer = "container:Runner.xcodeproj">
37 </BuildableReference>
@@ -54,7 +54,7 @@
54 <BuildableReference
55 BuildableIdentifier = "primary"
56 BlueprintIdentifier = "33CC10EC2044A3C60003C045"
57 - BuildableName = "Monero.com.app"
57 + BuildableName = "Cake Wallet.app"
58 BlueprintName = "Runner"
59 ReferencedContainer = "container:Runner.xcodeproj">
60 </BuildableReference>
@@ -71,7 +71,7 @@
71 <BuildableReference
72 BuildableIdentifier = "primary"
73 BlueprintIdentifier = "33CC10EC2044A3C60003C045"
74 - BuildableName = "Monero.com.app"
74 + BuildableName = "Cake Wallet.app"
75 BlueprintName = "Runner"
76 ReferencedContainer = "container:Runner.xcodeproj">
77 </BuildableReference>
scripts/android/app_env.sh
+2 -2
@@ -16,14 +16,14 @@ APP_ANDROID_TYPE=$1
16
17 MONERO_COM_NAME="Monero.com"
18 MONERO_COM_VERSION="1.13.0"
19 -MONERO_COM_BUILD_NUMBER=85
19 +MONERO_COM_BUILD_NUMBER=86
20 MONERO_COM_BUNDLE_ID="com.monero.app"
21 MONERO_COM_PACKAGE="com.monero.app"
22 MONERO_COM_SCHEME="monero.com"
23
24 CAKEWALLET_NAME="Cake Wallet"
25 CAKEWALLET_VERSION="4.16.0"
26 -CAKEWALLET_BUILD_NUMBER=208
26 +CAKEWALLET_BUILD_NUMBER=209
27 CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
28 CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
29 CAKEWALLET_SCHEME="cakewallet"
scripts/ios/app_env.sh
+2 -2
@@ -14,12 +14,12 @@ APP_IOS_TYPE=$1
14
15 MONERO_COM_NAME="Monero.com"
16 MONERO_COM_VERSION="1.13.0"
17 -MONERO_COM_BUILD_NUMBER=83
17 +MONERO_COM_BUILD_NUMBER=84
18 MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
19
20 CAKEWALLET_NAME="Cake Wallet"
21 CAKEWALLET_VERSION="4.16.0"
22 -CAKEWALLET_BUILD_NUMBER=234
22 +CAKEWALLET_BUILD_NUMBER=236
23 CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
24
25 HAVEN_NAME="Haven"
scripts/macos/app_env.sh
+2 -2
@@ -17,12 +17,12 @@ fi
17
18 MONERO_COM_NAME="Monero.com"
19 MONERO_COM_VERSION="1.3.0"
20 -MONERO_COM_BUILD_NUMBER=17
20 +MONERO_COM_BUILD_NUMBER=18
21 MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
22
23 CAKEWALLET_NAME="Cake Wallet"
24 CAKEWALLET_VERSION="1.9.0"
25 -CAKEWALLET_BUILD_NUMBER=69
25 +CAKEWALLET_BUILD_NUMBER=70
26 CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
27
28 if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then
tool/import_secrets_config.dart
+14
@@ -13,6 +13,9 @@ const solanaOutputPath = 'cw_solana/lib/.secrets.g.dart';
13
14 const tronConfigPath = 'tool/.tron-secrets-config.json';
15 const tronOutputPath = 'cw_tron/lib/.secrets.g.dart';
16 +
17 +const nanoConfigPath = 'tool/.nano-secrets-config.json';
18 +const nanoOutputPath = 'cw_nano/lib/.secrets.g.dart';
19 Future<void> main(List<String> args) async => importSecretsConfig();
20
21 Future<void> importSecretsConfig() async {
@@ -37,6 +40,11 @@ Future<void> importSecretsConfig() async {
40 final tronOutput =
41 tronInput.keys.fold('', (String acc, String val) => acc + generateConst(val, tronInput));
42
43 + final nanoOutputFile = File(nanoOutputPath);
44 + final nanoInput = json.decode(File(nanoConfigPath).readAsStringSync()) as Map<String, dynamic>;
45 + final nanoOutput =
46 + nanoInput.keys.fold('', (String acc, String val) => acc + generateConst(val, nanoInput));
47 +
48 if (outputFile.existsSync()) {
49 await outputFile.delete();
50 }
@@ -60,4 +68,10 @@ Future<void> importSecretsConfig() async {
68 }
69
70 await tronOutputFile.writeAsString(tronOutput);
71 +
72 + if (nanoOutputFile.existsSync()) {
73 + await nanoOutputFile.delete();
74 + }
75 +
76 + await nanoOutputFile.writeAsString(nanoOutput);
77 }