mirror of
https://github.com/flutter/samples.git
synced 2026-08-25 01:21:59 +00:00
Release 3.47 (#2879)
Minor updates for release 3.47 ## 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 have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`). If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md [changelog]: ../CHANGELOG.md --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
flutter_version: [stable]
|
flutter_version: [stable, beta]
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|||||||
11
analysis_options.yaml
Normal file
11
analysis_options.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
include: package:analysis_defaults/flutter.yaml
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#
|
||||||
|
# Generated file, do not edit.
|
||||||
|
#
|
||||||
|
|
||||||
|
import lldb
|
||||||
|
|
||||||
|
def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict):
|
||||||
|
"""Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages."""
|
||||||
|
base = frame.register["x0"].GetValueAsAddress()
|
||||||
|
page_len = frame.register["x1"].GetValueAsUnsigned()
|
||||||
|
|
||||||
|
# Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the
|
||||||
|
# first page to see if handled it correctly. This makes diagnosing
|
||||||
|
# misconfiguration (e.g. missing breakpoint) easier.
|
||||||
|
data = bytearray(page_len)
|
||||||
|
data[0:8] = b'IHELPED!'
|
||||||
|
|
||||||
|
error = lldb.SBError()
|
||||||
|
frame.GetThread().GetProcess().WriteMemory(base, data, error)
|
||||||
|
if not error.Success():
|
||||||
|
print(f'Failed to write into {base}[+{page_len}]', error)
|
||||||
|
return
|
||||||
|
|
||||||
|
def __lldb_init_module(debugger: lldb.SBDebugger, _):
|
||||||
|
target = debugger.GetDummyTarget()
|
||||||
|
# Caveat: must use BreakpointCreateByRegEx here and not
|
||||||
|
# BreakpointCreateByName. For some reasons callback function does not
|
||||||
|
# get carried over from dummy target for the later.
|
||||||
|
bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$")
|
||||||
|
bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__))
|
||||||
|
bp.SetAutoContinue(True)
|
||||||
|
print("-- LLDB integration loaded --")
|
||||||
5
animation_gallery/ios/Flutter/ephemeral/flutter_lldbinit
Normal file
5
animation_gallery/ios/Flutter/ephemeral/flutter_lldbinit
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# Generated file, do not edit.
|
||||||
|
#
|
||||||
|
|
||||||
|
command script import --relative-to-command-file flutter_lldb_helper.py
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
FLUTTER_ROOT=/Users/ewindmill/development/flutter
|
||||||
|
FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery
|
||||||
|
FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/ios/Flutter/ephemeral/Packages/.packages/FlutterFramework
|
||||||
|
COCOAPODS_PARALLEL_CODE_SIGN=true
|
||||||
|
FLUTTER_TARGET=lib/main.dart
|
||||||
|
FLUTTER_BUILD_DIR=build
|
||||||
|
FLUTTER_BUILD_NAME=1.0.0
|
||||||
|
FLUTTER_BUILD_NUMBER=1
|
||||||
|
DART_OBFUSCATION=false
|
||||||
|
TRACK_WIDGET_CREATION=true
|
||||||
|
TREE_SHAKE_ICONS=false
|
||||||
|
PACKAGE_CONFIG=.dart_tool/package_config.json
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// This is a generated file; do not edit or check into version control.
|
||||||
|
FLUTTER_ROOT=/Users/ewindmill/development/flutter
|
||||||
|
FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery
|
||||||
|
FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework
|
||||||
|
COCOAPODS_PARALLEL_CODE_SIGN=true
|
||||||
|
FLUTTER_BUILD_DIR=build
|
||||||
|
FLUTTER_BUILD_NAME=1.0.0
|
||||||
|
FLUTTER_BUILD_NUMBER=1
|
||||||
|
DART_OBFUSCATION=false
|
||||||
|
TRACK_WIDGET_CREATION=true
|
||||||
|
TREE_SHAKE_ICONS=false
|
||||||
|
PACKAGE_CONFIG=.dart_tool/package_config.json
|
||||||
13
animation_gallery/macos/Flutter/ephemeral/flutter_export_environment.sh
Executable file
13
animation_gallery/macos/Flutter/ephemeral/flutter_export_environment.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# This is a generated file; do not edit or check into version control.
|
||||||
|
export "FLUTTER_ROOT=/Users/ewindmill/development/flutter"
|
||||||
|
export "FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery"
|
||||||
|
export "FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework"
|
||||||
|
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
|
||||||
|
export "FLUTTER_BUILD_DIR=build"
|
||||||
|
export "FLUTTER_BUILD_NAME=1.0.0"
|
||||||
|
export "FLUTTER_BUILD_NUMBER=1"
|
||||||
|
export "DART_OBFUSCATION=false"
|
||||||
|
export "TRACK_WIDGET_CREATION=true"
|
||||||
|
export "TREE_SHAKE_ICONS=false"
|
||||||
|
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
FLUTTER_ROOT=/Users/ewindmill/development/flutter
|
||||||
|
FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery
|
||||||
|
FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework
|
||||||
|
COCOAPODS_PARALLEL_CODE_SIGN=true
|
||||||
|
FLUTTER_BUILD_DIR=build
|
||||||
|
FLUTTER_BUILD_NAME=1.0.0
|
||||||
|
FLUTTER_BUILD_NUMBER=1
|
||||||
|
DART_OBFUSCATION=false
|
||||||
|
TRACK_WIDGET_CREATION=true
|
||||||
|
TREE_SHAKE_ICONS=false
|
||||||
|
PACKAGE_CONFIG=.dart_tool/package_config.json
|
||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,30 +1,10 @@
|
|||||||
# This file configures the static analysis results for your project (errors,
|
analyzer:
|
||||||
# warnings, and lints).
|
exclude:
|
||||||
#
|
- build/**
|
||||||
# This enables the 'recommended' set of lints from `package:lints`.
|
- android/**
|
||||||
# This set helps identify many issues that may lead to problems when running
|
- ios/**
|
||||||
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
|
- web/**
|
||||||
# style and format.
|
- windows/**
|
||||||
#
|
- macos/**
|
||||||
# If you want a smaller set of lints you can change this to specify
|
- linux/**
|
||||||
# 'package:lints/core.yaml'. These are just the most critical lints
|
include: ../../analysis_options.yaml
|
||||||
# (the recommended set includes the core lints).
|
|
||||||
# The core lints are also what is used by pub.dev for scoring packages.
|
|
||||||
|
|
||||||
include: package:lints/recommended.yaml
|
|
||||||
|
|
||||||
# Uncomment the following section to specify additional rules.
|
|
||||||
|
|
||||||
# linter:
|
|
||||||
# rules:
|
|
||||||
# - camel_case_types
|
|
||||||
|
|
||||||
# analyzer:
|
|
||||||
# exclude:
|
|
||||||
# - path/to/excluded/files/**
|
|
||||||
|
|
||||||
# For more information about the core and recommended set of lints, see
|
|
||||||
# https://dart.dev/go/core-lints
|
|
||||||
|
|
||||||
# For additional information about configuring this file, see
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ int main(List<String> arguments) {
|
|||||||
..addOption(outputOptionName, mandatory: true, abbr: 'o');
|
..addOption(outputOptionName, mandatory: true, abbr: 'o');
|
||||||
|
|
||||||
ArgResults argResults = parser.parse(arguments);
|
ArgResults argResults = parser.parse(arguments);
|
||||||
final String inputFilePath = argResults[inputOptionName];
|
final String inputFilePath = argResults[inputOptionName] as String;
|
||||||
final String outputFilePath = argResults[outputOptionName];
|
final String outputFilePath = argResults[outputOptionName] as String;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final Image image = decodeImage(File(inputFilePath).readAsBytesSync())!;
|
final Image image = decodeImage(File(inputFilePath).readAsBytesSync())!;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:asset_transformation/main.dart';
|
import 'package:asset_transformation/main.dart';
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('app can render without exceptions', (WidgetTester tester) async {
|
testWidgets('app can render without exceptions', (tester) async {
|
||||||
await tester.pumpWidget(const MainApp());
|
await tester.pumpWidget(const MainApp());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
- combinators_ordering
|
- combinators_ordering
|
||||||
@@ -9,3 +7,14 @@ linter:
|
|||||||
- prefer_final_in_for_each
|
- prefer_final_in_for_each
|
||||||
- prefer_final_locals
|
- prefer_final_locals
|
||||||
- prefer_relative_imports
|
- prefer_relative_imports
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ class BookingRepositoryRemote implements BookingRepository {
|
|||||||
.map((activity) => activity.ref)
|
.map((activity) => activity.ref)
|
||||||
.toList(),
|
.toList(),
|
||||||
);
|
);
|
||||||
return _apiClient.postBooking(bookingApiModel);
|
return await _apiClient.postBooking(bookingApiModel);
|
||||||
} on Exception catch (e) {
|
} on Exception catch (e) {
|
||||||
return Result.error(e);
|
return Result.error(e);
|
||||||
}
|
}
|
||||||
@@ -121,7 +121,7 @@ class BookingRepositoryRemote implements BookingRepository {
|
|||||||
@override
|
@override
|
||||||
Future<Result<void>> delete(int id) async {
|
Future<Result<void>> delete(int id) async {
|
||||||
try {
|
try {
|
||||||
return _apiClient.deleteBooking(id);
|
return await _apiClient.deleteBooking(id);
|
||||||
} on Exception catch (e) {
|
} on Exception catch (e) {
|
||||||
return Result.error(e);
|
return Result.error(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ class BookingCreateUseCase {
|
|||||||
switch (saveBookingResult) {
|
switch (saveBookingResult) {
|
||||||
case Ok<void>():
|
case Ok<void>():
|
||||||
_log.fine('Booking saved successfully');
|
_log.fine('Booking saved successfully');
|
||||||
break;
|
|
||||||
case Error<void>():
|
case Error<void>():
|
||||||
_log.warning('Failed to save booking', saveBookingResult.error);
|
_log.warning('Failed to save booking', saveBookingResult.error);
|
||||||
return Result.error(saveBookingResult.error);
|
return Result.error(saveBookingResult.error);
|
||||||
|
|||||||
@@ -46,9 +46,7 @@ GoRouter router(AuthRepository authRepository) => GoRouter(
|
|||||||
authRepository: context.read(),
|
authRepository: context.read(),
|
||||||
itineraryConfigRepository: context.read(),
|
itineraryConfigRepository: context.read(),
|
||||||
);
|
);
|
||||||
return HomeScreenContainer(
|
return HomeScreenContainer(logoutViewModel: logoutViewModel);
|
||||||
logoutViewModel: logoutViewModel,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
routes: [
|
routes: [
|
||||||
GoRoute(
|
GoRoute(
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
class AppLocalization {
|
class AppLocalization {
|
||||||
static AppLocalization of(BuildContext context) {
|
static AppLocalization of(BuildContext context) {
|
||||||
return Localizations.of(context, AppLocalization);
|
return Localizations.of<AppLocalization>(context, AppLocalization)!;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const _strings = <String, String>{
|
static const _strings = <String, String>{
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ import '../view_models/home_viewmodel.dart';
|
|||||||
import 'home_screen.dart';
|
import 'home_screen.dart';
|
||||||
|
|
||||||
class HomeScreenContainer extends StatefulWidget {
|
class HomeScreenContainer extends StatefulWidget {
|
||||||
const HomeScreenContainer({
|
const HomeScreenContainer({super.key, required this.logoutViewModel});
|
||||||
super.key,
|
|
||||||
required this.logoutViewModel,
|
|
||||||
});
|
|
||||||
|
|
||||||
final LogoutViewModel logoutViewModel;
|
final LogoutViewModel logoutViewModel;
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class SearchFormContinent extends StatelessWidget {
|
|||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
itemCount: viewModel.continents.length,
|
itemCount: viewModel.continents.length,
|
||||||
padding: Dimens.of(context).edgeInsetsScreenHorizontal,
|
padding: Dimens.of(context).edgeInsetsScreenHorizontal,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (context, index) {
|
||||||
final Continent(:imageUrl, :name) = viewModel.continents[index];
|
final Continent(:imageUrl, :name) = viewModel.continents[index];
|
||||||
return _CarouselItem(
|
return _CarouselItem(
|
||||||
key: ValueKey(name),
|
key: ValueKey(name),
|
||||||
@@ -61,7 +61,7 @@ class SearchFormContinent extends StatelessWidget {
|
|||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
separatorBuilder: (BuildContext context, int index) {
|
separatorBuilder: (context, index) {
|
||||||
return const SizedBox(width: 8);
|
return const SizedBox(width: 8);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -5,13 +5,11 @@
|
|||||||
import FlutterMacOS
|
import FlutterMacOS
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
import path_provider_foundation
|
|
||||||
import share_plus
|
import share_plus
|
||||||
import shared_preferences_foundation
|
import shared_preferences_foundation
|
||||||
import sqflite_darwin
|
import sqflite_darwin
|
||||||
|
|
||||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
|
||||||
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
|
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
|
||||||
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
|
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
|
||||||
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
|
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should load screen', (WidgetTester tester) async {
|
testWidgets('should load screen', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(ActivitiesScreen), findsOneWidget);
|
expect(find.byType(ActivitiesScreen), findsOneWidget);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should list activity', (WidgetTester tester) async {
|
testWidgets('should list activity', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(ActivityEntry), findsOneWidget);
|
expect(find.byType(ActivityEntry), findsOneWidget);
|
||||||
@@ -60,9 +60,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should select activity and confirm', (
|
testWidgets('should select activity and confirm', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
// Select one activity
|
// Select one activity
|
||||||
|
|||||||
@@ -32,14 +32,14 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should load screen', (WidgetTester tester) async {
|
testWidgets('should load screen', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(LoginScreen), findsOneWidget);
|
expect(find.byType(LoginScreen), findsOneWidget);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should perform login', (WidgetTester tester) async {
|
testWidgets('should perform login', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
|
|||||||
@@ -43,14 +43,14 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should load widget', (WidgetTester tester) async {
|
testWidgets('should load widget', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(LogoutButton), findsOneWidget);
|
expect(find.byType(LogoutButton), findsOneWidget);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should perform logout', (WidgetTester tester) async {
|
testWidgets('should perform logout', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:compass_app/domain/models/itinerary_config/itinerary_config.dart';
|
import 'package:compass_app/domain/models/itinerary_config/itinerary_config.dart';
|
||||||
import 'package:compass_app/domain/use_cases/booking/booking_create_use_case.dart';
|
import 'package:compass_app/domain/use_cases/booking/booking_create_use_case.dart';
|
||||||
import 'package:compass_app/domain/use_cases/booking/booking_share_use_case.dart';
|
import 'package:compass_app/domain/use_cases/booking/booking_share_use_case.dart';
|
||||||
@@ -62,20 +64,20 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should load screen', (WidgetTester tester) async {
|
testWidgets('should load screen', (tester) async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(BookingScreen), findsOneWidget);
|
expect(find.byType(BookingScreen), findsOneWidget);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should display booking from ID', (WidgetTester tester) async {
|
testWidgets('should display booking from ID', (tester) async {
|
||||||
// Add a booking to repository
|
// Add a booking to repository
|
||||||
bookingRepository.createBooking(kBooking);
|
unawaited(bookingRepository.createBooking(kBooking));
|
||||||
|
|
||||||
// Load screen
|
// Load screen
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
// Load booking with ID 0
|
// Load booking with ID 0
|
||||||
viewModel.loadBooking.execute(0);
|
unawaited(viewModel.loadBooking.execute(0));
|
||||||
|
|
||||||
// Wait for booking to load
|
// Wait for booking to load
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
@@ -84,13 +86,11 @@ void main() {
|
|||||||
expect(find.text(kBooking.destination.tags.first), findsOneWidget);
|
expect(find.text(kBooking.destination.tags.first), findsOneWidget);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should create booking from itinerary config', (
|
testWidgets('should create booking from itinerary config', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
// Create a new booking from stored itinerary config
|
// Create a new booking from stored itinerary config
|
||||||
viewModel.createBooking.execute();
|
unawaited(viewModel.createBooking.execute());
|
||||||
|
|
||||||
// Wait for booking to load
|
// Wait for booking to load
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
@@ -102,10 +102,10 @@ void main() {
|
|||||||
expect(bookingRepository.bookings.length, 1);
|
expect(bookingRepository.bookings.length, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should share booking', (WidgetTester tester) async {
|
testWidgets('should share booking', (tester) async {
|
||||||
bookingRepository.createBooking(kBooking);
|
unawaited(bookingRepository.createBooking(kBooking));
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
viewModel.loadBooking.execute(0);
|
unawaited(viewModel.loadBooking.execute(0));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
await tester.tap(find.byKey(const Key('share-button')));
|
await tester.tap(find.byKey(const Key('share-button')));
|
||||||
expect(shared, true);
|
expect(shared, true);
|
||||||
|
|||||||
@@ -43,10 +43,7 @@ void main() {
|
|||||||
Future<void> loadWidget(WidgetTester tester) async {
|
Future<void> loadWidget(WidgetTester tester) async {
|
||||||
await testApp(
|
await testApp(
|
||||||
tester,
|
tester,
|
||||||
HomeScreen(
|
HomeScreen(viewModel: viewModel, logoutViewModel: logoutViewModel),
|
||||||
viewModel: viewModel,
|
|
||||||
logoutViewModel: logoutViewModel,
|
|
||||||
),
|
|
||||||
goRouter: goRouter,
|
goRouter: goRouter,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,14 +42,14 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should load screen', (WidgetTester tester) async {
|
testWidgets('should load screen', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
expect(find.byType(ResultsScreen), findsOneWidget);
|
expect(find.byType(ResultsScreen), findsOneWidget);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should display destination', (WidgetTester tester) async {
|
testWidgets('should display destination', (tester) async {
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
@@ -62,9 +62,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should tap and navigate to activities', (
|
testWidgets('should tap and navigate to activities', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await mockNetworkImages(() async {
|
await mockNetworkImages(() async {
|
||||||
await loadScreen(tester);
|
await loadScreen(tester);
|
||||||
|
|
||||||
|
|||||||
@@ -25,9 +25,7 @@ void main() {
|
|||||||
await testApp(tester, SearchFormContinent(viewModel: viewModel));
|
await testApp(tester, SearchFormContinent(viewModel: viewModel));
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('Should load and select continent', (
|
testWidgets('Should load and select continent', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormContinent), findsOneWidget);
|
expect(find.byType(SearchFormContinent), findsOneWidget);
|
||||||
|
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ void main() {
|
|||||||
await testApp(tester, SearchFormDate(viewModel: viewModel));
|
await testApp(tester, SearchFormDate(viewModel: viewModel));
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('should display date in different month', (
|
testWidgets('should display date in different month', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormDate), findsOneWidget);
|
expect(find.byType(SearchFormDate), findsOneWidget);
|
||||||
|
|
||||||
@@ -45,9 +43,7 @@ void main() {
|
|||||||
expect(find.text('12 Jun - 23 Jul'), findsOneWidget);
|
expect(find.text('12 Jun - 23 Jul'), findsOneWidget);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('should display date in same month', (
|
testWidgets('should display date in same month', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormDate), findsOneWidget);
|
expect(find.byType(SearchFormDate), findsOneWidget);
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ void main() {
|
|||||||
await testApp(tester, SearchFormGuests(viewModel: viewModel));
|
await testApp(tester, SearchFormGuests(viewModel: viewModel));
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('Increase number of guests', (WidgetTester tester) async {
|
testWidgets('Increase number of guests', (tester) async {
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormGuests), findsOneWidget);
|
expect(find.byType(SearchFormGuests), findsOneWidget);
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ void main() {
|
|||||||
expect(find.text('1'), findsOneWidget);
|
expect(find.text('1'), findsOneWidget);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('Decrease number of guests', (WidgetTester tester) async {
|
testWidgets('Decrease number of guests', (tester) async {
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormGuests), findsOneWidget);
|
expect(find.byType(SearchFormGuests), findsOneWidget);
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('Should fill form and perform search', (
|
testWidgets('Should fill form and perform search', (tester) async {
|
||||||
WidgetTester tester,
|
|
||||||
) async {
|
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormScreen), findsOneWidget);
|
expect(find.byType(SearchFormScreen), findsOneWidget);
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testWidgets('Should be enabled and allow tap', (WidgetTester tester) async {
|
testWidgets('Should be enabled and allow tap', (tester) async {
|
||||||
await loadWidget(tester);
|
await loadWidget(tester);
|
||||||
expect(find.byType(SearchFormSubmit), findsOneWidget);
|
expect(find.byType(SearchFormSubmit), findsOneWidget);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:compass_app/utils/command.dart';
|
import 'package:compass_app/utils/command.dart';
|
||||||
import 'package:compass_app/utils/result.dart';
|
import 'package:compass_app/utils/result.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
@@ -53,10 +55,10 @@ void main() {
|
|||||||
final future = command.execute();
|
final future = command.execute();
|
||||||
|
|
||||||
// Run multiple times
|
// Run multiple times
|
||||||
command.execute();
|
unawaited(command.execute());
|
||||||
command.execute();
|
unawaited(command.execute());
|
||||||
command.execute();
|
unawaited(command.execute());
|
||||||
command.execute();
|
unawaited(command.execute());
|
||||||
|
|
||||||
// Await execution
|
// Await execution
|
||||||
await future;
|
await future;
|
||||||
|
|||||||
19
compass_app/server/analysis_options.yaml
Normal file
19
compass_app/server/analysis_options.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
linter:
|
||||||
|
rules:
|
||||||
|
- combinators_ordering
|
||||||
|
- directives_ordering
|
||||||
|
- omit_local_variable_types
|
||||||
|
- prefer_final_fields
|
||||||
|
- prefer_final_in_for_each
|
||||||
|
- prefer_final_locals
|
||||||
|
- prefer_relative_imports
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
@@ -35,5 +35,6 @@ void main(List<String> args) async {
|
|||||||
// For running in containers, we respect the PORT environment variable.
|
// For running in containers, we respect the PORT environment variable.
|
||||||
final port = int.parse(Platform.environment['PORT'] ?? '8080');
|
final port = int.parse(Platform.environment['PORT'] ?? '8080');
|
||||||
final server = await serve(handler, ip, port);
|
final server = await serve(handler, ip, port);
|
||||||
|
// ignore: avoid_print
|
||||||
print('Server listening on port ${server.port}');
|
print('Server listening on port ${server.port}');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
include: ../analysis_options.yaml
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at https://dart.dev/lints.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ class GalleryHome extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
tabBuilder: (BuildContext context, int index) {
|
tabBuilder: (context, index) {
|
||||||
return CupertinoTabView(
|
return CupertinoTabView(
|
||||||
builder: (BuildContext context) {
|
builder: (context) {
|
||||||
return switch (index) {
|
return switch (index) {
|
||||||
0 => const WidgetsPage(),
|
0 => const WidgetsPage(),
|
||||||
1 => SettingsPage(
|
1 => SettingsPage(
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
title: const Text('Dark Mode'),
|
title: const Text('Dark Mode'),
|
||||||
trailing: CupertinoSwitch(
|
trailing: CupertinoSwitch(
|
||||||
value: isDarkMode,
|
value: isDarkMode,
|
||||||
onChanged: (bool isActive) {
|
onChanged: (isActive) {
|
||||||
setState(() {
|
setState(() {
|
||||||
isDarkMode = isActive;
|
isDarkMode = isActive;
|
||||||
widget.onThemeChange(isActive);
|
widget.onThemeChange(isActive);
|
||||||
@@ -70,7 +70,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
value: _textSize,
|
value: _textSize,
|
||||||
min: 0.5,
|
min: 0.5,
|
||||||
max: 1.5,
|
max: 1.5,
|
||||||
onChanged: (double value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_textSize = value;
|
_textSize = value;
|
||||||
});
|
});
|
||||||
@@ -103,7 +103,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
showCupertinoDialog<void>(
|
showCupertinoDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Reset Settings'),
|
title: const Text('Reset Settings'),
|
||||||
content: const Text(
|
content: const Text(
|
||||||
'Are you sure you want to reset all settings?',
|
'Are you sure you want to reset all settings?',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class ActionSheetPage extends StatelessWidget {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
showCupertinoModalPopup<void>(
|
showCupertinoModalPopup<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) => CupertinoActionSheet(
|
builder: (context) => CupertinoActionSheet(
|
||||||
title: const Text('Title'),
|
title: const Text('Title'),
|
||||||
message: const Text('Message'),
|
message: const Text('Message'),
|
||||||
actions: <CupertinoActionSheetAction>[
|
actions: <CupertinoActionSheetAction>[
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class AlertDialogPage extends StatelessWidget {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
showCupertinoDialog<void>(
|
showCupertinoDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Alert'),
|
title: const Text('Alert'),
|
||||||
content: const Text('This is a sample alert dialog.'),
|
content: const Text('This is a sample alert dialog.'),
|
||||||
actions: <CupertinoDialogAction>[
|
actions: <CupertinoDialogAction>[
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class _CheckboxPageState extends State<CheckboxPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: CupertinoCheckbox(
|
child: CupertinoCheckbox(
|
||||||
value: _value,
|
value: _value,
|
||||||
onChanged: (bool? value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_value = value!;
|
_value = value!;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class DatePickerPage extends StatelessWidget {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 200,
|
height: 200,
|
||||||
child: CupertinoDatePicker(onDateTimeChanged: (DateTime newDate) {}),
|
child: CupertinoDatePicker(onDateTimeChanged: (newDate) {}),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class PickerPage extends StatelessWidget {
|
|||||||
height: 200,
|
height: 200,
|
||||||
child: CupertinoPicker(
|
child: CupertinoPicker(
|
||||||
itemExtent: 32,
|
itemExtent: 32,
|
||||||
onSelectedItemChanged: (int index) {},
|
onSelectedItemChanged: (index) {},
|
||||||
children: const <Widget>[Text('One'), Text('Two'), Text('Three')],
|
children: const <Widget>[Text('One'), Text('Two'), Text('Three')],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class PopupSurfacePage extends StatelessWidget {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
showCupertinoModalPopup<void>(
|
showCupertinoModalPopup<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (context) {
|
||||||
return CupertinoPopupSurface(
|
return CupertinoPopupSurface(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class _RadioPageState extends State<RadioPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: RadioGroup(
|
child: RadioGroup(
|
||||||
groupValue: _selectedValue,
|
groupValue: _selectedValue,
|
||||||
onChanged: (int? value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_selectedValue = value!;
|
_selectedValue = value!;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ class ScrollbarPage extends StatelessWidget {
|
|||||||
child: ListView.separated(
|
child: ListView.separated(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
itemCount: 100,
|
itemCount: 100,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (context, index) {
|
||||||
return CupertinoListTile(title: Text('Item $index'));
|
return CupertinoListTile(title: Text('Item $index'));
|
||||||
},
|
},
|
||||||
separatorBuilder: (BuildContext context, int index) {
|
separatorBuilder: (context, index) {
|
||||||
return Container(height: 1, color: CupertinoColors.opaqueSeparator);
|
return Container(height: 1, color: CupertinoColors.opaqueSeparator);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class _SegmentedControlPageState extends State<SegmentedControlPage> {
|
|||||||
1: Text('Two'),
|
1: Text('Two'),
|
||||||
2: Text('Three'),
|
2: Text('Three'),
|
||||||
},
|
},
|
||||||
onValueChanged: (int val) {
|
onValueChanged: (val) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_selectedIndex = val;
|
_selectedIndex = val;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,20 +13,21 @@ class SheetPage extends StatelessWidget {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).push(
|
Navigator.of(context).push(
|
||||||
CupertinoSheetRoute<void>(
|
CupertinoSheetRoute<void>(
|
||||||
builder: (BuildContext context) {
|
scrollableBuilder:
|
||||||
return CupertinoPageScaffold(
|
(context, controller) {
|
||||||
navigationBar: CupertinoNavigationBar(
|
return CupertinoPageScaffold(
|
||||||
middle: const Text('Sheet'),
|
navigationBar: CupertinoNavigationBar(
|
||||||
trailing: GestureDetector(
|
middle: const Text('Sheet'),
|
||||||
child: const Icon(CupertinoIcons.xmark),
|
trailing: GestureDetector(
|
||||||
onTap: () {
|
child: const Icon(CupertinoIcons.xmark),
|
||||||
Navigator.of(context).pop();
|
onTap: () {
|
||||||
},
|
Navigator.of(context).pop();
|
||||||
),
|
},
|
||||||
),
|
),
|
||||||
child: const Center(child: Text('This is a sheet')),
|
),
|
||||||
);
|
child: const Center(child: Text('This is a sheet')),
|
||||||
},
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class _SliderPageState extends State<SliderPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: CupertinoSlider(
|
child: CupertinoSlider(
|
||||||
value: _value,
|
value: _value,
|
||||||
onChanged: (double value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_value = value;
|
_value = value;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class _SlidingSegmentedControlPageState
|
|||||||
1: Text('Two'),
|
1: Text('Two'),
|
||||||
2: Text('Three'),
|
2: Text('Three'),
|
||||||
},
|
},
|
||||||
onValueChanged: (int? value) {
|
onValueChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_groupValue = value;
|
_groupValue = value;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class _SwitchPageState extends State<SwitchPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: CupertinoSwitch(
|
child: CupertinoSwitch(
|
||||||
value: _value,
|
value: _value,
|
||||||
onChanged: (bool value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_value = value;
|
_value = value;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class TimePickerPage extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 200,
|
height: 200,
|
||||||
child: CupertinoTimerPicker(
|
child: CupertinoTimerPicker(
|
||||||
onTimerDurationChanged: (Duration newDuration) {},
|
onTimerDurationChanged: (newDuration) {},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class CustomCupertinoListTile extends StatelessWidget {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.of(context).push(
|
Navigator.of(context).push(
|
||||||
CupertinoPageRoute<void>(
|
CupertinoPageRoute<void>(
|
||||||
builder: (BuildContext context) {
|
builder: (context) {
|
||||||
return WidgetDetailPage(title: title);
|
return WidgetDetailPage(title: title);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,28 +1,5 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
include: ../analysis_options.yaml
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at https://dart.dev/lints.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
rules:
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
sort_pub_dependencies: true
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ class _EventDetailState extends State<EventDetail> {
|
|||||||
onChanged: (value) => event.title = value,
|
onChanged: (value) => event.title = value,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!widget.isEditing) Text(event.title, style: titleStyle),
|
if (!widget.isEditing)
|
||||||
|
Text(event.title, style: titleStyle),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class EventList extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Consumer<EventData>(
|
return Consumer<EventData>(
|
||||||
builder: (BuildContext context, EventData events, Widget? child) {
|
builder: (context, events, child) {
|
||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
// TODO(mit-mit): Avoid having to pass nav bar manually.
|
// TODO(mit-mit): Avoid having to pass nav bar manually.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ environment:
|
|||||||
sdk: ^3.9.0-0
|
sdk: ^3.9.0-0
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
cupertino_icons: ^1.0.8
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
cupertino_icons: ^1.0.8
|
|
||||||
intl:
|
intl:
|
||||||
provider:
|
provider:
|
||||||
uuid:
|
uuid:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../analysis_options.yaml
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../../analysis_options.yaml
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,28 +1 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
include: ../analysis_options.yaml
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at https://dart.dev/lints.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -166,7 +166,9 @@ class _ExampleState extends State<Example> {
|
|||||||
try {
|
try {
|
||||||
final prompt = StringBuffer();
|
final prompt = StringBuffer();
|
||||||
prompt.writeln(message);
|
prompt.writeln(message);
|
||||||
final response = await callWithActions([Content.text(prompt.toString())]);
|
final response = await callWithActions([
|
||||||
|
Content.text(prompt.toString()),
|
||||||
|
]);
|
||||||
if (response.text != null) {
|
if (response.text != null) {
|
||||||
addMessage(Sender.system, response.text!);
|
addMessage(Sender.system, response.text!);
|
||||||
} else {
|
} else {
|
||||||
@@ -209,7 +211,6 @@ class _ExampleState extends State<Example> {
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case 'change_theme_mode':
|
case 'change_theme_mode':
|
||||||
final mode = args['mode'] as String;
|
final mode = args['mode'] as String;
|
||||||
themeMode.value = switch (mode) {
|
themeMode.value = switch (mode) {
|
||||||
@@ -224,7 +225,6 @@ class _ExampleState extends State<Example> {
|
|||||||
'message': 'theme mode updated',
|
'message': 'theme mode updated',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
break;
|
|
||||||
case 'change_text_scale_factor':
|
case 'change_text_scale_factor':
|
||||||
final value = args['scale'] as num;
|
final value = args['scale'] as num;
|
||||||
textScaleFactor.value = value.toDouble();
|
textScaleFactor.value = value.toDouble();
|
||||||
@@ -234,7 +234,6 @@ class _ExampleState extends State<Example> {
|
|||||||
'message': 'font scale updated',
|
'message': 'font scale updated',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class ApiKeyWidget extends StatelessWidget {
|
|||||||
ApiKeyWidget({super.key, required this.onSubmitted, required this.title});
|
ApiKeyWidget({super.key, required this.onSubmitted, required this.title});
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
final ValueChanged onSubmitted;
|
final ValueChanged<String> onSubmitted;
|
||||||
final _textController = TextEditingController();
|
final _textController = TextEditingController();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
exclude:
|
exclude:
|
||||||
- lib/src/*.g.dart
|
- lib/src/*.g.dart
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
include: package:flutter_lints/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
analyzer:
|
||||||
# https://dart.dev/guides/language/analysis-options
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
|
|||||||
@@ -1,29 +1 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
include: ../../analysis_options.yaml
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at
|
|
||||||
# https://dart-lang.github.io/linter/lints/index.html.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class _HomeState extends State<Home> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
void runPedometer() async {
|
Future<void> runPedometer() async {
|
||||||
final now = DateTime.now();
|
final now = DateTime.now();
|
||||||
hourlySteps = await StepsRepo.instance.getSteps();
|
hourlySteps = await StepsRepo.instance.getSteps();
|
||||||
lastUpdated = now;
|
lastUpdated = now;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class _IOSStepsRepo implements StepsRepo {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
final handlers = [];
|
final handlers = <ffi.Finalizable>[];
|
||||||
final futures = <Future<Steps?>>[];
|
final futures = <Future<Steps?>>[];
|
||||||
final now = DateTime.now();
|
final now = DateTime.now();
|
||||||
|
|
||||||
@@ -102,8 +102,8 @@ class _IOSStepsRepo implements StepsRepo {
|
|||||||
|
|
||||||
final handler = helpLib.wrapCallback(
|
final handler = helpLib.wrapCallback(
|
||||||
pd.ObjCBlock_ffiVoid_CMPedometerData_NSError.listener(lib, (
|
pd.ObjCBlock_ffiVoid_CMPedometerData_NSError.listener(lib, (
|
||||||
pd.CMPedometerData? result,
|
result,
|
||||||
pd.NSError? error,
|
error,
|
||||||
) {
|
) {
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
final stepCount = result.numberOfSteps.intValue;
|
final stepCount = result.numberOfSteps.intValue;
|
||||||
|
|||||||
@@ -254,7 +254,8 @@ final class $HealthConnectClient$Companion$NullableType
|
|||||||
|
|
||||||
@core$_.override
|
@core$_.override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
return other.runtimeType == ($HealthConnectClient$Companion$NullableType) &&
|
return other.runtimeType ==
|
||||||
|
($HealthConnectClient$Companion$NullableType) &&
|
||||||
other is $HealthConnectClient$Companion$NullableType;
|
other is $HealthConnectClient$Companion$NullableType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -406,7 +407,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
jni$_.JList<jni$_.JObject?> list,
|
jni$_.JList<jni$_.JObject?> list,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$list = list.reference;
|
final _$list = list.reference;
|
||||||
_insertRecords(
|
_insertRecords(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -459,7 +462,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
jni$_.JList<jni$_.JObject?> list,
|
jni$_.JList<jni$_.JObject?> list,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$list = list.reference;
|
final _$list = list.reference;
|
||||||
_updateRecords(
|
_updateRecords(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -521,7 +526,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
jni$_.JList<jni$_.JString?> list1,
|
jni$_.JList<jni$_.JString?> list1,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$kClass = kClass.reference;
|
final _$kClass = kClass.reference;
|
||||||
final _$list = list.reference;
|
final _$list = list.reference;
|
||||||
final _$list1 = list1.reference;
|
final _$list1 = list1.reference;
|
||||||
@@ -584,7 +591,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
TimeRangeFilter timeRangeFilter,
|
TimeRangeFilter timeRangeFilter,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$kClass = kClass.reference;
|
final _$kClass = kClass.reference;
|
||||||
final _$timeRangeFilter = timeRangeFilter.reference;
|
final _$timeRangeFilter = timeRangeFilter.reference;
|
||||||
_deleteRecords$1(
|
_deleteRecords$1(
|
||||||
@@ -646,7 +655,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
required jni$_.JObjType<$T> T,
|
required jni$_.JObjType<$T> T,
|
||||||
}) async {
|
}) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$kClass = kClass.reference;
|
final _$kClass = kClass.reference;
|
||||||
final _$string = string.reference;
|
final _$string = string.reference;
|
||||||
_readRecord(
|
_readRecord(
|
||||||
@@ -709,7 +720,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
])
|
])
|
||||||
as jni$_.JObjType<$T>;
|
as jni$_.JObjType<$T>;
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$readRecordsRequest = readRecordsRequest.reference;
|
final _$readRecordsRequest = readRecordsRequest.reference;
|
||||||
_readRecords(
|
_readRecords(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -762,7 +775,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
AggregateRequest aggregateRequest,
|
AggregateRequest aggregateRequest,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$aggregateRequest = aggregateRequest.reference;
|
final _$aggregateRequest = aggregateRequest.reference;
|
||||||
_aggregate(
|
_aggregate(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -815,7 +830,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
|
AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$aggregateGroupByDurationRequest =
|
final _$aggregateGroupByDurationRequest =
|
||||||
aggregateGroupByDurationRequest.reference;
|
aggregateGroupByDurationRequest.reference;
|
||||||
_aggregateGroupByDuration(
|
_aggregateGroupByDuration(
|
||||||
@@ -873,7 +890,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
|
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$aggregateGroupByPeriodRequest =
|
final _$aggregateGroupByPeriodRequest =
|
||||||
aggregateGroupByPeriodRequest.reference;
|
aggregateGroupByPeriodRequest.reference;
|
||||||
_aggregateGroupByPeriod(
|
_aggregateGroupByPeriod(
|
||||||
@@ -931,7 +950,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
ChangesTokenRequest changesTokenRequest,
|
ChangesTokenRequest changesTokenRequest,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$changesTokenRequest = changesTokenRequest.reference;
|
final _$changesTokenRequest = changesTokenRequest.reference;
|
||||||
_getChangesToken(
|
_getChangesToken(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -990,7 +1011,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
jni$_.JObject iterable,
|
jni$_.JObject iterable,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$string = string.reference;
|
final _$string = string.reference;
|
||||||
final _$iterable = iterable.reference;
|
final _$iterable = iterable.reference;
|
||||||
_registerForDataNotifications(
|
_registerForDataNotifications(
|
||||||
@@ -1045,7 +1068,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
jni$_.JString string,
|
jni$_.JString string,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$string = string.reference;
|
final _$string = string.reference;
|
||||||
_unregisterFromDataNotifications(
|
_unregisterFromDataNotifications(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -1096,7 +1121,9 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
core$_.Future<jni$_.JObject> getChanges(jni$_.JString string) async {
|
core$_.Future<jni$_.JObject> getChanges(jni$_.JString string) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$string = string.reference;
|
final _$string = string.reference;
|
||||||
_getChanges(
|
_getChanges(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -1273,13 +1300,21 @@ class HealthConnectClient extends jni$_.JObject {
|
|||||||
) {
|
) {
|
||||||
return _$invokeMethod(
|
return _$invokeMethod(
|
||||||
port,
|
port,
|
||||||
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
|
jni$_.MethodInvocation.fromAddresses(
|
||||||
|
0,
|
||||||
|
descriptor.address,
|
||||||
|
args.address,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final jni$_.Pointer<
|
static final jni$_.Pointer<
|
||||||
jni$_.NativeFunction<
|
jni$_.NativeFunction<
|
||||||
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
|
jni$_.JObjectPtr Function(
|
||||||
|
jni$_.Int64,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
||||||
@@ -1872,9 +1907,15 @@ final class _$HealthConnectClient with $HealthConnectClient {
|
|||||||
jni$_.JObject continuation,
|
jni$_.JObject continuation,
|
||||||
)
|
)
|
||||||
_registerForDataNotifications;
|
_registerForDataNotifications;
|
||||||
final jni$_.JObject Function(jni$_.JString string, jni$_.JObject continuation)
|
final jni$_.JObject Function(
|
||||||
|
jni$_.JString string,
|
||||||
|
jni$_.JObject continuation,
|
||||||
|
)
|
||||||
_unregisterFromDataNotifications;
|
_unregisterFromDataNotifications;
|
||||||
final jni$_.JObject Function(jni$_.JString string, jni$_.JObject continuation)
|
final jni$_.JObject Function(
|
||||||
|
jni$_.JString string,
|
||||||
|
jni$_.JObject continuation,
|
||||||
|
)
|
||||||
_getChanges;
|
_getChanges;
|
||||||
final bool Function(Context context, jni$_.JList<jni$_.JString?> list)
|
final bool Function(Context context, jni$_.JList<jni$_.JString?> list)
|
||||||
_isAvailable;
|
_isAvailable;
|
||||||
@@ -1957,7 +1998,10 @@ final class _$HealthConnectClient with $HealthConnectClient {
|
|||||||
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
|
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
|
||||||
jni$_.JObject continuation,
|
jni$_.JObject continuation,
|
||||||
) {
|
) {
|
||||||
return _aggregateGroupByPeriod(aggregateGroupByPeriodRequest, continuation);
|
return _aggregateGroupByPeriod(
|
||||||
|
aggregateGroupByPeriodRequest,
|
||||||
|
continuation,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
jni$_.JObject getChangesToken(
|
jni$_.JObject getChangesToken(
|
||||||
@@ -2299,7 +2343,9 @@ class PermissionController extends jni$_.JObject {
|
|||||||
jni$_.JSet<jni$_.JObject?> set,
|
jni$_.JSet<jni$_.JObject?> set,
|
||||||
) async {
|
) async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
final _$set = set.reference;
|
final _$set = set.reference;
|
||||||
_getGrantedPermissions(
|
_getGrantedPermissions(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -2351,7 +2397,9 @@ class PermissionController extends jni$_.JObject {
|
|||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
core$_.Future<jni$_.JObject> revokeAllPermissions() async {
|
core$_.Future<jni$_.JObject> revokeAllPermissions() async {
|
||||||
final $p = jni$_.ReceivePort();
|
final $p = jni$_.ReceivePort();
|
||||||
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
|
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
|
||||||
|
$p,
|
||||||
|
);
|
||||||
|
|
||||||
_revokeAllPermissions(
|
_revokeAllPermissions(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -2447,13 +2495,21 @@ class PermissionController extends jni$_.JObject {
|
|||||||
) {
|
) {
|
||||||
return _$invokeMethod(
|
return _$invokeMethod(
|
||||||
port,
|
port,
|
||||||
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
|
jni$_.MethodInvocation.fromAddresses(
|
||||||
|
0,
|
||||||
|
descriptor.address,
|
||||||
|
args.address,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final jni$_.Pointer<
|
static final jni$_.Pointer<
|
||||||
jni$_.NativeFunction<
|
jni$_.NativeFunction<
|
||||||
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
|
jni$_.JObjectPtr Function(
|
||||||
|
jni$_.Int64,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
||||||
@@ -4391,7 +4447,10 @@ class Context extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String CARRIER_CONFIG_SERVICE`
|
/// from: `static public final java.lang.String CARRIER_CONFIG_SERVICE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get CARRIER_CONFIG_SERVICE =>
|
static jni$_.JString? get CARRIER_CONFIG_SERVICE =>
|
||||||
_id_CARRIER_CONFIG_SERVICE.get(_class, const jni$_.JStringNullableType());
|
_id_CARRIER_CONFIG_SERVICE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_CLIPBOARD_SERVICE = _class.staticFieldId(
|
static final _id_CLIPBOARD_SERVICE = _class.staticFieldId(
|
||||||
r'CLIPBOARD_SERVICE',
|
r'CLIPBOARD_SERVICE',
|
||||||
@@ -4551,7 +4610,10 @@ class Context extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String FILE_INTEGRITY_SERVICE`
|
/// from: `static public final java.lang.String FILE_INTEGRITY_SERVICE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get FILE_INTEGRITY_SERVICE =>
|
static jni$_.JString? get FILE_INTEGRITY_SERVICE =>
|
||||||
_id_FILE_INTEGRITY_SERVICE.get(_class, const jni$_.JStringNullableType());
|
_id_FILE_INTEGRITY_SERVICE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_FINGERPRINT_SERVICE = _class.staticFieldId(
|
static final _id_FINGERPRINT_SERVICE = _class.staticFieldId(
|
||||||
r'FINGERPRINT_SERVICE',
|
r'FINGERPRINT_SERVICE',
|
||||||
@@ -5109,7 +5171,10 @@ class Context extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String VPN_MANAGEMENT_SERVICE`
|
/// from: `static public final java.lang.String VPN_MANAGEMENT_SERVICE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get VPN_MANAGEMENT_SERVICE =>
|
static jni$_.JString? get VPN_MANAGEMENT_SERVICE =>
|
||||||
_id_VPN_MANAGEMENT_SERVICE.get(_class, const jni$_.JStringNullableType());
|
_id_VPN_MANAGEMENT_SERVICE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_WALLPAPER_SERVICE = _class.staticFieldId(
|
static final _id_WALLPAPER_SERVICE = _class.staticFieldId(
|
||||||
r'WALLPAPER_SERVICE',
|
r'WALLPAPER_SERVICE',
|
||||||
@@ -5671,7 +5736,11 @@ class Context extends jni$_.JObject {
|
|||||||
|
|
||||||
/// from: `public abstract void setTheme(int i)`
|
/// from: `public abstract void setTheme(int i)`
|
||||||
void setTheme(int i) {
|
void setTheme(int i) {
|
||||||
_setTheme(reference.pointer, _id_setTheme as jni$_.JMethodIDPtr, i).check();
|
_setTheme(
|
||||||
|
reference.pointer,
|
||||||
|
_id_setTheme as jni$_.JMethodIDPtr,
|
||||||
|
i,
|
||||||
|
).check();
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_getTheme = _class.instanceMethodId(
|
static final _id_getTheme = _class.instanceMethodId(
|
||||||
@@ -9324,7 +9393,10 @@ class Context extends jni$_.JObject {
|
|||||||
>();
|
>();
|
||||||
|
|
||||||
/// from: `public abstract void enforceCallingPermission(java.lang.String string, java.lang.String string1)`
|
/// from: `public abstract void enforceCallingPermission(java.lang.String string, java.lang.String string1)`
|
||||||
void enforceCallingPermission(jni$_.JString? string, jni$_.JString? string1) {
|
void enforceCallingPermission(
|
||||||
|
jni$_.JString? string,
|
||||||
|
jni$_.JString? string1,
|
||||||
|
) {
|
||||||
final _$string = string?.reference ?? jni$_.jNullReference;
|
final _$string = string?.reference ?? jni$_.jNullReference;
|
||||||
final _$string1 = string1?.reference ?? jni$_.jNullReference;
|
final _$string1 = string1?.reference ?? jni$_.jNullReference;
|
||||||
_enforceCallingPermission(
|
_enforceCallingPermission(
|
||||||
@@ -9487,7 +9559,11 @@ class Context extends jni$_.JObject {
|
|||||||
>();
|
>();
|
||||||
|
|
||||||
/// from: `public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i)`
|
/// from: `public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i)`
|
||||||
void revokeUriPermission$1(jni$_.JString? string, jni$_.JObject? uri, int i) {
|
void revokeUriPermission$1(
|
||||||
|
jni$_.JString? string,
|
||||||
|
jni$_.JObject? uri,
|
||||||
|
int i,
|
||||||
|
) {
|
||||||
final _$string = string?.reference ?? jni$_.jNullReference;
|
final _$string = string?.reference ?? jni$_.jNullReference;
|
||||||
final _$uri = uri?.reference ?? jni$_.jNullReference;
|
final _$uri = uri?.reference ?? jni$_.jNullReference;
|
||||||
_revokeUriPermission$1(
|
_revokeUriPermission$1(
|
||||||
@@ -10891,7 +10967,10 @@ class Intent$ShortcutIconResource extends jni$_.JObject {
|
|||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
factory Intent$ShortcutIconResource() {
|
factory Intent$ShortcutIconResource() {
|
||||||
return Intent$ShortcutIconResource.fromReference(
|
return Intent$ShortcutIconResource.fromReference(
|
||||||
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
|
_new$(
|
||||||
|
_class.reference.pointer,
|
||||||
|
_id_new$ as jni$_.JMethodIDPtr,
|
||||||
|
).reference,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11241,7 +11320,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_BATTERY_CHANGED`
|
/// from: `static public final java.lang.String ACTION_BATTERY_CHANGED`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_BATTERY_CHANGED =>
|
static jni$_.JString? get ACTION_BATTERY_CHANGED =>
|
||||||
_id_ACTION_BATTERY_CHANGED.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_BATTERY_CHANGED.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_BATTERY_LOW = _class.staticFieldId(
|
static final _id_ACTION_BATTERY_LOW = _class.staticFieldId(
|
||||||
r'ACTION_BATTERY_LOW',
|
r'ACTION_BATTERY_LOW',
|
||||||
@@ -11367,7 +11449,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_CREATE_DOCUMENT`
|
/// from: `static public final java.lang.String ACTION_CREATE_DOCUMENT`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_CREATE_DOCUMENT =>
|
static jni$_.JString? get ACTION_CREATE_DOCUMENT =>
|
||||||
_id_ACTION_CREATE_DOCUMENT.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_CREATE_DOCUMENT.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_CREATE_REMINDER = _class.staticFieldId(
|
static final _id_ACTION_CREATE_REMINDER = _class.staticFieldId(
|
||||||
r'ACTION_CREATE_REMINDER',
|
r'ACTION_CREATE_REMINDER',
|
||||||
@@ -11377,7 +11462,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_CREATE_REMINDER`
|
/// from: `static public final java.lang.String ACTION_CREATE_REMINDER`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_CREATE_REMINDER =>
|
static jni$_.JString? get ACTION_CREATE_REMINDER =>
|
||||||
_id_ACTION_CREATE_REMINDER.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_CREATE_REMINDER.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_CREATE_SHORTCUT = _class.staticFieldId(
|
static final _id_ACTION_CREATE_SHORTCUT = _class.staticFieldId(
|
||||||
r'ACTION_CREATE_SHORTCUT',
|
r'ACTION_CREATE_SHORTCUT',
|
||||||
@@ -11387,7 +11475,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_CREATE_SHORTCUT`
|
/// from: `static public final java.lang.String ACTION_CREATE_SHORTCUT`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_CREATE_SHORTCUT =>
|
static jni$_.JString? get ACTION_CREATE_SHORTCUT =>
|
||||||
_id_ACTION_CREATE_SHORTCUT.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_CREATE_SHORTCUT.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_DATE_CHANGED = _class.staticFieldId(
|
static final _id_ACTION_DATE_CHANGED = _class.staticFieldId(
|
||||||
r'ACTION_DATE_CHANGED',
|
r'ACTION_DATE_CHANGED',
|
||||||
@@ -11649,7 +11740,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_INSTALL_FAILURE`
|
/// from: `static public final java.lang.String ACTION_INSTALL_FAILURE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_INSTALL_FAILURE =>
|
static jni$_.JString? get ACTION_INSTALL_FAILURE =>
|
||||||
_id_ACTION_INSTALL_FAILURE.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_INSTALL_FAILURE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_INSTALL_PACKAGE = _class.staticFieldId(
|
static final _id_ACTION_INSTALL_PACKAGE = _class.staticFieldId(
|
||||||
r'ACTION_INSTALL_PACKAGE',
|
r'ACTION_INSTALL_PACKAGE',
|
||||||
@@ -11659,7 +11753,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_INSTALL_PACKAGE`
|
/// from: `static public final java.lang.String ACTION_INSTALL_PACKAGE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_INSTALL_PACKAGE =>
|
static jni$_.JString? get ACTION_INSTALL_PACKAGE =>
|
||||||
_id_ACTION_INSTALL_PACKAGE.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_INSTALL_PACKAGE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_LOCALE_CHANGED = _class.staticFieldId(
|
static final _id_ACTION_LOCALE_CHANGED = _class.staticFieldId(
|
||||||
r'ACTION_LOCALE_CHANGED',
|
r'ACTION_LOCALE_CHANGED',
|
||||||
@@ -11941,7 +12038,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_MEDIA_UNMOUNTED`
|
/// from: `static public final java.lang.String ACTION_MEDIA_UNMOUNTED`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_MEDIA_UNMOUNTED =>
|
static jni$_.JString? get ACTION_MEDIA_UNMOUNTED =>
|
||||||
_id_ACTION_MEDIA_UNMOUNTED.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_MEDIA_UNMOUNTED.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_MY_PACKAGE_REPLACED = _class.staticFieldId(
|
static final _id_ACTION_MY_PACKAGE_REPLACED = _class.staticFieldId(
|
||||||
r'ACTION_MY_PACKAGE_REPLACED',
|
r'ACTION_MY_PACKAGE_REPLACED',
|
||||||
@@ -12062,7 +12162,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_PACKAGE_CHANGED`
|
/// from: `static public final java.lang.String ACTION_PACKAGE_CHANGED`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_PACKAGE_CHANGED =>
|
static jni$_.JString? get ACTION_PACKAGE_CHANGED =>
|
||||||
_id_ACTION_PACKAGE_CHANGED.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_PACKAGE_CHANGED.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_PACKAGE_DATA_CLEARED = _class.staticFieldId(
|
static final _id_ACTION_PACKAGE_DATA_CLEARED = _class.staticFieldId(
|
||||||
r'ACTION_PACKAGE_DATA_CLEARED',
|
r'ACTION_PACKAGE_DATA_CLEARED',
|
||||||
@@ -12111,7 +12214,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_PACKAGE_INSTALL`
|
/// from: `static public final java.lang.String ACTION_PACKAGE_INSTALL`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_PACKAGE_INSTALL =>
|
static jni$_.JString? get ACTION_PACKAGE_INSTALL =>
|
||||||
_id_ACTION_PACKAGE_INSTALL.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_PACKAGE_INSTALL.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_PACKAGE_NEEDS_VERIFICATION = _class.staticFieldId(
|
static final _id_ACTION_PACKAGE_NEEDS_VERIFICATION = _class.staticFieldId(
|
||||||
r'ACTION_PACKAGE_NEEDS_VERIFICATION',
|
r'ACTION_PACKAGE_NEEDS_VERIFICATION',
|
||||||
@@ -12134,7 +12240,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_PACKAGE_REMOVED`
|
/// from: `static public final java.lang.String ACTION_PACKAGE_REMOVED`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_PACKAGE_REMOVED =>
|
static jni$_.JString? get ACTION_PACKAGE_REMOVED =>
|
||||||
_id_ACTION_PACKAGE_REMOVED.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_PACKAGE_REMOVED.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_PACKAGE_REPLACED = _class.staticFieldId(
|
static final _id_ACTION_PACKAGE_REPLACED = _class.staticFieldId(
|
||||||
r'ACTION_PACKAGE_REPLACED',
|
r'ACTION_PACKAGE_REPLACED',
|
||||||
@@ -12213,7 +12322,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_POWER_CONNECTED`
|
/// from: `static public final java.lang.String ACTION_POWER_CONNECTED`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_POWER_CONNECTED =>
|
static jni$_.JString? get ACTION_POWER_CONNECTED =>
|
||||||
_id_ACTION_POWER_CONNECTED.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_POWER_CONNECTED.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_POWER_DISCONNECTED = _class.staticFieldId(
|
static final _id_ACTION_POWER_DISCONNECTED = _class.staticFieldId(
|
||||||
r'ACTION_POWER_DISCONNECTED',
|
r'ACTION_POWER_DISCONNECTED',
|
||||||
@@ -12471,7 +12583,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_SYSTEM_TUTORIAL`
|
/// from: `static public final java.lang.String ACTION_SYSTEM_TUTORIAL`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_SYSTEM_TUTORIAL =>
|
static jni$_.JString? get ACTION_SYSTEM_TUTORIAL =>
|
||||||
_id_ACTION_SYSTEM_TUTORIAL.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_SYSTEM_TUTORIAL.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_TIMEZONE_CHANGED = _class.staticFieldId(
|
static final _id_ACTION_TIMEZONE_CHANGED = _class.staticFieldId(
|
||||||
r'ACTION_TIMEZONE_CHANGED',
|
r'ACTION_TIMEZONE_CHANGED',
|
||||||
@@ -12570,7 +12685,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_USER_BACKGROUND`
|
/// from: `static public final java.lang.String ACTION_USER_BACKGROUND`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_USER_BACKGROUND =>
|
static jni$_.JString? get ACTION_USER_BACKGROUND =>
|
||||||
_id_ACTION_USER_BACKGROUND.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_USER_BACKGROUND.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_USER_FOREGROUND = _class.staticFieldId(
|
static final _id_ACTION_USER_FOREGROUND = _class.staticFieldId(
|
||||||
r'ACTION_USER_FOREGROUND',
|
r'ACTION_USER_FOREGROUND',
|
||||||
@@ -12580,7 +12698,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_USER_FOREGROUND`
|
/// from: `static public final java.lang.String ACTION_USER_FOREGROUND`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_USER_FOREGROUND =>
|
static jni$_.JString? get ACTION_USER_FOREGROUND =>
|
||||||
_id_ACTION_USER_FOREGROUND.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_USER_FOREGROUND.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_USER_INITIALIZE = _class.staticFieldId(
|
static final _id_ACTION_USER_INITIALIZE = _class.staticFieldId(
|
||||||
r'ACTION_USER_INITIALIZE',
|
r'ACTION_USER_INITIALIZE',
|
||||||
@@ -12590,7 +12711,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String ACTION_USER_INITIALIZE`
|
/// from: `static public final java.lang.String ACTION_USER_INITIALIZE`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get ACTION_USER_INITIALIZE =>
|
static jni$_.JString? get ACTION_USER_INITIALIZE =>
|
||||||
_id_ACTION_USER_INITIALIZE.get(_class, const jni$_.JStringNullableType());
|
_id_ACTION_USER_INITIALIZE.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_ACTION_USER_PRESENT = _class.staticFieldId(
|
static final _id_ACTION_USER_PRESENT = _class.staticFieldId(
|
||||||
r'ACTION_USER_PRESENT',
|
r'ACTION_USER_PRESENT',
|
||||||
@@ -12827,7 +12951,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String CATEGORY_APP_MESSAGING`
|
/// from: `static public final java.lang.String CATEGORY_APP_MESSAGING`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get CATEGORY_APP_MESSAGING =>
|
static jni$_.JString? get CATEGORY_APP_MESSAGING =>
|
||||||
_id_CATEGORY_APP_MESSAGING.get(_class, const jni$_.JStringNullableType());
|
_id_CATEGORY_APP_MESSAGING.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_CATEGORY_APP_MUSIC = _class.staticFieldId(
|
static final _id_CATEGORY_APP_MUSIC = _class.staticFieldId(
|
||||||
r'CATEGORY_APP_MUSIC',
|
r'CATEGORY_APP_MUSIC',
|
||||||
@@ -13245,7 +13372,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String EXTRA_ATTRIBUTION_TAGS`
|
/// from: `static public final java.lang.String EXTRA_ATTRIBUTION_TAGS`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get EXTRA_ATTRIBUTION_TAGS =>
|
static jni$_.JString? get EXTRA_ATTRIBUTION_TAGS =>
|
||||||
_id_EXTRA_ATTRIBUTION_TAGS.get(_class, const jni$_.JStringNullableType());
|
_id_EXTRA_ATTRIBUTION_TAGS.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_EXTRA_AUTO_LAUNCH_SINGLE_CHOICE = _class.staticFieldId(
|
static final _id_EXTRA_AUTO_LAUNCH_SINGLE_CHOICE = _class.staticFieldId(
|
||||||
r'EXTRA_AUTO_LAUNCH_SINGLE_CHOICE',
|
r'EXTRA_AUTO_LAUNCH_SINGLE_CHOICE',
|
||||||
@@ -13337,7 +13467,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String EXTRA_CHANGED_UID_LIST`
|
/// from: `static public final java.lang.String EXTRA_CHANGED_UID_LIST`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get EXTRA_CHANGED_UID_LIST =>
|
static jni$_.JString? get EXTRA_CHANGED_UID_LIST =>
|
||||||
_id_EXTRA_CHANGED_UID_LIST.get(_class, const jni$_.JStringNullableType());
|
_id_EXTRA_CHANGED_UID_LIST.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER = _class
|
static final _id_EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER = _class
|
||||||
.staticFieldId(
|
.staticFieldId(
|
||||||
@@ -13371,7 +13504,10 @@ class Intent extends jni$_.JObject {
|
|||||||
/// from: `static public final java.lang.String EXTRA_CHOSEN_COMPONENT`
|
/// from: `static public final java.lang.String EXTRA_CHOSEN_COMPONENT`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static jni$_.JString? get EXTRA_CHOSEN_COMPONENT =>
|
static jni$_.JString? get EXTRA_CHOSEN_COMPONENT =>
|
||||||
_id_EXTRA_CHOSEN_COMPONENT.get(_class, const jni$_.JStringNullableType());
|
_id_EXTRA_CHOSEN_COMPONENT.get(
|
||||||
|
_class,
|
||||||
|
const jni$_.JStringNullableType(),
|
||||||
|
);
|
||||||
|
|
||||||
static final _id_EXTRA_CHOSEN_COMPONENT_INTENT_SENDER = _class.staticFieldId(
|
static final _id_EXTRA_CHOSEN_COMPONENT_INTENT_SENDER = _class.staticFieldId(
|
||||||
r'EXTRA_CHOSEN_COMPONENT_INTENT_SENDER',
|
r'EXTRA_CHOSEN_COMPONENT_INTENT_SENDER',
|
||||||
@@ -14212,11 +14348,16 @@ class Intent extends jni$_.JObject {
|
|||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
factory Intent() {
|
factory Intent() {
|
||||||
return Intent.fromReference(
|
return Intent.fromReference(
|
||||||
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
|
_new$(
|
||||||
|
_class.reference.pointer,
|
||||||
|
_id_new$ as jni$_.JMethodIDPtr,
|
||||||
|
).reference,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_new$1 = _class.constructorId(r'(Landroid/content/Intent;)V');
|
static final _id_new$1 = _class.constructorId(
|
||||||
|
r'(Landroid/content/Intent;)V',
|
||||||
|
);
|
||||||
|
|
||||||
static final _new$1 =
|
static final _new$1 =
|
||||||
jni$_.ProtectedJniExtensions.lookup<
|
jni$_.ProtectedJniExtensions.lookup<
|
||||||
@@ -15126,7 +15267,9 @@ class Intent extends jni$_.JObject {
|
|||||||
reference.pointer,
|
reference.pointer,
|
||||||
_id_getCategories as jni$_.JMethodIDPtr,
|
_id_getCategories as jni$_.JMethodIDPtr,
|
||||||
).object<jni$_.JSet<jni$_.JString?>?>(
|
).object<jni$_.JSet<jni$_.JString?>?>(
|
||||||
const jni$_.JSetNullableType<jni$_.JString?>(jni$_.JStringNullableType()),
|
const jni$_.JSetNullableType<jni$_.JString?>(
|
||||||
|
jni$_.JStringNullableType(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15738,7 +15881,9 @@ class Intent extends jni$_.JObject {
|
|||||||
|
|
||||||
/// from: `public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string)`
|
/// from: `public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string)`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
jni$_.JArray<jni$_.JObject?>? getParcelableArrayExtra(jni$_.JString? string) {
|
jni$_.JArray<jni$_.JObject?>? getParcelableArrayExtra(
|
||||||
|
jni$_.JString? string,
|
||||||
|
) {
|
||||||
final _$string = string?.reference ?? jni$_.jNullReference;
|
final _$string = string?.reference ?? jni$_.jNullReference;
|
||||||
return _getParcelableArrayExtra(
|
return _getParcelableArrayExtra(
|
||||||
reference.pointer,
|
reference.pointer,
|
||||||
@@ -15791,7 +15936,9 @@ class Intent extends jni$_.JObject {
|
|||||||
_id_getParcelableArrayExtra$1 as jni$_.JMethodIDPtr,
|
_id_getParcelableArrayExtra$1 as jni$_.JMethodIDPtr,
|
||||||
_$string.pointer,
|
_$string.pointer,
|
||||||
_$class$.pointer,
|
_$class$.pointer,
|
||||||
).object<jni$_.JArray<$T?>?>(jni$_.JArrayNullableType<$T?>(T.nullableType));
|
).object<jni$_.JArray<$T?>?>(
|
||||||
|
jni$_.JArrayNullableType<$T?>(T.nullableType),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_getParcelableArrayListExtra = _class.instanceMethodId(
|
static final _id_getParcelableArrayListExtra = _class.instanceMethodId(
|
||||||
@@ -19146,7 +19293,10 @@ class Activity extends jni$_.JObject {
|
|||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
factory Activity() {
|
factory Activity() {
|
||||||
return Activity.fromReference(
|
return Activity.fromReference(
|
||||||
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
|
_new$(
|
||||||
|
_class.reference.pointer,
|
||||||
|
_id_new$ as jni$_.JMethodIDPtr,
|
||||||
|
).reference,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19457,10 +19607,11 @@ class Activity extends jni$_.JObject {
|
|||||||
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
|
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_registerActivityLifecycleCallbacks = _class.instanceMethodId(
|
static final _id_registerActivityLifecycleCallbacks = _class
|
||||||
r'registerActivityLifecycleCallbacks',
|
.instanceMethodId(
|
||||||
r'(Landroid/app/Application$ActivityLifecycleCallbacks;)V',
|
r'registerActivityLifecycleCallbacks',
|
||||||
);
|
r'(Landroid/app/Application$ActivityLifecycleCallbacks;)V',
|
||||||
|
);
|
||||||
|
|
||||||
static final _registerActivityLifecycleCallbacks =
|
static final _registerActivityLifecycleCallbacks =
|
||||||
jni$_.ProtectedJniExtensions.lookup<
|
jni$_.ProtectedJniExtensions.lookup<
|
||||||
@@ -22419,10 +22570,11 @@ class Activity extends jni$_.JObject {
|
|||||||
).boolean;
|
).boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_dispatchPopulateAccessibilityEvent = _class.instanceMethodId(
|
static final _id_dispatchPopulateAccessibilityEvent = _class
|
||||||
r'dispatchPopulateAccessibilityEvent',
|
.instanceMethodId(
|
||||||
r'(Landroid/view/accessibility/AccessibilityEvent;)Z',
|
r'dispatchPopulateAccessibilityEvent',
|
||||||
);
|
r'(Landroid/view/accessibility/AccessibilityEvent;)Z',
|
||||||
|
);
|
||||||
|
|
||||||
static final _dispatchPopulateAccessibilityEvent =
|
static final _dispatchPopulateAccessibilityEvent =
|
||||||
jni$_.ProtectedJniExtensions.lookup<
|
jni$_.ProtectedJniExtensions.lookup<
|
||||||
@@ -23263,7 +23415,10 @@ class Activity extends jni$_.JObject {
|
|||||||
).check();
|
).check();
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_showDialog = _class.instanceMethodId(r'showDialog', r'(I)V');
|
static final _id_showDialog = _class.instanceMethodId(
|
||||||
|
r'showDialog',
|
||||||
|
r'(I)V',
|
||||||
|
);
|
||||||
|
|
||||||
static final _showDialog =
|
static final _showDialog =
|
||||||
jni$_.ProtectedJniExtensions.lookup<
|
jni$_.ProtectedJniExtensions.lookup<
|
||||||
@@ -23857,7 +24012,11 @@ class Activity extends jni$_.JObject {
|
|||||||
|
|
||||||
/// from: `public void setTheme(int i)`
|
/// from: `public void setTheme(int i)`
|
||||||
void setTheme(int i) {
|
void setTheme(int i) {
|
||||||
_setTheme(reference.pointer, _id_setTheme as jni$_.JMethodIDPtr, i).check();
|
_setTheme(
|
||||||
|
reference.pointer,
|
||||||
|
_id_setTheme as jni$_.JMethodIDPtr,
|
||||||
|
i,
|
||||||
|
).check();
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_requestPermissions = _class.instanceMethodId(
|
static final _id_requestPermissions = _class.instanceMethodId(
|
||||||
@@ -25209,7 +25368,10 @@ class Activity extends jni$_.JObject {
|
|||||||
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
|
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
|
||||||
}
|
}
|
||||||
|
|
||||||
static final _id_setVisible = _class.instanceMethodId(r'setVisible', r'(Z)V');
|
static final _id_setVisible = _class.instanceMethodId(
|
||||||
|
r'setVisible',
|
||||||
|
r'(Z)V',
|
||||||
|
);
|
||||||
|
|
||||||
static final _setVisible =
|
static final _setVisible =
|
||||||
jni$_.ProtectedJniExtensions.lookup<
|
jni$_.ProtectedJniExtensions.lookup<
|
||||||
@@ -27686,13 +27848,15 @@ class Instant extends jni$_.JObject {
|
|||||||
|
|
||||||
/// from: `static public final java.time.Instant MAX`
|
/// from: `static public final java.time.Instant MAX`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static Instant? get MAX => _id_MAX.get(_class, const $Instant$NullableType());
|
static Instant? get MAX =>
|
||||||
|
_id_MAX.get(_class, const $Instant$NullableType());
|
||||||
|
|
||||||
static final _id_MIN = _class.staticFieldId(r'MIN', r'Ljava/time/Instant;');
|
static final _id_MIN = _class.staticFieldId(r'MIN', r'Ljava/time/Instant;');
|
||||||
|
|
||||||
/// from: `static public final java.time.Instant MIN`
|
/// from: `static public final java.time.Instant MIN`
|
||||||
/// The returned object must be released after use, by calling the [release] method.
|
/// The returned object must be released after use, by calling the [release] method.
|
||||||
static Instant? get MIN => _id_MIN.get(_class, const $Instant$NullableType());
|
static Instant? get MIN =>
|
||||||
|
_id_MIN.get(_class, const $Instant$NullableType());
|
||||||
|
|
||||||
static final _id_now = _class.staticMethodId(
|
static final _id_now = _class.staticMethodId(
|
||||||
r'now',
|
r'now',
|
||||||
@@ -29447,7 +29611,8 @@ final class $AggregateGroupByPeriodRequest$NullableType
|
|||||||
|
|
||||||
@core$_.override
|
@core$_.override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
return other.runtimeType == ($AggregateGroupByPeriodRequest$NullableType) &&
|
return other.runtimeType ==
|
||||||
|
($AggregateGroupByPeriodRequest$NullableType) &&
|
||||||
other is $AggregateGroupByPeriodRequest$NullableType;
|
other is $AggregateGroupByPeriodRequest$NullableType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30953,13 +31118,21 @@ class AggregateMetric$Converter$FromDouble<$R extends jni$_.JObject>
|
|||||||
) {
|
) {
|
||||||
return _$invokeMethod(
|
return _$invokeMethod(
|
||||||
port,
|
port,
|
||||||
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
|
jni$_.MethodInvocation.fromAddresses(
|
||||||
|
0,
|
||||||
|
descriptor.address,
|
||||||
|
args.address,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final jni$_.Pointer<
|
static final jni$_.Pointer<
|
||||||
jni$_.NativeFunction<
|
jni$_.NativeFunction<
|
||||||
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
|
jni$_.JObjectPtr Function(
|
||||||
|
jni$_.Int64,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
||||||
@@ -31080,7 +31253,9 @@ final class $AggregateMetric$Converter$FromDouble$NullableType<
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final class $AggregateMetric$Converter$FromDouble$Type<$R extends jni$_.JObject>
|
final class $AggregateMetric$Converter$FromDouble$Type<
|
||||||
|
$R extends jni$_.JObject
|
||||||
|
>
|
||||||
extends jni$_.JObjType<AggregateMetric$Converter$FromDouble<$R>> {
|
extends jni$_.JObjType<AggregateMetric$Converter$FromDouble<$R>> {
|
||||||
@jni$_.internal
|
@jni$_.internal
|
||||||
final jni$_.JObjType<$R> R;
|
final jni$_.JObjType<$R> R;
|
||||||
@@ -31166,13 +31341,21 @@ class AggregateMetric$Converter$FromLong<$R extends jni$_.JObject>
|
|||||||
) {
|
) {
|
||||||
return _$invokeMethod(
|
return _$invokeMethod(
|
||||||
port,
|
port,
|
||||||
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
|
jni$_.MethodInvocation.fromAddresses(
|
||||||
|
0,
|
||||||
|
descriptor.address,
|
||||||
|
args.address,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final jni$_.Pointer<
|
static final jni$_.Pointer<
|
||||||
jni$_.NativeFunction<
|
jni$_.NativeFunction<
|
||||||
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
|
jni$_.JObjectPtr Function(
|
||||||
|
jni$_.Int64,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
||||||
@@ -31230,8 +31413,9 @@ class AggregateMetric$Converter$FromLong<$R extends jni$_.JObject>
|
|||||||
abstract base mixin class $AggregateMetric$Converter$FromLong<
|
abstract base mixin class $AggregateMetric$Converter$FromLong<
|
||||||
$R extends jni$_.JObject
|
$R extends jni$_.JObject
|
||||||
> {
|
> {
|
||||||
factory $AggregateMetric$Converter$FromLong({required jni$_.JObjType<$R> R}) =
|
factory $AggregateMetric$Converter$FromLong({
|
||||||
_$AggregateMetric$Converter$FromLong<$R>;
|
required jni$_.JObjType<$R> R,
|
||||||
|
}) = _$AggregateMetric$Converter$FromLong<$R>;
|
||||||
|
|
||||||
jni$_.JObjType<$R> get R;
|
jni$_.JObjType<$R> get R;
|
||||||
}
|
}
|
||||||
@@ -31387,13 +31571,21 @@ class AggregateMetric$Converter<
|
|||||||
) {
|
) {
|
||||||
return _$invokeMethod(
|
return _$invokeMethod(
|
||||||
port,
|
port,
|
||||||
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
|
jni$_.MethodInvocation.fromAddresses(
|
||||||
|
0,
|
||||||
|
descriptor.address,
|
||||||
|
args.address,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final jni$_.Pointer<
|
static final jni$_.Pointer<
|
||||||
jni$_.NativeFunction<
|
jni$_.NativeFunction<
|
||||||
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
|
jni$_.JObjectPtr Function(
|
||||||
|
jni$_.Int64,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
jni$_.JObjectPtr,
|
||||||
|
)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
|
||||||
@@ -31549,8 +31741,9 @@ final class $AggregateMetric$Converter$Type<
|
|||||||
|
|
||||||
@jni$_.internal
|
@jni$_.internal
|
||||||
@core$_.override
|
@core$_.override
|
||||||
AggregateMetric$Converter<$T, $R> fromReference(jni$_.JReference reference) =>
|
AggregateMetric$Converter<$T, $R> fromReference(
|
||||||
AggregateMetric$Converter<$T, $R>.fromReference(T, R, reference);
|
jni$_.JReference reference,
|
||||||
|
) => AggregateMetric$Converter<$T, $R>.fromReference(T, R, reference);
|
||||||
@jni$_.internal
|
@jni$_.internal
|
||||||
@core$_.override
|
@core$_.override
|
||||||
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
|
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
|
||||||
@@ -31701,7 +31894,9 @@ final class $AggregateMetric$NullableType<$T extends jni$_.JObject>
|
|||||||
@jni$_.internal
|
@jni$_.internal
|
||||||
@core$_.override
|
@core$_.override
|
||||||
AggregateMetric<$T>? fromReference(jni$_.JReference reference) =>
|
AggregateMetric<$T>? fromReference(jni$_.JReference reference) =>
|
||||||
reference.isNull ? null : AggregateMetric<$T>.fromReference(T, reference);
|
reference.isNull
|
||||||
|
? null
|
||||||
|
: AggregateMetric<$T>.fromReference(T, reference);
|
||||||
@jni$_.internal
|
@jni$_.internal
|
||||||
@core$_.override
|
@core$_.override
|
||||||
jni$_.JObjType get superType => const jni$_.JObjectType();
|
jni$_.JObjType get superType => const jni$_.JObjectType();
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ description: A collection of samples for Dart and Flutter.
|
|||||||
environment:
|
environment:
|
||||||
sdk: ^3.9.0-0
|
sdk: ^3.9.0-0
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
flutter_lints: ^6.0.0
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
- add_to_app/android_view/flutter_module_using_plugin_android_view
|
- add_to_app/android_view/flutter_module_using_plugin_android_view
|
||||||
- add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view
|
- add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
include: ../analysis_options.yaml
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
|
// ignore_for_file: avoid_print,
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:path/path.dart' as path;
|
import 'package:path/path.dart' as path;
|
||||||
import 'package:yaml/yaml.dart';
|
import 'package:yaml/yaml.dart';
|
||||||
|
|
||||||
@@ -38,8 +41,9 @@ Future<void> main() async {
|
|||||||
final packages = workspace
|
final packages = workspace
|
||||||
.where((e) {
|
.where((e) {
|
||||||
if (skipCiList != null && skipCiList.contains(e)) return false;
|
if (skipCiList != null && skipCiList.contains(e)) return false;
|
||||||
if (channelSkipList != null && channelSkipList.contains(e))
|
if (channelSkipList != null && channelSkipList.contains(e)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.map((e) => e.toString())
|
.map((e) => e.toString())
|
||||||
@@ -99,7 +103,9 @@ Future<String> _getFlutterChannel() async {
|
|||||||
'--machine',
|
'--machine',
|
||||||
], runInShell: true);
|
], runInShell: true);
|
||||||
if (result.exitCode != 0) {
|
if (result.exitCode != 0) {
|
||||||
print('Flutter version command failed with exit code ${result.exitCode}');
|
print(
|
||||||
|
'Flutter version command failed with exit code ${result.exitCode}',
|
||||||
|
);
|
||||||
print('Stdout: ${result.stdout}');
|
print('Stdout: ${result.stdout}');
|
||||||
print('Stderr: ${result.stderr}');
|
print('Stderr: ${result.stderr}');
|
||||||
return 'unknown';
|
return 'unknown';
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
// ignore_for_file: avoid_print,
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:args/args.dart';
|
import 'package:args/args.dart';
|
||||||
import 'package:path/path.dart' as path;
|
import 'package:path/path.dart' as path;
|
||||||
import 'package:yaml/yaml.dart';
|
import 'package:yaml/yaml.dart';
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
// ignore_for_file: avoid_print,
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:path/path.dart' as path;
|
import 'package:path/path.dart' as path;
|
||||||
import 'package:yaml/yaml.dart';
|
import 'package:yaml/yaml.dart';
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ class ReleaseScriptRunner {
|
|||||||
Future<bool> _processProject(String projectPath, String dartVersion) async {
|
Future<bool> _processProject(String projectPath, String dartVersion) async {
|
||||||
final projectName = p.basename(projectPath);
|
final projectName = p.basename(projectPath);
|
||||||
final projectDir = Directory(projectPath);
|
final projectDir = Directory(projectPath);
|
||||||
final issues = [];
|
final issues = <String>[];
|
||||||
|
|
||||||
if (!projectDir.existsSync()) {
|
if (!projectDir.existsSync()) {
|
||||||
log(red.wrap('Project directory not found: $projectPath'), stderr);
|
log(red.wrap('Project directory not found: $projectPath'), stderr);
|
||||||
@@ -174,7 +174,10 @@ class ReleaseScriptRunner {
|
|||||||
log(styleBold.wrap('Processing project: $projectName'), stdout);
|
log(styleBold.wrap('Processing project: $projectName'), stdout);
|
||||||
log(styleBold.wrap('=========================================')!, stdout);
|
log(styleBold.wrap('=========================================')!, stdout);
|
||||||
|
|
||||||
log(blue.wrap('Updating SDK constraints to use Dart $dartVersion'), stdout);
|
log(
|
||||||
|
blue.wrap('Updating SDK constraints to use Dart $dartVersion'),
|
||||||
|
stdout,
|
||||||
|
);
|
||||||
if (!_isDryRun) {
|
if (!_isDryRun) {
|
||||||
if (!await _updateSdkConstraints(projectPath, dartVersion)) {
|
if (!await _updateSdkConstraints(projectPath, dartVersion)) {
|
||||||
log(
|
log(
|
||||||
@@ -191,7 +194,10 @@ class ReleaseScriptRunner {
|
|||||||
'--fatal-infos',
|
'--fatal-infos',
|
||||||
'--fatal-warnings',
|
'--fatal-warnings',
|
||||||
]),
|
]),
|
||||||
Command('dart format', 'Running dart format...', 'dart', ['format', '.']),
|
Command('dart format', 'Running dart format...', 'dart', [
|
||||||
|
'format',
|
||||||
|
'.',
|
||||||
|
]),
|
||||||
];
|
];
|
||||||
|
|
||||||
final testDir = Directory(p.join(projectPath, 'test'));
|
final testDir = Directory(p.join(projectPath, 'test'));
|
||||||
@@ -211,7 +217,10 @@ class ReleaseScriptRunner {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!didPass) {
|
if (!didPass) {
|
||||||
log(red.wrap('${command.displayName} failed for $projectName'), stderr);
|
log(
|
||||||
|
red.wrap('${command.displayName} failed for $projectName'),
|
||||||
|
stderr,
|
||||||
|
);
|
||||||
|
|
||||||
if (command.displayName == 'pub upgrade' ||
|
if (command.displayName == 'pub upgrade' ||
|
||||||
command.displayName == 'pub get' &&
|
command.displayName == 'pub get' &&
|
||||||
@@ -255,7 +264,7 @@ class ReleaseScriptRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final newConstraint = '^${versionString}-0';
|
final newConstraint = '^$versionString-0';
|
||||||
|
|
||||||
final content = await pubspecFile.readAsString();
|
final content = await pubspecFile.readAsString();
|
||||||
final editor = YamlEditor(content);
|
final editor = YamlEditor(content);
|
||||||
@@ -307,16 +316,18 @@ class ReleaseScriptRunner {
|
|||||||
.transform(SystemEncoding().decoder)
|
.transform(SystemEncoding().decoder)
|
||||||
.forEach((line) {
|
.forEach((line) {
|
||||||
log(line, stdout);
|
log(line, stdout);
|
||||||
if (!_isOnlyWhitespace(line))
|
if (!_isOnlyWhitespace(line)) {
|
||||||
output.writeln('${line.trim().padLeft(2)}');
|
output.writeln(line.trim().padLeft(2));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
final stderrFuture = process.stderr
|
final stderrFuture = process.stderr
|
||||||
.transform(SystemEncoding().decoder)
|
.transform(SystemEncoding().decoder)
|
||||||
.forEach((line) {
|
.forEach((line) {
|
||||||
log(red.wrap(line), stderr);
|
log(red.wrap(line), stderr);
|
||||||
if (!_isOnlyWhitespace(line))
|
if (!_isOnlyWhitespace(line)) {
|
||||||
output.writeln('${line.trim().padLeft(2)}');
|
output.writeln(line.trim().padLeft(2));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await Future.wait([stdoutFuture, stderrFuture]);
|
await Future.wait([stdoutFuture, stderrFuture]);
|
||||||
@@ -325,7 +336,10 @@ class ReleaseScriptRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _printSummary(int total, List<String> failed) {
|
void _printSummary(int total, List<String> failed) {
|
||||||
log(styleBold.wrap('\n=========================================')!, stdout);
|
log(
|
||||||
|
styleBold.wrap('\n=========================================')!,
|
||||||
|
stdout,
|
||||||
|
);
|
||||||
log(styleBold.wrap('Update Summary')!, stdout);
|
log(styleBold.wrap('Update Summary')!, stdout);
|
||||||
log(styleBold.wrap('=========================================')!, stdout);
|
log(styleBold.wrap('=========================================')!, stdout);
|
||||||
log(blue.wrap('Total projects processed: $total'), stdout);
|
log(blue.wrap('Total projects processed: $total'), stdout);
|
||||||
|
|||||||
@@ -90,16 +90,12 @@ class _MyAppState extends State<MyApp> {
|
|||||||
switch (screenString) {
|
switch (screenString) {
|
||||||
case 'counter':
|
case 'counter':
|
||||||
_currentDemoScreen = DemoScreen.counter;
|
_currentDemoScreen = DemoScreen.counter;
|
||||||
break;
|
|
||||||
case 'textField':
|
case 'textField':
|
||||||
_currentDemoScreen = DemoScreen.textField;
|
_currentDemoScreen = DemoScreen.textField;
|
||||||
break;
|
|
||||||
case 'custom':
|
case 'custom':
|
||||||
_currentDemoScreen = DemoScreen.custom;
|
_currentDemoScreen = DemoScreen.custom;
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
_currentDemoScreen = DemoScreen.counter;
|
_currentDemoScreen = DemoScreen.counter;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
include: package:flutter_lints/flutter.yaml
|
include: ../../../analysis_options.yaml
|
||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
language:
|
language:
|
||||||
strict-casts: true
|
strict-casts: true
|
||||||
strict-inference: true
|
strict-inference: true
|
||||||
|
|||||||
Reference in New Issue
Block a user