Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions android/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ ext.nutrientVersion = localProperties.getProperty('pspdfkit.version')
if (nutrientVersion == null || nutrientVersion == '') {
// Pinned to the released Nutrient Android SDK for this release. The plugin uses
// 11.5 APIs (AnnotationToolbar / AnnotationPopupToolbar /
// OnPreparePopupToolbarListener). Override via pspdfkit.version in
// OnPreparePopupToolbarListener). 11.6.2 is the minimum for Instant apps:
// it fixes the stale sync long-poll that stalled document loads when
// switching between documents (AND-1957). Override via pspdfkit.version in
// local.properties to build against a nightly/SNAPSHOT.
ext.nutrientVersion = '11.5.1'
ext.nutrientVersion = '11.6.2'
}

ext.nutrientMavenModuleName = 'nutrient'
Expand Down
13 changes: 13 additions & 0 deletions example/lib/examples.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import 'utils/file_utils.dart';
import 'utils/platform_utils.dart';
import 'package:nutrient_example/configuration_example.dart';
import 'package:nutrient_example/instant_collaboration_example.dart';
import 'package:nutrient_example/instant_switch_stress_example.dart';
import 'package:nutrient_example/nutrient_instant_view_example.dart';
import 'package:nutrient_example/measurement_tools.dart';
import 'package:nutrient_example/pdf_generation_example.dart';
Expand Down Expand Up @@ -292,6 +293,18 @@ List<NutrientExampleItem> examples(BuildContext context) => [
),
),
),
if (!kIsWeb)
NutrientExampleItem(
title: 'Instant Switch Stress (repro #134164)',
description:
'Automated document-switch / close-reopen cycles that measure '
'Instant load latency.',
onTap: () => Navigator.of(context).push<dynamic>(
MaterialPageRoute<dynamic>(
builder: (_) => const InstantSwitchStressExample(),
),
),
),
NutrientExampleItem(
title: 'Zoom to Rect',
description: 'Zoom and restore page zoom example ',
Expand Down
Loading