Skip to content

Commit

Permalink
following apple rules, disabling izly on ios:
Browse files Browse the repository at this point in the history
Bug Fix Submissions

The issues we've identified below are eligible to be resolved on your next update. If this submission includes bug fixes and you'd like to have it approved at this time, reply to this message and let us know. You do not need to resubmit your app for us to proceed.

Alternatively, if you'd like to resolve these issues now, please review the details, make the appropriate changes, and resubmit.

Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage

The app does not meet all requirements for apps that offer highly regulated services or handle sensitive user data. Specifically:

- The account that submits the app must be enrolled in the Apple Developer Program as an organization, and not as an individual.

The guideline 5.1.1(ix) requirements give users confidence that apps operating in highly regulated fields or that require sensitive user information are qualified to provide these services and will responsibly manage their data.

Next Steps

To resolve this issue, it would be appropriate to take the following steps:

- The app must be submitted through an Apple Developer Program account enrolled as an organization. You may either enroll in a new Apple Developer Program account as an organization, or request that your individual account be converted to an organization account by contacting Apple Developer Support.

Please note that you cannot resolve this issue with documentation showing permission to publish this app on behalf of the content owner or institution.

Resources

- Learn how to transfer apps between accounts.
- Request a fee waiver for nonprofit organizations, accredited educational institutions, or government entities.
Please see attached screenshot for details.
  • Loading branch information
hatch01 committed Nov 15, 2024
1 parent fbb546c commit ecd92c5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 40 deletions.
14 changes: 10 additions & 4 deletions apps/onyx/lib/core/screens/home/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:onyx/core/extensions/functionalities_extension.dart';
import 'package:onyx/core/res.dart';
import 'package:onyx/core/screens/home/home_export.dart';
import 'package:onyx/core/widgets/core_widget_export.dart';
import 'package:onyx/screens/login/login_export.dart';
Expand Down Expand Up @@ -59,10 +62,13 @@ class HomePageState extends State<HomePage> {

List<Destination> enabledDestinations = [];
for (var i = 0; i < enabledFunctionalities.length; i++) {
enabledDestinations.add(Destination(
i,
enabledFunctionalities[i].name,
enabledFunctionalities[i].toIcon()));
if (!(Platform.isIOS &&
enabledFunctionalities[i] == Functionalities.izly)) {
enabledDestinations.add(Destination(
i,
enabledFunctionalities[i].name,
enabledFunctionalities[i].toIcon()));
}
}

// add the more button
Expand Down
48 changes: 26 additions & 22 deletions apps/onyx/lib/screens/settings/pages/settings_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_localized_locales/flutter_localized_locales.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:izlyclient/izlyclient.dart';
Expand All @@ -20,7 +23,6 @@ import 'package:onyx/screens/settings/widgets/draggable_zone_widget.dart';
import 'package:onyx/screens/settings/widgets/drop_down_widget.dart';
import 'package:onyx/screens/tomuss/tomuss_export.dart';
import 'package:responsive_sizer/responsive_sizer.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

class SettingsPage extends StatefulWidget {
const SettingsPage({
Expand Down Expand Up @@ -68,7 +70,8 @@ class _SettingsPageState extends State<SettingsPage> {
.state
.settings
.language) +
1, //little trick, if it does not found because null, it will return -1, so +1 to get 0
1,
//little trick, if it does not found because null, it will return -1, so +1 to get 0
// afterward we add in the list the auto option
items: [
AppLocalizations.of(context).auto,
Expand Down Expand Up @@ -240,26 +243,27 @@ class _SettingsPageState extends State<SettingsPage> {
);
},
),
MaterialButton(
color: const Color(0xffbf616a),
textColor: Colors.white70,
child: Text(
AppLocalizations.of(context).clearIzlyCache,
style: TextStyle(fontSize: 17.sp)),
onPressed: () {
CacheService.reset<IzlyQrCodeList>();
CacheService.reset<IzlyPaymentModelList>();
CacheService.reset<IzlyCredential>();
Hive.deleteBoxFromDisk("cached_qr_code");
Hive.deleteBoxFromDisk("cached_izly_amount");
context.read<IzlyCubit>().resetCubit();
context.read<IzlyCubit>().connect(
settings: context
.read<SettingsCubit>()
.state
.settings);
},
),
if (!Platform.isIOS)
MaterialButton(
color: const Color(0xffbf616a),
textColor: Colors.white70,
child: Text(
AppLocalizations.of(context).clearIzlyCache,
style: TextStyle(fontSize: 17.sp)),
onPressed: () {
CacheService.reset<IzlyQrCodeList>();
CacheService.reset<IzlyPaymentModelList>();
CacheService.reset<IzlyCredential>();
Hive.deleteBoxFromDisk("cached_qr_code");
Hive.deleteBoxFromDisk("cached_izly_amount");
context.read<IzlyCubit>().resetCubit();
context.read<IzlyCubit>().connect(
settings: context
.read<SettingsCubit>()
.state
.settings);
},
),
const SizedBox(
height: 10,
),
Expand Down
34 changes: 20 additions & 14 deletions apps/onyx/lib/screens/settings/widgets/draggable_zone_widget.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:drag_and_drop_lists/drag_and_drop_lists.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
Expand Down Expand Up @@ -37,13 +39,15 @@ class DraggableZoneWidget extends StatelessWidget {
),
),
horizontalAlignment: MainAxisAlignment.center,
children: context
.read<SettingsCubit>()
.state
.settings
.enabledFunctionalities
.map((e) => screenSettingsDragAndDropItem(e))
.toList()),
children: [
for (var i in context
.read<SettingsCubit>()
.state
.settings
.enabledFunctionalities)
if (!(Platform.isIOS && i == Functionalities.izly))
screenSettingsDragAndDropItem(i)
]),
DragAndDropList(
canDrag: false,
contentsWhenEmpty: const SizedBox.shrink(),
Expand All @@ -63,13 +67,15 @@ class DraggableZoneWidget extends StatelessWidget {
fontWeight: FontWeight.bold, fontSize: 16),
),
),
children: context
.read<SettingsCubit>()
.state
.settings
.disabledFunctionalities
.map((e) => screenSettingsDragAndDropItem(e))
.toList())
children: [
for (var i in context
.read<SettingsCubit>()
.state
.settings
.disabledFunctionalities)
if (!(Platform.isIOS && i == Functionalities.izly))
screenSettingsDragAndDropItem(i)
]),
];
return DragAndDropLists(
listPadding: EdgeInsets.symmetric(horizontal: 4.w),
Expand Down

0 comments on commit ecd92c5

Please sign in to comment.