1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-02 01:32:58 +00:00

Update for Flutter 3.10 beta (#1746)

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

---------

Co-authored-by: David Iglesias <ditman@gmail.com>
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com>
Co-authored-by: John Ryan <ryjohn@google.com>
This commit is contained in:
Brett Morgan
2023-05-11 06:16:31 +10:00
committed by GitHub
parent 474756ce04
commit 36e7a6ab04
188 changed files with 1779 additions and 1968 deletions

View File

@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=2.19.5 <4.0.0'
sdk: ^3.0.0-0
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions

View File

@@ -1,15 +1,7 @@
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
// ignore_for_file: library_private_types_in_public_api
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: camel_case_types
// ignore_for_file: no_leading_underscores_for_local_identifiers
// ignore_for_file: void_checks
// ignore_for_file: constant_identifier_names
// ignore_for_file: annotate_overrides
// ignore_for_file: type=lint
import 'dart:ffi' as ffi;
import 'package:ffi/ffi.dart' as pkg_ffi;
@@ -26232,13 +26224,13 @@ class NSObject extends _ObjCWrapper {
}
}
class ObjCSel extends ffi.Opaque {}
final class ObjCSel extends ffi.Opaque {}
class ObjCObject extends ffi.Opaque {}
final class ObjCObject extends ffi.Opaque {}
typedef instancetype = ffi.Pointer<ObjCObject>;
class _NSZone extends ffi.Opaque {}
final class _NSZone extends ffi.Opaque {}
class Protocol extends _ObjCWrapper {
Protocol._(ffi.Pointer<ObjCObject> id, PedometerBindings lib,
@@ -29348,7 +29340,7 @@ class NSData extends NSObject {
}
}
class _NSRange extends ffi.Struct {
final class _NSRange extends ffi.Struct {
@ffi.UnsignedLong()
external int location;
@@ -31659,7 +31651,7 @@ class ObjCBlock extends _ObjCBlockBase {
ffi.Pointer<_ObjCBlock> get pointer => _id;
}
class _ObjCBlockDesc extends ffi.Struct {
final class _ObjCBlockDesc extends ffi.Struct {
@ffi.UnsignedLong()
external int reserved;
@@ -31673,7 +31665,7 @@ class _ObjCBlockDesc extends ffi.Struct {
external ffi.Pointer<ffi.Char> signature;
}
class _ObjCBlock extends ffi.Struct {
final class _ObjCBlock extends ffi.Struct {
external ffi.Pointer<ffi.Void> isa;
@ffi.Int()
@@ -33120,9 +33112,12 @@ class NSDictionary extends NSObject {
}
static NSDictionary dictionaryWithObject_forKey_(
PedometerBindings _lib, NSObject object, NSObject key) {
final _ret = _lib._objc_msgSend_140(_lib._class_NSDictionary1,
_lib._sel_dictionaryWithObject_forKey_1, object._id, key._id);
PedometerBindings _lib, NSObject object, NSObject? key) {
final _ret = _lib._objc_msgSend_140(
_lib._class_NSDictionary1,
_lib._sel_dictionaryWithObject_forKey_1,
object._id,
key?._id ?? ffi.nullptr);
return NSDictionary._(_ret, _lib, retain: true, release: true);
}
@@ -33588,7 +33583,7 @@ class ObjCBlock10 extends _ObjCBlockBase {
ffi.Pointer<_ObjCBlock> get pointer => _id;
}
class NSFastEnumerationState extends ffi.Struct {
final class NSFastEnumerationState extends ffi.Struct {
@ffi.UnsignedLong()
external int state;
@@ -39018,9 +39013,9 @@ class NSMutableDictionary extends NSDictionary {
return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id);
}
void setObject_forKey_(NSObject anObject, NSObject aKey) {
return _lib._objc_msgSend_460(
_id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id);
void setObject_forKey_(NSObject anObject, NSObject? aKey) {
return _lib._objc_msgSend_460(_id, _lib._sel_setObject_forKey_1,
anObject._id, aKey?._id ?? ffi.nullptr);
}
@override
@@ -39061,9 +39056,9 @@ class NSMutableDictionary extends NSDictionary {
_id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr);
}
void setObject_forKeyedSubscript_(NSObject obj, NSObject key) {
return _lib._objc_msgSend_460(
_id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id);
void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) {
return _lib._objc_msgSend_460(_id, _lib._sel_setObject_forKeyedSubscript_1,
obj._id, key?._id ?? ffi.nullptr);
}
static NSMutableDictionary dictionaryWithCapacity_(
@@ -39118,9 +39113,12 @@ class NSMutableDictionary extends NSDictionary {
}
static NSMutableDictionary dictionaryWithObject_forKey_(
PedometerBindings _lib, NSObject object, NSObject key) {
final _ret = _lib._objc_msgSend_140(_lib._class_NSMutableDictionary1,
_lib._sel_dictionaryWithObject_forKey_1, object._id, key._id);
PedometerBindings _lib, NSObject object, NSObject? key) {
final _ret = _lib._objc_msgSend_140(
_lib._class_NSMutableDictionary1,
_lib._sel_dictionaryWithObject_forKey_1,
object._id,
key?._id ?? ffi.nullptr);
return NSMutableDictionary._(_ret, _lib, retain: true, release: true);
}
@@ -46212,7 +46210,7 @@ class NSScanner extends NSObject {
}
}
class NSDecimal extends ffi.Opaque {}
final class NSDecimal extends ffi.Opaque {}
class NSException extends NSObject {
NSException._(ffi.Pointer<ObjCObject> id, PedometerBindings lib,
@@ -46610,7 +46608,7 @@ class NSRunLoop extends NSObject {
}
}
class __CFRunLoop extends ffi.Opaque {}
final class __CFRunLoop extends ffi.Opaque {}
class NSTimer extends NSObject {
NSTimer._(ffi.Pointer<ObjCObject> id, PedometerBindings lib,
@@ -51186,7 +51184,7 @@ abstract class NSOperationQueuePriority {
static const int NSOperationQueuePriorityVeryHigh = 8;
}
class dispatch_queue_s extends ffi.Opaque {}
final class dispatch_queue_s extends ffi.Opaque {}
class NSPointerArray extends NSObject {
NSPointerArray._(ffi.Pointer<ObjCObject> id, PedometerBindings lib,
@@ -51958,7 +51956,7 @@ class NSProcessInfo extends NSObject {
}
}
class NSOperatingSystemVersion extends ffi.Struct {
final class NSOperatingSystemVersion extends ffi.Struct {
@ffi.Long()
external int majorVersion;
@@ -54306,9 +54304,9 @@ abstract class NSURLCredentialPersistence {
static const int NSURLCredentialPersistenceSynchronizable = 3;
}
class __SecIdentity extends ffi.Opaque {}
final class __SecIdentity extends ffi.Opaque {}
class __SecTrust extends ffi.Opaque {}
final class __SecTrust extends ffi.Opaque {}
/// !
/// @class NSURLProtectionSpace

View File

@@ -4,7 +4,7 @@ version: 0.0.1
publish_to: "none"
environment:
sdk: '>=2.19.5 <4.0.0'
sdk: ^3.0.0-0
flutter: ">=2.11.0"
dependencies:
@@ -15,7 +15,7 @@ dependencies:
ffi: ^2.0.1
dev_dependencies:
ffigen: ^7.2.1
ffigen: ^8.0.0
jnigen: ^0.4.0
flutter_test:
sdk: flutter