File tree Expand file tree Collapse file tree 7 files changed +33
-8
lines changed
Expand file tree Collapse file tree 7 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 1+ # 0.2.0
2+ Version update and bug fixes.
3+
4+ ## 🎯 Improvements
5+ - Added compatibility for freeRASP 4.0.0
6+
7+ ## 🛠 Fixed issues
8+ - Post-script failed when scheme update were set to false
9+
110# 0.1.0
211** 🎉 First release on BrickHub.dev! 🎉**
312
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ TalsecConfig _config = TalsecConfig(
99 watcherMail: '{{watcher_mail}}' ,{{#android}}
1010 androidConfig: AndroidConfig (
1111 expectedPackageName: '{{package_name}}' ,
12- expectedSigningCertificateHash : '{{signing_hash}}' ,
12+ expectedSigningCertificateHashes : {{{signing_hashes}}} ,
1313 ),{{/ android}}{{#ios}}
1414 iosConfig: IOSconfig (
1515 appBundleId: '{{bundle_id}}' ,
Original file line number Diff line number Diff line change 11name : freerasp_brick
22description : A brick for configuration generation and automatic setup for freeRASP.
3-
4- version : 0.1 .0
3+ repository : https://github.com/yardexx/freerasp_brick
4+ version : 0.2 .0
55
66environment :
77 mason : " >=0.1.0-dev.39 <0.1.0"
Original file line number Diff line number Diff line change 1- include : package:very_good_analysis/analysis_options.3.0.1 .yaml
1+ include : package:very_good_analysis/analysis_options.3.1.0 .yaml
Original file line number Diff line number Diff line change @@ -24,3 +24,13 @@ extension LoggerX on Logger {
2424 );
2525 }
2626}
27+
28+ extension StringX on String {
29+ String toListString () {
30+ return split (',' )
31+ .map ((item) => item.trim ())
32+ .map ((item) => "'$item '" )
33+ .toList ()
34+ .toString ();
35+ }
36+ }
Original file line number Diff line number Diff line change @@ -10,11 +10,16 @@ const String flutterBuild = 'lib';
1010
1111Future <void > run (HookContext context) async {
1212 final logger = context.logger;
13+
14+ final isAndroid = context.vars['android' ] as bool ;
15+ final isIOS = context.vars['ios' ] as bool ;
16+
1317 await _runPubAdd (logger);
1418 await _runPubGet (logger);
1519 await _runDartFix (logger);
16- await _runGradleCheck (context);
17- await _runSchemeCheck (context);
20+
21+ if (isAndroid) await _runGradleCheck (context);
22+ if (isIOS) await _runSchemeCheck (context);
1823}
1924
2025Future <void > _runPubAdd (Logger logger) async {
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ void parseAndroidData(HookContext context) {
4747 defaultValue: defaultAppPackage,
4848 );
4949
50- final signingHash = logger.masonPrompt ("What's app singing hash?" );
50+ final signingHashes =
51+ logger.masonPrompt ('What are app singing hashes?' ).toListString ();
5152
5253 final updateGradle = logger.masonConfirm (
5354 'Do you want to check and update API level (minSdkVersion)?' ,
@@ -56,7 +57,7 @@ void parseAndroidData(HookContext context) {
5657
5758 context.vars.addAll ({
5859 'package_name' : packageName,
59- 'signing_hash ' : signingHash ,
60+ 'signing_hashes ' : signingHashes ,
6061 'update_gradle' : updateGradle,
6162 });
6263}
You can’t perform that action at this time.
0 commit comments