Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[quick_actions] Extract iOS implementation into a separate package. #4702

Merged
merged 15 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update example app to work with iOS package.
Updates the code in example app to work with the new quick_actions_ios
package.
  • Loading branch information
mvanbeusekom committed Feb 8, 2022
commit 69fa39a10c843e425a45f0c37a47dcc2f2e055b3
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
// @dart = 2.9
mvanbeusekom marked this conversation as resolved.
Show resolved Hide resolved
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:quick_actions/quick_actions.dart';
import 'package:quick_actions_ios/quick_actions_ios.dart';

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

testWidgets('Can set shortcuts', (WidgetTester tester) async {
const QuickActions quickActions = QuickActions();
final QuickActionsIos quickActions = QuickActionsIos();
await quickActions.initialize(null);

const ShortcutItem shortCutItem = ShortcutItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -269,7 +269,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1100;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "The Flutter Authors";
TargetAttributes = {
33E20B3126EFCDFC00A4A191 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// ignore_for_file: public_member_api_docs

import 'package:flutter/material.dart';
import 'package:quick_actions/quick_actions.dart';
import 'package:quick_actions_ios/quick_actions_ios.dart';

void main() {
runApp(MyApp());
Expand Down Expand Up @@ -38,7 +38,7 @@ class _MyHomePageState extends State<MyHomePage> {
void initState() {
super.initState();

const QuickActions quickActions = QuickActions();
final QuickActionsIos quickActions = QuickActionsIos();
quickActions.initialize((String shortcutType) {
setState(() {
if (shortcutType != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ description: Demonstrates how to use the quick_actions plugin.
publish_to: none

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.9.1+hotfix.2"
sdk: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
flutter:
sdk: flutter
quick_actions:
quick_actions_ios:
# When depending on this package from a real application you should use:
# quick_actions: ^x.y.z
mvanbeusekom marked this conversation as resolved.
Show resolved Hide resolved
# See https://dart.dev/tools/pub/dependencies#version-constraints
Expand Down