Skip to content

Commit

Permalink
Merge branch 'rebrand_to_feral_file' into Sang/rebrand_to_ff/update_a…
Browse files Browse the repository at this point in the history
…sset
  • Loading branch information
ppupha committed Jan 8, 2024
2 parents 9f894a9 + 7746ebb commit 1e7303a
Show file tree
Hide file tree
Showing 38 changed files with 713 additions and 736 deletions.
17 changes: 17 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@
<data
android:host="autonomy-app-alternate.app.link"
android:scheme="https" />

<data
android:host="app.feralfile.com"
android:scheme="https" />
<data
android:host="feralfile-app.app.link"
android:scheme="https" />
<data
android:host="feralfile-app-alternate.app.link"
android:scheme="https" />
</intent-filter>

<intent-filter android:autoVerify="true">
Expand All @@ -177,6 +187,13 @@
<data
android:host="autonomy-app-alternate.test.app.link"
android:scheme="https" />

<data
android:host="feralfile-app.test.app.link"
android:scheme="https" />
<data
android:host="feralfile-app-alternate.test.app.link"
android:scheme="https" />
</intent-filter>
</activity>
<!--
Expand Down
5 changes: 5 additions & 0 deletions ios/Runner-Inhouse-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@
<string>autonomy-app-alternate.app.link</string>
<string>autonomy-app.test.app.link</string>
<string>autonomy-app-alternate.test.app.link</string>
<string>app.feralfile.com</string>
<string>feralfile-app.app.link</string>
<string>feralfile-app-alternate.app.link</string>
<string>feralfile-app.test.app.link</string>
<string>feralfile-app-alternate.test.app.link</string>
</array>
<key>io.flutter.embedded_views_preview</key>
<true/>
Expand Down
5 changes: 5 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
<string>autonomy-app-alternate.app.link</string>
<string>autonomy-app.test.app.link</string>
<string>autonomy-app-alternate.test.app.link</string>
<string>app.feralfile.com</string>
<string>feralfile-app.app.link</string>
<string>feralfile-app-alternate.app.link</string>
<string>feralfile-app.test.app.link</string>
<string>feralfile-app-alternate.test.app.link</string>
</array>
<key>io.flutter.embedded_views_preview</key>
<true/>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner InhouseDebug.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner-Inhouse.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/RunnerDebug.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
97 changes: 45 additions & 52 deletions lib/screen/bug_bounty_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

class BugBountyPage extends StatelessWidget {
const BugBountyPage({Key? key}) : super(key: key);
const BugBountyPage({super.key});

@override
Widget build(BuildContext context) {
final theme = Theme.of(context);

Map<String, String> guidelines = {
"critical".tr(): "guidelines_critical".tr(),
'critical'.tr(): 'guidelines_critical'.tr(),
//"Key leaks or invalid transactions resulting in asset loss: Up to \$5,000",
"high".tr(): "guidelines_high".tr(),
'high'.tr(): 'guidelines_high'.tr(),
// "Crashes or user data loss: \$100 - \$500",
"medium".tr(): "guidelines_medium".tr(),
'medium'.tr(): 'guidelines_medium'.tr(),
//"Incorrect flows or incompatibility with protocol or dapps: \$50 - \$100",
"low".tr(): "guidelines_low".tr(),
'low'.tr(): 'guidelines_low'.tr(),
// "UI typos, alignment errors: \$10 - \$50",
};

return Scaffold(
appBar: getBackAppBar(
context,
title: "bug_bounty".tr(),
title: 'bug_bounty'.tr(),
onBack: () => Navigator.of(context).pop(),
),
body: Container(
Expand All @@ -50,8 +50,7 @@ class BugBountyPage extends StatelessWidget {
children: [
addTitleSpace(),
Text(
"we_value_feedback".tr(),
//"We greatly value feedback from our customers and the work done by security researchers in improving the usability and security of Autonomy. We are committed to quickly verify, reproduce, and respond to legitimate reported interface issues and vulnerabilities. ",
'we_value_feedback'.tr(),
style: theme.textTheme.ppMori400Black16,
),
const SizedBox(height: 32),
Expand All @@ -62,8 +61,7 @@ class BugBountyPage extends StatelessWidget {
style: theme.textTheme.ppMori400Black16,
children: <TextSpan>[
TextSpan(
text: "only_accept_new_bug".tr(),
//'We only accept new bug reports for our iPhone or Android Apps; please check our ',
text: 'only_accept_new_bug'.tr(),
),
TextSpan(
recognizer: TapGestureRecognizer()
Expand All @@ -79,24 +77,22 @@ class BugBountyPage extends StatelessWidget {
: theme.textTheme.linkStyle16,
),
TextSpan(
text: "not_reward_yet".tr(),
//' before submitting. Bug reports for web applications or any other projects are out of scope and will not be considered for rewards.',
text: 'not_reward_yet'.tr(),
),
])),
const SizedBox(height: 32),
Text('rewards'.tr(), style: theme.textTheme.ppMori700Black24),
const SizedBox(height: 32),
Text(
"reward_ranging".tr(),
//'We pay rewards ranging from \$10 to \$5,000, administered according to the following guidelines:',
'reward_ranging'.tr(),
style: theme.textTheme.ppMori400Black16,
),
const SizedBox(height: 32),
Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: AppColor.auSuperTeal,
color: AppColor.feralFileHighlight,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand All @@ -109,44 +105,42 @@ class BugBountyPage extends StatelessWidget {
.copyWith(fontWeight: FontWeight.bold),
),
const SizedBox(height: 12),
...guidelines.keys
.map(
(e) => Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
width: 8,
),
Text(
' • ',
...guidelines.keys.map(
(e) => Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
width: 8,
),
Text(
' • ',
style: theme.textTheme.ppMori400Black14,
textAlign: TextAlign.start,
),
Expanded(
child: RichText(
text: TextSpan(
style: theme.textTheme.ppMori400Black14,
textAlign: TextAlign.start,
),
Expanded(
child: RichText(
text: TextSpan(
style: theme.textTheme.ppMori400Black14,
children: <TextSpan>[
TextSpan(
text: e,
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
TextSpan(
text: " – ${guidelines[e]!}",
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
],
children: <TextSpan>[
TextSpan(
text: e,
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
),
TextSpan(
text: ' – ${guidelines[e]!}',
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
],
),
],
),
),
)
.toList(),
],
),
),
],
),
),
Expand All @@ -159,12 +153,11 @@ class BugBountyPage extends StatelessWidget {
Text('disclosure_policy'.tr(),
style: theme.textTheme.ppMori700Black24),
const SizedBox(height: 32),
Text("support_publication".tr(),
//'We support the open publication of security research. We do ask that you give us a heads-up before any publication so we can do a final sync-up and check. ',
Text('support_publication'.tr(),
style: theme.textTheme.ppMori400Black16),
const SizedBox(height: 32),
PrimaryButton(
text: "report_a_bug".tr(),
text: 'report_a_bug'.tr(),
onTap: () => Navigator.of(context).pushNamed(
AppRouter.supportThreadPage,
arguments:
Expand Down
Loading

0 comments on commit 1e7303a

Please sign in to comment.