diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/external_textures/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..bedac9d2d4db435dfecb639ddd968f06a9375609 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/build.gradle @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/external_textures/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..7e3153897044335c996bb1422c1b90cc115203c3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/buildscript-gradle.lockfile @@ -0,0 +1,154 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.application:com.android.application.gradle.plugin:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/external_textures/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..2597170821647d2bd8b150d973a35d27c99a5f44 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..400ab501898c96746e462bd0a54d3461a79fb269 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-app.lockfile @@ -0,0 +1,132 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=lintClassPath +org.jetbrains:annotations:23.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-path_provider_android.lockfile b/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-path_provider_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..f9308a145d2c8c2e99cf3b5b844c23dfe5271da4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/project-path_provider_android.lockfile @@ -0,0 +1,45 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/external_textures/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..30db20e2606a778b7655f90bc29e0594c6cb9ef7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/android/settings.gradle @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false +} + +include ":app" diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..5cecdceaffe39cad55b1d16f297a0aa136139d6e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,432 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 2488E40D21828E6900B73A3D /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 2488E40E21828E6900B73A3D /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 2488E40D21828E6900B73A3D /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 2488E40E21828E6900B73A3D /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..1d526a16ed0f1cd0c2409d848bf489b93fefa3b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..4734b3eb65fd95af9c42180fd894c606b182f6eb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..7ad7dee967c99387de63ed63980b6f21b8428e93 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/AppDelegate.m @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" + +@interface AppDelegate () + @property (atomic) uint64_t textureId; + @property (atomic) int framesProduced; + @property (atomic) int framesConsumed; + @property (atomic) int lastFrameConsumed; + @property (atomic) double startTime; + @property (atomic) double endTime; + @property (atomic) double frameRate; + @property (atomic) double frameStartTime; + @property (atomic) NSTimer* timer; + + - (void)tick:(NSTimer*)timer; +@end + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + FlutterViewController* flutterController = + (FlutterViewController*)self.window.rootViewController; + FlutterMethodChannel* channel = + [FlutterMethodChannel methodChannelWithName:@"texture" + binaryMessenger:flutterController]; + [channel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) { + if ([@"start" isEqualToString:call.method]) { + _framesProduced = 0; + _framesConsumed = 0; + _frameRate = 1.0 / [(NSNumber*) call.arguments intValue]; + _timer = [NSTimer scheduledTimerWithTimeInterval:_frameRate + target:self + selector:@selector(tick:) + userInfo:nil + repeats:YES]; + _startTime = [[NSDate date] timeIntervalSince1970]; + result(nil); + } else if ([@"stop" isEqualToString:call.method]) { + [_timer invalidate]; + _endTime = [[NSDate date] timeIntervalSince1970]; + result(nil); + } else if ([@"getProducedFrameRate" isEqualToString:call.method]) { + result(@(_framesProduced / (_endTime - _startTime))); + } else if ([@"getConsumedFrameRate" isEqualToString:call.method]) { + result(@(_framesConsumed / (_endTime - _startTime))); + } else { + result(FlutterMethodNotImplemented); + } + }]; + _textureId = [flutterController registerTexture:self]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (void)tick:(NSTimer*)timer { + FlutterViewController* flutterController = + (FlutterViewController*)self.window.rootViewController; + [flutterController textureFrameAvailable:_textureId]; + _frameStartTime = [[NSDate date] timeIntervalSince1970]; + // We just pretend to be producing a frame. + _framesProduced++; +} + +- (CVPixelBufferRef)copyPixelBuffer { + double now = [[NSDate date] timeIntervalSince1970]; + if (now < _frameStartTime + || _frameStartTime + _frameRate < now + || _framesProduced == _lastFrameConsumed) return nil; + _framesConsumed++; + _lastFrameConsumed = _framesProduced; + // We just pretend to be handing over the produced frame to the consumer. + return nil; +} +@end diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..4a2790fb5c0fa96c5b5bad4428244e323075b84c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + external_textures + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..9cd53369d8288bc6aec533297fa946be46df4dcb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/lib/frame_rate_main.dart b/novelforge-project/flutter/dev/integration_tests/external_textures/lib/frame_rate_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..ffa426e890255cf26577e27350ec325d34bdc22e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/lib/frame_rate_main.dart @@ -0,0 +1,162 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +void main() { + enableFlutterDriverExtension(); + debugPrint('Application starting...'); + runApp(const MyApp()); +} + +class MyApp extends StatefulWidget { + const MyApp({super.key}); + + @override + State createState() => MyAppState(); +} + +const MethodChannel channel = MethodChannel('texture'); + +enum FrameState { initial, slow, afterSlow, fast, afterFast } + +class MyAppState extends State with SingleTickerProviderStateMixin { + int _widgetBuilds = 0; + FrameState _state = FrameState.initial; + String _summary = ''; + IconData? _icon; + double _flutterFrameRate = 0; + + Future _summarizeStats() async { + final double? framesProduced = await channel.invokeMethod('getProducedFrameRate'); + final double? framesConsumed = await channel.invokeMethod('getConsumedFrameRate'); + _summary = ''' +Produced: ${framesProduced?.toStringAsFixed(1)}fps +Consumed: ${framesConsumed?.toStringAsFixed(1)}fps +Widget builds: $_widgetBuilds'''; + } + + Future _nextState() async { + switch (_state) { + case FrameState.initial: + debugPrint('Starting .5x speed test...'); + _widgetBuilds = 0; + _summary = 'Producing texture frames at .5x speed...'; + _state = FrameState.slow; + _icon = Icons.stop; + channel.invokeMethod('start', _flutterFrameRate ~/ 2); + case FrameState.slow: + debugPrint('Stopping .5x speed test...'); + await channel.invokeMethod('stop'); + await _summarizeStats(); + _icon = Icons.fast_forward; + _state = FrameState.afterSlow; + case FrameState.afterSlow: + debugPrint('Starting 2x speed test...'); + _widgetBuilds = 0; + _summary = 'Producing texture frames at 2x speed...'; + _state = FrameState.fast; + _icon = Icons.stop; + channel.invokeMethod('start', (_flutterFrameRate * 2).toInt()); + case FrameState.fast: + debugPrint('Stopping 2x speed test...'); + await channel.invokeMethod('stop'); + await _summarizeStats(); + _state = FrameState.afterFast; + _icon = Icons.replay; + case FrameState.afterFast: + debugPrint('Test complete.'); + _summary = 'Press play to start again'; + _state = FrameState.initial; + _icon = Icons.play_arrow; + } + setState(() {}); + } + + @override + void initState() { + super.initState(); + _calibrate(); + } + + static const int calibrationTickCount = 600; + + /// Measures Flutter's frame rate. + Future _calibrate() async { + debugPrint('Awaiting calm (3 second pause)...'); + await Future.delayed(const Duration(milliseconds: 3000)); + debugPrint('Calibrating...'); + late DateTime startTime; + int tickCount = 0; + Ticker? ticker; + ticker = createTicker((Duration time) { + tickCount += 1; + if (tickCount == calibrationTickCount) { // about 10 seconds + final Duration elapsed = DateTime.now().difference(startTime); + ticker?.stop(); + ticker?.dispose(); + setState(() { + _flutterFrameRate = tickCount * 1000 / elapsed.inMilliseconds; + debugPrint('Calibrated: frame rate ${_flutterFrameRate.toStringAsFixed(1)}fps.'); + _summary = ''' +Flutter frame rate is ${_flutterFrameRate.toStringAsFixed(1)}fps. +Press play to produce texture frames.'''; + _icon = Icons.play_arrow; + _state = FrameState.initial; + }); + } else { + if ((tickCount % (calibrationTickCount ~/ 20)) == 0) { + debugPrint('Calibrating... ${(100.0 * tickCount / calibrationTickCount).floor()}%'); + } + } + }); + ticker.start(); + startTime = DateTime.now(); + setState(() { + _summary = 'Calibrating...'; + _icon = null; + }); + } + + @override + Widget build(BuildContext context) { + _widgetBuilds += 1; + return MaterialApp( + home: Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const SizedBox( + width: 300.0, + height: 200.0, + child: Texture(textureId: 0), + ), + Container( + width: 300.0, + height: 60.0, + color: Colors.grey, + child: Center( + child: Text( + _summary, + key: const ValueKey('summary'), + ), + ), + ), + ], + ), + ), + floatingActionButton: _icon == null ? null : FloatingActionButton( + key: const ValueKey('fab'), + onPressed: _nextState, + child: Icon(_icon), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_textures/test_driver/frame_rate_main_test.dart b/novelforge-project/flutter/dev/integration_tests/external_textures/test_driver/frame_rate_main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..fef633fa4badd9a1c3568f9178db226dd506a509 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_textures/test_driver/frame_rate_main_test.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +final RegExp _calibrationRegExp = RegExp('Flutter frame rate is (.*)fps'); +final RegExp _statsRegExp = RegExp('Produced: (.*)fps\nConsumed: (.*)fps\nWidget builds: (.*)'); +const Duration _samplingTime = Duration(seconds: 8); + +Future main() async { + late final FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + // Verifies we consume texture frames at a rate close to the minimum of the + // rate at which they are produced and Flutter's frame rate. In addition, + // it verifies that widget builds are not triggered by external texture + // frames. + test('renders frames from the device at a rate similar to the frames produced', () async { + final SerializableFinder fab = find.byValueKey('fab'); + final SerializableFinder summary = find.byValueKey('summary'); + + // Wait for calibration to complete and fab to appear. + await driver.waitFor(fab); + + final String calibrationResult = await driver.getText(summary); + final Match? matchCalibration = _calibrationRegExp.matchAsPrefix(calibrationResult); + expect(matchCalibration, isNotNull); + final double flutterFrameRate = double.parse(matchCalibration?.group(1) ?? '0'); + + // Texture frame stats at 0.5x Flutter frame rate + await driver.tap(fab); + await Future.delayed(_samplingTime); + await driver.tap(fab); + + final String statsSlow = await driver.getText(summary); + final Match matchSlow = _statsRegExp.matchAsPrefix(statsSlow)!; + expect(matchSlow, isNotNull); + + double framesProduced = double.parse(matchSlow.group(1)!); + expect(framesProduced, closeTo(flutterFrameRate / 2.0, 5.0)); + double framesConsumed = double.parse(matchSlow.group(2)!); + expect(framesConsumed, closeTo(flutterFrameRate / 2.0, 5.0)); + int widgetBuilds = int.parse(matchSlow.group(3)!); + expect(widgetBuilds, 1); + + // Texture frame stats at 2.0x Flutter frame rate + await driver.tap(fab); + await Future.delayed(_samplingTime); + await driver.tap(fab); + + final String statsFast = await driver.getText(summary); + final Match matchFast = _statsRegExp.matchAsPrefix(statsFast)!; + expect(matchFast, isNotNull); + + framesProduced = double.parse(matchFast.group(1)!); + expect(framesProduced, closeTo(flutterFrameRate * 2.0, 5.0)); + framesConsumed = double.parse(matchFast.group(2)!); + expect(framesConsumed, closeTo(flutterFrameRate, 10.0)); + widgetBuilds = int.parse(matchSlow.group(3)!); + expect(widgetBuilds, 1); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..b459814cb73d3d85fe1f753bb829e0e5ee318746 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/build.gradle @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withInputStream { stream -> + localProperties.load(stream) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + applicationId "io.flutter.externalui" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..505106a5c3b6defbd82125791e932eaa1e517a5a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/java/io/flutter/externalui/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/java/io/flutter/externalui/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..2188463e4ba66f549922eb1d26b050951b0e7fa0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/app/src/main/java/io/flutter/externalui/MainActivity.java @@ -0,0 +1,156 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.externalui; + +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.SurfaceTexture; +import android.os.Build; +import android.os.Bundle; +import android.view.Surface; +import android.view.SurfaceHolder; +import android.view.View; +import androidx.annotation.NonNull; + +import java.util.Timer; +import java.util.TimerTask; +import java.util.concurrent.atomic.AtomicInteger; + +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.android.FlutterSurfaceView; +import io.flutter.embedding.android.FlutterView; +import io.flutter.embedding.engine.FlutterEngine; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.MethodChannel.MethodCallHandler; +import io.flutter.plugin.common.MethodChannel.Result; +import io.flutter.view.TextureRegistry; +import io.flutter.view.TextureRegistry.SurfaceTextureEntry; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity { + private Surface surface; + private SurfaceTexture texture; + private Timer producerTimer; + private Timer consumerTimer; + private long startTime; + private long endTime; + private AtomicInteger framesProduced = new AtomicInteger(0); + private AtomicInteger framesConsumed = new AtomicInteger(0); + + @Override + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + GeneratedPluginRegistrant.registerWith(flutterEngine); + final MethodChannel channel = new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "texture"); + channel.setMethodCallHandler(new MethodCallHandler() { + @Override + public void onMethodCall(MethodCall methodCall, Result result) { + switch (methodCall.method) { + case "start": + framesProduced.set(0); + framesConsumed.set(0); + final int fps = methodCall.arguments(); + final FrameRenderer renderer = new FrameRenderer(surface); + producerTimer = new Timer(); + producerTimer.scheduleAtFixedRate(new TimerTask() { + @Override + public void run() { + final long time = System.currentTimeMillis(); + if (frameRate(framesProduced, startTime, time) < fps) { + renderer.drawFrame(); + framesProduced.incrementAndGet(); + } + } + }, 0, 1000 / fps); + consumerTimer = new Timer(); + consumerTimer.scheduleAtFixedRate(new TimerTask() { + private long lastTimestamp = -1L; + + @Override + public void run() { + final long timestamp = texture.getTimestamp(); + // The texture's timestamp is updated on consumption. + // We detect the change by asking very frequently. + if (timestamp != lastTimestamp) { + lastTimestamp = timestamp; + framesConsumed.incrementAndGet(); + } + } + }, 0, 1); + startTime = System.currentTimeMillis(); + result.success(null); + break; + case "stop": + producerTimer.cancel(); + consumerTimer.cancel(); + endTime = System.currentTimeMillis(); + result.success(null); + break; + case "getProducedFrameRate": + result.success(frameRate(framesProduced, startTime, endTime)); + break; + case "getConsumedFrameRate": + result.success(frameRate(framesConsumed, startTime, endTime)); + break; + default: result.notImplemented(); + } + } + }); + } + + @Override + public void onFlutterSurfaceViewCreated(@NonNull FlutterSurfaceView flutterSurfaceView) { + flutterSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { + @Override + public void surfaceCreated(SurfaceHolder holder) { + final SurfaceTextureEntry textureEntry = flutterSurfaceView.getAttachedRenderer().createSurfaceTexture(); + texture = textureEntry.surfaceTexture(); + texture.setDefaultBufferSize(300, 200); + surface = new Surface(texture); + } + + @Override + public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { + } + + @Override + public void surfaceDestroyed(SurfaceHolder holder) { + } + }); + } + + double frameRate(AtomicInteger frameCounter, long startTime, long endTime) { + return frameCounter.get() * 1000 / (double) (endTime - startTime); + } + + @Override + protected void onDestroy() { + if (surface != null) { + surface.release(); + } + super.onDestroy(); + } +} + +class FrameRenderer { + private final Surface surface; + private final Paint paint; + private int frameCount = 0; + + FrameRenderer(Surface surface) { + this.surface = surface; + this.paint = new Paint(); + paint.setColor(0xffff0000); + paint.setTextSize(48.0f); + paint.setAntiAlias(true); + } + + void drawFrame() { + final Canvas canvas = surface.lockCanvas(null); + canvas.drawColor(0xff000000); + canvas.drawText(String.valueOf(++frameCount), 20, 120, paint); + surface.unlockCanvasAndPost(canvas); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/external_ui/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/external_ui/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/external_ui/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..e160a81ffd42a36bca35a414c624786fdac26bc3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/project-app.lockfile @@ -0,0 +1,118 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/external_ui/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..5cecdceaffe39cad55b1d16f297a0aa136139d6e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,432 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 2488E40D21828E6900B73A3D /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 2488E40E21828E6900B73A3D /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 2488E40D21828E6900B73A3D /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 2488E40E21828E6900B73A3D /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..1d526a16ed0f1cd0c2409d848bf489b93fefa3b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..4734b3eb65fd95af9c42180fd894c606b182f6eb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..7ad7dee967c99387de63ed63980b6f21b8428e93 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/AppDelegate.m @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" + +@interface AppDelegate () + @property (atomic) uint64_t textureId; + @property (atomic) int framesProduced; + @property (atomic) int framesConsumed; + @property (atomic) int lastFrameConsumed; + @property (atomic) double startTime; + @property (atomic) double endTime; + @property (atomic) double frameRate; + @property (atomic) double frameStartTime; + @property (atomic) NSTimer* timer; + + - (void)tick:(NSTimer*)timer; +@end + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + FlutterViewController* flutterController = + (FlutterViewController*)self.window.rootViewController; + FlutterMethodChannel* channel = + [FlutterMethodChannel methodChannelWithName:@"texture" + binaryMessenger:flutterController]; + [channel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) { + if ([@"start" isEqualToString:call.method]) { + _framesProduced = 0; + _framesConsumed = 0; + _frameRate = 1.0 / [(NSNumber*) call.arguments intValue]; + _timer = [NSTimer scheduledTimerWithTimeInterval:_frameRate + target:self + selector:@selector(tick:) + userInfo:nil + repeats:YES]; + _startTime = [[NSDate date] timeIntervalSince1970]; + result(nil); + } else if ([@"stop" isEqualToString:call.method]) { + [_timer invalidate]; + _endTime = [[NSDate date] timeIntervalSince1970]; + result(nil); + } else if ([@"getProducedFrameRate" isEqualToString:call.method]) { + result(@(_framesProduced / (_endTime - _startTime))); + } else if ([@"getConsumedFrameRate" isEqualToString:call.method]) { + result(@(_framesConsumed / (_endTime - _startTime))); + } else { + result(FlutterMethodNotImplemented); + } + }]; + _textureId = [flutterController registerTexture:self]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (void)tick:(NSTimer*)timer { + FlutterViewController* flutterController = + (FlutterViewController*)self.window.rootViewController; + [flutterController textureFrameAvailable:_textureId]; + _frameStartTime = [[NSDate date] timeIntervalSince1970]; + // We just pretend to be producing a frame. + _framesProduced++; +} + +- (CVPixelBufferRef)copyPixelBuffer { + double now = [[NSDate date] timeIntervalSince1970]; + if (now < _frameStartTime + || _frameStartTime + _frameRate < now + || _framesProduced == _lastFrameConsumed) return nil; + _framesConsumed++; + _lastFrameConsumed = _framesProduced; + // We just pretend to be handing over the produced frame to the consumer. + return nil; +} +@end diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..60d8199829bb29fbac4f8de9d28c892e3594d44f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + external_ui + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..9cd53369d8288bc6aec533297fa946be46df4dcb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/external_ui/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..ffa426e890255cf26577e27350ec325d34bdc22e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/lib/main.dart @@ -0,0 +1,162 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +void main() { + enableFlutterDriverExtension(); + debugPrint('Application starting...'); + runApp(const MyApp()); +} + +class MyApp extends StatefulWidget { + const MyApp({super.key}); + + @override + State createState() => MyAppState(); +} + +const MethodChannel channel = MethodChannel('texture'); + +enum FrameState { initial, slow, afterSlow, fast, afterFast } + +class MyAppState extends State with SingleTickerProviderStateMixin { + int _widgetBuilds = 0; + FrameState _state = FrameState.initial; + String _summary = ''; + IconData? _icon; + double _flutterFrameRate = 0; + + Future _summarizeStats() async { + final double? framesProduced = await channel.invokeMethod('getProducedFrameRate'); + final double? framesConsumed = await channel.invokeMethod('getConsumedFrameRate'); + _summary = ''' +Produced: ${framesProduced?.toStringAsFixed(1)}fps +Consumed: ${framesConsumed?.toStringAsFixed(1)}fps +Widget builds: $_widgetBuilds'''; + } + + Future _nextState() async { + switch (_state) { + case FrameState.initial: + debugPrint('Starting .5x speed test...'); + _widgetBuilds = 0; + _summary = 'Producing texture frames at .5x speed...'; + _state = FrameState.slow; + _icon = Icons.stop; + channel.invokeMethod('start', _flutterFrameRate ~/ 2); + case FrameState.slow: + debugPrint('Stopping .5x speed test...'); + await channel.invokeMethod('stop'); + await _summarizeStats(); + _icon = Icons.fast_forward; + _state = FrameState.afterSlow; + case FrameState.afterSlow: + debugPrint('Starting 2x speed test...'); + _widgetBuilds = 0; + _summary = 'Producing texture frames at 2x speed...'; + _state = FrameState.fast; + _icon = Icons.stop; + channel.invokeMethod('start', (_flutterFrameRate * 2).toInt()); + case FrameState.fast: + debugPrint('Stopping 2x speed test...'); + await channel.invokeMethod('stop'); + await _summarizeStats(); + _state = FrameState.afterFast; + _icon = Icons.replay; + case FrameState.afterFast: + debugPrint('Test complete.'); + _summary = 'Press play to start again'; + _state = FrameState.initial; + _icon = Icons.play_arrow; + } + setState(() {}); + } + + @override + void initState() { + super.initState(); + _calibrate(); + } + + static const int calibrationTickCount = 600; + + /// Measures Flutter's frame rate. + Future _calibrate() async { + debugPrint('Awaiting calm (3 second pause)...'); + await Future.delayed(const Duration(milliseconds: 3000)); + debugPrint('Calibrating...'); + late DateTime startTime; + int tickCount = 0; + Ticker? ticker; + ticker = createTicker((Duration time) { + tickCount += 1; + if (tickCount == calibrationTickCount) { // about 10 seconds + final Duration elapsed = DateTime.now().difference(startTime); + ticker?.stop(); + ticker?.dispose(); + setState(() { + _flutterFrameRate = tickCount * 1000 / elapsed.inMilliseconds; + debugPrint('Calibrated: frame rate ${_flutterFrameRate.toStringAsFixed(1)}fps.'); + _summary = ''' +Flutter frame rate is ${_flutterFrameRate.toStringAsFixed(1)}fps. +Press play to produce texture frames.'''; + _icon = Icons.play_arrow; + _state = FrameState.initial; + }); + } else { + if ((tickCount % (calibrationTickCount ~/ 20)) == 0) { + debugPrint('Calibrating... ${(100.0 * tickCount / calibrationTickCount).floor()}%'); + } + } + }); + ticker.start(); + startTime = DateTime.now(); + setState(() { + _summary = 'Calibrating...'; + _icon = null; + }); + } + + @override + Widget build(BuildContext context) { + _widgetBuilds += 1; + return MaterialApp( + home: Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const SizedBox( + width: 300.0, + height: 200.0, + child: Texture(textureId: 0), + ), + Container( + width: 300.0, + height: 60.0, + color: Colors.grey, + child: Center( + child: Text( + _summary, + key: const ValueKey('summary'), + ), + ), + ), + ], + ), + ), + floatingActionButton: _icon == null ? null : FloatingActionButton( + key: const ValueKey('fab'), + onPressed: _nextState, + child: Icon(_icon), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/external_ui/test_driver/main_test.dart b/novelforge-project/flutter/dev/integration_tests/external_ui/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..474663e02376f914383b10bbf0e2b794458fd15d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/external_ui/test_driver/main_test.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +final RegExp calibrationRegExp = RegExp('Flutter frame rate is (.*)fps'); +final RegExp statsRegExp = RegExp('Produced: (.*)fps\nConsumed: (.*)fps\nWidget builds: (.*)'); +const Duration samplingTime = Duration(seconds: 8); + +Future main() async { + group('texture suite', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + // This test verifies that we can consume texture frames at a rate + // close to the minimum of the rate at which they are produced + // and Flutter's frame rate. It also verifies that we do not rebuild the + // Widget tree during texture consumption. The test starts by measuring + // Flutter's frame rate. + test('texture rendering', () async { + final SerializableFinder fab = find.byValueKey('fab'); + final SerializableFinder summary = find.byValueKey('summary'); + + // Wait for calibration to complete and fab to appear. + await driver.waitFor(fab); + + final String calibrationResult = await driver.getText(summary); + final Match? matchCalibration = calibrationRegExp.matchAsPrefix(calibrationResult); + expect(matchCalibration, isNotNull); + final double flutterFrameRate = double.parse(matchCalibration?.group(1) ?? '0'); + + // Texture frame stats at 0.5x Flutter frame rate + await driver.tap(fab); + await Future.delayed(samplingTime); + await driver.tap(fab); + + final String statsSlow = await driver.getText(summary); + final Match matchSlow = statsRegExp.matchAsPrefix(statsSlow)!; + expect(matchSlow, isNotNull); + expect(double.parse(matchSlow.group(1)!), closeTo(flutterFrameRate / 2.0, 5.0)); + expect(double.parse(matchSlow.group(2)!), closeTo(flutterFrameRate / 2.0, 5.0)); + expect(int.parse(matchSlow.group(3)!), 1); + + // Texture frame stats at 2.0x Flutter frame rate + await driver.tap(fab); + await Future.delayed(samplingTime); + await driver.tap(fab); + + final String statsFast = await driver.getText(summary); + final Match matchFast = statsRegExp.matchAsPrefix(statsFast)!; + expect(matchFast, isNotNull); + expect(double.parse(matchFast.group(1)!), closeTo(flutterFrameRate * 2.0, 5.0)); + expect(double.parse(matchFast.group(2)!), closeTo(flutterFrameRate, 10.0)); + expect(int.parse(matchFast.group(3)!), 1); + }, timeout: Timeout.none); + + tearDownAll(() async { + driver.close(); + }); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..698c7bb347ca4380fbf6a10ada7d0395c40d083c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/build.gradle @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withInputStream { stream -> + localProperties.load(stream) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + namespace "com.yourcompany.flavors" + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + applicationId "com.yourcompany.flavors" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + signingConfig signingConfigs.debug + } + } + + flavorDimensions "mode" + + productFlavors { + free {} + paid {} + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..7e6b333cfbbf83282e2be9fec7ccb3ddabcf03eb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..57566001ce998883c8a88f07018a982b40b4465c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java @@ -0,0 +1,27 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.yourcompany.flavors; + +import android.os.Bundle; + +import androidx.annotation.NonNull; +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.engine.FlutterEngine; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity { + @Override + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + GeneratedPluginRegistrant.registerWith(flutterEngine); + new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "flavor") + .setMethodCallHandler( + (call, result) -> { + result.success(BuildConfig.FLAVOR); + } + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..cb24abda10ae7c217ece76a13a8d0a90473d3422 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/assets/common/common.txt b/novelforge-project/flutter/dev/integration_tests/flavors/assets/common/common.txt new file mode 100644 index 0000000000000000000000000000000000000000..b804e9886abc80a2bcc060f3371f8df5c2ffa16c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/assets/common/common.txt @@ -0,0 +1 @@ +this is a test asset not meant for any specific flavor \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/assets/free/free.txt b/novelforge-project/flutter/dev/integration_tests/flavors/assets/free/free.txt new file mode 100644 index 0000000000000000000000000000000000000000..8f7a269f728e65ee3f7817ae831eccb16c3c76fd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/assets/free/free.txt @@ -0,0 +1 @@ +this is a test asset for --flavor free \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/assets/paid/paid.txt b/novelforge-project/flutter/dev/integration_tests/flavors/assets/paid/paid.txt new file mode 100644 index 0000000000000000000000000000000000000000..c6b999fd68e8c99d168863169ef6e71cb1a0b850 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/assets/paid/paid.txt @@ -0,0 +1 @@ +this is a test asset for --flavor paid \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/assets/premium/premium.txt b/novelforge-project/flutter/dev/integration_tests/flavors/assets/premium/premium.txt new file mode 100644 index 0000000000000000000000000000000000000000..f79024521897f538ef76f662c34f19ed1c8ee6f3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/assets/premium/premium.txt @@ -0,0 +1 @@ +premium \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..806efaca239611219900f924ec14f013e760caed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Debug.xcconfig @@ -0,0 +1,4 @@ +// This xcconfig used for both the paid and free flavor, but the plugins are not different between +// them. Pick one. +#include? "Pods/Target Support Files/Pods-Free App/Pods-Free App.debug free.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..15efba2a9d508f77b062316f2e78cd61c4664dcb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Flutter/Release.xcconfig @@ -0,0 +1,4 @@ +// This xcconfig used for both the paid and free flavor, but the plugins are not different between +// them. Pick one. +#include? "Pods/Target Support Files/Pods-Free App/Pods-Free App.release free.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..2144967364a268402944d524c8d28ef304982223 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,755 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 37337CDEB7181B925B4C497F /* libPods-Free App.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339F130EFF29582E670E34E /* libPods-Free App.a */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + A2AF7BD41FD4BC12FD4CA78F /* libPods-Paid App.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A3D11A9D1653A6CF0D85528D /* libPods-Paid App.a */; }; + F723D2312464E1C10004F0E0 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + F723D2322464E1C10004F0E0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + F723D2332464E1C10004F0E0 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + F723D2362464E1C10004F0E0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + F723D2372464E1C10004F0E0 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + F723D2382464E1C10004F0E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + F723D2392464E1C10004F0E0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + F723D23A2464E1C10004F0E0 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 1A1AB40A245F9BE7685BF241 /* Pods-Free App.release free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Free App.release free.xcconfig"; path = "Target Support Files/Pods-Free App/Pods-Free App.release free.xcconfig"; sourceTree = ""; }; + 2854017F9B7B8478EC866CE6 /* Pods-Paid App.debug free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Paid App.debug free.xcconfig"; path = "Target Support Files/Pods-Paid App/Pods-Paid App.debug free.xcconfig"; sourceTree = ""; }; + 2F6C7D6ABA66181AD1367CBD /* Pods-Free App.debug free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Free App.debug free.xcconfig"; path = "Target Support Files/Pods-Free App/Pods-Free App.debug free.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 3C3E60ABCBC52C4AD374B583 /* Pods-Paid App.debug paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Paid App.debug paid.xcconfig"; path = "Target Support Files/Pods-Paid App/Pods-Paid App.debug paid.xcconfig"; sourceTree = ""; }; + 4339F130EFF29582E670E34E /* libPods-Free App.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Free App.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 4A4236635749EA5737345C48 /* Pods-Paid App.release paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Paid App.release paid.xcconfig"; path = "Target Support Files/Pods-Paid App/Pods-Paid App.release paid.xcconfig"; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 8B8AFDAF5347CCCD64810738 /* Pods-Free App.release paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Free App.release paid.xcconfig"; path = "Target Support Files/Pods-Free App/Pods-Free App.release paid.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Free App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Free App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info-Free.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Free.plist"; sourceTree = ""; }; + A3D11A9D1653A6CF0D85528D /* libPods-Paid App.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Paid App.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + D2881C4AB6E69FA3735A4CB4 /* Pods-Paid App.release free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Paid App.release free.xcconfig"; path = "Target Support Files/Pods-Paid App/Pods-Paid App.release free.xcconfig"; sourceTree = ""; }; + F41C8FBAFCC90375E6D82338 /* Pods-Free App.debug paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Free App.debug paid.xcconfig"; path = "Target Support Files/Pods-Free App/Pods-Free App.debug paid.xcconfig"; sourceTree = ""; }; + F723D2412464E1C10004F0E0 /* Paid App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Paid App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + F723D2682464E2860004F0E0 /* Info-Paid.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Paid.plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 37337CDEB7181B925B4C497F /* libPods-Free App.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F723D2342464E1C10004F0E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A2AF7BD41FD4BC12FD4CA78F /* libPods-Paid App.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 28B5CA6AF106EA1C16AD68D4 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 4339F130EFF29582E670E34E /* libPods-Free App.a */, + A3D11A9D1653A6CF0D85528D /* libPods-Paid App.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 2B45AC91AD8E1C91F5B671AF /* Pods */ = { + isa = PBXGroup; + children = ( + 2F6C7D6ABA66181AD1367CBD /* Pods-Free App.debug free.xcconfig */, + F41C8FBAFCC90375E6D82338 /* Pods-Free App.debug paid.xcconfig */, + 1A1AB40A245F9BE7685BF241 /* Pods-Free App.release free.xcconfig */, + 8B8AFDAF5347CCCD64810738 /* Pods-Free App.release paid.xcconfig */, + 2854017F9B7B8478EC866CE6 /* Pods-Paid App.debug free.xcconfig */, + 3C3E60ABCBC52C4AD374B583 /* Pods-Paid App.debug paid.xcconfig */, + D2881C4AB6E69FA3735A4CB4 /* Pods-Paid App.release free.xcconfig */, + 4A4236635749EA5737345C48 /* Pods-Paid App.release paid.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 2B45AC91AD8E1C91F5B671AF /* Pods */, + 28B5CA6AF106EA1C16AD68D4 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Free App.app */, + F723D2412464E1C10004F0E0 /* Paid App.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info-Free.plist */, + F723D2682464E2860004F0E0 /* Info-Paid.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Free App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Free App" */; + buildPhases = ( + 926713855C2FEA5B608DF051 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Free App"; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Free App.app */; + productType = "com.apple.product-type.application"; + }; + F723D22E2464E1C10004F0E0 /* Paid App */ = { + isa = PBXNativeTarget; + buildConfigurationList = F723D23C2464E1C10004F0E0 /* Build configuration list for PBXNativeTarget "Paid App" */; + buildPhases = ( + 4F5FC507722005A4058D9FCE /* [CP] Check Pods Manifest.lock */, + F723D22F2464E1C10004F0E0 /* Run Script */, + F723D2302464E1C10004F0E0 /* Sources */, + F723D2342464E1C10004F0E0 /* Frameworks */, + F723D2352464E1C10004F0E0 /* Resources */, + F723D23A2464E1C10004F0E0 /* Embed Frameworks */, + F723D23B2464E1C10004F0E0 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Paid App"; + productName = Runner; + productReference = F723D2412464E1C10004F0E0 /* Paid App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Free App */, + F723D22E2464E1C10004F0E0 /* Paid App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F723D2352464E1C10004F0E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F723D2362464E1C10004F0E0 /* LaunchScreen.storyboard in Resources */, + F723D2372464E1C10004F0E0 /* AppFrameworkInfo.plist in Resources */, + F723D2382464E1C10004F0E0 /* Assets.xcassets in Resources */, + F723D2392464E1C10004F0E0 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; + }; + 4F5FC507722005A4058D9FCE /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Paid App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 926713855C2FEA5B608DF051 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Free App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + F723D22F2464E1C10004F0E0 /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + F723D23B2464E1C10004F0E0 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F723D2302464E1C10004F0E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F723D2312464E1C10004F0E0 /* AppDelegate.m in Sources */, + F723D2322464E1C10004F0E0 /* main.m in Sources */, + F723D2332464E1C10004F0E0 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 744E33D21F45D145007AB5E2 /* Debug Paid */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_FLAVOR = paid; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug Paid"; + }; + 744E33D31F45D145007AB5E2 /* Debug Paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Free.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug Paid"; + }; + 744E33D41F45D159007AB5E2 /* Release Paid */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_FLAVOR = paid; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Release Paid"; + }; + 744E33D51F45D159007AB5E2 /* Release Paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Free.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release Paid"; + }; + 97C147031CF9000F007C117D /* Debug Free */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_FLAVOR = free; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug Free"; + }; + 97C147041CF9000F007C117D /* Release Free */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_FLAVOR = free; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Release Free"; + }; + 97C147061CF9000F007C117D /* Debug Free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Free.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug Free"; + }; + 97C147071CF9000F007C117D /* Release Free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Free.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release Free"; + }; + F723D23D2464E1C10004F0E0 /* Debug Free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Paid.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug Free"; + }; + F723D23E2464E1C10004F0E0 /* Debug Paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Paid.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug Paid"; + }; + F723D23F2464E1C10004F0E0 /* Release Free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Paid.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release Free"; + }; + F723D2402464E1C10004F0E0 /* Release Paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-Paid.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release Paid"; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug Free */, + 744E33D21F45D145007AB5E2 /* Debug Paid */, + 97C147041CF9000F007C117D /* Release Free */, + 744E33D41F45D159007AB5E2 /* Release Paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release Free"; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Free App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug Free */, + 744E33D31F45D145007AB5E2 /* Debug Paid */, + 97C147071CF9000F007C117D /* Release Free */, + 744E33D51F45D159007AB5E2 /* Release Paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release Free"; + }; + F723D23C2464E1C10004F0E0 /* Build configuration list for PBXNativeTarget "Paid App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F723D23D2464E1C10004F0E0 /* Debug Free */, + F723D23E2464E1C10004F0E0 /* Debug Paid */, + F723D23F2464E1C10004F0E0 /* Release Free */, + F723D2402464E1C10004F0E0 /* Release Paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release Free"; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..a606d2bcf85ed7acc1bedd78831925e8b5838d33 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..43f1ee85fd3e02e43fc96ec57835b1bac1d73963 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..a78a945cd2ef8f832f90683ed5b29c97fcd8600b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..7ef36e523eddff67e43c19f2bbd70346b7926f18 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + FlutterViewController* controller = (FlutterViewController*)self.window.rootViewController; + FlutterMethodChannel* flavorChannel = [FlutterMethodChannel methodChannelWithName:@"flavor" binaryMessenger:controller]; + + [flavorChannel setMethodCallHandler:^(FlutterMethodCall *call, FlutterResult result) { + NSString* flavor = (NSString*)[[NSBundle mainBundle].infoDictionary valueForKey:@"Flavor"]; + result(flavor); + }]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..410c3542f9deef9495c1f8f32b1b1f2d21cf32aa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Free.plist b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Free.plist new file mode 100644 index 0000000000000000000000000000000000000000..b6853d58c582f4a57d8316d13fd493b68c161e1c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Free.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + Flavor + ${PRODUCT_FLAVOR} + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Paid.plist b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Paid.plist new file mode 100644 index 0000000000000000000000000000000000000000..b6853d58c582f4a57d8316d13fd493b68c161e1c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/Info-Paid.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + Flavor + ${PRODUCT_FLAVOR} + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..9cd53369d8288bc6aec533297fa946be46df4dcb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..4b81f9b2d200fc807eed25bca04dff9ee9dcc45f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..5caa9d1579e481a5894c37e2e56b0da062e95b35 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..12b3216f7766ff0ed4361c67ca360853a41c1e4a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,888 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + A8D0543760BD8ED75EAB85C3 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 683204659E0FA140DAF684CE /* Pods_RunnerTests.framework */; }; + FA919082D8855D7DBA2914D9 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76C8482ADB9852DB010CFA77 /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 029F26C887697BA18AF4FF21 /* Pods-RunnerTests.debug-free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-free.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-free.xcconfig"; sourceTree = ""; }; + 3018A950524CC4468165A7EC /* Pods-RunnerTests.release-free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-free.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-free.xcconfig"; sourceTree = ""; }; + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* Debug Free.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Debug Free.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 52B9BB06ABA84192AC04EDE2 /* Pods-Runner.release-paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-paid.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-paid.xcconfig"; sourceTree = ""; }; + 683204659E0FA140DAF684CE /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 76C8482ADB9852DB010CFA77 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 86C025768FDFCF4878B001BA /* Pods-RunnerTests.debug-paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-paid.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-paid.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + BEAF9C927A54C934A429D22F /* Pods-Runner.debug-paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-paid.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-paid.xcconfig"; sourceTree = ""; }; + C00B72F9733AA346361038B4 /* Pods-Runner.release-free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-free.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-free.xcconfig"; sourceTree = ""; }; + CD71E7162870F8181A89EB93 /* Pods-RunnerTests.release-paid.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-paid.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-paid.xcconfig"; sourceTree = ""; }; + FA74FFE6EBB080E66E5E33A6 /* Pods-Runner.debug-free.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-free.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-free.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A8D0543760BD8ED75EAB85C3 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FA919082D8855D7DBA2914D9 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + 8FCAFE6583B43823D97CFA2D /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* Debug Free.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + 8FCAFE6583B43823D97CFA2D /* Pods */ = { + isa = PBXGroup; + children = ( + FA74FFE6EBB080E66E5E33A6 /* Pods-Runner.debug-free.xcconfig */, + BEAF9C927A54C934A429D22F /* Pods-Runner.debug-paid.xcconfig */, + C00B72F9733AA346361038B4 /* Pods-Runner.release-free.xcconfig */, + 52B9BB06ABA84192AC04EDE2 /* Pods-Runner.release-paid.xcconfig */, + 029F26C887697BA18AF4FF21 /* Pods-RunnerTests.debug-free.xcconfig */, + 86C025768FDFCF4878B001BA /* Pods-RunnerTests.debug-paid.xcconfig */, + 3018A950524CC4468165A7EC /* Pods-RunnerTests.release-free.xcconfig */, + CD71E7162870F8181A89EB93 /* Pods-RunnerTests.release-paid.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 76C8482ADB9852DB010CFA77 /* Pods_Runner.framework */, + 683204659E0FA140DAF684CE /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 269181D3823A811F9180B61D /* [CP] Check Pods Manifest.lock */, + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + ED3AFEF898ADC10559F74D75 /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* Debug Free.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 269181D3823A811F9180B61D /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; + ED3AFEF898ADC10559F74D75 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 029F26C887697BA18AF4FF21 /* Pods-RunnerTests.debug-free.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flavors.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flavors"; + }; + name = "Debug-free"; + }; + 331C80DC294CF71000263BE5 /* Release-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3018A950524CC4468165A7EC /* Pods-RunnerTests.release-free.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flavors.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flavors"; + }; + name = "Release-free"; + }; + 33CC10F92044A3C60003C045 /* Debug-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "Debug Free"; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = "Debug-free"; + }; + 33CC10FA2044A3C60003C045 /* Release-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "Release Free"; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Release-free"; + }; + 33CC10FC2044A3C60003C045 /* Debug-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "Debug Free"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = "Debug-free"; + }; + 33CC10FD2044A3C60003C045 /* Release-free */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.free; + PRODUCT_NAME = "Release Free"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Release-free"; + }; + 33CC111C2044C6BA0003C045 /* Debug-free */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug-free"; + }; + 33CC111D2044C6BA0003C045 /* Release-free */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release-free"; + }; + 394D10B92B2A622A00FABF4B /* Debug-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "Debug Paid"; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = "Debug-paid"; + }; + 394D10BA2B2A622A00FABF4B /* Debug-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "Debug Paid"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = "Debug-paid"; + }; + 394D10BB2B2A622A00FABF4B /* Debug-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 86C025768FDFCF4878B001BA /* Pods-RunnerTests.debug-paid.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flavors.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flavors"; + }; + name = "Debug-paid"; + }; + 394D10BC2B2A622A00FABF4B /* Debug-paid */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug-paid"; + }; + 394D10BD2B2A622C00FABF4B /* Release-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "Release Paid"; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Release-paid"; + }; + 394D10BE2B2A622C00FABF4B /* Release-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.paid; + PRODUCT_NAME = "Release Paid"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Release-paid"; + }; + 394D10BF2B2A622C00FABF4B /* Release-paid */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = CD71E7162870F8181A89EB93 /* Pods-RunnerTests.release-paid.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flavors.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flavors"; + }; + name = "Release-paid"; + }; + 394D10C02B2A622C00FABF4B /* Release-paid */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release-paid"; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug-free */, + 394D10BB2B2A622A00FABF4B /* Debug-paid */, + 331C80DC294CF71000263BE5 /* Release-free */, + 394D10BF2B2A622C00FABF4B /* Release-paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug-free"; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug-free */, + 394D10B92B2A622A00FABF4B /* Debug-paid */, + 33CC10FA2044A3C60003C045 /* Release-free */, + 394D10BD2B2A622C00FABF4B /* Release-paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug-free"; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug-free */, + 394D10BA2B2A622A00FABF4B /* Debug-paid */, + 33CC10FD2044A3C60003C045 /* Release-free */, + 394D10BE2B2A622C00FABF4B /* Release-paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug-free"; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug-free */, + 394D10BC2B2A622A00FABF4B /* Debug-paid */, + 33CC111D2044C6BA0003C045 /* Release-free */, + 394D10C02B2A622C00FABF4B /* Release-paid */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug-free"; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..5c0c51d928a517e8a79cc8969442e6a42d9d506c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..ef1675cd25ebd85616601908c6856e26e939eb85 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/free.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..2a4a40afbf7b5b701262f961455054ebcb36d584 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcodeproj/xcshareddata/xcschemes/paid.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d080d41951d3506a861ceadcf4354bbbb609a562 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..a2ec33f19f110ebff51a23342d7bc29ec9a1aaa6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Base.lproj/MainMenu.xib b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000000000000000000000000000000000000..80e867a4e06b4dc26d0a2b327cbd54041addc50a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/AppInfo.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..cccb47204ec041c3b7c8fa2166db42bc96f7a41c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = flavors + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flavors + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2014 The Flutter Authors. All rights reserved. diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..36b0fd9464f45b33f482e64bea579787e142affa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..dff4f49561c816f70eaea557d889d31cf63447ac --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Warnings.xcconfig b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..42bcbf4780b187e80025b7917058bcb882012aa1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/DebugProfile.entitlements b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..dddb8a30c851e7ef5b16a9108934bd1217b6b43f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..e1f3de08e9e858e4080df85788c41f322426c5ed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + $(PRODUCT_NAME) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/MainFlutterWindow.swift b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000000000000000000000000000000000000..0fb1ffa06d5380762179a8635754bf6c0fdd4594 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,32 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + RegisterMethodChannel(registry: flutterViewController) + + super.awakeFromNib() + } + + + func RegisterMethodChannel(registry: FlutterPluginRegistry) { + let registrar = registry.registrar(forPlugin: "flavors") + let channel = FlutterMethodChannel(name: "flavor", + binaryMessenger: registrar.messenger) + channel.setMethodCallHandler({ (call, result) in + let bundleIdentifier = Bundle.main.infoDictionary?["CFBundleName"] as? String + let flavor = bundleIdentifier?.split(separator: " ").last?.lowercased(); + result(flavor) + }) + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Release.entitlements b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Release.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..852fa1a4728ae4789e3bca55dd07caef3b41f2a5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/macos/RunnerTests/RunnerTests.swift b/novelforge-project/flutter/dev/integration_tests/flavors/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000000000000000000000000000000000000..102c76116822b8eb4aed6737e163b957772fa5f4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import FlutterMacOS +import Cocoa +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/novelforge-project/flutter/dev/integration_tests/flavors/test_driver/main_test.dart b/novelforge-project/flutter/dev/integration_tests/flavors/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..2bc8493ecf703384f10b64008e3a1abecf075fbe --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flavors/test_driver/main_test.dart @@ -0,0 +1,26 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('flavors suite', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + test('check flavor', () async { + final SerializableFinder flavorField = find.byValueKey('flavor'); + final String flavor = await driver.getText(flavorField); + expect(flavor, 'paid'); + }, timeout: Timeout.none); + + tearDownAll(() async { + driver.close(); + }); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..7ba3afe22c3f01a57470cb0c0e08e9b9f610b817 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile @@ -0,0 +1,95 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath +androidx.annotation:annotation-experimental:1.3.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath +androidx.arch.core:core-runtime:2.1.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.browser:browser:1.5.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.10.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath +androidx.lifecycle:lifecycle-common:2.3.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath +androidx.lifecycle:lifecycle-runtime:2.3.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.multidex:multidex-instrumentation:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath +androidx.multidex:multidex:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-common:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-common:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-core:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-core:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-dash:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-dash:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-database:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-datasource:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-decoder:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-extractor:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-extractor:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-hls:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-hls:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-smoothstreaming:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.android.exoplayer:exoplayer-smoothstreaming:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.7.1=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:31.0.1-android=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +junit:junit:4.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.12.0=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-bom:1.8.22=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-connectivity.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-connectivity.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..6e2da7322f135772426b70eff0b7bf77ee45bbb6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-connectivity.lockfile @@ -0,0 +1,42 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-device_info.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-device_info.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..6e2da7322f135772426b70eff0b7bf77ee45bbb6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-device_info.lockfile @@ -0,0 +1,42 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..560088aae8203647a832b9ab7196d0436a9d49d7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile @@ -0,0 +1,90 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.browser:browser:1.5.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.10.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.3.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.3.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.5.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.test:annotation:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:core:1.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.almworks.sqlite4java:sqlite4java:1.0.392=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.auto.value:auto-value-annotations:1.10.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.18.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:31.1-jre=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.ibm.icu:icu4j:72.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.annotation:javax.annotation-api:1.3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.bouncycastle:bcprov-jdk18on:1.72=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.12.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.conscrypt:conscrypt-openjdk-uber:2.5.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-bom:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.1.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-analysis:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-util:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm:9.1=androidJacocoAnt +org.ow2.asm:asm:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:annotations:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:junit:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime-dist-compat:1.0.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:pluginapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:plugins-maven-dependency-resolver:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:resources:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:robolectric:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:sandbox:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadowapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadows-framework:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils-reflector:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..32dfc5d669ff6736335315945cb2ec33ff796613 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile @@ -0,0 +1,47 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.annotation:annotation:1.3.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.arch.core:core-runtime:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.collection:collection:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.concurrent:concurrent-futures:1.0.0=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +androidx.core:core:1.7.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.customview:customview:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.3.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.3.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.loader:loader:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-common:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-core:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-dash:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-database:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-datasource:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-decoder:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-extractor:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-hls:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.android.exoplayer:exoplayer-smoothstreaming:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.guava:guava:31.0.1-android=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains:annotations:13.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +empty=androidApis,debugAnnotationProcessorClasspath,lintPublish,profileAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/ios/Podfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..89b2e432ab2685107cde7fb77538569b5bd125fe --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/ios/Podfile @@ -0,0 +1,41 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = '' + end + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/delayed_main.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/delayed_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..7dc2af5556dd6b7f0571ec067494317b686ad29e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/delayed_main.dart @@ -0,0 +1,33 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'gallery/app.dart'; + +Object? createGarbage() { + final List garbage = []; + for (int index = 0; index < 1000; index += 1) { + final List moreGarbage = List.filled(1000, index); + if (index.isOdd) { + garbage.add(moreGarbage); + } + } + return garbage; +} + +Future main() async { + // Create some garbage, and simulate some delays between that could be + // plugin or network call related. + final List garbage = []; + for (int index = 0; index < 20; index += 1) { + final Object? moreGarbage = createGarbage(); + if (index.isOdd) { + garbage.add(moreGarbage); + await Future.delayed(const Duration(milliseconds: 7)); + } + } + + runApp(const GalleryApp()); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/all.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/all.dart new file mode 100644 index 0000000000000000000000000000000000000000..c69efcdb4f2cebd1f6c1674ad21dca203e620ca1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/all.dart @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'animation_demo.dart'; +export 'calculator_demo.dart'; +export 'colors_demo.dart'; +export 'contacts_demo.dart'; +export 'cupertino/cupertino.dart'; +export 'fortnightly/fortnightly.dart'; +export 'images_demo.dart'; +export 'material/material.dart'; +export 'pesto_demo.dart'; +export 'shrine_demo.dart'; +export 'transformations/transformations_demo.dart'; +export 'typography_demo.dart'; +export 'video_demo.dart'; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..593e55db5430192cd99b45f9433b0d0a59058cf3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart @@ -0,0 +1,630 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Based on https://material.uplabs.com/posts/google-newsstand-navigation-pattern +// See also: https://material-motion.github.io/material-motion/documentation/ + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +import 'sections.dart'; +import 'widgets.dart'; + +const Color _kAppBackgroundColor = Color(0xFF353662); +const Duration _kScrollDuration = Duration(milliseconds: 400); +const Curve _kScrollCurve = Curves.fastOutSlowIn; + +// This app's contents start out at _kHeadingMaxHeight and they function like +// an appbar. Initially the appbar occupies most of the screen and its section +// headings are laid out in a column. By the time its height has been +// reduced to _kAppBarMidHeight, its layout is horizontal, only one section +// heading is visible, and the section's list of details is visible below the +// heading. The appbar's height can be reduced to no more than _kAppBarMinHeight. +const double _kAppBarMinHeight = 90.0; +const double _kAppBarMidHeight = 256.0; +// The AppBar's max height depends on the screen, see _AnimationDemoHomeState._buildBody() + +// Initially occupies the same space as the status bar and gets smaller as +// the primary scrollable scrolls upwards. +// TODO(hansmuller): it would be worth adding something like this to the framework. +class _RenderStatusBarPaddingSliver extends RenderSliver { + _RenderStatusBarPaddingSliver({ + required double maxHeight, + required double scrollFactor, + }) : assert(maxHeight >= 0.0), + assert(scrollFactor >= 1.0), + _maxHeight = maxHeight, + _scrollFactor = scrollFactor; + + // The height of the status bar + double get maxHeight => _maxHeight; + double _maxHeight; + set maxHeight(double value) { + assert(maxHeight >= 0.0); + if (_maxHeight == value) { + return; + } + _maxHeight = value; + markNeedsLayout(); + } + + // That rate at which this renderer's height shrinks when the scroll + // offset changes. + double get scrollFactor => _scrollFactor; + double _scrollFactor; + set scrollFactor(double value) { + assert(scrollFactor >= 1.0); + if (_scrollFactor == value) { + return; + } + _scrollFactor = value; + markNeedsLayout(); + } + + @override + void performLayout() { + final double height = (maxHeight - constraints.scrollOffset / scrollFactor).clamp(0.0, maxHeight); + geometry = SliverGeometry( + paintExtent: math.min(height, constraints.remainingPaintExtent), + scrollExtent: maxHeight, + maxPaintExtent: maxHeight, + ); + } +} + +class _StatusBarPaddingSliver extends SingleChildRenderObjectWidget { + const _StatusBarPaddingSliver({ + required this.maxHeight, + this.scrollFactor = 5.0, + }) : assert(maxHeight >= 0.0), + assert(scrollFactor >= 1.0); + + final double maxHeight; + final double scrollFactor; + + @override + _RenderStatusBarPaddingSliver createRenderObject(BuildContext context) { + return _RenderStatusBarPaddingSliver( + maxHeight: maxHeight, + scrollFactor: scrollFactor, + ); + } + + @override + void updateRenderObject(BuildContext context, _RenderStatusBarPaddingSliver renderObject) { + renderObject + ..maxHeight = maxHeight + ..scrollFactor = scrollFactor; + } + + @override + void debugFillProperties(DiagnosticPropertiesBuilder description) { + super.debugFillProperties(description); + description.add(DoubleProperty('maxHeight', maxHeight)); + description.add(DoubleProperty('scrollFactor', scrollFactor)); + } +} + +class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate { + _SliverAppBarDelegate({ + required this.minHeight, + required this.maxHeight, + required this.child, + }); + + final double minHeight; + final double maxHeight; + final Widget child; + + @override + double get minExtent => minHeight; + @override + double get maxExtent => math.max(maxHeight, minHeight); + + @override + Widget build(BuildContext context, double shrinkOffset, bool overlapsContent) { + return SizedBox.expand(child: child); + } + + @override + bool shouldRebuild(_SliverAppBarDelegate oldDelegate) { + return maxHeight != oldDelegate.maxHeight + || minHeight != oldDelegate.minHeight + || child != oldDelegate.child; + } + + @override + String toString() => '_SliverAppBarDelegate'; +} + +// Arrange the section titles, indicators, and cards. The cards are only included when +// the layout is transitioning between vertical and horizontal. Once the layout is +// horizontal the cards are laid out by a PageView. +// +// The layout of the section cards, titles, and indicators is defined by the +// two 0.0-1.0 "t" parameters, both of which are based on the layout's height: +// - tColumnToRow +// 0.0 when height is maxHeight and the layout is a column +// 1.0 when the height is midHeight and the layout is a row +// - tCollapsed +// 0.0 when height is midHeight and the layout is a row +// 1.0 when height is minHeight and the layout is a (still) row +// +// minHeight < midHeight < maxHeight +// +// The general approach here is to compute the column layout and row size +// and position of each element and then interpolate between them using +// tColumnToRow. Once tColumnToRow reaches 1.0, the layout changes are +// defined by tCollapsed. As tCollapsed increases the titles spread out +// until only one title is visible and the indicators cluster together +// until they're all visible. +class _AllSectionsLayout extends MultiChildLayoutDelegate { + _AllSectionsLayout({ + this.translation, + this.tColumnToRow, + this.tCollapsed, + this.cardCount, + this.selectedIndex, + }); + + final Alignment? translation; + final double? tColumnToRow; + final double? tCollapsed; + final int? cardCount; + final double? selectedIndex; + + Rect? _interpolateRect(Rect begin, Rect end) { + return Rect.lerp(begin, end, tColumnToRow!); + } + + Offset? _interpolatePoint(Offset begin, Offset end) { + return Offset.lerp(begin, end, tColumnToRow!); + } + + @override + void performLayout(Size size) { + final double columnCardX = size.width / 5.0; + final double columnCardWidth = size.width - columnCardX; + final double columnCardHeight = size.height / cardCount!; + final double rowCardWidth = size.width; + final Offset offset = translation!.alongSize(size); + double columnCardY = 0.0; + double rowCardX = -(selectedIndex! * rowCardWidth); + + // When tCollapsed > 0 the titles spread apart + final double columnTitleX = size.width / 10.0; + final double rowTitleWidth = size.width * ((1 + tCollapsed!) / 2.25); + double rowTitleX = (size.width - rowTitleWidth) / 2.0 - selectedIndex! * rowTitleWidth; + + // When tCollapsed > 0, the indicators move closer together + //final double rowIndicatorWidth = 48.0 + (1.0 - tCollapsed) * (rowTitleWidth - 48.0); + const double paddedSectionIndicatorWidth = kSectionIndicatorWidth + 8.0; + final double rowIndicatorWidth = paddedSectionIndicatorWidth + + (1.0 - tCollapsed!) * (rowTitleWidth - paddedSectionIndicatorWidth); + double rowIndicatorX = (size.width - rowIndicatorWidth) / 2.0 - selectedIndex! * rowIndicatorWidth; + + // Compute the size and origin of each card, title, and indicator for the maxHeight + // "column" layout, and the midHeight "row" layout. The actual layout is just the + // interpolated value between the column and row layouts for t. + for (int index = 0; index < cardCount!; index++) { + + // Layout the card for index. + final Rect columnCardRect = Rect.fromLTWH(columnCardX, columnCardY, columnCardWidth, columnCardHeight); + final Rect rowCardRect = Rect.fromLTWH(rowCardX, 0.0, rowCardWidth, size.height); + final Rect cardRect = _interpolateRect(columnCardRect, rowCardRect)!.shift(offset); + final String cardId = 'card$index'; + if (hasChild(cardId)) { + layoutChild(cardId, BoxConstraints.tight(cardRect.size)); + positionChild(cardId, cardRect.topLeft); + } + + // Layout the title for index. + final Size titleSize = layoutChild('title$index', BoxConstraints.loose(cardRect.size)); + final double columnTitleY = columnCardRect.centerLeft.dy - titleSize.height / 2.0; + final double rowTitleY = rowCardRect.centerLeft.dy - titleSize.height / 2.0; + final double centeredRowTitleX = rowTitleX + (rowTitleWidth - titleSize.width) / 2.0; + final Offset columnTitleOrigin = Offset(columnTitleX, columnTitleY); + final Offset rowTitleOrigin = Offset(centeredRowTitleX, rowTitleY); + final Offset titleOrigin = _interpolatePoint(columnTitleOrigin, rowTitleOrigin)!; + positionChild('title$index', titleOrigin + offset); + + // Layout the selection indicator for index. + final Size indicatorSize = layoutChild('indicator$index', BoxConstraints.loose(cardRect.size)); + final double columnIndicatorX = cardRect.centerRight.dx - indicatorSize.width - 16.0; + final double columnIndicatorY = cardRect.bottomRight.dy - indicatorSize.height - 16.0; + final Offset columnIndicatorOrigin = Offset(columnIndicatorX, columnIndicatorY); + final Rect titleRect = Rect.fromPoints(titleOrigin, titleSize.bottomRight(titleOrigin)); + final double centeredRowIndicatorX = rowIndicatorX + (rowIndicatorWidth - indicatorSize.width) / 2.0; + final double rowIndicatorY = titleRect.bottomCenter.dy + 16.0; + final Offset rowIndicatorOrigin = Offset(centeredRowIndicatorX, rowIndicatorY); + final Offset indicatorOrigin = _interpolatePoint(columnIndicatorOrigin, rowIndicatorOrigin)!; + positionChild('indicator$index', indicatorOrigin + offset); + + columnCardY += columnCardHeight; + rowCardX += rowCardWidth; + rowTitleX += rowTitleWidth; + rowIndicatorX += rowIndicatorWidth; + } + } + + @override + bool shouldRelayout(_AllSectionsLayout oldDelegate) { + return tColumnToRow != oldDelegate.tColumnToRow + || cardCount != oldDelegate.cardCount + || selectedIndex != oldDelegate.selectedIndex; + } +} + +class _AllSectionsView extends AnimatedWidget { + _AllSectionsView({ + required this.sectionIndex, + required this.sections, + required this.selectedIndex, + this.minHeight, + this.midHeight, + this.maxHeight, + this.sectionCards = const [], + }) : assert(sectionCards.length == sections.length), + assert(sectionIndex >= 0 && sectionIndex < sections.length), + assert(selectedIndex.value! >= 0.0 && selectedIndex.value! < sections.length.toDouble()), + super(listenable: selectedIndex); + + final int sectionIndex; + final List
sections; + final ValueNotifier selectedIndex; + final double? minHeight; + final double? midHeight; + final double? maxHeight; + final List sectionCards; + + double _selectedIndexDelta(int index) { + return (index.toDouble() - selectedIndex.value!).abs().clamp(0.0, 1.0); + } + + Widget _build(BuildContext context, BoxConstraints constraints) { + final Size size = constraints.biggest; + + // The layout's progress from a column to a row. Its value is + // 0.0 when size.height equals the maxHeight, 1.0 when the size.height + // equals the midHeight. + final double tColumnToRow = + 1.0 - ((size.height - midHeight!) / + (maxHeight! - midHeight!)).clamp(0.0, 1.0); + + + // The layout's progress from the midHeight row layout to + // a minHeight row layout. Its value is 0.0 when size.height equals + // midHeight and 1.0 when size.height equals minHeight. + final double tCollapsed = + 1.0 - ((size.height - minHeight!) / + (midHeight! - minHeight!)).clamp(0.0, 1.0); + + double indicatorOpacity(int index) { + return 1.0 - _selectedIndexDelta(index) * 0.5; + } + + double titleOpacity(int index) { + return 1.0 - _selectedIndexDelta(index) * tColumnToRow * 0.5; + } + + double titleScale(int index) { + return 1.0 - _selectedIndexDelta(index) * tColumnToRow * 0.15; + } + + final List children = List.from(sectionCards); + + for (int index = 0; index < sections.length; index++) { + final Section section = sections[index]; + children.add(LayoutId( + id: 'title$index', + child: SectionTitle( + section: section, + scale: titleScale(index), + opacity: titleOpacity(index), + ), + )); + } + + for (int index = 0; index < sections.length; index++) { + children.add(LayoutId( + id: 'indicator$index', + child: SectionIndicator( + opacity: indicatorOpacity(index), + ), + )); + } + + return CustomMultiChildLayout( + delegate: _AllSectionsLayout( + translation: Alignment((selectedIndex.value! - sectionIndex) * 2.0 - 1.0, -1.0), + tColumnToRow: tColumnToRow, + tCollapsed: tCollapsed, + cardCount: sections.length, + selectedIndex: selectedIndex.value, + ), + children: children, + ); + } + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: _build); + } +} + +// Support snapping scrolls to the midScrollOffset: the point at which the +// app bar's height is _kAppBarMidHeight and only one section heading is +// visible. +class _SnappingScrollPhysics extends ClampingScrollPhysics { + const _SnappingScrollPhysics({ + super.parent, + required this.midScrollOffset, + }); + + final double midScrollOffset; + + @override + _SnappingScrollPhysics applyTo(ScrollPhysics? ancestor) { + return _SnappingScrollPhysics(parent: buildParent(ancestor), midScrollOffset: midScrollOffset); + } + + Simulation _toMidScrollOffsetSimulation(double offset, double dragVelocity, ScrollMetrics metrics) { + final double velocity = math.max(dragVelocity, minFlingVelocity); + return ScrollSpringSimulation(spring, offset, midScrollOffset, velocity, tolerance: toleranceFor(metrics)); + } + + Simulation _toZeroScrollOffsetSimulation(double offset, double dragVelocity, ScrollMetrics metrics) { + final double velocity = math.max(dragVelocity, minFlingVelocity); + return ScrollSpringSimulation(spring, offset, 0.0, velocity, tolerance: toleranceFor(metrics)); + } + + @override + Simulation? createBallisticSimulation(ScrollMetrics position, double dragVelocity) { + final Simulation? simulation = super.createBallisticSimulation(position, dragVelocity); + final double offset = position.pixels; + + if (simulation != null) { + // The drag ended with sufficient velocity to trigger creating a simulation. + // If the simulation is headed up towards midScrollOffset but will not reach it, + // then snap it there. Similarly if the simulation is headed down past + // midScrollOffset but will not reach zero, then snap it to zero. + final double simulationEnd = simulation.x(double.infinity); + if (simulationEnd >= midScrollOffset) { + return simulation; + } + if (dragVelocity > 0.0) { + return _toMidScrollOffsetSimulation(offset, dragVelocity, position); + } + if (dragVelocity < 0.0) { + return _toZeroScrollOffsetSimulation(offset, dragVelocity, position); + } + } else { + // The user ended the drag with little or no velocity. If they + // didn't leave the offset above midScrollOffset, then + // snap to midScrollOffset if they're more than halfway there, + // otherwise snap to zero. + final double snapThreshold = midScrollOffset / 2.0; + if (offset >= snapThreshold && offset < midScrollOffset) { + return _toMidScrollOffsetSimulation(offset, dragVelocity, position); + } + if (offset > 0.0 && offset < snapThreshold) { + return _toZeroScrollOffsetSimulation(offset, dragVelocity, position); + } + } + return simulation; + } +} + +class AnimationDemoHome extends StatefulWidget { + const AnimationDemoHome({ super.key }); + + static const String routeName = '/animation'; + + @override + State createState() => _AnimationDemoHomeState(); +} + +class _AnimationDemoHomeState extends State { + final ScrollController _scrollController = ScrollController(); + final PageController _headingPageController = PageController(); + final PageController _detailsPageController = PageController(); + ScrollPhysics _headingScrollPhysics = const NeverScrollableScrollPhysics(); + ValueNotifier selectedIndex = ValueNotifier(0.0); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: _kAppBackgroundColor, + body: Builder( + // Insert an element so that _buildBody can find the PrimaryScrollController. + builder: _buildBody, + ), + ); + } + + void _handleBackButton(double midScrollOffset) { + if (_scrollController.offset >= midScrollOffset) { + _scrollController.animateTo(0.0, curve: _kScrollCurve, duration: _kScrollDuration); + } else { + Navigator.maybePop(context); + } + } + + // Only enable paging for the heading when the user has scrolled to midScrollOffset. + // Paging is enabled/disabled by setting the heading's PageView scroll physics. + bool _handleScrollNotification(ScrollNotification notification, double midScrollOffset) { + if (notification.depth == 0 && notification is ScrollUpdateNotification) { + final ScrollPhysics physics = _scrollController.position.pixels >= midScrollOffset + ? const PageScrollPhysics() + : const NeverScrollableScrollPhysics(); + if (physics != _headingScrollPhysics) { + setState(() { + _headingScrollPhysics = physics; + }); + } + } + return false; + } + + void _maybeScroll(double midScrollOffset, int pageIndex, double xOffset) { + if (_scrollController.offset < midScrollOffset) { + // Scroll the overall list to the point where only one section card shows. + // At the same time scroll the PageViews to the page at pageIndex. + _headingPageController.animateToPage(pageIndex, curve: _kScrollCurve, duration: _kScrollDuration); + _scrollController.animateTo(midScrollOffset, curve: _kScrollCurve, duration: _kScrollDuration); + } else { + // One one section card is showing: scroll one page forward or back. + final double centerX = _headingPageController.position.viewportDimension / 2.0; + final int newPageIndex = xOffset > centerX ? pageIndex + 1 : pageIndex - 1; + _headingPageController.animateToPage(newPageIndex, curve: _kScrollCurve, duration: _kScrollDuration); + } + } + + bool _handlePageNotification(ScrollNotification notification, PageController leader, PageController follower) { + if (notification.depth == 0 && notification is ScrollUpdateNotification) { + selectedIndex.value = leader.page; + if (follower.page != leader.page) { + follower.position.jumpToWithoutSettling(leader.position.pixels); // ignore: deprecated_member_use + } + } + return false; + } + + Iterable _detailItemsFor(Section section) { + final Iterable detailItems = section.details!.map((SectionDetail detail) { + return SectionDetailView(detail: detail); + }); + return ListTile.divideTiles(context: context, tiles: detailItems); + } + + List _allHeadingItems(double maxHeight, double midScrollOffset) { + final List sectionCards = []; + for (int index = 0; index < allSections.length; index++) { + sectionCards.add(LayoutId( + id: 'card$index', + child: GestureDetector( + behavior: HitTestBehavior.opaque, + child: SectionCard(section: allSections[index]), + onTapUp: (TapUpDetails details) { + final double xOffset = details.globalPosition.dx; + setState(() { + _maybeScroll(midScrollOffset, index, xOffset); + }); + }, + ), + )); + } + + final List headings = []; + for (int index = 0; index < allSections.length; index++) { + headings.add(ColoredBox( + color: _kAppBackgroundColor, + child: ClipRect( + child: _AllSectionsView( + sectionIndex: index, + sections: allSections, + selectedIndex: selectedIndex, + minHeight: _kAppBarMinHeight, + midHeight: _kAppBarMidHeight, + maxHeight: maxHeight, + sectionCards: sectionCards, + ), + ), + ) + ); + } + return headings; + } + + Widget _buildBody(BuildContext context) { + final MediaQueryData mediaQueryData = MediaQuery.of(context); + final double statusBarHeight = mediaQueryData.padding.top; + final double screenHeight = mediaQueryData.size.height; + final double appBarMaxHeight = screenHeight - statusBarHeight; + + // The scroll offset that reveals the appBarMidHeight appbar. + final double appBarMidScrollOffset = statusBarHeight + appBarMaxHeight - _kAppBarMidHeight; + + return SizedBox.expand( + child: Stack( + children: [ + NotificationListener( + onNotification: (ScrollNotification notification) { + return _handleScrollNotification(notification, appBarMidScrollOffset); + }, + child: CustomScrollView( + controller: _scrollController, + physics: _SnappingScrollPhysics(midScrollOffset: appBarMidScrollOffset), + slivers: [ + // Start out below the status bar, gradually move to the top of the screen. + _StatusBarPaddingSliver( + maxHeight: statusBarHeight, + scrollFactor: 7.0, + ), + // Section Headings + SliverPersistentHeader( + pinned: true, + delegate: _SliverAppBarDelegate( + minHeight: _kAppBarMinHeight, + maxHeight: appBarMaxHeight, + child: NotificationListener( + onNotification: (ScrollNotification notification) { + return _handlePageNotification(notification, _headingPageController, _detailsPageController); + }, + child: PageView( + physics: _headingScrollPhysics, + controller: _headingPageController, + children: _allHeadingItems(appBarMaxHeight, appBarMidScrollOffset), + ), + ), + ), + ), + // Details + SliverToBoxAdapter( + child: SizedBox( + height: 610.0, + child: NotificationListener( + onNotification: (ScrollNotification notification) { + return _handlePageNotification(notification, _detailsPageController, _headingPageController); + }, + child: PageView( + controller: _detailsPageController, + children: allSections.map((Section section) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: _detailItemsFor(section).toList(), + ); + }).toList(), + ), + ), + ), + ), + ], + ), + ), + Positioned( + top: statusBarHeight, + left: 0.0, + child: IconTheme( + data: const IconThemeData(color: Colors.white), + child: SafeArea( + top: false, + bottom: false, + child: IconButton( + icon: const BackButtonIcon(), + tooltip: 'Back', + onPressed: () { + _handleBackButton(appBarMidScrollOffset); + }, + ), + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/sections.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/sections.dart new file mode 100644 index 0000000000000000000000000000000000000000..9c5377c8218d30145f555ef85845051296a37021 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/sections.dart @@ -0,0 +1,169 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Raw data for the animation demo. + +import 'package:flutter/material.dart'; + +const Color _mariner = Color(0xFF3B5F8F); +const Color _mediumPurple = Color(0xFF8266D4); +const Color _tomato = Color(0xFFF95B57); +const Color _mySin = Color(0xFFF3A646); + +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; + +class SectionDetail { + const SectionDetail({ + this.title, + this.subtitle, + this.imageAsset, + this.imageAssetPackage, + }); + final String? title; + final String? subtitle; + final String? imageAsset; + final String? imageAssetPackage; +} + +@immutable +class Section { + const Section({ + this.title, + this.backgroundAsset, + this.backgroundAssetPackage, + this.leftColor, + this.rightColor, + this.details, + }); + final String? title; + final String? backgroundAsset; + final String? backgroundAssetPackage; + final Color? leftColor; + final Color? rightColor; + final List? details; + + @override + bool operator==(Object other) { + return other is Section + && other.title == title; + } + + @override + int get hashCode => title.hashCode; +} + +// TODO(hansmuller): replace the SectionDetail images and text. Get rid of +// the const vars like _eyeglassesDetail and insert a variety of titles and +// image SectionDetails in the allSections list. + +const SectionDetail _eyeglassesDetail = SectionDetail( + imageAsset: 'products/sunnies.png', + imageAssetPackage: _kGalleryAssetsPackage, + title: 'Flutter enables interactive animation', + subtitle: '3K views - 5 days', +); + +const SectionDetail _eyeglassesImageDetail = SectionDetail( + imageAsset: 'products/sunnies.png', + imageAssetPackage: _kGalleryAssetsPackage, +); + +const SectionDetail _seatingDetail = SectionDetail( + imageAsset: 'products/table.png', + imageAssetPackage: _kGalleryAssetsPackage, + title: 'Flutter enables interactive animation', + subtitle: '3K views - 5 days', +); + +const SectionDetail _seatingImageDetail = SectionDetail( + imageAsset: 'products/table.png', + imageAssetPackage: _kGalleryAssetsPackage, +); + +const SectionDetail _decorationDetail = SectionDetail( + imageAsset: 'products/earrings.png', + imageAssetPackage: _kGalleryAssetsPackage, + title: 'Flutter enables interactive animation', + subtitle: '3K views - 5 days', +); + +const SectionDetail _decorationImageDetail = SectionDetail( + imageAsset: 'products/earrings.png', + imageAssetPackage: _kGalleryAssetsPackage, +); + +const SectionDetail _protectionDetail = SectionDetail( + imageAsset: 'products/hat.png', + imageAssetPackage: _kGalleryAssetsPackage, + title: 'Flutter enables interactive animation', + subtitle: '3K views - 5 days', +); + +const SectionDetail _protectionImageDetail = SectionDetail( + imageAsset: 'products/hat.png', + imageAssetPackage: _kGalleryAssetsPackage, +); + +final List
allSections =
[ + const Section( + title: 'SUNGLASSES', + leftColor: _mediumPurple, + rightColor: _mariner, + backgroundAsset: 'products/sunnies.png', + backgroundAssetPackage: _kGalleryAssetsPackage, + details: [ + _eyeglassesDetail, + _eyeglassesImageDetail, + _eyeglassesDetail, + _eyeglassesDetail, + _eyeglassesDetail, + _eyeglassesDetail, + ], + ), + const Section( + title: 'FURNITURE', + leftColor: _tomato, + rightColor: _mediumPurple, + backgroundAsset: 'products/table.png', + backgroundAssetPackage: _kGalleryAssetsPackage, + details: [ + _seatingDetail, + _seatingImageDetail, + _seatingDetail, + _seatingDetail, + _seatingDetail, + _seatingDetail, + ], + ), + const Section( + title: 'JEWELRY', + leftColor: _mySin, + rightColor: _tomato, + backgroundAsset: 'products/earrings.png', + backgroundAssetPackage: _kGalleryAssetsPackage, + details: [ + _decorationDetail, + _decorationImageDetail, + _decorationDetail, + _decorationDetail, + _decorationDetail, + _decorationDetail, + ], + ), + const Section( + title: 'HEADWEAR', + leftColor: Colors.white, + rightColor: _tomato, + backgroundAsset: 'products/hat.png', + backgroundAssetPackage: _kGalleryAssetsPackage, + details: [ + _protectionDetail, + _protectionImageDetail, + _protectionDetail, + _protectionDetail, + _protectionDetail, + _protectionDetail, + ], + ), +]; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/widgets.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/widgets.dart new file mode 100644 index 0000000000000000000000000000000000000000..9b4a520b0014c4d2a25d6e23be20d672b14d009b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/widgets.dart @@ -0,0 +1,158 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'sections.dart'; + +const double kSectionIndicatorWidth = 32.0; + +// The card for a single section. Displays the section's gradient and background image. +class SectionCard extends StatelessWidget { + const SectionCard({ super.key, required this.section }); + + final Section section; + + @override + Widget build(BuildContext context) { + return Semantics( + label: section.title, + button: true, + child: DecoratedBox( + decoration: BoxDecoration( + gradient: LinearGradient( + colors: [ + section.leftColor!, + section.rightColor!, + ], + ), + ), + child: Image.asset( + section.backgroundAsset!, + package: section.backgroundAssetPackage, + color: const Color.fromRGBO(255, 255, 255, 0.075), + colorBlendMode: BlendMode.modulate, + fit: BoxFit.cover, + ), + ), + ); + } +} + +// The title is rendered with two overlapping text widgets that are vertically +// offset a little. It's supposed to look sort-of 3D. +class SectionTitle extends StatelessWidget { + const SectionTitle({ + super.key, + required this.section, + required this.scale, + required this.opacity, + }) : assert(opacity >= 0.0 && opacity <= 1.0); + + final Section section; + final double scale; + final double opacity; + + static const TextStyle sectionTitleStyle = TextStyle( + fontFamily: 'Raleway', + inherit: false, + fontSize: 24.0, + fontWeight: FontWeight.w500, + color: Colors.white, + textBaseline: TextBaseline.alphabetic, + ); + + static final TextStyle sectionTitleShadowStyle = sectionTitleStyle.copyWith( + color: const Color(0x19000000), + ); + + @override + Widget build(BuildContext context) { + return IgnorePointer( + child: Opacity( + opacity: opacity, + child: Transform( + transform: Matrix4.identity()..scale(scale), + alignment: Alignment.center, + child: Stack( + children: [ + Positioned( + top: 4.0, + child: Text(section.title!, style: sectionTitleShadowStyle), + ), + Text(section.title!, style: sectionTitleStyle), + ], + ), + ), + ), + ); + } +} + +// Small horizontal bar that indicates the selected section. +class SectionIndicator extends StatelessWidget { + const SectionIndicator({ super.key, this.opacity = 1.0 }); + + final double opacity; + + @override + Widget build(BuildContext context) { + return IgnorePointer( + child: Container( + width: kSectionIndicatorWidth, + height: 3.0, + color: Colors.white.withOpacity(opacity), + ), + ); + } +} + +// Display a single SectionDetail. +class SectionDetailView extends StatelessWidget { + SectionDetailView({ super.key, required this.detail }) + : assert(detail.imageAsset != null), + assert((detail.imageAsset ?? detail.title) != null); + + final SectionDetail detail; + + @override + Widget build(BuildContext context) { + final Widget image = DecoratedBox( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(6.0), + image: DecorationImage( + image: AssetImage( + detail.imageAsset!, + package: detail.imageAssetPackage, + ), + fit: BoxFit.cover, + ), + ), + ); + + Widget item; + if (detail.title == null && detail.subtitle == null) { + item = Container( + height: 240.0, + padding: const EdgeInsets.all(16.0), + child: SafeArea( + top: false, + bottom: false, + child: image, + ), + ); + } else { + item = ListTile( + title: Text(detail.title!), + subtitle: Text(detail.subtitle!), + leading: SizedBox(width: 32.0, height: 32.0, child: image), + ); + } + + return DecoratedBox( + decoration: BoxDecoration(color: Colors.grey.shade200), + child: item, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a31b2e7f65af84b9dd557d8f477753555de301f9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/animation_demo.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'animation/home.dart'; + +class AnimationDemo extends StatelessWidget { + const AnimationDemo({super.key}); + + static const String routeName = '/animation'; + + @override + Widget build(BuildContext context) => const AnimationDemoHome(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/home.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..239526c1c667bcba48440d43775be6c00675487d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/home.dart @@ -0,0 +1,272 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'logic.dart'; + +class Calculator extends StatefulWidget { + const Calculator({super.key}); + + @override + State createState() => CalculatorState(); +} + +class CalculatorState extends State { + /// As the user taps keys we update the current `_expression` and we also + /// keep a stack of previous expressions so we can return to earlier states + /// when the user hits the DEL key. + final List _expressionStack = []; + CalcExpression _expression = CalcExpression.empty(); + + // Make `expression` the current expression and push the previous current + // expression onto the stack. + void pushExpression(CalcExpression expression) { + _expressionStack.add(_expression); + _expression = expression; + } + + /// Pop the top expression off of the stack and make it the current expression. + void popCalcExpression() { + if (_expressionStack.isNotEmpty) { + _expression = _expressionStack.removeLast(); + } else { + _expression = CalcExpression.empty(); + } + } + + /// Set `resultExpression` to the current expression and clear the stack. + void setResult(CalcExpression resultExpression) { + _expressionStack.clear(); + _expression = resultExpression; + } + + void handleNumberTap(int n) { + final CalcExpression? expression = _expression.appendDigit(n); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handlePointTap() { + final CalcExpression? expression = _expression.appendPoint(); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handlePlusTap() { + final CalcExpression? expression = _expression.appendOperation(Operation.Addition); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handleMinusTap() { + final CalcExpression? expression = _expression.appendMinus(); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handleMultTap() { + final CalcExpression? expression = _expression.appendOperation(Operation.Multiplication); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handleDivTap() { + final CalcExpression? expression = _expression.appendOperation(Operation.Division); + if (expression != null) { + setState(() { + pushExpression(expression); + }); + } + } + + void handleEqualsTap() { + final CalcExpression? resultExpression = _expression.computeResult(); + if (resultExpression != null) { + setState(() { + setResult(resultExpression); + }); + } + } + + void handleDelTap() { + setState(() { + popCalcExpression(); + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + backgroundColor: Theme.of(context).canvasColor, + elevation: 0.0, + ), + body: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + // Give the key-pad 3/5 of the vertical space and the display 2/5. + Expanded( + flex: 2, + child: CalcDisplay(content: _expression.toString()), + ), + const Divider(height: 1.0), + Expanded( + flex: 3, + child: KeyPad(calcState: this), + ), + ], + ), + ); + } +} + +class CalcDisplay extends StatelessWidget { + const CalcDisplay({ super.key, this.content}); + + final String? content; + + @override + Widget build(BuildContext context) { + return Center( + child: Text( + content!, + style: const TextStyle(fontSize: 24.0), + ), + ); + } +} + +class KeyPad extends StatelessWidget { + const KeyPad({ super.key, this.calcState }); + + final CalculatorState? calcState; + + @override + Widget build(BuildContext context) { + final ThemeData themeData = ThemeData( + primarySwatch: Colors.purple, + brightness: Brightness.dark, + platform: Theme.of(context).platform, + ); + return Theme( + data: themeData, + child: Material( + child: Row( + children: [ + Expanded( + // We set flex equal to the number of columns so that the main keypad + // and the op keypad have sizes proportional to their number of + // columns. + flex: 3, + child: Column( + children: [ + KeyRow([ + NumberKey(7, calcState), + NumberKey(8, calcState), + NumberKey(9, calcState), + ]), + KeyRow([ + NumberKey(4, calcState), + NumberKey(5, calcState), + NumberKey(6, calcState), + ]), + KeyRow([ + NumberKey(1, calcState), + NumberKey(2, calcState), + NumberKey(3, calcState), + ]), + KeyRow([ + CalcKey('.', calcState!.handlePointTap), + NumberKey(0, calcState), + CalcKey('=', calcState!.handleEqualsTap), + ]), + ], + ), + ), + Expanded( + child: Material( + color: themeData.colorScheme.background, + child: Column( + children: [ + CalcKey('\u232B', calcState!.handleDelTap), + CalcKey('\u00F7', calcState!.handleDivTap), + CalcKey('\u00D7', calcState!.handleMultTap), + CalcKey('-', calcState!.handleMinusTap), + CalcKey('+', calcState!.handlePlusTap), + ], + ), + ), + ), + ], + ), + ), + ); + } +} + +class KeyRow extends StatelessWidget { + const KeyRow(this.keys, {super.key}); + + final List keys; + + @override + Widget build(BuildContext context) { + return Expanded( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: keys, + ), + ); + } +} + +class CalcKey extends StatelessWidget { + const CalcKey(this.text, this.onTap, {super.key}); + + final String text; + final GestureTapCallback onTap; + + @override + Widget build(BuildContext context) { + final Orientation orientation = MediaQuery.of(context).orientation; + return Expanded( + child: InkResponse( + onTap: onTap, + child: Center( + child: Text( + text, + style: TextStyle( + // This line is used as a sentinel in the hot reload tests: hot_mode_test.dart + // in the devicelab. + fontSize: (orientation == Orientation.portrait) ? 32.0 : 24.0 + ), + ), + ), + ), + ); + } +} + +class NumberKey extends CalcKey { + NumberKey(int value, CalculatorState? calcState, {Key? key}) + : super('$value', () { + calcState!.handleNumberTap(value); + }, key: key); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart new file mode 100644 index 0000000000000000000000000000000000000000..ab409254339eeee7ce6199926251515bf564449a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator/logic.dart @@ -0,0 +1,332 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// A token that composes an expression. There are several kinds of tokens +/// that represent arithmetic operation symbols, numbers and pieces of numbers. +/// We need to represent pieces of numbers because the user may have only +/// entered a partial expression so far. +class ExpressionToken { + ExpressionToken(this.stringRep); + + final String? stringRep; + + @override + String toString() => stringRep!; +} + +/// A token that represents a number. +class NumberToken extends ExpressionToken { + NumberToken(String super.stringRep, this.number); + + NumberToken.fromNumber(num number) : this('$number', number); + + final num number; +} + +/// A token that represents an integer. +class IntToken extends NumberToken { + IntToken(String stringRep) : super(stringRep, int.parse(stringRep)); +} + +/// A token that represents a floating point number. +class FloatToken extends NumberToken { + FloatToken(String stringRep) : super(stringRep, _parse(stringRep)); + + static double _parse(String stringRep) { + String toParse = stringRep; + if (toParse.startsWith('.')) { + toParse = '0$toParse'; + } + if (toParse.endsWith('.')) { + toParse = '${toParse}0'; + } + return double.parse(toParse); + } +} + +/// A token that represents a number that is the result of a computation. +class ResultToken extends NumberToken { + ResultToken(num number) : super.fromNumber(round(number)); + + /// rounds `number` to 14 digits of precision. A double precision + /// floating point number is guaranteed to have at least this many + /// decimal digits of precision. + static num round(num number) { + if (number is int) { + return number; + } + return double.parse(number.toStringAsPrecision(14)); + } +} + +/// A token that represents the unary minus prefix. +class LeadingNegToken extends ExpressionToken { + LeadingNegToken() : super('-'); +} + +enum Operation { Addition, Subtraction, Multiplication, Division } + +/// A token that represents an arithmetic operation symbol. +class OperationToken extends ExpressionToken { + OperationToken(this.operation) + : super(opString(operation)); + + Operation operation; + + static String? opString(Operation operation) { + return switch (operation) { + Operation.Addition => ' + ', + Operation.Subtraction => ' - ', + Operation.Multiplication => ' \u00D7 ', + Operation.Division => ' \u00F7 ', + }; + } +} + +/// As the user taps different keys the current expression can be in one +/// of several states. +enum ExpressionState { + /// The expression is empty or an operation symbol was just entered. + /// A new number must be started now. + Start, + + /// A minus sign was entered as a leading negative prefix. + LeadingNeg, + + /// We are in the midst of a number without a point. + Number, + + /// A point was just entered. + Point, + + /// We are in the midst of a number with a point. + NumberWithPoint, + + /// A result is being displayed + Result, +} + +/// An expression that can be displayed in a calculator. It is the result +/// of a sequence of user entries. It is represented by a sequence of tokens. +/// +/// The tokens are not in one to one correspondence with the key taps because we +/// use one token per number, not one token per digit. A [CalcExpression] is +/// immutable. The `append*` methods return a new [CalcExpression] that +/// represents the appropriate expression when one additional key tap occurs. +class CalcExpression { + CalcExpression(this._list, this.state); + + CalcExpression.empty() + : this([], ExpressionState.Start); + + CalcExpression.result(FloatToken result) + : _list = [], + state = ExpressionState.Result { + _list.add(result); + } + + /// The tokens comprising the expression. + final List _list; + /// The state of the expression. + final ExpressionState state; + + /// The string representation of the expression. This will be displayed + /// in the calculator's display panel. + @override + String toString() { + final StringBuffer buffer = StringBuffer(); + buffer.writeAll(_list); + return buffer.toString(); + } + + /// Append a digit to the current expression and return a new expression + /// representing the result. Returns null to indicate that it is not legal + /// to append a digit in the current state. + CalcExpression? appendDigit(int digit) { + ExpressionState newState = ExpressionState.Number; + ExpressionToken? newToken; + final List outList = _list.toList(); + switch (state) { + case ExpressionState.Start: + // Start a new number with digit. + newToken = IntToken('$digit'); + case ExpressionState.LeadingNeg: + // Replace the leading neg with a negative number starting with digit. + outList.removeLast(); + newToken = IntToken('-$digit'); + case ExpressionState.Number: + final ExpressionToken last = outList.removeLast()!; + newToken = IntToken('${last.stringRep}$digit'); + case ExpressionState.Point: + case ExpressionState.NumberWithPoint: + final ExpressionToken last = outList.removeLast()!; + newState = ExpressionState.NumberWithPoint; + newToken = FloatToken('${last.stringRep}$digit'); + case ExpressionState.Result: + // Cannot enter a number now + return null; + } + outList.add(newToken); + return CalcExpression(outList, newState); + } + + /// Append a point to the current expression and return a new expression + /// representing the result. Returns null to indicate that it is not legal + /// to append a point in the current state. + CalcExpression? appendPoint() { + ExpressionToken? newToken; + final List outList = _list.toList(); + switch (state) { + case ExpressionState.Start: + newToken = FloatToken('.'); + case ExpressionState.LeadingNeg: + case ExpressionState.Number: + final ExpressionToken last = outList.removeLast()!; + final String value = last.stringRep!; + newToken = FloatToken('$value.'); + case ExpressionState.Point: + case ExpressionState.NumberWithPoint: + case ExpressionState.Result: + // Cannot enter a point now + return null; + } + outList.add(newToken); + return CalcExpression(outList, ExpressionState.Point); + } + + /// Append an operation symbol to the current expression and return a new + /// expression representing the result. Returns null to indicate that it is not + /// legal to append an operation symbol in the current state. + CalcExpression? appendOperation(Operation op) { + switch (state) { + case ExpressionState.Start: + case ExpressionState.LeadingNeg: + case ExpressionState.Point: + // Cannot enter operation now. + return null; + case ExpressionState.Number: + case ExpressionState.NumberWithPoint: + case ExpressionState.Result: + break; + } + final List outList = _list.toList(); + outList.add(OperationToken(op)); + return CalcExpression(outList, ExpressionState.Start); + } + + /// Append a leading minus sign to the current expression and return a new + /// expression representing the result. Returns null to indicate that it is not + /// legal to append a leading minus sign in the current state. + CalcExpression? appendLeadingNeg() { + switch (state) { + case ExpressionState.Start: + break; + case ExpressionState.LeadingNeg: + case ExpressionState.Point: + case ExpressionState.Number: + case ExpressionState.NumberWithPoint: + case ExpressionState.Result: + // Cannot enter leading neg now. + return null; + } + final List outList = _list.toList(); + outList.add(LeadingNegToken()); + return CalcExpression(outList, ExpressionState.LeadingNeg); + } + + /// Append a minus sign to the current expression and return a new expression + /// representing the result. Returns null to indicate that it is not legal + /// to append a minus sign in the current state. Depending on the current + /// state the minus sign will be interpreted as either a leading negative + /// sign or a subtraction operation. + CalcExpression? appendMinus() { + switch (state) { + case ExpressionState.Start: + return appendLeadingNeg(); + case ExpressionState.LeadingNeg: + case ExpressionState.Point: + case ExpressionState.Number: + case ExpressionState.NumberWithPoint: + case ExpressionState.Result: + return appendOperation(Operation.Subtraction); + } + } + + /// Computes the result of the current expression and returns a new + /// ResultExpression containing the result. Returns null to indicate that + /// it is not legal to compute a result in the current state. + CalcExpression? computeResult() { + switch (state) { + case ExpressionState.Start: + case ExpressionState.LeadingNeg: + case ExpressionState.Point: + case ExpressionState.Result: + // Cannot compute result now. + return null; + case ExpressionState.Number: + case ExpressionState.NumberWithPoint: + break; + } + + // We make a copy of _list because CalcExpressions are supposed to + // be immutable. + final List list = _list.toList(); + // We obey order-of-operations by computing the sum of the 'terms', + // where a "term" is defined to be a sequence of numbers separated by + // multiplication or division symbols. + num currentTermValue = removeNextTerm(list); + while (list.isNotEmpty) { + final OperationToken opToken = list.removeAt(0)! as OperationToken; + final num nextTermValue = removeNextTerm(list); + switch (opToken.operation) { + case Operation.Addition: + currentTermValue += nextTermValue; + case Operation.Subtraction: + currentTermValue -= nextTermValue; + case Operation.Multiplication: + case Operation.Division: + // Logic error. + assert(false); + } + } + final List outList = [ + ResultToken(currentTermValue), + ]; + return CalcExpression(outList, ExpressionState.Result); + } + + /// Removes the next "term" from `list` and returns its numeric value. + /// A "term" is a sequence of number tokens separated by multiplication + /// and division symbols. + static num removeNextTerm(List list) { + assert(list.isNotEmpty); + final NumberToken firstNumToken = list.removeAt(0)! as NumberToken; + num currentValue = firstNumToken.number; + while (list.isNotEmpty) { + bool isDivision = false; + final OperationToken nextOpToken = list.first! as OperationToken; + switch (nextOpToken.operation) { + case Operation.Addition: + case Operation.Subtraction: + // We have reached the end of the current term + return currentValue; + case Operation.Multiplication: + break; + case Operation.Division: + isDivision = true; + } + // Remove the operation token. + list.removeAt(0); + // Remove the next number token. + final NumberToken nextNumToken = list.removeAt(0)! as NumberToken; + final num nextNumber = nextNumToken.number; + if (isDivision) { + currentValue /= nextNumber; + } else { + currentValue *= nextNumber; + } + } + return currentValue; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..f3f00aa849bf0c324b24dc30ecd5a76ce0ae06fa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/calculator_demo.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'calculator/home.dart'; + +class CalculatorDemo extends StatelessWidget { + const CalculatorDemo({super.key}); + + static const String routeName = '/calculator'; + + @override + Widget build(BuildContext context) => const Calculator(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/colors_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/colors_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..65bc6901e71269f14b9775422a67a7afda95586a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/colors_demo.dart @@ -0,0 +1,147 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +const double kColorItemHeight = 48.0; + +class Palette { + Palette({ this.name, this.primary, this.accent, this.threshold = 900}); + + final String? name; + final MaterialColor? primary; + final MaterialAccentColor? accent; + final int threshold; // titles for indices > threshold are white, otherwise black + + bool get isValid => name != null && primary != null; +} + +final List allPalettes = [ + Palette(name: 'RED', primary: Colors.red, accent: Colors.redAccent, threshold: 300), + Palette(name: 'PINK', primary: Colors.pink, accent: Colors.pinkAccent, threshold: 200), + Palette(name: 'PURPLE', primary: Colors.purple, accent: Colors.purpleAccent, threshold: 200), + Palette(name: 'DEEP PURPLE', primary: Colors.deepPurple, accent: Colors.deepPurpleAccent, threshold: 200), + Palette(name: 'INDIGO', primary: Colors.indigo, accent: Colors.indigoAccent, threshold: 200), + Palette(name: 'BLUE', primary: Colors.blue, accent: Colors.blueAccent, threshold: 400), + Palette(name: 'LIGHT BLUE', primary: Colors.lightBlue, accent: Colors.lightBlueAccent, threshold: 500), + Palette(name: 'CYAN', primary: Colors.cyan, accent: Colors.cyanAccent, threshold: 600), + Palette(name: 'TEAL', primary: Colors.teal, accent: Colors.tealAccent, threshold: 400), + Palette(name: 'GREEN', primary: Colors.green, accent: Colors.greenAccent, threshold: 500), + Palette(name: 'LIGHT GREEN', primary: Colors.lightGreen, accent: Colors.lightGreenAccent, threshold: 600), + Palette(name: 'LIME', primary: Colors.lime, accent: Colors.limeAccent, threshold: 800), + Palette(name: 'YELLOW', primary: Colors.yellow, accent: Colors.yellowAccent), + Palette(name: 'AMBER', primary: Colors.amber, accent: Colors.amberAccent), + Palette(name: 'ORANGE', primary: Colors.orange, accent: Colors.orangeAccent, threshold: 700), + Palette(name: 'DEEP ORANGE', primary: Colors.deepOrange, accent: Colors.deepOrangeAccent, threshold: 400), + Palette(name: 'BROWN', primary: Colors.brown, threshold: 200), + Palette(name: 'GREY', primary: Colors.grey, threshold: 500), + Palette(name: 'BLUE GREY', primary: Colors.blueGrey, threshold: 500), +]; + + +class ColorItem extends StatelessWidget { + const ColorItem({ + super.key, + required this.index, + required this.color, + this.prefix = '', + }); + + final int index; + final Color color; + final String prefix; + + String colorString() => "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}"; + + @override + Widget build(BuildContext context) { + return Semantics( + container: true, + child: Container( + height: kColorItemHeight, + padding: const EdgeInsets.symmetric(horizontal: 16.0), + color: color, + child: SafeArea( + top: false, + bottom: false, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('$prefix$index'), + Text(colorString()), + ], + ), + ), + ), + ); + } +} + +class PaletteTabView extends StatelessWidget { + PaletteTabView({ + super.key, + required this.colors, + }) : assert(colors.isValid); + + final Palette colors; + + static const List primaryKeys = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]; + static const List accentKeys = [100, 200, 400, 700]; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final TextStyle whiteTextStyle = textTheme.bodyMedium!.copyWith(color: Colors.white); + final TextStyle blackTextStyle = textTheme.bodyMedium!.copyWith(color: Colors.black); + return Scrollbar( + child: ListView( + primary: true, + itemExtent: kColorItemHeight, + children: [ + ...primaryKeys.map((int index) { + return DefaultTextStyle( + style: index > colors.threshold ? whiteTextStyle : blackTextStyle, + child: ColorItem(index: index, color: colors.primary![index]!), + ); + }), + if (colors.accent != null) + ...accentKeys.map((int index) { + return DefaultTextStyle( + style: index > colors.threshold ? whiteTextStyle : blackTextStyle, + child: ColorItem(index: index, color: colors.accent![index]!, prefix: 'A'), + ); + }), + ], + ), + ); + } +} + +class ColorsDemo extends StatelessWidget { + const ColorsDemo({super.key}); + + static const String routeName = '/colors'; + + @override + Widget build(BuildContext context) { + return DefaultTabController( + length: allPalettes.length, + child: Scaffold( + appBar: AppBar( + elevation: 0.0, + title: const Text('Colors'), + bottom: TabBar( + isScrollable: true, + tabs: allPalettes.map((Palette swatch) => Tab(text: swatch.name)).toList(), + ), + ), + body: TabBarView( + children: allPalettes.map((Palette colors) { + return PaletteTabView(colors: colors); + }).toList(), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/contacts_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/contacts_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..70d1a97ee9dcbe538587705a1c3bb766e286572c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/contacts_demo.dart @@ -0,0 +1,345 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +class _ContactCategory extends StatelessWidget { + const _ContactCategory({ this.icon, this.children }); + + final IconData? icon; + final List? children; + + @override + Widget build(BuildContext context) { + final ThemeData themeData = Theme.of(context); + return Container( + padding: const EdgeInsets.symmetric(vertical: 16.0), + decoration: BoxDecoration( + border: Border(bottom: BorderSide(color: themeData.dividerColor)) + ), + child: DefaultTextStyle( + style: Theme.of(context).textTheme.titleMedium!, + child: SafeArea( + top: false, + bottom: false, + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Container( + padding: const EdgeInsets.symmetric(vertical: 24.0), + width: 72.0, + child: Icon(icon, color: themeData.primaryColor), + ), + Expanded(child: Column(children: children!)), + ], + ), + ), + ), + ); + } +} + +class _ContactItem extends StatelessWidget { + const _ContactItem({ this.icon, required this.lines, this.tooltip, this.onPressed }) + : assert(lines.length > 1); + + final IconData? icon; + final List lines; + final String? tooltip; + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + final ThemeData themeData = Theme.of(context); + return MergeSemantics( + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 16.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ...lines.sublist(0, lines.length - 1).map((String line) => Text(line)), + Text(lines.last, style: themeData.textTheme.bodySmall), + ], + ), + ), + if (icon != null) + SizedBox( + width: 72.0, + child: IconButton( + icon: Icon(icon), + color: themeData.primaryColor, + onPressed: onPressed, + ), + ), + ], + ), + ), + ); + } +} + +class ContactsDemo extends StatefulWidget { + const ContactsDemo({super.key}); + + static const String routeName = '/contacts'; + + @override + ContactsDemoState createState() => ContactsDemoState(); +} + +enum AppBarBehavior { normal, pinned, floating, snapping } + +class ContactsDemoState extends State { + final double _appBarHeight = 256.0; + + AppBarBehavior _appBarBehavior = AppBarBehavior.pinned; + + @override + Widget build(BuildContext context) { + return Theme( + data: ThemeData( + useMaterial3: false, + brightness: Brightness.light, + primarySwatch: Colors.indigo, + platform: Theme.of(context).platform, + ), + child: Scaffold( + body: CustomScrollView( + slivers: [ + SliverAppBar( + expandedHeight: _appBarHeight, + pinned: _appBarBehavior == AppBarBehavior.pinned, + floating: _appBarBehavior == AppBarBehavior.floating || _appBarBehavior == AppBarBehavior.snapping, + snap: _appBarBehavior == AppBarBehavior.snapping, + actions: [ + IconButton( + icon: const Icon(Icons.create), + tooltip: 'Edit', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text("Editing isn't supported in this screen."), + )); + }, + ), + PopupMenuButton( + onSelected: (AppBarBehavior value) { + setState(() { + _appBarBehavior = value; + }); + }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: AppBarBehavior.normal, + child: Text('App bar scrolls away'), + ), + const PopupMenuItem( + value: AppBarBehavior.pinned, + child: Text('App bar stays put'), + ), + const PopupMenuItem( + value: AppBarBehavior.floating, + child: Text('App bar floats'), + ), + const PopupMenuItem( + value: AppBarBehavior.snapping, + child: Text('App bar snaps'), + ), + ], + ), + ], + flexibleSpace: FlexibleSpaceBar( + title: const Text('Ali Connors'), + background: Stack( + fit: StackFit.expand, + children: [ + Image.asset( + 'people/ali_landscape.png', + package: 'flutter_gallery_assets', + fit: BoxFit.cover, + height: _appBarHeight, + ), + // This gradient ensures that the toolbar icons are distinct + // against the background image. + const DecoratedBox( + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment(0, .35), + colors: [Color(0xC0000000), Color(0x00000000)], + ), + ), + ), + ], + ), + ), + ), + SliverList( + delegate: SliverChildListDelegate([ + AnnotatedRegion( + value: SystemUiOverlayStyle.dark, + child: _ContactCategory( + icon: Icons.call, + children: [ + _ContactItem( + icon: Icons.message, + tooltip: 'Send message', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Pretend that this opened your SMS application.'), + )); + }, + lines: const [ + '(650) 555-1234', + 'Mobile', + ], + ), + _ContactItem( + icon: Icons.message, + tooltip: 'Send message', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('A messaging app appears.'), + )); + }, + lines: const [ + '(323) 555-6789', + 'Work', + ], + ), + _ContactItem( + icon: Icons.message, + tooltip: 'Send message', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Imagine if you will, a messaging application.'), + )); + }, + lines: const [ + '(650) 555-6789', + 'Home', + ], + ), + ], + ), + ), + _ContactCategory( + icon: Icons.contact_mail, + children: [ + _ContactItem( + icon: Icons.email, + tooltip: 'Send personal e-mail', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Here, your e-mail application would open.'), + )); + }, + lines: const [ + 'ali_connors@example.com', + 'Personal', + ], + ), + _ContactItem( + icon: Icons.email, + tooltip: 'Send work e-mail', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Summon your favorite e-mail application here.'), + )); + }, + lines: const [ + 'aliconnors@example.com', + 'Work', + ], + ), + ], + ), + _ContactCategory( + icon: Icons.location_on, + children: [ + _ContactItem( + icon: Icons.map, + tooltip: 'Open map', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('This would show a map of San Francisco.'), + )); + }, + lines: const [ + '2000 Main Street', + 'San Francisco, CA', + 'Home', + ], + ), + _ContactItem( + icon: Icons.map, + tooltip: 'Open map', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('This would show a map of Mountain View.'), + )); + }, + lines: const [ + '1600 Amphitheater Parkway', + 'Mountain View, CA', + 'Work', + ], + ), + _ContactItem( + icon: Icons.map, + tooltip: 'Open map', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('This would also show a map, if this was not a demo.'), + )); + }, + lines: const [ + '126 Severyns Ave', + 'Mountain View, CA', + 'Jet Travel', + ], + ), + ], + ), + _ContactCategory( + icon: Icons.today, + children: [ + _ContactItem( + lines: const [ + 'Birthday', + 'January 9th, 1989', + ], + ), + _ContactItem( + lines: const [ + 'Wedding anniversary', + 'June 21st, 2014', + ], + ), + _ContactItem( + lines: const [ + 'First day in office', + 'January 20th, 2015', + ], + ), + _ContactItem( + lines: const [ + 'Last day in office', + 'August 9th, 2018', + ], + ), + ], + ), + ]), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino.dart new file mode 100644 index 0000000000000000000000000000000000000000..378291edd1be6541bb523dfdd60858fdfe5ae48a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino.dart @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'cupertino_activity_indicator_demo.dart'; +export 'cupertino_alert_demo.dart'; +export 'cupertino_buttons_demo.dart'; +export 'cupertino_navigation_demo.dart'; +export 'cupertino_picker_demo.dart'; +export 'cupertino_refresh_demo.dart'; +export 'cupertino_segmented_control_demo.dart'; +export 'cupertino_slider_demo.dart'; +export 'cupertino_switch_demo.dart'; +export 'cupertino_text_field_demo.dart'; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_activity_indicator_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_activity_indicator_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..7d54255562cb1fa74b2673b7174ca613caaafb68 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_activity_indicator_demo.dart @@ -0,0 +1,30 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoProgressIndicatorDemo extends StatelessWidget { + const CupertinoProgressIndicatorDemo({super.key}); + + static const String routeName = '/cupertino/progress_indicator'; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + middle: const Text('Activity Indicator'), + trailing: CupertinoDemoDocumentationButton(routeName), + ), + child: const Center( + child: CupertinoActivityIndicator(), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_alert_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_alert_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..8900452e158712e720d5d1d866a8f3bac0a75d5b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_alert_demo.dart @@ -0,0 +1,265 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoAlertDemo extends StatefulWidget { + const CupertinoAlertDemo({super.key}); + + static const String routeName = '/cupertino/alert'; + + @override + State createState() => _CupertinoAlertDemoState(); +} + +class _CupertinoAlertDemoState extends State { + String? lastSelectedValue; + + void showDemoDialog({required BuildContext context, Widget? child}) { + showCupertinoDialog( + context: context, + builder: (BuildContext context) => child!, + ).then((String? value) { + if (value != null) { + setState(() { lastSelectedValue = value; }); + } + }); + } + + void showDemoActionSheet({required BuildContext context, Widget? child}) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => child!, + ).then((String? value) { + if (value != null) { + setState(() { lastSelectedValue = value; }); + } + }); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Alerts'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoAlertDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: Builder( + builder: (BuildContext context) { + return Stack( + alignment: Alignment.center, + children: [ + CupertinoScrollbar( + child: ListView( + primary: true, + // Add more padding to the normal safe area. + padding: const EdgeInsets.symmetric(vertical: 24.0, horizontal: 72.0) + + MediaQuery.of(context).padding, + children: [ + CupertinoButton.filled( + child: const Text('Alert'), + onPressed: () => _onAlertPress(context), + ), + const Padding(padding: EdgeInsets.all(8.0)), + CupertinoButton.filled( + padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0), + child: const Text('Alert with Title'), + onPressed: () => _onAlertWithTitlePress(context), + ), + const Padding(padding: EdgeInsets.all(8.0)), + CupertinoButton.filled( + padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0), + child: const Text('Alert with Buttons'), + onPressed: () => _onAlertWithButtonsPress(context), + ), + const Padding(padding: EdgeInsets.all(8.0)), + CupertinoButton.filled( + padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0), + child: const Text('Alert Buttons Only'), + onPressed: () { + showDemoDialog( + context: context, + child: const CupertinoDessertDialog(), + ); + }, + ), + const Padding(padding: EdgeInsets.all(8.0)), + CupertinoButton.filled( + padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0), + child: const Text('Action Sheet'), + onPressed: () => _onActionSheetPress(context), + ), + ], + ), + ), + if (lastSelectedValue != null) + Positioned( + bottom: 32.0, + child: Text('You selected: $lastSelectedValue'), + ), + ], + ); + }, + ), + ), + ); + } + + void _onAlertPress(BuildContext context) { + showDemoDialog( + context: context, + child: CupertinoAlertDialog( + title: const Text('Discard draft?'), + actions: [ + CupertinoDialogAction( + isDestructiveAction: true, + child: const Text('Discard'), + onPressed: () => Navigator.pop(context, 'Discard'), + ), + CupertinoDialogAction( + isDefaultAction: true, + child: const Text('Cancel'), + onPressed: () => Navigator.pop(context, 'Cancel'), + ), + ], + ), + ); + } + + void _onAlertWithTitlePress(BuildContext context) { + showDemoDialog( + context: context, + child: CupertinoAlertDialog( + title: const Text('Allow "Maps" to access your location while you are using the app?'), + content: const Text('Your current location will be displayed on the map and used ' + 'for directions, nearby search results, and estimated travel times.'), + actions: [ + CupertinoDialogAction( + child: const Text("Don't Allow"), + onPressed: () => Navigator.pop(context, 'Disallow'), + ), + CupertinoDialogAction( + child: const Text('Allow'), + onPressed: () => Navigator.pop(context, 'Allow'), + ), + ], + ), + ); + } + + void _onAlertWithButtonsPress(BuildContext context) { + showDemoDialog( + context: context, + child: const CupertinoDessertDialog( + title: Text('Select Favorite Dessert'), + content: Text('Please select your favorite type of dessert from the ' + 'list below. Your selection will be used to customize the suggested ' + 'list of eateries in your area.'), + ), + ); + } + + void _onActionSheetPress(BuildContext context) { + showDemoActionSheet( + context: context, + child: CupertinoActionSheet( + title: const Text('Favorite Dessert'), + message: const Text('Please select the best dessert from the options below.'), + actions: [ + CupertinoActionSheetAction( + child: const Text('Profiteroles'), + onPressed: () => Navigator.pop(context, 'Profiteroles'), + ), + CupertinoActionSheetAction( + child: const Text('Cannolis'), + onPressed: () => Navigator.pop(context, 'Cannolis'), + ), + CupertinoActionSheetAction( + child: const Text('Trifle'), + onPressed: () => Navigator.pop(context, 'Trifle'), + ), + ], + cancelButton: CupertinoActionSheetAction( + isDefaultAction: true, + child: const Text('Cancel'), + onPressed: () => Navigator.pop(context, 'Cancel'), + ), + ), + ); + } +} + +class CupertinoDessertDialog extends StatelessWidget { + const CupertinoDessertDialog({super.key, this.title, this.content}); + + final Widget? title; + final Widget? content; + + @override + Widget build(BuildContext context) { + return CupertinoAlertDialog( + title: title, + content: content, + actions: [ + CupertinoDialogAction( + child: const Text('Cheesecake'), + onPressed: () { + Navigator.pop(context, 'Cheesecake'); + }, + ), + CupertinoDialogAction( + child: const Text('Tiramisu'), + onPressed: () { + Navigator.pop(context, 'Tiramisu'); + }, + ), + CupertinoDialogAction( + child: const Text('Apple Pie'), + onPressed: () { + Navigator.pop(context, 'Apple Pie'); + }, + ), + CupertinoDialogAction( + child: const Text("Devil's food cake"), + onPressed: () { + Navigator.pop(context, "Devil's food cake"); + }, + ), + CupertinoDialogAction( + child: const Text('Banana Split'), + onPressed: () { + Navigator.pop(context, 'Banana Split'); + }, + ), + CupertinoDialogAction( + child: const Text('Oatmeal Cookie'), + onPressed: () { + Navigator.pop(context, 'Oatmeal Cookies'); + }, + ), + CupertinoDialogAction( + child: const Text('Chocolate Brownie'), + onPressed: () { + Navigator.pop(context, 'Chocolate Brownies'); + }, + ), + CupertinoDialogAction( + isDestructiveAction: true, + child: const Text('Cancel'), + onPressed: () { + Navigator.pop(context, 'Cancel'); + }, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..54a53ceb9729c1379631a27078af2df90d62d53c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoButtonsDemo extends StatefulWidget { + const CupertinoButtonsDemo({super.key}); + + static const String routeName = '/cupertino/buttons'; + + @override + State createState() => _CupertinoButtonDemoState(); +} + +class _CupertinoButtonDemoState extends State { + int _pressedCount = 0; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Buttons'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoButtonsDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: SafeArea( + child: Column( + children: [ + const Padding( + padding: EdgeInsets.all(16.0), + child: Text( + 'iOS themed buttons are flat. They can have borders or backgrounds but ' + 'only when necessary.' + ), + ), + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(_pressedCount > 0 + ? 'Button pressed $_pressedCount time${_pressedCount == 1 ? "" : "s"}' + : ' '), + const Padding(padding: EdgeInsets.all(12.0)), + Align( + alignment: const Alignment(0.0, -0.2), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + CupertinoButton( + child: const Text('Cupertino Button'), + onPressed: () { + setState(() { _pressedCount += 1; }); + }, + ), + const CupertinoButton( + onPressed: null, + child: Text('Disabled'), + ), + ], + ), + ), + const Padding(padding: EdgeInsets.all(12.0)), + CupertinoButton.filled( + child: const Text('With Background'), + onPressed: () { + setState(() { _pressedCount += 1; }); + }, + ), + const Padding(padding: EdgeInsets.all(12.0)), + const CupertinoButton.filled( + onPressed: null, + child: Text('Disabled'), + ), + ], + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a68c2a194c9b7a9e50836422543f3cd4d80d89dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart @@ -0,0 +1,830 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; + +const List coolColors = [ + Color.fromARGB(255, 255, 59, 48), + Color.fromARGB(255, 255, 149, 0), + Color.fromARGB(255, 255, 204, 0), + Color.fromARGB(255, 76, 217, 100), + Color.fromARGB(255, 90, 200, 250), + Color.fromARGB(255, 0, 122, 255), + Color.fromARGB(255, 88, 86, 214), + Color.fromARGB(255, 255, 45, 85), +]; + +const List coolColorNames = [ + 'Sarcoline', 'Coquelicot', 'Smaragdine', 'Mikado', 'Glaucous', 'Wenge', + 'Fulvous', 'Xanadu', 'Falu', 'Eburnean', 'Amaranth', 'Australien', + 'Banan', 'Falu', 'Gingerline', 'Incarnadine', 'Labrador', 'Nattier', + 'Pervenche', 'Sinoper', 'Verditer', 'Watchet', 'Zaffre', +]; + +const int _kChildCount = 50; + +class CupertinoNavigationDemo extends StatelessWidget { + CupertinoNavigationDemo({ super.key, this.randomSeed }) + : colorItems = List.generate(_kChildCount, (int index) { + return coolColors[math.Random(randomSeed).nextInt(coolColors.length)]; + }) , + colorNameItems = List.generate(_kChildCount, (int index) { + return coolColorNames[math.Random(randomSeed).nextInt(coolColorNames.length)]; + }); + + static const String routeName = '/cupertino/navigation'; + + final List colorItems; + final List colorNameItems; + final int? randomSeed; + + @override + Widget build(BuildContext context) { + return PopScope( + // Prevent swipe popping of this page. Use explicit exit buttons only. + canPop: false, + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: CupertinoTabScaffold( + tabBar: CupertinoTabBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.house, size: 27), + label: 'Home', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.chat_bubble, size: 27), + label: 'Support', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.person_circle, size: 27), + label: 'Profile', + ), + ], + ), + tabBuilder: (BuildContext context, int index) { + switch (index) { + case 0: + return CupertinoTabView( + builder: (BuildContext context) { + return CupertinoDemoTab1( + colorItems: colorItems, + colorNameItems: colorNameItems, + randomSeed: randomSeed, + ); + }, + defaultTitle: 'Colors', + ); + case 1: + return CupertinoTabView( + builder: (BuildContext context) => const CupertinoDemoTab2(), + defaultTitle: 'Support Chat', + ); + case 2: + return CupertinoTabView( + builder: (BuildContext context) => const CupertinoDemoTab3(), + defaultTitle: 'Account', + ); + } + assert(false); + return const CupertinoTabView(); + }, + ), + ), + ); + } +} + +class ExitButton extends StatelessWidget { + const ExitButton({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoButton( + padding: EdgeInsets.zero, + child: const Tooltip( + message: 'Back', + excludeFromSemantics: true, + child: Text('Exit'), + ), + onPressed: () { + // The demo is on the root navigator. + Navigator.of(context, rootNavigator: true).pop(); + }, + ); + } +} + +final Widget trailingButtons = Row( + mainAxisSize: MainAxisSize.min, + children: [ + CupertinoDemoDocumentationButton(CupertinoNavigationDemo.routeName), + const Padding(padding: EdgeInsets.only(left: 8.0)), + const ExitButton(), + ], +); + +class CupertinoDemoTab1 extends StatelessWidget { + const CupertinoDemoTab1({ + super.key, + this.colorItems, + this.colorNameItems, + this.randomSeed, + }); + + final List? colorItems; + final List? colorNameItems; + final int? randomSeed; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + backgroundColor: CupertinoColors.systemGroupedBackground, + child: CustomScrollView( + semanticChildCount: _kChildCount, + slivers: [ + CupertinoSliverNavigationBar( + trailing: trailingButtons, + ), + SliverPadding( + // Top media padding consumed by CupertinoSliverNavigationBar. + // Left/Right media padding consumed by Tab1RowItem. + padding: MediaQuery.of(context).removePadding( + removeTop: true, + removeLeft: true, + removeRight: true, + ).padding, + sliver: SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Tab1RowItem( + index: index, + lastItem: index == _kChildCount - 1, + color: colorItems![index], + colorName: colorNameItems![index], + randomSeed: randomSeed, + ); + }, + childCount: _kChildCount, + ), + ), + ), + ], + ), + ); + } +} + +class Tab1RowItem extends StatelessWidget { + const Tab1RowItem({ + super.key, + this.index, + this.lastItem, + this.color, + this.colorName, + this.randomSeed, + }); + + final int? index; + final bool? lastItem; + final Color? color; + final String? colorName; + final int? randomSeed; + + @override + Widget build(BuildContext context) { + final Widget row = GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: () { + Navigator.of(context).push(CupertinoPageRoute( + title: colorName, + builder: (BuildContext context) => Tab1ItemPage( + color: color, + colorName: colorName, + index: index, + randomSeed: randomSeed, + ), + )); + }, + child: ColoredBox( + color: CupertinoDynamicColor.resolve(CupertinoColors.systemBackground, context), + child: SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.only(left: 16.0, top: 8.0, bottom: 8.0, right: 8.0), + child: Row( + children: [ + Container( + height: 60.0, + width: 60.0, + decoration: BoxDecoration( + color: color, + borderRadius: BorderRadius.circular(8.0), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 12.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(colorName!), + const Padding(padding: EdgeInsets.only(top: 8.0)), + Text( + 'Buy this cool color', + style: TextStyle( + color: CupertinoDynamicColor.resolve(CupertinoColors.secondaryLabel, context), + fontSize: 13.0, + fontWeight: FontWeight.w300, + ), + ), + ], + ), + ), + ), + CupertinoButton( + padding: EdgeInsets.zero, + child: const Icon(CupertinoIcons.plus_circled, + semanticLabel: 'Add', + ), + onPressed: () { }, + ), + CupertinoButton( + padding: EdgeInsets.zero, + child: const Icon(CupertinoIcons.share, + semanticLabel: 'Share', + ), + onPressed: () { }, + ), + ], + ), + ), + ), + ), + ); + + if (lastItem!) { + return row; + } + + return Column( + children: [ + row, + Container( + height: 1.0, + color: CupertinoDynamicColor.resolve(CupertinoColors.separator, context), + ), + ], + ); + } +} + +class Tab1ItemPage extends StatefulWidget { + const Tab1ItemPage({super.key, this.color, this.colorName, this.index, this.randomSeed}); + + final Color? color; + final String? colorName; + final int? index; + final int? randomSeed; + + @override + State createState() => Tab1ItemPageState(); +} + +class Tab1ItemPageState extends State { + late final List relatedColors = List.generate(10, (int index) { + final math.Random random = math.Random(widget.randomSeed); + return Color.fromARGB( + 255, + (widget.color!.red + random.nextInt(100) - 50).clamp(0, 255), + (widget.color!.green + random.nextInt(100) - 50).clamp(0, 255), + (widget.color!.blue + random.nextInt(100) - 50).clamp(0, 255), + ); + }); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + trailing: ExitButton(), + ), + child: SafeArea( + top: false, + bottom: false, + child: ListView( + children: [ + const Padding(padding: EdgeInsets.only(top: 16.0)), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: Row( + children: [ + Container( + height: 128.0, + width: 128.0, + decoration: BoxDecoration( + color: widget.color, + borderRadius: BorderRadius.circular(24.0), + ), + ), + const Padding(padding: EdgeInsets.only(left: 18.0)), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text( + widget.colorName!, + style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold), + ), + const Padding(padding: EdgeInsets.only(top: 6.0)), + Text( + 'Item number ${widget.index}', + style: TextStyle( + color: CupertinoDynamicColor.resolve(CupertinoColors.secondaryLabel, context), + fontSize: 16.0, + fontWeight: FontWeight.w100, + ), + ), + const Padding(padding: EdgeInsets.only(top: 20.0)), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + CupertinoButton.filled( + minSize: 30.0, + padding: const EdgeInsets.symmetric(horizontal: 24.0), + borderRadius: BorderRadius.circular(32.0), + child: const Text( + 'GET', + style: TextStyle( + fontSize: 14.0, + fontWeight: FontWeight.w700, + letterSpacing: -0.28, + ), + ), + onPressed: () { }, + ), + CupertinoButton.filled( + minSize: 30.0, + padding: EdgeInsets.zero, + borderRadius: BorderRadius.circular(32.0), + child: const Icon(CupertinoIcons.ellipsis), + onPressed: () { }, + ), + ], + ), + ], + ), + ), + ], + ), + ), + const Padding( + padding: EdgeInsets.only(left: 16.0, top: 28.0, bottom: 8.0), + child: Text( + 'USERS ALSO LIKED', + style: TextStyle( + color: Color(0xFF646464), + letterSpacing: -0.60, + fontSize: 15.0, + fontWeight: FontWeight.w500, + ), + ), + ), + SizedBox( + height: 200.0, + child: ListView.builder( + scrollDirection: Axis.horizontal, + itemCount: 10, + itemExtent: 160.0, + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: const EdgeInsets.only(left: 16.0), + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8.0), + color: relatedColors[index], + ), + child: Center( + child: CupertinoButton( + child: const Icon( + CupertinoIcons.plus_circled, + color: CupertinoColors.white, + size: 36.0, + ), + onPressed: () { }, + ), + ), + ), + ); + }, + ), + ), + ], + ), + ), + ); + } +} + +class CupertinoDemoTab2 extends StatelessWidget { + const CupertinoDemoTab2({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + trailing: trailingButtons, + ), + child: CupertinoScrollbar( + child: ListView( + primary: true, + children: [ + const CupertinoUserInterfaceLevel( + data: CupertinoUserInterfaceLevelData.elevated, + child: Tab2Header(), + ), + ...buildTab2Conversation(), + ], + ), + ), + ); + } +} + +class Tab2Header extends StatelessWidget { + const Tab2Header({super.key}); + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(16.0), + child: SafeArea( + top: false, + bottom: false, + child: ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(16.0)), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + decoration: BoxDecoration( + color: CupertinoDynamicColor.resolve(CupertinoColors.systemFill, context), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 18.0, vertical: 12.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'SUPPORT TICKET', + style: TextStyle( + color: CupertinoDynamicColor.resolve(CupertinoColors.secondaryLabel, context), + letterSpacing: -0.9, + fontSize: 14.0, + fontWeight: FontWeight.w500, + ), + ), + Text( + 'Show More', + style: TextStyle( + color: CupertinoDynamicColor.resolve(CupertinoColors.secondaryLabel, context), + letterSpacing: -0.6, + fontSize: 12.0, + fontWeight: FontWeight.w500, + ), + ), + ], + ), + ), + ), + Container( + decoration: BoxDecoration( + color: CupertinoDynamicColor.resolve(CupertinoColors.quaternarySystemFill, context), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 18.0, vertical: 12.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Product or product packaging damaged during transit', + style: TextStyle( + fontSize: 16.0, + fontWeight: FontWeight.w700, + letterSpacing: -0.46, + ), + ), + const Padding(padding: EdgeInsets.only(top: 16.0)), + const Text( + 'REVIEWERS', + style: TextStyle( + color: Color(0xFF646464), + fontSize: 12.0, + letterSpacing: -0.6, + fontWeight: FontWeight.w500, + ), + ), + const Padding(padding: EdgeInsets.only(top: 8.0)), + Row( + children: [ + Container( + width: 44.0, + height: 44.0, + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage( + 'people/square/trevor.png', + package: _kGalleryAssetsPackage, + ), + ), + shape: BoxShape.circle, + ), + ), + const Padding(padding: EdgeInsets.only(left: 8.0)), + Container( + width: 44.0, + height: 44.0, + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage( + 'people/square/sandra.png', + package: _kGalleryAssetsPackage, + ), + ), + shape: BoxShape.circle, + ), + ), + const Padding(padding: EdgeInsets.only(left: 2.0)), + const Icon( + CupertinoIcons.check_mark_circled, + color: Color(0xFF646464), + size: 20.0, + ), + ], + ), + ], + ), + ), + ), + ], + ), + ), + ), + ); + } +} + +enum Tab2ConversationBubbleColor { + blue, + gray, +} + +class Tab2ConversationBubble extends StatelessWidget { + const Tab2ConversationBubble({super.key, this.text, this.color}); + + final String? text; + final Tab2ConversationBubbleColor? color; + + @override + Widget build(BuildContext context) { + Color? backgroundColor; + Color? foregroundColor; + + switch (color) { + case Tab2ConversationBubbleColor.gray: + backgroundColor = CupertinoDynamicColor.resolve(CupertinoColors.systemFill, context); + foregroundColor = CupertinoDynamicColor.resolve(CupertinoColors.label, context); + case Tab2ConversationBubbleColor.blue: + backgroundColor = CupertinoTheme.of(context).primaryColor; + foregroundColor = CupertinoColors.white; + case null: + break; + } + + return Container( + decoration: BoxDecoration( + borderRadius: const BorderRadius.all(Radius.circular(18.0)), + color: backgroundColor, + ), + margin: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0), + padding: const EdgeInsets.symmetric(horizontal: 14.0, vertical: 10.0), + child: Text( + text!, + style: TextStyle( + color: foregroundColor, + letterSpacing: -0.4, + fontSize: 15.0, + fontWeight: FontWeight.w400, + ), + ), + ); + } +} + +class Tab2ConversationAvatar extends StatelessWidget { + const Tab2ConversationAvatar({super.key, this.text, this.color}); + + final String? text; + final Color? color; + + @override + Widget build(BuildContext context) { + return Container( + decoration: BoxDecoration( + shape: BoxShape.circle, + gradient: LinearGradient( + begin: FractionalOffset.topCenter, + end: FractionalOffset.bottomCenter, + colors: [ + color!, + Color.fromARGB( + color!.alpha, + (color!.red - 60).clamp(0, 255), + (color!.green - 60).clamp(0, 255), + (color!.blue - 60).clamp(0, 255), + ), + ] + ), + ), + margin: const EdgeInsets.only(left: 8.0, bottom: 8.0), + padding: const EdgeInsets.all(12.0), + child: Text( + text!, + style: const TextStyle( + color: CupertinoColors.white, + fontSize: 13.0, + fontWeight: FontWeight.w500, + ), + ), + ); + } +} + +class Tab2ConversationRow extends StatelessWidget { + const Tab2ConversationRow({super.key, this.avatar, this.text}); + + final Tab2ConversationAvatar? avatar; + final String? text; + + @override + Widget build(BuildContext context) { + final bool isSelf = avatar == null; + return SafeArea( + child: Row( + mainAxisAlignment: isSelf ? MainAxisAlignment.end : MainAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: isSelf ? CrossAxisAlignment.center : CrossAxisAlignment.end, + children: [ + if (avatar != null) + avatar!, + CupertinoUserInterfaceLevel( + data: CupertinoUserInterfaceLevelData.elevated, + child: Tab2ConversationBubble( + text: text, + color: isSelf + ? Tab2ConversationBubbleColor.blue + : Tab2ConversationBubbleColor.gray, + ), + ), + ], + ), + ); + } +} + +List buildTab2Conversation() { + return [ + const Tab2ConversationRow( + text: "My Xanadu doesn't look right", + ), + const Tab2ConversationRow( + avatar: Tab2ConversationAvatar( + text: 'KL', + color: Color(0xFFFD5015), + ), + text: "We'll rush you a new one.\nIt's gonna be incredible", + ), + const Tab2ConversationRow( + text: 'Awesome thanks!', + ), + const Tab2ConversationRow( + avatar: Tab2ConversationAvatar( + text: 'SJ', + color: Color(0xFF34CAD6), + ), + text: "We'll send you our\nnewest Labrador too!", + ), + const Tab2ConversationRow( + text: 'Yay', + ), + const Tab2ConversationRow( + avatar: Tab2ConversationAvatar( + text: 'KL', + color: Color(0xFFFD5015), + ), + text: "Actually there's one more thing...", + ), + const Tab2ConversationRow( + text: "What's that?", + ), + ]; +} + +class CupertinoDemoTab3 extends StatelessWidget { + const CupertinoDemoTab3({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar(trailing: trailingButtons), + backgroundColor: CupertinoColors.systemBackground, + child: ListView( + children: [ + const Padding(padding: EdgeInsets.only(top: 32.0)), + GestureDetector( + onTap: () { + Navigator.of(context, rootNavigator: true).push( + CupertinoPageRoute( + fullscreenDialog: true, + builder: (BuildContext context) => const Tab3Dialog(), + ), + ); + }, + child: Container( + decoration: BoxDecoration( + color: CupertinoTheme.of(context).scaffoldBackgroundColor, + border: const Border( + top: BorderSide(color: Color(0xFFBCBBC1), width: 0.0), + bottom: BorderSide(color: Color(0xFFBCBBC1), width: 0.0), + ), + ), + height: 44.0, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0), + child: SafeArea( + top: false, + bottom: false, + child: Row( + children: [ + Text( + 'Sign in', + style: TextStyle(color: CupertinoTheme.of(context).primaryColor), + ), + ], + ), + ), + ), + ), + ), + ], + ), + ); + } +} + +class Tab3Dialog extends StatelessWidget { + const Tab3Dialog({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + leading: CupertinoButton( + padding: EdgeInsets.zero, + child: const Text('Cancel'), + onPressed: () { + Navigator.of(context).pop(false); + }, + ), + ), + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon( + CupertinoIcons.profile_circled, + size: 160.0, + color: Color(0xFF646464), + ), + const Padding(padding: EdgeInsets.only(top: 18.0)), + CupertinoButton.filled( + child: const Text('Sign in'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..98da4d17f272f99dc7756e3050e083377a17e6ab --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart @@ -0,0 +1,295 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:intl/intl.dart'; + +import '../../gallery/demo.dart'; +import 'cupertino_navigation_demo.dart' show coolColorNames; + +const double _kPickerSheetHeight = 216.0; +const double _kPickerItemHeight = 32.0; + +class CupertinoPickerDemo extends StatefulWidget { + const CupertinoPickerDemo({super.key}); + + static const String routeName = '/cupertino/picker'; + + @override + State createState() => _CupertinoPickerDemoState(); +} + +class _BottomPicker extends StatelessWidget { + const _BottomPicker({ + required this.child, + }); + + final Widget child; + + @override + Widget build(BuildContext context) { + return Container( + height: _kPickerSheetHeight, + padding: const EdgeInsets.only(top: 6.0), + color: CupertinoColors.systemBackground.resolveFrom(context), + child: DefaultTextStyle( + style: TextStyle( + color: CupertinoColors.label.resolveFrom(context), + fontSize: 22.0, + ), + child: GestureDetector( + // Blocks taps from propagating to the modal sheet and popping. + onTap: () { }, + child: SafeArea( + top: false, + child: child, + ), + ), + ), + ); + } +} + +class _Menu extends StatelessWidget { + const _Menu({ + required this.children, + }); + + final List children; + + @override + Widget build(BuildContext context) { + return Container( + decoration: BoxDecoration( + color: CupertinoTheme.of(context).scaffoldBackgroundColor, + border: const Border( + top: BorderSide(color: Color(0xFFBCBBC1), width: 0.0), + bottom: BorderSide(color: Color(0xFFBCBBC1), width: 0.0), + ), + ), + height: 44.0, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: SafeArea( + top: false, + bottom: false, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: children, + ), + ), + ), + ); + } +} + +class _CupertinoPickerDemoState extends State { + int _selectedColorIndex = 0; + + Duration timer = Duration.zero; + + // Value that is shown in the date picker in date mode. + DateTime date = DateTime.now(); + + // Value that is shown in the date picker in time mode. + DateTime time = DateTime.now(); + + // Value that is shown in the date picker in dateAndTime mode. + DateTime dateTime = DateTime.now(); + + Widget _buildColorPicker(BuildContext context) { + final FixedExtentScrollController scrollController = + FixedExtentScrollController(initialItem: _selectedColorIndex); + + return GestureDetector( + onTap: () async { + await showCupertinoModalPopup( + context: context, + semanticsDismissible: true, + builder: (BuildContext context) { + return _BottomPicker( + child: CupertinoPicker( + scrollController: scrollController, + itemExtent: _kPickerItemHeight, + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), + onSelectedItemChanged: (int index) { + setState(() => _selectedColorIndex = index); + }, + children: List.generate(coolColorNames.length, (int index) { + return Center( + child: Text(coolColorNames[index]), + ); + }), + ), + ); + }, + ); + }, + child: _Menu( + children: [ + const Text('Favorite Color'), + Text( + coolColorNames[_selectedColorIndex], + style: TextStyle(color: CupertinoDynamicColor.resolve(CupertinoColors.inactiveGray, context)), + ), + ], + ), + ); + } + + Widget _buildCountdownTimerPicker(BuildContext context) { + return GestureDetector( + onTap: () { + showCupertinoModalPopup( + context: context, + semanticsDismissible: true, + builder: (BuildContext context) { + return _BottomPicker( + child: CupertinoTimerPicker( + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), + initialTimerDuration: timer, + onTimerDurationChanged: (Duration newTimer) { + setState(() => timer = newTimer); + }, + ), + ); + }, + ); + }, + child: _Menu( + children: [ + const Text('Countdown Timer'), + Text( + '${timer.inHours}:' + '${(timer.inMinutes % 60).toString().padLeft(2,'0')}:' + '${(timer.inSeconds % 60).toString().padLeft(2,'0')}', + style: TextStyle(color: CupertinoDynamicColor.resolve(CupertinoColors.inactiveGray, context)), + ), + ], + ), + ); + } + + Widget _buildDatePicker(BuildContext context) { + return GestureDetector( + onTap: () { + showCupertinoModalPopup( + context: context, + semanticsDismissible: true, + builder: (BuildContext context) { + return _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), + mode: CupertinoDatePickerMode.date, + initialDateTime: date, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => date = newDateTime); + }, + ), + ); + }, + ); + }, + child: _Menu( + children: [ + const Text('Date'), + Text( + DateFormat.yMMMMd().format(date), + style: TextStyle(color: CupertinoDynamicColor.resolve(CupertinoColors.inactiveGray, context)), + ), + ] + ), + ); + } + + Widget _buildTimePicker(BuildContext context) { + return GestureDetector( + onTap: () { + showCupertinoModalPopup( + context: context, + semanticsDismissible: true, + builder: (BuildContext context) { + return _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), + mode: CupertinoDatePickerMode.time, + initialDateTime: time, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => time = newDateTime); + }, + ), + ); + }, + ); + }, + child: _Menu( + children: [ + const Text('Time'), + Text( + DateFormat.jm().format(time), + style: TextStyle(color: CupertinoDynamicColor.resolve(CupertinoColors.inactiveGray, context)), + ), + ], + ), + ); + } + + Widget _buildDateAndTimePicker(BuildContext context) { + return GestureDetector( + onTap: () { + showCupertinoModalPopup( + context: context, + semanticsDismissible: true, + builder: (BuildContext context) { + return _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), + initialDateTime: dateTime, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => dateTime = newDateTime); + }, + ), + ); + }, + ); + }, + child: _Menu( + children: [ + const Text('Date and Time'), + Text( + DateFormat.yMMMd().add_jm().format(dateTime), + style: TextStyle(color: CupertinoDynamicColor.resolve(CupertinoColors.inactiveGray, context)), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Picker'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoPickerDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: ListView( + children: [ + const Padding(padding: EdgeInsets.only(top: 32.0)), + _buildColorPicker(context), + _buildCountdownTimerPicker(context), + _buildDatePicker(context), + _buildTimePicker(context), + _buildDateAndTimePicker(context), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..25285251d54358505f742c04825767e57142d57e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_refresh_demo.dart @@ -0,0 +1,240 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' show Random; + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoRefreshControlDemo extends StatefulWidget { + const CupertinoRefreshControlDemo({super.key}); + + static const String routeName = '/cupertino/refresh'; + + @override + State createState() => _CupertinoRefreshControlDemoState(); +} + +class _CupertinoRefreshControlDemoState extends State { + late List> randomizedContacts; + + @override + void initState() { + super.initState(); + repopulateList(); + } + + void repopulateList() { + final Random random = Random(); + randomizedContacts = List>.generate( + 100, + (int index) { + return contacts[random.nextInt(contacts.length)] + // Randomly adds a telephone icon next to the contact or not. + ..add(random.nextBool().toString()); + }, + ); + } + + @override + Widget build(BuildContext context) { + return DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: CupertinoPageScaffold( + backgroundColor: CupertinoColors.systemGroupedBackground, + child: CustomScrollView( + // If left unspecified, the [CustomScrollView] appends an + // [AlwaysScrollableScrollPhysics]. Behind the scene, the ScrollableState + // will attach that [AlwaysScrollableScrollPhysics] to the output of + // [ScrollConfiguration.of] which will be a [ClampingScrollPhysics] + // on Android. + // To demonstrate the iOS behavior in this demo and to ensure that the list + // always scrolls, we specifically use a [BouncingScrollPhysics] combined + // with a [AlwaysScrollableScrollPhysics] + physics: const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()), + slivers: [ + CupertinoSliverNavigationBar( + largeTitle: const Text('Refresh'), + // We're specifying a back label here because the previous page + // is a Material page. CupertinoPageRoutes could auto-populate + // these back labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoRefreshControlDemo.routeName), + ), + CupertinoSliverRefreshControl( + onRefresh: () { + return Future.delayed(const Duration(seconds: 2)) + ..then((_) { + if (mounted) { + setState(() => repopulateList()); + } + }); + }, + ), + SliverSafeArea( + top: false, // Top safe area is consumed by the navigation bar. + sliver: SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return _ListItem( + name: randomizedContacts[index][0], + place: randomizedContacts[index][1], + date: randomizedContacts[index][2], + called: randomizedContacts[index][3] == 'true', + ); + }, + childCount: 20, + ), + ), + ), + ], + ), + ), + ); + } +} + +List> contacts = >[ + ['George Washington', 'Westmoreland County', ' 4/30/1789'], + ['John Adams', 'Braintree', ' 3/4/1797'], + ['Thomas Jefferson', 'Shadwell', ' 3/4/1801'], + ['James Madison', 'Port Conway', ' 3/4/1809'], + ['James Monroe', 'Monroe Hall', ' 3/4/1817'], + ['Andrew Jackson', 'Waxhaws Region South/North', ' 3/4/1829'], + ['John Quincy Adams', 'Braintree', ' 3/4/1825'], + ['William Henry Harrison', 'Charles City County', ' 3/4/1841'], + ['Martin Van Buren', 'Kinderhook New', ' 3/4/1837'], + ['Zachary Taylor', 'Barboursville', ' 3/4/1849'], + ['John Tyler', 'Charles City County', ' 4/4/1841'], + ['James Buchanan', 'Cove Gap', ' 3/4/1857'], + ['James K. Polk', 'Pineville North', ' 3/4/1845'], + ['Millard Fillmore', 'Summerhill New', '7/9/1850'], + ['Franklin Pierce', 'Hillsborough New', ' 3/4/1853'], + ['Andrew Johnson', 'Raleigh North', ' 4/15/1865'], + ['Abraham Lincoln', 'Sinking Spring', ' 3/4/1861'], + ['Ulysses S. Grant', 'Point Pleasant', ' 3/4/1869'], + ['Rutherford B. Hayes', 'Delaware', ' 3/4/1877'], + ['Chester A. Arthur', 'Fairfield', ' 9/19/1881'], + ['James A. Garfield', 'Moreland Hills', ' 3/4/1881'], + ['Benjamin Harrison', 'North Bend', ' 3/4/1889'], + ['Grover Cleveland', 'Caldwell New', ' 3/4/1885'], + ['William McKinley', 'Niles', ' 3/4/1897'], + ['Woodrow Wilson', 'Staunton', ' 3/4/1913'], + ['William H. Taft', 'Cincinnati', ' 3/4/1909'], + ['Theodore Roosevelt', 'New York City New', ' 9/14/1901'], + ['Warren G. Harding', 'Blooming Grove', ' 3/4/1921'], + ['Calvin Coolidge', 'Plymouth', '8/2/1923'], + ['Herbert Hoover', 'West Branch', ' 3/4/1929'], + ['Franklin D. Roosevelt', 'Hyde Park New', ' 3/4/1933'], + ['Harry S. Truman', 'Lamar', ' 4/12/1945'], + ['Dwight D. Eisenhower', 'Denison', ' 1/20/1953'], + ['Lyndon B. Johnson', 'Stonewall', '11/22/1963'], + ['Ronald Reagan', 'Tampico', ' 1/20/1981'], + ['Richard Nixon', 'Yorba Linda', ' 1/20/1969'], + ['Gerald Ford', 'Omaha', 'August 9/1974'], + ['John F. Kennedy', 'Brookline', ' 1/20/1961'], + ['George H. W. Bush', 'Milton', ' 1/20/1989'], + ['Jimmy Carter', 'Plains', ' 1/20/1977'], + ['George W. Bush', 'New Haven', ' 1/20, 2001'], + ['Bill Clinton', 'Hope', ' 1/20/1993'], + ['Barack Obama', 'Honolulu', ' 1/20/2009'], + ['Donald J. Trump', 'New York City', ' 1/20/2017'], +]; + +class _ListItem extends StatelessWidget { + const _ListItem({ + this.name, + this.place, + this.date, + this.called, + }); + + final String? name; + final String? place; + final String? date; + final bool? called; + + @override + Widget build(BuildContext context) { + return Container( + color: CupertinoDynamicColor.resolve(CupertinoColors.systemBackground, context), + height: 60.0, + padding: const EdgeInsets.only(top: 9.0), + child: Row( + children: [ + SizedBox( + width: 38.0, + child: called! + ? Align( + alignment: Alignment.topCenter, + child: Icon( + CupertinoIcons.phone_solid, + color: CupertinoColors.inactiveGray.resolveFrom(context), + size: 18.0, + ), + ) + : null, + ), + Expanded( + child: Container( + decoration: const BoxDecoration( + border: Border( + bottom: BorderSide(color: Color(0xFFBCBBC1), width: 0.0), + ), + ), + padding: const EdgeInsets.only(left: 1.0, bottom: 9.0, right: 10.0), + child: Row( + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + name!, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontWeight: FontWeight.w600, + letterSpacing: -0.18, + ), + ), + Text( + place!, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 15.0, + letterSpacing: -0.24, + color: CupertinoColors.inactiveGray.resolveFrom(context), + ), + ), + ], + ), + ), + Text( + date!, + style: TextStyle( + color: CupertinoColors.inactiveGray.resolveFrom(context), + fontSize: 15.0, + letterSpacing: -0.41, + ), + ), + Padding( + padding: const EdgeInsets.only(left: 9.0), + child: Icon( + CupertinoIcons.info, + color: CupertinoTheme.of(context).primaryColor, + ), + ), + ], + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_segmented_control_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_segmented_control_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..f8a1317846309021e1be5a939d6f7c50b2ad681a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_segmented_control_demo.dart @@ -0,0 +1,142 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const Color _kKeyUmbraOpacity = Color(0x33000000); // alpha = 0.2 +const Color _kKeyPenumbraOpacity = Color(0x24000000); // alpha = 0.14 +const Color _kAmbientShadowOpacity = Color(0x1F000000); // alpha = 0.12 + +class CupertinoSegmentedControlDemo extends StatefulWidget { + const CupertinoSegmentedControlDemo({super.key}); + + static const String routeName = 'cupertino/segmented_control'; + + @override + State createState() => _CupertinoSegmentedControlDemoState(); +} + +class _CupertinoSegmentedControlDemoState extends State { + final Map children = const { + 0: Text('Small'), + 1: Text('Medium'), + 2: Text('Large'), + }; + + final Map icons = const { + 0: Center( + child: FlutterLogo( + size: 100.0, + ), + ), + 1: Center( + child: FlutterLogo( + size: 200.0, + ), + ), + 2: Center( + child: FlutterLogo( + size: 300.0, + ), + ), + }; + + int? currentSegment = 0; + + void onValueChanged(int? newValue) { + setState(() { + currentSegment = newValue; + }); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Segmented Control'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoSegmentedControlDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle.copyWith(fontSize: 13), + child: SafeArea( + child: Column( + children: [ + const Padding(padding: EdgeInsets.all(16.0)), + SizedBox( + width: 500.0, + child: CupertinoSegmentedControl( + children: children, + onValueChanged: onValueChanged, + groupValue: currentSegment, + ), + ), + SizedBox( + width: 500, + child: Padding( + padding: const EdgeInsets.all(16.0), + child: CupertinoSlidingSegmentedControl( + children: children, + onValueChanged: onValueChanged, + groupValue: currentSegment, + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 32.0, + horizontal: 16.0, + ), + child: CupertinoUserInterfaceLevel( + data: CupertinoUserInterfaceLevelData.elevated, + child: Builder( + builder: (BuildContext context) { + return Container( + padding: const EdgeInsets.symmetric( + vertical: 64.0, + horizontal: 16.0, + ), + decoration: BoxDecoration( + color: CupertinoTheme.of(context).scaffoldBackgroundColor, + borderRadius: BorderRadius.circular(3.0), + boxShadow: const [ + BoxShadow( + offset: Offset(0.0, 3.0), + blurRadius: 5.0, + spreadRadius: -1.0, + color: _kKeyUmbraOpacity, + ), + BoxShadow( + offset: Offset(0.0, 6.0), + blurRadius: 10.0, + color: _kKeyPenumbraOpacity, + ), + BoxShadow( + offset: Offset(0.0, 1.0), + blurRadius: 18.0, + color: _kAmbientShadowOpacity, + ), + ], + ), + child: icons[currentSegment!], + ); + }, + ), + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_slider_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_slider_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a5183fe6122afe90a2edd55add0db09b01868d9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_slider_demo.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoSliderDemo extends StatefulWidget { + const CupertinoSliderDemo({super.key}); + + static const String routeName = '/cupertino/slider'; + + @override + State createState() => _CupertinoSliderDemoState(); +} + +class _CupertinoSliderDemoState extends State { + double _value = 25.0; + double _discreteValue = 20.0; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Sliders'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoSliderDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: SafeArea( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + CupertinoSlider( + value: _value, + max: 100.0, + onChanged: (double value) { + setState(() { + _value = value; + }); + }, + ), + Text('Cupertino Continuous: ${_value.toStringAsFixed(1)}'), + ], + ), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + CupertinoSlider( + value: _discreteValue, + max: 100.0, + divisions: 5, + onChanged: (double value) { + setState(() { + _discreteValue = value; + }); + }, + ), + Text('Cupertino Discrete: $_discreteValue'), + ], + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a83019e0dbadbd4bb8ddbae9e8a11aec693925b6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart @@ -0,0 +1,93 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery/demo.dart'; + +class CupertinoSwitchDemo extends StatefulWidget { + const CupertinoSwitchDemo({super.key}); + + static const String routeName = '/cupertino/switch'; + + @override + State createState() => _CupertinoSwitchDemoState(); +} + +class _CupertinoSwitchDemoState extends State { + + bool _switchValue = false; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Switch'), + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + trailing: CupertinoDemoDocumentationButton(CupertinoSwitchDemo.routeName), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: SafeArea( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Semantics( + container: true, + child: Column( + children: [ + CupertinoSwitch( + value: _switchValue, + onChanged: (bool value) { + setState(() { + _switchValue = value; + }); + }, + ), + Text( + "Enabled - ${_switchValue ? "On" : "Off"}" + ), + ], + ), + ), + Semantics( + container: true, + child: const Column( + children: [ + CupertinoSwitch( + value: true, + onChanged: null, + ), + Text( + 'Disabled - On' + ), + ], + ), + ), + Semantics( + container: true, + child: const Column( + children: [ + CupertinoSwitch( + value: false, + onChanged: null, + ), + Text( + 'Disabled - Off' + ), + ], + ), + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_text_field_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_text_field_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..0fe9970152f4c2c40ca223091ea31c97bd7008f6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_text_field_demo.dart @@ -0,0 +1,195 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +class CupertinoTextFieldDemo extends StatefulWidget { + const CupertinoTextFieldDemo({super.key}); + + static const String routeName = '/cupertino/text_fields'; + + @override + State createState() { + return _CupertinoTextFieldDemoState(); + } +} + +class _CupertinoTextFieldDemoState extends State { + TextEditingController? _chatTextController; + TextEditingController? _locationTextController; + + @override + void initState() { + super.initState(); + _chatTextController = TextEditingController(); + _locationTextController = TextEditingController(text: 'Montreal, Canada'); + } + + Widget _buildChatTextField() { + return CupertinoTextField( + controller: _chatTextController, + textCapitalization: TextCapitalization.sentences, + placeholder: 'Text Message', + decoration: BoxDecoration( + border: Border.all( + width: 0.0, + color: CupertinoColors.inactiveGray, + ), + borderRadius: BorderRadius.circular(15.0), + ), + maxLines: null, + keyboardType: TextInputType.multiline, + prefix: const Padding(padding: EdgeInsets.symmetric(horizontal: 4.0)), + suffix: Padding( + padding: const EdgeInsets.symmetric(horizontal: 2.0), + child: CupertinoButton( + minSize: 0.0, + padding: const EdgeInsets.only(bottom: 4), + onPressed: () => setState(() => _chatTextController!.clear()), + child: const Icon( + CupertinoIcons.arrow_up_circle_fill, + size: 28.0, + color: CupertinoColors.activeGreen, + ), + ), + ), + autofocus: true, + suffixMode: OverlayVisibilityMode.editing, + onSubmitted: (String text)=> setState(()=> _chatTextController!.clear()), + ); + } + + Widget _buildNameField() { + return const CupertinoTextField( + prefix: Icon( + CupertinoIcons.person_fill, + color: CupertinoColors.lightBackgroundGray, + size: 28.0, + ), + padding: EdgeInsets.symmetric(horizontal: 6.0, vertical: 12.0), + clearButtonMode: OverlayVisibilityMode.editing, + textCapitalization: TextCapitalization.words, + autocorrect: false, + decoration: BoxDecoration( + border: Border(bottom: BorderSide(width: 0.0, color: CupertinoColors.inactiveGray)), + ), + placeholder: 'Name', + ); + } + + Widget _buildEmailField() { + return const CupertinoTextField( + prefix: Icon( + CupertinoIcons.envelope_fill, + color: CupertinoColors.lightBackgroundGray, + size: 26, + ), + padding: EdgeInsets.symmetric(horizontal: 6.0, vertical: 12.0), + clearButtonMode: OverlayVisibilityMode.editing, + keyboardType: TextInputType.emailAddress, + autocorrect: false, + decoration: BoxDecoration( + border: Border(bottom: BorderSide(width: 0.0, color: CupertinoColors.inactiveGray)), + ), + placeholder: 'Email', + ); + } + + Widget _buildLocationField() { + return CupertinoTextField( + controller: _locationTextController, + prefix: const Icon( + CupertinoIcons.location_fill, + color: CupertinoColors.lightBackgroundGray, + size: 26, + ), + padding: const EdgeInsets.symmetric(horizontal: 6.0, vertical: 12.0), + clearButtonMode: OverlayVisibilityMode.editing, + textCapitalization: TextCapitalization.words, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(width: 0.0, color: CupertinoColors.inactiveGray)), + ), + placeholder: 'Location', + ); + } + + Widget _buildPinField() { + return const CupertinoTextField( + prefix: Icon( + CupertinoIcons.lock_open_fill, + color: CupertinoColors.lightBackgroundGray, + size: 26, + ), + padding: EdgeInsets.symmetric(horizontal: 6.0, vertical: 12.0), + clearButtonMode: OverlayVisibilityMode.editing, + keyboardType: TextInputType.number, + autocorrect: false, + obscureText: true, + decoration: BoxDecoration( + border: Border(bottom: BorderSide(width: 0.0, color: CupertinoColors.inactiveGray)), + ), + placeholder: 'Create a PIN', + ); + } + + Widget _buildTagsField() { + return CupertinoTextField( + controller: TextEditingController(text: 'colleague, reading club'), + prefix: const Icon( + CupertinoIcons.tag_fill, + color: CupertinoColors.lightBackgroundGray, + size: 26, + ), + enabled: false, + padding: const EdgeInsets.symmetric(horizontal: 6.0, vertical: 12.0), + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(width: 0.0, color: CupertinoColors.inactiveGray)), + ), + ); + } + + @override + Widget build(BuildContext context) { + return DefaultTextStyle( + style: const TextStyle( + fontFamily: 'CupertinoSystemText', + inherit: false, + fontSize: 17.0, + color: CupertinoColors.black, + ), + child: CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + // We're specifying a back label here because the previous page is a + // Material page. CupertinoPageRoutes could auto-populate these back + // labels. + previousPageTitle: 'Cupertino', + middle: Text('Text Fields'), + ), + child: CupertinoScrollbar( + child: ListView( + primary: true, + children: [ + Padding( + padding: const EdgeInsets.symmetric(vertical: 32.0, horizontal: 16.0), + child: Column( + children: [ + _buildNameField(), + _buildEmailField(), + _buildLocationField(), + _buildPinField(), + _buildTagsField(), + ], + ), + ), + Padding( + padding: const EdgeInsets.symmetric(vertical: 32.0, horizontal: 16.0), + child: _buildChatTextField(), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/README.md b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/README.md new file mode 100644 index 0000000000000000000000000000000000000000..45c220334887189211ecc5b949475400a8508170 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/README.md @@ -0,0 +1,52 @@ +# Fortnightly + +A Flutter sample app based on the Material study Fortnightly (a hypothetical, online newspaper.) It +showcases print-quality, custom typography, Material Theming, and text-heavy UI design and layout. + +For info on the Fortnightly Material Study, see: https://material.io/design/material-studies/fortnightly.html + +## Goals for this sample + +* Help you understand how to customize and layout text. +* Provide you with example code for + * Text + * A short app bar (the menu button top left.) + * Avatar images + +## Widgets / APIs + +* BeveledRectangleBorder +* BoxConstraints on Container +* CircleAvatar +* ExactAssetImage +* Fonts +* SafeArea +* Stack +* SingleChildScrollView +* Text +* TextStyle +* TextTheme + +## Notice + +* Theming is passed as a parameter in the constructor of `MaterialApp` (`theme:`). +* `SafeArea` adds padding around notches and virtual home buttons on screens that have them (like + iPhone X+). Here, it protects the `ShortAppBar` from overlapping with the status bar (time) + and makes sure the bottom of the newspaper article has padding beneath it if necessary. +* The entire newspaper article is wrapped in a `SingleChildScrollView` widget which ensures that the + entire article can be viewed no matter what the screen's size or orientation is. +* The `Text` widget with text ' ¬ ' has a `TextStyle` that changes one parameter of an inherited + `TextStyle` using `.apply()``. +* The `Text` widget with text 'Connor Eghan' has a `TextStyle` created explicitly instead of + inheriting from theming. +* You can break up long strings in your source files by putting them on multiple lines. +* Fonts are imported with multiple files expressing their weights (Bold, Light, Medium, Regular) + but are accessed with a `FontWeight` value like `FontWeight.w800` for Merriweather-Bold.ttf. + +## Questions/issues + +If you have a general question about developing in Flutter, the best places to go are: + +* [The FlutterDev Google Group](https://groups.google.com/forum/#!forum/flutter-dev) +* [The Flutter Gitter channel](https://gitter.im/flutter/flutter) +* [StackOverflow](https://stackoverflow.com/questions/tagged/flutter) diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/fortnightly.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/fortnightly.dart new file mode 100644 index 0000000000000000000000000000000000000000..328e9a9a1ed6c94bec6534a2e4d084289c0aa38f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/fortnightly/fortnightly.dart @@ -0,0 +1,242 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class FortnightlyDemo extends StatelessWidget { + const FortnightlyDemo({super.key}); + + static const String routeName = '/fortnightly'; + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Fortnightly Demo', + theme: _fortnightlyTheme, + home: Scaffold( + body: Stack( + children: [ + const FruitPage(), + SafeArea( + child: ShortAppBar( + onBackPressed: () { + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + ); + } +} + +class ShortAppBar extends StatelessWidget { + const ShortAppBar({ super.key, this.onBackPressed }); + + final VoidCallback? onBackPressed; + + @override + Widget build(BuildContext context) { + return SizedBox( + width: 96, + height: 50, + child: Material( + color: Theme.of(context).colorScheme.surface, + elevation: 4, + shape: const BeveledRectangleBorder( + borderRadius: BorderRadius.only(bottomRight: Radius.circular(22)), + ), + child: Row( + children: [ + IconButton( + icon: const Icon(Icons.arrow_back), + tooltip: 'Back', + onPressed: onBackPressed, + ), + const SizedBox(width: 12), + Image.asset( + 'logos/fortnightly/fortnightly_logo.png', + package: 'flutter_gallery_assets', + ), + ], + ), + ), + ); + } +} + +class FruitPage extends StatelessWidget { + const FruitPage({super.key}); + + static final String paragraph1 = ''' +Have you ever held a quince? It's strange; +covered in a fuzz somewhere between peach skin and a spider web. And it's +hard as soft lumber. You'd be forgiven for thinking it's veneered Larch-wood. +But inhale the aroma and you'll instantly know you have something wonderful. +Its scent can fill a room for days. And all this before you've even cooked it. +'''.replaceAll('\n', ' '); + + static final String paragraph2 = ''' +Pomegranates on the other hand have become +almost ubiquitous. You can find its juice in any bodega, Walmart, and even some +gas stations. But at what cost? The pomegranate juice craze of the aughts made +"megafarmers" Lynda and Stewart Resnick billions. Unfortunately, it takes a lot +of water to make that much pomegranate juice. Water the Resnicks get from their +majority stake in the Kern Water Bank. How did one family come to hold control +over water meant for the whole central valley of California? The story will shock you. +'''.replaceAll('\n', ' '); + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).primaryTextTheme; + + return SingleChildScrollView( + child: SafeArea( + top: false, + child: ColoredBox( + color: Theme.of(context).colorScheme.surface, + child: Column( + children: [ + Container( + constraints: const BoxConstraints.expand(height: 248), + child: Image.asset( + 'food/fruits.png', + package: 'flutter_gallery_assets', + fit: BoxFit.fitWidth, + ), + ), + const SizedBox(height: 17), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Text( + 'US', + style: textTheme.labelSmall, + ), + Text( + ' ¬ ', + // TODO(larche): Replace textTheme.headline2.color with a ColorScheme value when known. + style: textTheme.labelSmall!.apply(color: textTheme.displayMedium!.color), + ), + Text( + 'CULTURE', + style: textTheme.labelSmall, + ), + ], + ), + const SizedBox(height: 10), + Text( + 'Quince for Wisdom, Persimmon for Luck, Pomegranate for Love', + style: textTheme.headlineMedium, + ), + const SizedBox(height: 10), + Text( + 'How these crazy fruits sweetened our hearts, relationships, ' + 'and puffed pastries', + style: textTheme.bodyMedium, + ), + Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: Row( + children: [ + const CircleAvatar( + backgroundImage: ExactAssetImage( + 'people/square/trevor.png', + package: 'flutter_gallery_assets', + ), + radius: 20, + ), + const SizedBox(width: 12), + Text( + 'by', + style: textTheme.displayMedium, + ), + const SizedBox(width: 4), + const Text( + 'Connor Eghan', + style: TextStyle( + fontFamily: 'Merriweather', + fontSize: 18, + fontWeight: FontWeight.w500, + color: Colors.black, + ), + ), + ], + ), + ), + Text( + '$paragraph1\n\n$paragraph2', + style: textTheme.bodyLarge, + ), + ], + ), + ), + ], + ), + ), + ), + ); + } +} + +final ThemeData _fortnightlyTheme = _buildFortnightlyTheme(); + +ThemeData _buildFortnightlyTheme() { + final ThemeData base = ThemeData.light(); + return base.copyWith( + primaryTextTheme: _buildTextTheme(base.primaryTextTheme), + scaffoldBackgroundColor: Colors.white, + ); +} + +TextTheme _buildTextTheme(TextTheme base) { + TextTheme theme = base.apply(bodyColor: Colors.black); + theme = theme.apply(displayColor: Colors.black); + + theme = theme.copyWith( + headlineMedium: base.headlineMedium!.copyWith( + fontFamily: 'Merriweather', + fontStyle: FontStyle.italic, + fontSize: 28, + fontWeight: FontWeight.w800, + color: Colors.black, + height: .88, + ), + displayMedium: base.displayMedium!.copyWith( + fontFamily: 'LibreFranklin', + fontSize: 18, + fontWeight: FontWeight.w500, + color: Colors.black.withAlpha(153), + ), + headlineSmall: base.headlineSmall!.copyWith(fontWeight: FontWeight.w500), + bodyMedium: base.bodyMedium!.copyWith( + fontFamily: 'Merriweather', + fontSize: 14, + fontWeight: FontWeight.w300, + color: const Color(0xFF666666), + height: 1.11, + ), + bodyLarge: base.bodyLarge!.copyWith( + fontFamily: 'Merriweather', + fontSize: 16, + fontWeight: FontWeight.w300, + color: const Color(0xFF666666), + height: 1.4, + letterSpacing: .25, + ), + labelSmall: const TextStyle( + fontFamily: 'LibreFranklin', + fontSize: 10, + fontWeight: FontWeight.w700, + color: Colors.black, + ), + ); + + return theme; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/images_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/images_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..2cd95fc2c7dc522692c44abc81c362d7c8b67a53 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/images_demo.dart @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../gallery/demo.dart'; + +class ImagesDemo extends StatelessWidget { + const ImagesDemo({super.key}); + + static const String routeName = '/images'; + + @override + Widget build(BuildContext context) { + return TabbedComponentDemoScaffold( + title: 'Animated images', + demos: [ + ComponentDemoTabData( + tabName: 'WEBP', + description: '', + exampleCodeTag: 'animated_image', + demoWidget: Semantics( + label: 'Example of animated WEBP', + child: Image.asset( + 'animated_images/animated_flutter_stickers.webp', + package: 'flutter_gallery_assets', + ), + ), + ), + ComponentDemoTabData( + tabName: 'GIF', + description: '', + exampleCodeTag: 'animated_image', + demoWidget: Semantics( + label: 'Example of animated GIF', + child: Image.asset( + 'animated_images/animated_flutter_lgtm.gif', + package: 'flutter_gallery_assets', + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..ded1a7b05e562a9d3ad6ee42340d77d267f35dcb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart @@ -0,0 +1,417 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +// This demo displays one Category at a time. The backdrop show a list +// of all of the categories and the selected category is displayed +// (CategoryView) on top of the backdrop. + +class Category { + const Category({ this.title, this.assets }); + final String? title; + final List? assets; + @override + String toString() => '$runtimeType("$title")'; +} + +const List allCategories = [ + Category( + title: 'Accessories', + assets: [ + 'products/belt.png', + 'products/earrings.png', + 'products/backpack.png', + 'products/hat.png', + 'products/scarf.png', + 'products/sunnies.png', + ], + ), + Category( + title: 'Blue', + assets: [ + 'products/backpack.png', + 'products/cup.png', + 'products/napkins.png', + 'products/top.png', + ], + ), + Category( + title: 'Cold Weather', + assets: [ + 'products/jacket.png', + 'products/jumper.png', + 'products/scarf.png', + 'products/sweater.png', + 'products/sweats.png', + ], + ), + Category( + title: 'Home', + assets: [ + 'products/cup.png', + 'products/napkins.png', + 'products/planters.png', + 'products/table.png', + 'products/teaset.png', + ], + ), + Category( + title: 'Tops', + assets: [ + 'products/jumper.png', + 'products/shirt.png', + 'products/sweater.png', + 'products/top.png', + ], + ), + Category( + title: 'Everything', + assets: [ + 'products/backpack.png', + 'products/belt.png', + 'products/cup.png', + 'products/dress.png', + 'products/earrings.png', + 'products/flatwear.png', + 'products/hat.png', + 'products/jacket.png', + 'products/jumper.png', + 'products/napkins.png', + 'products/planters.png', + 'products/scarf.png', + 'products/shirt.png', + 'products/sunnies.png', + 'products/sweater.png', + 'products/sweats.png', + 'products/table.png', + 'products/teaset.png', + 'products/top.png', + ], + ), +]; + +class CategoryView extends StatelessWidget { + const CategoryView({ super.key, this.category }); + + final Category? category; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Scrollbar( + child: ListView( + primary: true, + key: PageStorageKey(category), + padding: const EdgeInsets.symmetric( + vertical: 16.0, + horizontal: 64.0, + ), + children: category!.assets!.map((String asset) { + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Card( + child: Container( + width: 144.0, + alignment: Alignment.center, + child: Column( + children: [ + Image.asset( + asset, + package: 'flutter_gallery_assets', + fit: BoxFit.contain, + ), + Container( + padding: const EdgeInsets.only(bottom: 16.0), + alignment: AlignmentDirectional.center, + child: Text( + asset, + style: theme.textTheme.bodySmall, + ), + ), + ], + ), + ), + ), + const SizedBox(height: 24.0), + ], + ); + }).toList(), + ), + ); + } +} + +// One BackdropPanel is visible at a time. It's stacked on top of the +// BackdropDemo. +class BackdropPanel extends StatelessWidget { + const BackdropPanel({ + super.key, + this.onTap, + this.onVerticalDragUpdate, + this.onVerticalDragEnd, + this.title, + this.child, + }); + + final VoidCallback? onTap; + final GestureDragUpdateCallback? onVerticalDragUpdate; + final GestureDragEndCallback? onVerticalDragEnd; + final Widget? title; + final Widget? child; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Material( + elevation: 2.0, + borderRadius: const BorderRadius.only( + topLeft: Radius.circular(16.0), + topRight: Radius.circular(16.0), + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + GestureDetector( + behavior: HitTestBehavior.opaque, + onVerticalDragUpdate: onVerticalDragUpdate, + onVerticalDragEnd: onVerticalDragEnd, + onTap: onTap, + child: Container( + height: 48.0, + padding: const EdgeInsetsDirectional.only(start: 16.0), + alignment: AlignmentDirectional.centerStart, + child: DefaultTextStyle( + style: theme.textTheme.titleMedium!, + child: Tooltip( + message: 'Tap to dismiss', + child: title, + ), + ), + ), + ), + const Divider(height: 1.0), + Expanded(child: child!), + ], + ), + ); + } +} + +// Cross fades between 'Select a Category' and 'Asset Viewer'. +class BackdropTitle extends AnimatedWidget { + const BackdropTitle({ + super.key, + required Animation super.listenable, + }); + + @override + Widget build(BuildContext context) { + final Animation animation = listenable as Animation; + return DefaultTextStyle( + style: Theme.of(context).primaryTextTheme.titleLarge!, + softWrap: false, + overflow: TextOverflow.ellipsis, + child: Stack( + children: [ + Opacity( + opacity: CurvedAnimation( + parent: ReverseAnimation(animation), + curve: const Interval(0.5, 1.0), + ).value, + child: const Text('Select a Category'), + ), + Opacity( + opacity: CurvedAnimation( + parent: animation, + curve: const Interval(0.5, 1.0), + ).value, + child: const Text('Asset Viewer'), + ), + ], + ), + ); + } +} + +// This widget is essentially the backdrop itself. +class BackdropDemo extends StatefulWidget { + const BackdropDemo({super.key}); + + static const String routeName = '/material/backdrop'; + + @override + State createState() => _BackdropDemoState(); +} + +class _BackdropDemoState extends State with SingleTickerProviderStateMixin { + final GlobalKey _backdropKey = GlobalKey(debugLabel: 'Backdrop'); + late AnimationController _controller; + Category _category = allCategories[0]; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 300), + value: 1.0, + vsync: this, + ); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + void _changeCategory(Category category) { + setState(() { + _category = category; + _controller.fling(velocity: 2.0); + }); + } + + bool get _backdropPanelVisible { + final AnimationStatus status = _controller.status; + return status == AnimationStatus.completed || status == AnimationStatus.forward; + } + + void _toggleBackdropPanelVisibility() { + _controller.fling(velocity: _backdropPanelVisible ? -2.0 : 2.0); + } + + double get _backdropHeight { + final RenderBox renderBox = _backdropKey.currentContext!.findRenderObject()! as RenderBox; + return renderBox.size.height; + } + + // By design: the panel can only be opened with a swipe. To close the panel + // the user must either tap its heading or the backdrop's menu icon. + + void _handleDragUpdate(DragUpdateDetails details) { + if (_controller.isAnimating || _controller.status == AnimationStatus.completed) { + return; + } + + _controller.value -= details.primaryDelta! / _backdropHeight; + } + + void _handleDragEnd(DragEndDetails details) { + if (_controller.isAnimating || _controller.status == AnimationStatus.completed) { + return; + } + + final double flingVelocity = details.velocity.pixelsPerSecond.dy / _backdropHeight; + if (flingVelocity < 0.0) { + _controller.fling(velocity: math.max(2.0, -flingVelocity)); + } else if (flingVelocity > 0.0) { + _controller.fling(velocity: math.min(-2.0, -flingVelocity)); + } else { + _controller.fling(velocity: _controller.value < 0.5 ? -2.0 : 2.0); + } + } + + // Stacks a BackdropPanel, which displays the selected category, on top + // of the backdrop. The categories are displayed with ListTiles. Just one + // can be selected at a time. This is a LayoutWidgetBuild function because + // we need to know how big the BackdropPanel will be to set up its + // animation. + Widget _buildStack(BuildContext context, BoxConstraints constraints) { + const double panelTitleHeight = 48.0; + final Size panelSize = constraints.biggest; + final double panelTop = panelSize.height - panelTitleHeight; + + final Animation panelAnimation = _controller.drive( + RelativeRectTween( + begin: RelativeRect.fromLTRB( + 0.0, + panelTop - MediaQuery.of(context).padding.bottom, + 0.0, + panelTop - panelSize.height, + ), + end: RelativeRect.fill, + ), + ); + + final ThemeData theme = Theme.of(context); + final List backdropItems = allCategories.map((Category category) { + final bool selected = category == _category; + return Material( + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + color: selected + ? Colors.white.withOpacity(0.25) + : Colors.transparent, + child: ListTile( + title: Text(category.title!), + selected: selected, + onTap: () { + _changeCategory(category); + }, + ), + ); + }).toList(); + + return ColoredBox( + key: _backdropKey, + color: theme.primaryColor, + child: Stack( + children: [ + ListTileTheme( + iconColor: theme.primaryIconTheme.color, + textColor: theme.primaryTextTheme.titleLarge!.color!.withOpacity(0.6), + selectedColor: theme.primaryTextTheme.titleLarge!.color, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: backdropItems, + ), + ), + ), + PositionedTransition( + rect: panelAnimation, + child: BackdropPanel( + onTap: _toggleBackdropPanelVisibility, + onVerticalDragUpdate: _handleDragUpdate, + onVerticalDragEnd: _handleDragEnd, + title: Text(_category.title!), + child: CategoryView(category: _category), + ), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + elevation: 0.0, + title: BackdropTitle( + listenable: _controller.view, + ), + actions: [ + IconButton( + onPressed: _toggleBackdropPanelVisibility, + icon: AnimatedIcon( + icon: AnimatedIcons.close_menu, + semanticLabel: 'close', + progress: _controller.view, + ), + ), + ], + ), + body: LayoutBuilder( + builder: _buildStack, + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/banner_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/banner_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..54f2d9feb342014d1ec35eaae8c3e43ef4c806c1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/banner_demo.dart @@ -0,0 +1,106 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +enum BannerDemoAction { + reset, + showMultipleActions, + showLeading, +} + +class BannerDemo extends StatefulWidget { + const BannerDemo({ super.key }); + + static const String routeName = '/material/banner'; + + @override + State createState() => _BannerDemoState(); +} + +class _BannerDemoState extends State { + static const int _numItems = 20; + bool _displayBanner = true; + bool _showMultipleActions = true; + bool _showLeading = true; + + void handleDemoAction(BannerDemoAction action) { + setState(() { + switch (action) { + case BannerDemoAction.reset: + _displayBanner = true; + _showMultipleActions = true; + _showLeading = true; + case BannerDemoAction.showMultipleActions: + _showMultipleActions = !_showMultipleActions; + case BannerDemoAction.showLeading: + _showLeading = !_showLeading; + } + }); + } + + @override + Widget build(BuildContext context) { + final Widget banner = MaterialBanner( + content: const Text('Your password was updated on your other device. Please sign in again.'), + leading: _showLeading ? const CircleAvatar(child: Icon(Icons.access_alarm)) : null, + actions: [ + TextButton( + child: const Text('SIGN IN'), + onPressed: () { + setState(() { + _displayBanner = false; + }); + }, + ), + if (_showMultipleActions) + TextButton( + child: const Text('DISMISS'), + onPressed: () { + setState(() { + _displayBanner = false; + }); + }, + ), + ], + ); + + return Scaffold( + appBar: AppBar( + title: const Text('Banner'), + actions: [ + MaterialDemoDocumentationButton(BannerDemo.routeName), + PopupMenuButton( + onSelected: handleDemoAction, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: BannerDemoAction.reset, + child: Text('Reset the banner'), + ), + const PopupMenuDivider(), + CheckedPopupMenuItem( + value: BannerDemoAction.showMultipleActions, + checked: _showMultipleActions, + child: const Text('Multiple actions'), + ), + CheckedPopupMenuItem( + value: BannerDemoAction.showLeading, + checked: _showLeading, + child: const Text('Leading icon'), + ), + ], + ), + ], + ), + body: ListView.builder(itemCount: _displayBanner ? _numItems + 1 : _numItems, itemBuilder: (BuildContext context, int index) { + if (index == 0 && _displayBanner) { + return banner; + } + return ListTile(title: Text('Item ${_displayBanner ? index : index + 1}'),); + }), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..bdc86751b55836194b36bed67b611dd40e51d876 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart @@ -0,0 +1,523 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +class BottomAppBarDemo extends StatefulWidget { + const BottomAppBarDemo({super.key}); + + static const String routeName = '/material/bottom_app_bar'; + + @override + State createState() => _BottomAppBarDemoState(); +} + +// Flutter generally frowns upon abbreviation however this class uses two +// abbreviations extensively: "fab" for floating action button, and "bab" +// for bottom application bar. + +class _BottomAppBarDemoState extends State { + static final GlobalKey _scaffoldMessengerKey = GlobalKey(); + + // FAB shape + + static const _ChoiceValue kNoFab = _ChoiceValue( + title: 'None', + label: 'do not show a floating action button', + ); + + static const _ChoiceValue kCircularFab = _ChoiceValue( + title: 'Circular', + label: 'circular floating action button', + value: FloatingActionButton( + onPressed: _showSnackbar, + backgroundColor: Colors.orange, + child: Icon(Icons.add, semanticLabel: 'Action'), + ), + ); + + static const _ChoiceValue kDiamondFab = _ChoiceValue( + title: 'Diamond', + label: 'diamond shape floating action button', + value: _DiamondFab( + onPressed: _showSnackbar, + child: Icon(Icons.add, semanticLabel: 'Action'), + ), + ); + + // Notch + + static const _ChoiceValue kShowNotchTrue = _ChoiceValue( + title: 'On', + label: 'show bottom appbar notch', + value: true, + ); + + static const _ChoiceValue kShowNotchFalse = _ChoiceValue( + title: 'Off', + label: 'do not show bottom appbar notch', + value: false, + ); + + // FAB Position + + static const _ChoiceValue kFabEndDocked = _ChoiceValue( + title: 'Attached - End', + label: 'floating action button is docked at the end of the bottom app bar', + value: FloatingActionButtonLocation.endDocked, + ); + + static const _ChoiceValue kFabCenterDocked = _ChoiceValue( + title: 'Attached - Center', + label: 'floating action button is docked at the center of the bottom app bar', + value: FloatingActionButtonLocation.centerDocked, + ); + + static const _ChoiceValue kFabEndFloat= _ChoiceValue( + title: 'Free - End', + label: 'floating action button floats above the end of the bottom app bar', + value: FloatingActionButtonLocation.endFloat, + ); + + static const _ChoiceValue kFabCenterFloat = _ChoiceValue( + title: 'Free - Center', + label: 'floating action button is floats above the center of the bottom app bar', + value: FloatingActionButtonLocation.centerFloat, + ); + + static void _showSnackbar() { + const String text = + "When the Scaffold's floating action button location changes, " + 'the floating action button animates to its new position. ' + 'The BottomAppBar adapts its shape appropriately.'; + _scaffoldMessengerKey.currentState!.showSnackBar( + const SnackBar(content: Text(text)), + ); + } + + // App bar color + + static const List<_NamedColor> kBabColors = <_NamedColor>[ + _NamedColor(null, 'Clear'), + _NamedColor(Color(0xFFFFC100), 'Orange'), + _NamedColor(Color(0xFF91FAFF), 'Light Blue'), + _NamedColor(Color(0xFF00D1FF), 'Cyan'), + _NamedColor(Color(0xFF00BCFF), 'Cerulean'), + _NamedColor(Color(0xFF009BEE), 'Blue'), + ]; + + _ChoiceValue _fabShape = kCircularFab; + _ChoiceValue _showNotch = kShowNotchTrue; + _ChoiceValue _fabLocation = kFabEndDocked; + Color? _babColor = kBabColors.first.color; + + void _onShowNotchChanged(_ChoiceValue? value) { + setState(() { + _showNotch = value!; + }); + } + + void _onFabShapeChanged(_ChoiceValue? value) { + setState(() { + _fabShape = value!; + }); + } + + void _onFabLocationChanged(_ChoiceValue? value) { + setState(() { + _fabLocation = value!; + }); + } + + void _onBabColorChanged(Color? value) { + setState(() { + _babColor = value; + }); + } + + @override + Widget build(BuildContext context) { + return ScaffoldMessenger( + key: _scaffoldMessengerKey, + child: Builder( + builder: (BuildContext context) => Scaffold( + appBar: AppBar( + title: const Text('Bottom app bar'), + elevation: 0.0, + actions: [ + MaterialDemoDocumentationButton(BottomAppBarDemo.routeName), + IconButton( + icon: const Icon(Icons.sentiment_very_satisfied, semanticLabel: 'Update shape'), + onPressed: () { + setState(() { + _fabShape = _fabShape == kCircularFab ? kDiamondFab : kCircularFab; + }); + }, + ), + ], + ), + body: Scrollbar( + child: ListView( + primary: true, + padding: const EdgeInsets.only(bottom: 88.0), + children: [ + const _Heading('FAB Shape'), + + _RadioItem(kCircularFab, _fabShape, _onFabShapeChanged), + _RadioItem(kDiamondFab, _fabShape, _onFabShapeChanged), + _RadioItem(kNoFab, _fabShape, _onFabShapeChanged), + + const Divider(), + const _Heading('Notch'), + + _RadioItem(kShowNotchTrue, _showNotch, _onShowNotchChanged), + _RadioItem(kShowNotchFalse, _showNotch, _onShowNotchChanged), + + const Divider(), + const _Heading('FAB Position'), + + _RadioItem(kFabEndDocked, _fabLocation, _onFabLocationChanged), + _RadioItem(kFabCenterDocked, _fabLocation, _onFabLocationChanged), + _RadioItem(kFabEndFloat, _fabLocation, _onFabLocationChanged), + _RadioItem(kFabCenterFloat, _fabLocation, _onFabLocationChanged), + + const Divider(), + const _Heading('App bar color'), + + _ColorsItem(kBabColors, _babColor, _onBabColorChanged), + ], + ), + ), + floatingActionButton: _fabShape.value, + floatingActionButtonLocation: _fabLocation.value, + bottomNavigationBar: _DemoBottomAppBar( + color: _babColor, + fabLocation: _fabLocation.value, + shape: _selectNotch(), + ), + ), + ), + ); + } + + NotchedShape? _selectNotch() { + if (!_showNotch.value!) { + return null; + } + if (_fabShape == kCircularFab) { + return const CircularNotchedRectangle(); + } + if (_fabShape == kDiamondFab) { + return const _DiamondNotchedRectangle(); + } + return null; + } +} + +class _ChoiceValue { + const _ChoiceValue({ this.value, this.title, this.label }); + + final T? value; + final String? title; + final String? label; // For the Semantics widget that contains title + + @override + String toString() => '$runtimeType("$title")'; +} + +class _RadioItem extends StatelessWidget { + const _RadioItem(this.value, this.groupValue, this.onChanged); + + final _ChoiceValue value; + final _ChoiceValue groupValue; + final ValueChanged<_ChoiceValue?> onChanged; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Container( + height: 56.0, + padding: const EdgeInsetsDirectional.only(start: 16.0), + alignment: AlignmentDirectional.centerStart, + child: MergeSemantics( + child: Row( + children: [ + Radio<_ChoiceValue>( + value: value, + groupValue: groupValue, + onChanged: onChanged, + ), + Expanded( + child: Semantics( + container: true, + button: true, + label: value.label, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: () { + onChanged(value); + }, + child: Text( + value.title!, + style: theme.textTheme.titleMedium, + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +class _NamedColor { + const _NamedColor(this.color, this.name); + + final Color? color; + final String name; +} + +class _ColorsItem extends StatelessWidget { + const _ColorsItem(this.colors, this.selectedColor, this.onChanged); + + final List<_NamedColor> colors; + final Color? selectedColor; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: colors.map((_NamedColor namedColor) { + return RawMaterialButton( + onPressed: () { + onChanged(namedColor.color); + }, + constraints: const BoxConstraints.tightFor( + width: 32.0, + height: 32.0, + ), + fillColor: namedColor.color, + shape: CircleBorder( + side: BorderSide( + color: namedColor.color == selectedColor ? Colors.black : const Color(0xFFD5D7DA), + width: 2.0, + ), + ), + child: Semantics( + value: namedColor.name, + selected: namedColor.color == selectedColor, + ), + ); + }).toList(), + ); + } +} + +class _Heading extends StatelessWidget { + const _Heading(this.text); + + final String text; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Container( + height: 48.0, + padding: const EdgeInsetsDirectional.only(start: 56.0), + alignment: AlignmentDirectional.centerStart, + child: Text( + text, + style: theme.textTheme.bodyLarge, + ), + ); + } +} + +class _DemoBottomAppBar extends StatelessWidget { + const _DemoBottomAppBar({ + this.color, + this.fabLocation, + this.shape, + }); + + final Color? color; + final FloatingActionButtonLocation? fabLocation; + final NotchedShape? shape; + + static final List kCenterLocations = [ + FloatingActionButtonLocation.centerDocked, + FloatingActionButtonLocation.centerFloat, + ]; + + @override + Widget build(BuildContext context) { + return BottomAppBar( + color: color, + shape: shape, + child: Row(children: [ + IconButton( + icon: const Icon(Icons.menu, semanticLabel: 'Show bottom sheet'), + onPressed: () { + showModalBottomSheet( + context: context, + builder: (BuildContext context) => const _DemoDrawer(), + ); + }, + ), + if (kCenterLocations.contains(fabLocation)) const Expanded(child: SizedBox()), + IconButton( + icon: const Icon(Icons.search, semanticLabel: 'show search action',), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('This is a dummy search action.')), + ); + }, + ), + IconButton( + icon: Icon( + Theme.of(context).platform == TargetPlatform.iOS + ? Icons.more_horiz + : Icons.more_vert, + semanticLabel: 'Show menu actions', + ), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('This is a dummy menu action.')), + ); + }, + ), + ]), + ); + } +} + +// A drawer that pops up from the bottom of the screen. +class _DemoDrawer extends StatelessWidget { + const _DemoDrawer(); + + @override + Widget build(BuildContext context) { + return const Drawer( + child: Column( + children: [ + ListTile( + leading: Icon(Icons.search), + title: Text('Search'), + ), + ListTile( + leading: Icon(Icons.threed_rotation), + title: Text('3D'), + ), + ], + ), + ); + } +} + +// A diamond-shaped floating action button. +class _DiamondFab extends StatelessWidget { + const _DiamondFab({ + this.child, + this.onPressed, + }); + + final Widget? child; + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + return Material( + shape: const _DiamondBorder(), + color: Colors.orange, + elevation: 6.0, + child: InkWell( + onTap: onPressed, + child: SizedBox( + width: 56.0, + height: 56.0, + child: IconTheme.merge( + data: IconThemeData(color: Theme.of(context).colorScheme.secondary), + child: child!, + ), + ), + ), + ); + } +} + +class _DiamondNotchedRectangle implements NotchedShape { + const _DiamondNotchedRectangle(); + + @override + Path getOuterPath(Rect host, Rect? guest) { + if (!host.overlaps(guest!)) { + return Path()..addRect(host); + } + assert(guest.width > 0.0); + + final Rect intersection = guest.intersect(host); + // We are computing a "V" shaped notch, as in this diagram: + // -----\**** /----- + // \ / + // \ / + // \ / + // + // "-" marks the top edge of the bottom app bar. + // "\" and "/" marks the notch outline + // + // notchToCenter is the horizontal distance between the guest's center and + // the host's top edge where the notch starts (marked with "*"). + // We compute notchToCenter by similar triangles: + final double notchToCenter = + intersection.height * (guest.height / 2.0) + / (guest.width / 2.0); + + return Path() + ..moveTo(host.left, host.top) + ..lineTo(guest.center.dx - notchToCenter, host.top) + ..lineTo(guest.left + guest.width / 2.0, guest.bottom) + ..lineTo(guest.center.dx + notchToCenter, host.top) + ..lineTo(host.right, host.top) + ..lineTo(host.right, host.bottom) + ..lineTo(host.left, host.bottom) + ..close(); + } +} + +class _DiamondBorder extends ShapeBorder { + const _DiamondBorder(); + + @override + EdgeInsetsGeometry get dimensions { + return EdgeInsets.zero; + } + + @override + Path getInnerPath(Rect rect, { TextDirection? textDirection }) { + return getOuterPath(rect, textDirection: textDirection); + } + + @override + Path getOuterPath(Rect rect, { TextDirection? textDirection }) { + return Path() + ..moveTo(rect.left + rect.width / 2.0, rect.top) + ..lineTo(rect.right, rect.top + rect.height / 2.0) + ..lineTo(rect.left + rect.width / 2.0, rect.bottom) + ..lineTo(rect.left, rect.top + rect.height / 2.0) + ..close(); + } + + @override + void paint(Canvas canvas, Rect rect, { TextDirection? textDirection }) { } + + // This border doesn't support scaling. + @override + ShapeBorder scale(double t) { + return this; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_navigation_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_navigation_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..df1a559c01be1cc31f2156c36a7de1261ca75fcd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_navigation_demo.dart @@ -0,0 +1,238 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +class NavigationIconView { + NavigationIconView({ + required Widget icon, + Widget? activeIcon, + String? title, + Color? color, + required TickerProvider vsync, + }) : _icon = icon, + _color = color, + _title = title, + item = BottomNavigationBarItem( + icon: icon, + activeIcon: activeIcon, + label: title, + backgroundColor: color, + ), + controller = AnimationController( + duration: kThemeAnimationDuration, + vsync: vsync, + ) { + _animation = controller.drive(CurveTween( + curve: const Interval(0.5, 1.0, curve: Curves.fastOutSlowIn), + )); + } + + final Widget _icon; + final Color? _color; + final String? _title; + final BottomNavigationBarItem item; + final AnimationController controller; + late Animation _animation; + + FadeTransition transition(BottomNavigationBarType type, BuildContext context) { + Color? iconColor; + if (type == BottomNavigationBarType.shifting) { + iconColor = _color; + } else { + final ThemeData theme = Theme.of(context); + final ColorScheme colorScheme = theme.colorScheme; + iconColor = theme.brightness == Brightness.light + ? colorScheme.primary + : colorScheme.secondary; + } + + return FadeTransition( + opacity: _animation, + child: SlideTransition( + position: _animation.drive( + Tween( + begin: const Offset(0.0, 0.02), // Slightly down. + end: Offset.zero, + ), + ), + child: IconTheme( + data: IconThemeData( + color: iconColor, + size: 120.0, + ), + child: Semantics( + label: 'Placeholder for $_title tab', + child: _icon, + ), + ), + ), + ); + } +} + +class CustomIcon extends StatelessWidget { + const CustomIcon({super.key}); + + @override + Widget build(BuildContext context) { + final IconThemeData iconTheme = IconTheme.of(context); + return Container( + margin: const EdgeInsets.all(4.0), + width: iconTheme.size! - 8.0, + height: iconTheme.size! - 8.0, + color: iconTheme.color, + ); + } +} + +class CustomInactiveIcon extends StatelessWidget { + const CustomInactiveIcon({super.key}); + + @override + Widget build(BuildContext context) { + final IconThemeData iconTheme = IconTheme.of(context); + return Container( + margin: const EdgeInsets.all(4.0), + width: iconTheme.size! - 8.0, + height: iconTheme.size! - 8.0, + decoration: BoxDecoration( + border: Border.all(color: iconTheme.color!, width: 2.0), + ), + ); + } +} + +class BottomNavigationDemo extends StatefulWidget { + const BottomNavigationDemo({super.key}); + + static const String routeName = '/material/bottom_navigation'; + + @override + State createState() => _BottomNavigationDemoState(); +} + +class _BottomNavigationDemoState extends State + with TickerProviderStateMixin { + int _currentIndex = 0; + BottomNavigationBarType _type = BottomNavigationBarType.shifting; + late List _navigationViews; + + @override + void initState() { + super.initState(); + _navigationViews = [ + NavigationIconView( + icon: const Icon(Icons.access_alarm), + title: 'Alarm', + color: Colors.deepPurple, + vsync: this, + ), + NavigationIconView( + activeIcon: const CustomIcon(), + icon: const CustomInactiveIcon(), + title: 'Box', + color: Colors.deepOrange, + vsync: this, + ), + NavigationIconView( + activeIcon: const Icon(Icons.cloud), + icon: const Icon(Icons.cloud_queue), + title: 'Cloud', + color: Colors.teal, + vsync: this, + ), + NavigationIconView( + activeIcon: const Icon(Icons.favorite), + icon: const Icon(Icons.favorite_border), + title: 'Favorites', + color: Colors.indigo, + vsync: this, + ), + NavigationIconView( + icon: const Icon(Icons.event_available), + title: 'Event', + color: Colors.pink, + vsync: this, + ), + ]; + + _navigationViews[_currentIndex].controller.value = 1.0; + } + + @override + void dispose() { + for (final NavigationIconView view in _navigationViews) { + view.controller.dispose(); + } + super.dispose(); + } + + Widget _buildTransitionsStack() { + final List transitions = [ + for (final NavigationIconView view in _navigationViews) view.transition(_type, context), + ]; + + // We want to have the newly animating (fading in) views on top. + transitions.sort((FadeTransition a, FadeTransition b) { + final Animation aAnimation = a.opacity; + final Animation bAnimation = b.opacity; + final double aValue = aAnimation.value; + final double bValue = bAnimation.value; + return aValue.compareTo(bValue); + }); + + return Stack(children: transitions); + } + + @override + Widget build(BuildContext context) { + final BottomNavigationBar botNavBar = BottomNavigationBar( + items: _navigationViews + .map((NavigationIconView navigationView) => navigationView.item) + .toList(), + currentIndex: _currentIndex, + type: _type, + onTap: (int index) { + setState(() { + _navigationViews[_currentIndex].controller.reverse(); + _currentIndex = index; + _navigationViews[_currentIndex].controller.forward(); + }); + }, + ); + + return Scaffold( + appBar: AppBar( + title: const Text('Bottom navigation'), + actions: [ + MaterialDemoDocumentationButton(BottomNavigationDemo.routeName), + PopupMenuButton( + onSelected: (BottomNavigationBarType value) { + setState(() { + _type = value; + }); + }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: BottomNavigationBarType.fixed, + child: Text('Fixed'), + ), + const PopupMenuItem( + value: BottomNavigationBarType.shifting, + child: Text('Shifting'), + ), + ], + ), + ], + ), + body: Center( + child: _buildTransitionsStack(), + ), + bottomNavigationBar: botNavBar, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/buttons_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/buttons_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..af222897747bff99df236eb5ebe85a05c1458a12 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/buttons_demo.dart @@ -0,0 +1,391 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const String _elevatedText = + 'Elevated buttons add dimension to mostly flat layouts. They emphasize ' + 'functions on busy or wide spaces.'; + +const String _elevatedCode = 'buttons_elevated'; + +const String _textText = 'A text button displays an ink splash on press ' + 'but does not lift. Use text buttons on toolbars, in dialogs and ' + 'inline with padding'; + +const String _textCode = 'buttons_text'; + +const String _outlinedText = + 'Outlined buttons become opaque and elevate when pressed. They are often ' + 'paired with elevated buttons to indicate an alternative, secondary action.'; + +const String _outlinedCode = 'buttons_outlined'; + +const String _dropdownText = + "A dropdown button displays a menu that's used to select a value from a " + 'small set of values. The button displays the current value and a down ' + 'arrow.'; + +const String _dropdownCode = 'buttons_dropdown'; + +const String _iconText = + 'IconButtons are appropriate for toggle buttons that allow a single choice ' + "to be selected or deselected, such as adding or removing an item's star."; + +const String _iconCode = 'buttons_icon'; + +const String _actionText = + 'Floating action buttons are used for a promoted action. They are ' + 'distinguished by a circled icon floating above the UI and can have motion ' + 'behaviors that include morphing, launching, and a transferring anchor ' + 'point.'; + +const String _actionCode = 'buttons_action'; + +class ButtonsDemo extends StatefulWidget { + const ButtonsDemo({super.key}); + + static const String routeName = '/material/buttons'; + + @override + State createState() => _ButtonsDemoState(); +} + +class _ButtonsDemoState extends State { + OutlinedBorder? _buttonShape; + + @override + Widget build(BuildContext context) { + final List demos = [ + ComponentDemoTabData( + tabName: 'ELEVATED', + description: _elevatedText, + demoWidget: buildElevatedButton(_buttonShape), + exampleCodeTag: _elevatedCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/ElevatedButton-class.html', + ), + ComponentDemoTabData( + tabName: 'TEXT', + description: _textText, + demoWidget: buildTextButton(_buttonShape), + exampleCodeTag: _textCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/TextButton-class.html', + ), + ComponentDemoTabData( + tabName: 'OUTLINED', + description: _outlinedText, + demoWidget: buildOutlinedButton(_buttonShape), + exampleCodeTag: _outlinedCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/OutlinedButton-class.html', + ), + ComponentDemoTabData( + tabName: 'DROPDOWN', + description: _dropdownText, + demoWidget: buildDropdownButton(), + exampleCodeTag: _dropdownCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/DropdownButton-class.html', + ), + ComponentDemoTabData( + tabName: 'ICON', + description: _iconText, + demoWidget: buildIconButton(), + exampleCodeTag: _iconCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/IconButton-class.html', + ), + ComponentDemoTabData( + tabName: 'ACTION', + description: _actionText, + demoWidget: buildActionButton(), + exampleCodeTag: _actionCode, + documentationUrl: 'https://api.flutter.dev/flutter/material/FloatingActionButton-class.html', + ), + ]; + + return TabbedComponentDemoScaffold( + title: 'Buttons', + demos: demos, + actions: [ + IconButton( + icon: const Icon(Icons.sentiment_very_satisfied, semanticLabel: 'Update shape'), + onPressed: () { + setState(() { + _buttonShape = _buttonShape == null ? const StadiumBorder() : null; + }); + }, + ), + ], + ); + } + + Widget buildElevatedButton(OutlinedBorder? shape) { + final ButtonStyle style = ElevatedButton.styleFrom(shape: shape); + return Align( + alignment: const Alignment(0.0, -0.2), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const SizedBox(height: 2), + OverflowBar( + spacing: 8, + children: [ + ElevatedButton( + style: style, + child: const Text('ELEVATED BUTTON', semanticsLabel: 'ELEVATED BUTTON 1'), + onPressed: () { + // Perform some action + }, + ), + const ElevatedButton( + onPressed: null, + child: Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 1'), + ), + ], + ), + const SizedBox(height: 16), + OverflowBar( + spacing: 8, + children: [ + ElevatedButton.icon( + style: style, + icon: const Icon(Icons.add, size: 18.0), + label: const Text('ELEVATED BUTTON', semanticsLabel: 'ELEVATED BUTTON 2'), + onPressed: () { + // Perform some action + }, + ), + ElevatedButton.icon( + style: style, + icon: const Icon(Icons.add, size: 18.0), + label: const Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 2'), + onPressed: () {}, + ), + ], + ), + ], + ), + ); + } + + Widget buildTextButton(OutlinedBorder? shape) { + final ButtonStyle style = ElevatedButton.styleFrom(shape: shape); + return Align( + alignment: const Alignment(0.0, -0.2), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const SizedBox(height: 2), + OverflowBar( + spacing: 8, + children: [ + TextButton( + style: style, + child: const Text('TEXT BUTTON', semanticsLabel: 'TEXT BUTTON 1'), + onPressed: () { + // Perform some action + }, + ), + const TextButton( + onPressed: null, + child: Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 3',), + ), + ], + ), + OverflowBar( + spacing: 8, + children: [ + TextButton.icon( + style: style, + icon: const Icon(Icons.add_circle_outline, size: 18.0), + label: const Text('TEXT BUTTON', semanticsLabel: 'TEXT BUTTON 2'), + onPressed: () { + // Perform some action + }, + ), + TextButton.icon( + style: style, + icon: const Icon(Icons.add_circle_outline, size: 18.0), + label: const Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 4'), + onPressed: () {}, + ), + ], + ), + ], + ), + ); + } + + Widget buildOutlinedButton(OutlinedBorder? shape) { + final ButtonStyle style = ElevatedButton.styleFrom(shape: shape); + return Align( + alignment: const Alignment(0.0, -0.2), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const SizedBox(height: 2), + OverflowBar( + spacing: 8, + children: [ + OutlinedButton( + style: style, + child: const Text('OUTLINED BUTTON', semanticsLabel: 'OUTLINED BUTTON 1'), + onPressed: () { + // Perform some action + }, + ), + OutlinedButton( + style: style, + onPressed: null, + child: const Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 5'), + ), + ], + ), + const SizedBox(height: 16), + OverflowBar( + spacing: 8, + children: [ + OutlinedButton.icon( + style: style, + icon: const Icon(Icons.add, size: 18.0), + label: const Text('OUTLINED BUTTON', semanticsLabel: 'OUTLINED BUTTON 2'), + onPressed: () { + // Perform some action + }, + ), + OutlinedButton.icon( + icon: const Icon(Icons.add, size: 18.0), + label: const Text('DISABLED', semanticsLabel: 'DISABLED BUTTON 6'), + onPressed: null, + ), + ], + ), + ], + ), + ); + } + + // https://en.wikipedia.org/wiki/Free_Four + String? dropdown1Value = 'Free'; + String? dropdown2Value; + String? dropdown3Value = 'Four'; + + Widget buildDropdownButton() { + return Padding( + padding: const EdgeInsets.all(24.0), + child: Column( + children: [ + ListTile( + title: const Text('Simple dropdown:'), + trailing: DropdownButton( + value: dropdown1Value, + onChanged: (String? newValue) { + setState(() { + dropdown1Value = newValue; + }); + }, + items: ['One', 'Two', 'Free', 'Four'].map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ), + const SizedBox( + height: 24.0, + ), + ListTile( + title: const Text('Dropdown with a hint:'), + trailing: DropdownButton( + value: dropdown2Value, + hint: const Text('Choose'), + onChanged: (String? newValue) { + setState(() { + dropdown2Value = newValue; + }); + }, + items: ['One', 'Two', 'Free', 'Four'].map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ), + const SizedBox( + height: 24.0, + ), + ListTile( + title: const Text('Scrollable dropdown:'), + trailing: DropdownButton( + value: dropdown3Value, + onChanged: (String? newValue) { + setState(() { + dropdown3Value = newValue; + }); + }, + items: [ + 'One', 'Two', 'Free', 'Four', 'Can', 'I', 'Have', 'A', 'Little', + 'Bit', 'More', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', + ] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }) + .toList(), + ), + ), + ], + ), + ); + } + + bool iconButtonToggle = false; + + Widget buildIconButton() { + return Align( + alignment: const Alignment(0.0, -0.2), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon( + Icons.thumb_up, + semanticLabel: 'Thumbs up', + ), + onPressed: () { + setState(() => iconButtonToggle = !iconButtonToggle); + }, + color: iconButtonToggle ? Theme.of(context).primaryColor : null, + ), + const IconButton( + icon: Icon( + Icons.thumb_up, + semanticLabel: 'Thumbs not up', + ), + onPressed: null, + ), + ] + .map((Widget button) => SizedBox(width: 64.0, height: 64.0, child: button)) + .toList(), + ), + ); + } + + Widget buildActionButton() { + return Align( + alignment: const Alignment(0.0, -0.2), + child: FloatingActionButton( + tooltip: 'floating action button', + child: const Icon(Icons.add), + onPressed: () { + // Perform some action + }, + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..10831fe40eb685012394f5932d029c5b8e69bf8c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/cards_demo.dart @@ -0,0 +1,400 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; + +enum CardDemoType { + standard, + tappable, + selectable, +} + +class TravelDestination { + const TravelDestination({ + required this.assetName, + required this.assetPackage, + required this.title, + required this.description, + required this.city, + required this.location, + this.type = CardDemoType.standard, + }); + + final String assetName; + final String assetPackage; + final String title; + final String description; + final String city; + final String location; + final CardDemoType type; +} + +const List destinations = [ + TravelDestination( + assetName: 'places/india_thanjavur_market.png', + assetPackage: _kGalleryAssetsPackage, + title: 'Top 10 Cities to Visit in Tamil Nadu', + description: 'Number 10', + city: 'Thanjavur', + location: 'Thanjavur, Tamil Nadu', + ), + TravelDestination( + assetName: 'places/india_chettinad_silk_maker.png', + assetPackage: _kGalleryAssetsPackage, + title: 'Artisans of Southern India', + description: 'Silk Spinners', + city: 'Chettinad', + location: 'Sivaganga, Tamil Nadu', + type: CardDemoType.tappable, + ), + TravelDestination( + assetName: 'places/india_tanjore_thanjavur_temple.png', + assetPackage: _kGalleryAssetsPackage, + title: 'Brihadisvara Temple', + description: 'Temples', + city: 'Thanjavur', + location: 'Thanjavur, Tamil Nadu', + type: CardDemoType.selectable, + ), +]; + +class TravelDestinationItem extends StatelessWidget { + const TravelDestinationItem({ super.key, required this.destination, this.shape }); + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 338.0; + final TravelDestination destination; + final ShapeBorder? shape; + + @override + Widget build(BuildContext context) { + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + const SectionTitle(title: 'Normal'), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: shape, + child: TravelDestinationContent(destination: destination), + ), + ), + ], + ), + ), + ); + } +} + +class TappableTravelDestinationItem extends StatelessWidget { + const TappableTravelDestinationItem({ super.key, required this.destination, this.shape }); + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 298.0; + final TravelDestination destination; + final ShapeBorder? shape; + + @override + Widget build(BuildContext context) { + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + const SectionTitle(title: 'Tappable'), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children (including the ink splash) are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: shape, + child: InkWell( + onTap: () { + print('Card was tapped'); + }, + // Generally, material cards use onSurface with 12% opacity for the pressed state. + splashColor: Theme.of(context).colorScheme.onSurface.withOpacity(0.12), + // Generally, material cards do not have a highlight overlay. + highlightColor: Colors.transparent, + child: TravelDestinationContent(destination: destination), + ), + ), + ), + ], + ), + ), + ); + } +} + +class SelectableTravelDestinationItem extends StatefulWidget { + const SelectableTravelDestinationItem({ super.key, required this.destination, this.shape }); + + final TravelDestination destination; + final ShapeBorder? shape; + + @override + State createState() => _SelectableTravelDestinationItemState(); +} + +class _SelectableTravelDestinationItemState extends State { + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 298.0; + bool _isSelected = false; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + const SectionTitle(title: 'Selectable (long press)'), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children (including the ink splash) are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: widget.shape, + child: InkWell( + onLongPress: () { + print('Selectable card state changed'); + setState(() { + _isSelected = !_isSelected; + }); + }, + // Generally, material cards use onSurface with 12% opacity for the pressed state. + splashColor: colorScheme.onSurface.withOpacity(0.12), + // Generally, material cards do not have a highlight overlay. + highlightColor: Colors.transparent, + child: Stack( + children: [ + Container( + color: _isSelected + // Generally, material cards use primary with 8% opacity for the selected state. + // See: https://material.io/design/interaction/states.html#anatomy + ? colorScheme.primary.withOpacity(0.08) + : Colors.transparent, + ), + TravelDestinationContent(destination: widget.destination), + Align( + alignment: Alignment.topRight, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Icon( + Icons.check_circle, + color: _isSelected ? colorScheme.primary : Colors.transparent, + ), + ), + ), + ], + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +class SectionTitle extends StatelessWidget { + const SectionTitle({ + super.key, + this.title, + }); + + final String? title; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.fromLTRB(4.0, 4.0, 4.0, 12.0), + child: Align( + alignment: Alignment.centerLeft, + child: Text(title!, style: Theme.of(context).textTheme.titleMedium), + ), + ); + } +} + +class TravelDestinationContent extends StatelessWidget { + const TravelDestinationContent({ super.key, required this.destination }); + + final TravelDestination destination; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle titleStyle = theme.textTheme.headlineSmall!.copyWith(color: Colors.white); + final TextStyle descriptionStyle = theme.textTheme.titleMedium!; + final ButtonStyle textButtonStyle = TextButton.styleFrom(foregroundColor: Colors.amber.shade500); + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // Photo and title. + SizedBox( + height: 184.0, + child: Stack( + children: [ + Positioned.fill( + // In order to have the ink splash appear above the image, you + // must use Ink.image. This allows the image to be painted as part + // of the Material and display ink effects above it. Using a + // standard Image will obscure the ink splash. + child: Ink.image( + image: AssetImage(destination.assetName, package: destination.assetPackage), + fit: BoxFit.cover, + child: Container(), + ), + ), + Positioned( + bottom: 16.0, + left: 16.0, + right: 16.0, + child: FittedBox( + fit: BoxFit.scaleDown, + alignment: Alignment.centerLeft, + child: Text( + destination.title, + style: titleStyle, + ), + ), + ), + ], + ), + ), + // Description and share/explore buttons. + Padding( + padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 0.0), + child: DefaultTextStyle( + softWrap: false, + overflow: TextOverflow.ellipsis, + style: descriptionStyle, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // three line description + Padding( + padding: const EdgeInsets.only(bottom: 8.0), + child: Text( + destination.description, + style: descriptionStyle.copyWith(color: Colors.black54), + ), + ), + Text(destination.city), + Text(destination.location), + ], + ), + ), + ), + if (destination.type == CardDemoType.standard) + // share, explore buttons + Padding( + padding: const EdgeInsetsDirectional.only(start: 8, top: 8), + child: OverflowBar( + alignment: MainAxisAlignment.start, + spacing: 8, + children: [ + TextButton( + style: textButtonStyle, + onPressed: () { print('pressed'); }, + child: Text('SHARE', semanticsLabel: 'Share ${destination.title}'), + ), + TextButton( + style: textButtonStyle, + onPressed: () { print('pressed'); }, + child: Text('EXPLORE', semanticsLabel: 'Explore ${destination.title}'), + ), + ], + ), + ), + ], + ); + } +} + +class CardsDemo extends StatefulWidget { + const CardsDemo({super.key}); + + static const String routeName = '/material/cards'; + + @override + State createState() => _CardsDemoState(); +} + +class _CardsDemoState extends State { + ShapeBorder? _shape; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Cards'), + actions: [ + MaterialDemoDocumentationButton(CardsDemo.routeName), + IconButton( + icon: const Icon( + Icons.sentiment_very_satisfied, + semanticLabel: 'update shape', + ), + onPressed: () { + setState(() { + _shape = _shape != null ? null : const RoundedRectangleBorder( + borderRadius: BorderRadius.only( + topLeft: Radius.circular(16.0), + topRight: Radius.circular(16.0), + bottomLeft: Radius.circular(2.0), + bottomRight: Radius.circular(2.0), + ), + ); + }); + }, + ), + ], + ), + body: Scrollbar( + child: ListView( + primary: true, + padding: const EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0), + children: destinations.map((TravelDestination destination) { + Widget? child; + switch (destination.type) { + case CardDemoType.standard: + child = TravelDestinationItem(destination: destination, shape: _shape); + case CardDemoType.tappable: + child = TappableTravelDestinationItem(destination: destination, shape: _shape); + case CardDemoType.selectable: + child = SelectableTravelDestinationItem(destination: destination, shape: _shape); + } + + return Container( + margin: const EdgeInsets.only(bottom: 8.0), + child: child, + ); + }).toList(), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/chip_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/chip_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..19188dc24444aa606f3593bd8e5989c1867773ba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/chip_demo.dart @@ -0,0 +1,363 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const List _defaultMaterialsA = [ + 'poker', + 'tortilla', + 'fish and', + 'micro', + 'wood', +]; + +const List _defaultMaterialsB = [ + 'apple', + 'orange', + 'tomato', + 'grape', + 'lettuce', +]; + +const List _defaultActions = [ + 'flake', + 'cut', + 'fragment', + 'splinter', + 'nick', + 'fry', + 'solder', + 'cash in', + 'eat', +]; + +const Map _results = { + 'flake': 'flaking', + 'cut': 'cutting', + 'fragment': 'fragmenting', + 'splinter': 'splintering', + 'nick': 'nicking', + 'fry': 'frying', + 'solder': 'soldering', + 'cash in': 'cashing in', + 'eat': 'eating', +}; + +const List _defaultToolsA = [ + 'hammer', + 'chisel', + 'fryer', + 'fabricator', + 'customer', +]; + +const List _defaultToolsB = [ + 'keyboard', + 'mouse', + 'monitor', + 'printer', + 'cable', +]; + +const Map _avatars = { + 'hammer': 'people/square/ali.png', + 'chisel': 'people/square/sandra.png', + 'fryer': 'people/square/trevor.png', + 'fabricator': 'people/square/stella.png', + 'customer': 'people/square/peter.png', +}; + +const Map> _toolActions = >{ + 'hammer': {'flake', 'fragment', 'splinter'}, + 'chisel': {'flake', 'nick', 'splinter'}, + 'fryer': {'fry'}, + 'fabricator': {'solder'}, + 'customer': {'cash in', 'eat'}, +}; + +const Map> _materialActions = >{ + 'poker': {'cash in'}, + 'tortilla': {'fry', 'eat'}, + 'fish and': {'fry', 'eat'}, + 'micro': {'solder', 'fragment'}, + 'wood': {'flake', 'cut', 'splinter', 'nick'}, +}; + +class _ChipsTile extends StatelessWidget { + const _ChipsTile({ + this.label, + this.children, + }); + + final String? label; + final List? children; + + // Wraps a list of chips into a ListTile for display as a section in the demo. + @override + Widget build(BuildContext context) { + return Card( + semanticContainer: false, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + padding: const EdgeInsets.only(top: 16.0, bottom: 4.0), + alignment: Alignment.center, + child: Text(label!, textAlign: TextAlign.start), + ), + if (children!.isNotEmpty) + Wrap( + children: children!.map((Widget chip) { + return Padding( + padding: const EdgeInsets.all(2.0), + child: chip, + ); + }).toList(), + ) + else + Semantics( + container: true, + child: Container( + alignment: Alignment.center, + constraints: const BoxConstraints(minWidth: 48.0, minHeight: 48.0), + padding: const EdgeInsets.all(8.0), + child: Text('None', style: Theme.of(context).textTheme.bodySmall!.copyWith(fontStyle: FontStyle.italic)), + ), + ), + ], + ), + ); + } +} + +class ChipDemo extends StatefulWidget { + const ChipDemo({super.key}); + + static const String routeName = '/material/chip'; + + @override + State createState() => _ChipDemoState(); +} + +class _ChipDemoState extends State { + _ChipDemoState() { + _reset(); + } + + final Set _materialsA = {}; + final Set _materialsB = {}; + String _selectedMaterial = ''; + String _selectedAction = ''; + final Set _toolsA = {}; + final Set _toolsB = {}; + final Set _selectedTools = {}; + final Set _actions = {}; + bool _showShapeBorder = false; + + // Initialize members with the default data. + void _reset() { + _materialsA.clear(); + _materialsA.addAll(_defaultMaterialsA); + _materialsB.clear(); + _materialsB.addAll(_defaultMaterialsB); + _actions.clear(); + _actions.addAll(_defaultActions); + _toolsA.clear(); + _toolsA.addAll(_defaultToolsA); + _toolsB.clear(); + _toolsB.addAll(_defaultToolsB); + _selectedMaterial = ''; + _selectedAction = ''; + _selectedTools.clear(); + } + + void _removeMaterial(String name) { + _materialsA.remove(name); + _materialsB.remove(name); + if (_selectedMaterial == name) { + _selectedMaterial = ''; + } + } + + void _removeTool(String name) { + _toolsA.remove(name); + _toolsB.remove(name); + _selectedTools.remove(name); + } + + String _capitalize(String name) { + assert(name.isNotEmpty); + return name.substring(0, 1).toUpperCase() + name.substring(1); + } + + // This converts a String to a unique color, based on the hash value of the + // String object. It takes the bottom 16 bits of the hash, and uses that to + // pick a hue for an HSV color, and then creates the color (with a preset + // saturation and value). This means that any unique strings will also have + // unique colors, but they'll all be readable, since they have the same + // saturation and value. + Color _nameToColor(String name, ThemeData theme) { + assert(name.length > 1); + final int hash = name.hashCode & 0xffff; + final double hue = (360.0 * hash / (1 << 15)) % 360.0; + final double themeValue = HSVColor.fromColor(theme.colorScheme.background).value; + return HSVColor.fromAHSV(1.0, hue, 0.4, themeValue).toColor(); + } + + AssetImage _nameToAvatar(String name) { + assert(_avatars.containsKey(name)); + return AssetImage( + _avatars[name]!, + package: 'flutter_gallery_assets', + ); + } + + String _createResult() { + if (_selectedAction.isEmpty) { + return ''; + } + final String value = _capitalize(_results[_selectedAction]!); + return '$value!'; + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final List chips = _materialsA.map((String name) { + return Chip( + key: ValueKey(name), + backgroundColor: _nameToColor(name, theme), + label: Text(_capitalize(name)), + onDeleted: () { + setState(() { + _removeMaterial(name); + }); + }, + ); + }).toList(); + + final List inputChips = _toolsA.map((String name) { + return InputChip( + key: ValueKey(name), + avatar: CircleAvatar( + backgroundImage: _nameToAvatar(name), + ), + label: Text(_capitalize(name)), + onDeleted: () { + setState(() { + _removeTool(name); + }); + }); + }).toList(); + + final List choiceChips = _materialsB.map((String name) { + return ChoiceChip( + key: ValueKey(name), + backgroundColor: _nameToColor(name, theme), + label: Text(_capitalize(name)), + selected: _selectedMaterial == name, + onSelected: (bool value) { + setState(() { + _selectedMaterial = value ? name : ''; + }); + }, + ); + }).toList(); + + final List filterChips = _toolsB.map((String name) { + return FilterChip( + key: ValueKey(name), + label: Text(_capitalize(name)), + selected: _toolsB.contains(name) && _selectedTools.contains(name), + onSelected: !_toolsB.contains(name) + ? null + : (bool value) { + setState(() { + if (!value) { + _selectedTools.remove(name); + } else { + _selectedTools.add(name); + } + }); + }, + ); + }).toList(); + + Set allowedActions = {}; + if (_selectedMaterial.isNotEmpty) { + for (final String tool in _selectedTools) { + allowedActions.addAll(_toolActions[tool]!); + } + allowedActions = allowedActions.intersection(_materialActions[_selectedMaterial]!); + } + + final List actionChips = allowedActions.map((String name) { + return ActionChip( + label: Text(_capitalize(name)), + onPressed: () { + setState(() { + _selectedAction = name; + }); + }, + ); + }).toList(); + + final List tiles = [ + const SizedBox(height: 8.0, width: 0.0), + _ChipsTile(label: 'Available Materials (Chip)', children: chips), + _ChipsTile(label: 'Available Tools (InputChip)', children: inputChips), + _ChipsTile(label: 'Choose a Material (ChoiceChip)', children: choiceChips), + _ChipsTile(label: 'Choose Tools (FilterChip)', children: filterChips), + _ChipsTile(label: 'Perform Allowed Action (ActionChip)', children: actionChips), + const Divider(), + Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: Text( + _createResult(), + style: theme.textTheme.titleLarge, + ), + ), + ), + ]; + + return Scaffold( + appBar: AppBar( + title: const Text('Chips'), + actions: [ + MaterialDemoDocumentationButton(ChipDemo.routeName), + IconButton( + onPressed: () { + setState(() { + _showShapeBorder = !_showShapeBorder; + }); + }, + icon: const Icon(Icons.vignette, semanticLabel: 'Update border shape'), + ), + ], + ), + body: ChipTheme( + data: _showShapeBorder + ? theme.chipTheme.copyWith( + shape: BeveledRectangleBorder( + side: const BorderSide(width: 0.66, color: Colors.grey), + borderRadius: BorderRadius.circular(10.0), + )) + : theme.chipTheme, + child: Scrollbar( + child: ListView( + primary: true, + children: tiles, + ) + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: () => setState(_reset), + child: const Icon(Icons.refresh, semanticLabel: 'Reset chips'), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/data_table_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/data_table_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..4547738a5973a55c02fd43ae5bde61a74e6239e2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/data_table_demo.dart @@ -0,0 +1,240 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +class Dessert { + Dessert(this.name, this.calories, this.fat, this.carbs, this.protein, this.sodium, this.calcium, this.iron); + final String name; + final int calories; + final double fat; + final int carbs; + final double protein; + final int sodium; + final int calcium; + final int iron; + + bool? selected = false; +} + +class DessertDataSource extends DataTableSource { + final List _desserts = [ + Dessert('Frozen yogurt', 159, 6.0, 24, 4.0, 87, 14, 1), + Dessert('Ice cream sandwich', 237, 9.0, 37, 4.3, 129, 8, 1), + Dessert('Eclair', 262, 16.0, 24, 6.0, 337, 6, 7), + Dessert('Cupcake', 305, 3.7, 67, 4.3, 413, 3, 8), + Dessert('Gingerbread', 356, 15.0, 49, 3.9, 327, 7, 16), + Dessert('Jelly bean', 375, 0.0, 94, 0.0, 50, 0, 0), + Dessert('Lollipop', 392, 0.2, 98, 0.0, 38, 0, 2), + Dessert('Honeycomb', 408, 3.2, 87, 6.5, 562, 0, 45), + Dessert('Donut', 452, 25.0, 51, 4.9, 326, 2, 22), + Dessert('KitKat', 518, 26.0, 65, 7.0, 54, 12, 6), + + Dessert('Frozen yogurt with sugar', 168, 6.0, 26, 4.0, 87, 14, 1), + Dessert('Ice cream sandwich with sugar', 246, 9.0, 39, 4.3, 129, 8, 1), + Dessert('Eclair with sugar', 271, 14.0, 26, 6.0, 337, 6, 7), + Dessert('Cupcake with sugar', 314, 3.7, 69, 4.3, 413, 3, 8), + Dessert('Gingerbread with sugar', 345, 13.0, 51, 3.9, 327, 7, 16), + Dessert('Jelly bean with sugar', 364, 0.0, 96, 0.0, 50, 0, 0), + Dessert('Lollipop with sugar', 401, 0.2, 100, 0.0, 38, 0, 2), + Dessert('Honeycomb with sugar', 417, 3.2, 89, 6.5, 562, 0, 45), + Dessert('Donut with sugar', 461, 25.0, 53, 4.9, 326, 2, 22), + Dessert('KitKat with sugar', 527, 26.0, 67, 7.0, 54, 12, 6), + + Dessert('Frozen yogurt with honey', 223, 6.0, 36, 4.0, 87, 14, 1), + Dessert('Ice cream sandwich with honey', 301, 9.0, 49, 4.3, 129, 8, 1), + Dessert('Eclair with honey', 326, 12.0, 36, 6.0, 337, 6, 7), + Dessert('Cupcake with honey', 369, 3.7, 79, 4.3, 413, 3, 8), + Dessert('Gingerbread with honey', 420, 11.0, 61, 3.9, 327, 7, 16), + Dessert('Jelly bean with honey', 439, 0.0, 106, 0.0, 50, 0, 0), + Dessert('Lollipop with honey', 456, 0.2, 110, 0.0, 38, 0, 2), + Dessert('Honeycomb with honey', 472, 3.2, 99, 6.5, 562, 0, 45), + Dessert('Donut with honey', 516, 25.0, 63, 4.9, 326, 2, 22), + Dessert('KitKat with honey', 582, 26.0, 77, 7.0, 54, 12, 6), + + Dessert('Frozen yogurt with milk', 262, 8.4, 36, 12.0, 194, 44, 1), + Dessert('Ice cream sandwich with milk', 339, 11.4, 49, 12.3, 236, 38, 1), + Dessert('Eclair with milk', 365, 18.4, 36, 14.0, 444, 36, 7), + Dessert('Cupcake with milk', 408, 6.1, 79, 12.3, 520, 33, 8), + Dessert('Gingerbread with milk', 459, 18.4, 61, 11.9, 434, 37, 16), + Dessert('Jelly bean with milk', 478, 2.4, 106, 8.0, 157, 30, 0), + Dessert('Lollipop with milk', 495, 2.6, 110, 8.0, 145, 30, 2), + Dessert('Honeycomb with milk', 511, 5.6, 99, 14.5, 669, 30, 45), + Dessert('Donut with milk', 555, 27.4, 63, 12.9, 433, 32, 22), + Dessert('KitKat with milk', 621, 28.4, 77, 15.0, 161, 42, 6), + + Dessert('Coconut slice and frozen yogurt', 318, 21.0, 31, 5.5, 96, 14, 7), + Dessert('Coconut slice and ice cream sandwich', 396, 24.0, 44, 5.8, 138, 8, 7), + Dessert('Coconut slice and eclair', 421, 31.0, 31, 7.5, 346, 6, 13), + Dessert('Coconut slice and cupcake', 464, 18.7, 74, 5.8, 422, 3, 14), + Dessert('Coconut slice and gingerbread', 515, 31.0, 56, 5.4, 316, 7, 22), + Dessert('Coconut slice and jelly bean', 534, 15.0, 101, 1.5, 59, 0, 6), + Dessert('Coconut slice and lollipop', 551, 15.2, 105, 1.5, 47, 0, 8), + Dessert('Coconut slice and honeycomb', 567, 18.2, 94, 8.0, 571, 0, 51), + Dessert('Coconut slice and donut', 611, 40.0, 58, 6.4, 335, 2, 28), + Dessert('Coconut slice and KitKat', 677, 41.0, 72, 8.5, 63, 12, 12), + ]; + + void _sort(Comparable Function(Dessert d) getField, bool ascending) { + _desserts.sort((Dessert a, Dessert b) { + if (!ascending) { + final Dessert c = a; + a = b; + b = c; + } + final Comparable aValue = getField(a); + final Comparable bValue = getField(b); + return Comparable.compare(aValue, bValue); + }); + notifyListeners(); + } + + int _selectedCount = 0; + + @override + DataRow? getRow(int index) { + assert(index >= 0); + if (index >= _desserts.length) { + return null; + } + final Dessert dessert = _desserts[index]; + return DataRow.byIndex( + index: index, + selected: dessert.selected!, + onSelectChanged: (bool? value) { + if (dessert.selected != value) { + _selectedCount += value! ? 1 : -1; + assert(_selectedCount >= 0); + dessert.selected = value; + notifyListeners(); + } + }, + cells: [ + DataCell(Text(dessert.name)), + DataCell(Text('${dessert.calories}')), + DataCell(Text(dessert.fat.toStringAsFixed(1))), + DataCell(Text('${dessert.carbs}')), + DataCell(Text(dessert.protein.toStringAsFixed(1))), + DataCell(Text('${dessert.sodium}')), + DataCell(Text('${dessert.calcium}%')), + DataCell(Text('${dessert.iron}%')), + ], + ); + } + + @override + int get rowCount => _desserts.length; + + @override + bool get isRowCountApproximate => false; + + @override + int get selectedRowCount => _selectedCount; + + void _selectAll(bool? checked) { + for (final Dessert dessert in _desserts) { + dessert.selected = checked; + } + _selectedCount = checked! ? _desserts.length : 0; + notifyListeners(); + } +} + +class DataTableDemo extends StatefulWidget { + const DataTableDemo({super.key}); + + static const String routeName = '/material/data-table'; + + @override + State createState() => _DataTableDemoState(); +} + +class _DataTableDemoState extends State { + int? _rowsPerPage = PaginatedDataTable.defaultRowsPerPage; + int? _sortColumnIndex; + bool _sortAscending = true; + final DessertDataSource _dessertsDataSource = DessertDataSource(); + + void _sort(Comparable Function(Dessert d) getField, int columnIndex, bool ascending) { + _dessertsDataSource._sort(getField, ascending); + setState(() { + _sortColumnIndex = columnIndex; + _sortAscending = ascending; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Data tables'), + actions: [ + MaterialDemoDocumentationButton(DataTableDemo.routeName), + ], + ), + body: Scrollbar( + child: ListView( + primary: true, + padding: const EdgeInsets.all(20.0), + children: [ + PaginatedDataTable( + header: const Text('Nutrition'), + rowsPerPage: _rowsPerPage!, + onRowsPerPageChanged: (int? value) { setState(() { _rowsPerPage = value; }); }, + sortColumnIndex: _sortColumnIndex, + sortAscending: _sortAscending, + onSelectAll: _dessertsDataSource._selectAll, + columns: [ + DataColumn( + label: const Text('Dessert (100g serving)'), + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.name, columnIndex, ascending), + ), + DataColumn( + label: const Text('Calories'), + tooltip: 'The total amount of food energy in the given serving size.', + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.calories, columnIndex, ascending), + ), + DataColumn( + label: const Text('Fat (g)'), + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.fat, columnIndex, ascending), + ), + DataColumn( + label: const Text('Carbs (g)'), + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.carbs, columnIndex, ascending), + ), + DataColumn( + label: const Text('Protein (g)'), + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.protein, columnIndex, ascending), + ), + DataColumn( + label: const Text('Sodium (mg)'), + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.sodium, columnIndex, ascending), + ), + DataColumn( + label: const Text('Calcium (%)'), + tooltip: 'The amount of calcium as a percentage of the recommended daily amount.', + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.calcium, columnIndex, ascending), + ), + DataColumn( + label: const Text('Iron (%)'), + numeric: true, + onSort: (int columnIndex, bool ascending) => _sort((Dessert d) => d.iron, columnIndex, ascending), + ), + ], + source: _dessertsDataSource, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..c22519d647cf30486adeeaa3f009fcb559a463d7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart @@ -0,0 +1,217 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; + +import '../../gallery/demo.dart'; + +class _InputDropdown extends StatelessWidget { + const _InputDropdown({ + this.labelText, + this.valueText, + this.valueStyle, + this.onPressed, + }); + + final String? labelText; + final String? valueText; + final TextStyle? valueStyle; + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: onPressed, + child: InputDecorator( + decoration: InputDecoration( + labelText: labelText, + ), + baseStyle: valueStyle, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + mainAxisSize: MainAxisSize.min, + children: [ + Text(valueText!, style: valueStyle), + Icon(Icons.arrow_drop_down, + color: Theme.of(context).brightness == Brightness.light ? Colors.grey.shade700 : Colors.white70, + ), + ], + ), + ), + ); + } +} + +class _DateTimePicker extends StatelessWidget { + const _DateTimePicker({ + this.labelText, + this.selectedDate, + this.selectedTime, + this.selectDate, + this.selectTime, + }); + + final String? labelText; + final DateTime? selectedDate; + final TimeOfDay? selectedTime; + final ValueChanged? selectDate; + final ValueChanged? selectTime; + + Future _selectDate(BuildContext context) async { + final DateTime? picked = await showDatePicker( + context: context, + initialDate: selectedDate, + firstDate: DateTime(2015, 8), + lastDate: DateTime(2101), + ); + if (picked != null && picked != selectedDate) { + selectDate!(picked); + } + } + + Future _selectTime(BuildContext context) async { + final TimeOfDay? picked = await showTimePicker( + context: context, + initialTime: selectedTime!, + ); + if (picked != null && picked != selectedTime) { + selectTime!(picked); + } + } + + @override + Widget build(BuildContext context) { + final TextStyle? valueStyle = Theme.of(context).textTheme.titleLarge; + return Row( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Expanded( + flex: 4, + child: _InputDropdown( + labelText: labelText, + valueText: DateFormat.yMMMd().format(selectedDate!), + valueStyle: valueStyle, + onPressed: () { _selectDate(context); }, + ), + ), + const SizedBox(width: 12.0), + Expanded( + flex: 3, + child: _InputDropdown( + valueText: selectedTime!.format(context), + valueStyle: valueStyle, + onPressed: () { _selectTime(context); }, + ), + ), + ], + ); + } +} + +class DateAndTimePickerDemo extends StatefulWidget { + const DateAndTimePickerDemo({super.key}); + + static const String routeName = '/material/date-and-time-pickers'; + + @override + State createState() => _DateAndTimePickerDemoState(); +} + +class _DateAndTimePickerDemoState extends State { + DateTime? _fromDate = DateTime.now(); + TimeOfDay _fromTime = const TimeOfDay(hour: 7, minute: 28); + DateTime? _toDate = DateTime.now(); + TimeOfDay _toTime = const TimeOfDay(hour: 8, minute: 28); + final List _allActivities = ['hiking', 'swimming', 'boating', 'fishing']; + String? _activity = 'fishing'; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Date and time pickers'), + actions: [MaterialDemoDocumentationButton(DateAndTimePickerDemo.routeName)], + ), + body: DropdownButtonHideUnderline( + child: SafeArea( + top: false, + bottom: false, + child: ListView( + padding: const EdgeInsets.all(16.0), + children: [ + TextField( + enabled: true, + decoration: const InputDecoration( + labelText: 'Event name', + border: OutlineInputBorder(), + ), + style: Theme.of(context).textTheme.headlineMedium, + ), + TextField( + decoration: const InputDecoration( + labelText: 'Location', + ), + style: Theme.of(context).textTheme.headlineMedium!.copyWith(fontSize: 20.0), + ), + _DateTimePicker( + labelText: 'From', + selectedDate: _fromDate, + selectedTime: _fromTime, + selectDate: (DateTime date) { + setState(() { + _fromDate = date; + }); + }, + selectTime: (TimeOfDay time) { + setState(() { + _fromTime = time; + }); + }, + ), + _DateTimePicker( + labelText: 'To', + selectedDate: _toDate, + selectedTime: _toTime, + selectDate: (DateTime date) { + setState(() { + _toDate = date; + }); + }, + selectTime: (TimeOfDay time) { + setState(() { + _toTime = time; + }); + }, + ), + const SizedBox(height: 8.0), + InputDecorator( + decoration: const InputDecoration( + labelText: 'Activity', + hintText: 'Choose an activity', + contentPadding: EdgeInsets.zero, + ), + isEmpty: _activity == null, + child: DropdownButton( + value: _activity, + onChanged: (String? newValue) { + setState(() { + _activity = newValue; + }); + }, + items: _allActivities.map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/dialog_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/dialog_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..04a2c13b5fd8a8678eaef5715c4fd4e44e4b310b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/dialog_demo.dart @@ -0,0 +1,212 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; +import 'full_screen_dialog_demo.dart'; + +enum DialogDemoAction { + cancel, + discard, + disagree, + agree, +} + +const String _alertWithoutTitleText = 'Discard draft?'; + +const String _alertWithTitleText = + 'Let Google help apps determine location. This means sending anonymous location ' + 'data to Google, even when no apps are running.'; + +class DialogDemoItem extends StatelessWidget { + const DialogDemoItem({ super.key, this.icon, this.color, this.text, this.onPressed }); + + final IconData? icon; + final Color? color; + final String? text; + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + return SimpleDialogOption( + onPressed: onPressed, + child: Row( + children: [ + Icon(icon, size: 36.0, color: color), + Padding( + padding: const EdgeInsets.only(left: 16.0), + child: Text(text!), + ), + ], + ), + ); + } +} + +class DialogDemo extends StatefulWidget { + const DialogDemo({super.key}); + + static const String routeName = '/material/dialog'; + + @override + DialogDemoState createState() => DialogDemoState(); +} + +class DialogDemoState extends State { + + TimeOfDay? _selectedTime; + + @override + void initState() { + super.initState(); + final DateTime now = DateTime.now(); + _selectedTime = TimeOfDay(hour: now.hour, minute: now.minute); + } + + void showDemoDialog({ required BuildContext context, Widget? child }) { + showDialog( + context: context, + builder: (BuildContext context) => child!, + ) + .then((T? value) { // The value passed to Navigator.pop() or null. + if (value != null) { + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text('You selected: $value'), + )); + } + }); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium!.copyWith(color: theme.textTheme.bodySmall!.color); + + return Scaffold( + appBar: AppBar( + title: const Text('Dialogs'), + actions: [MaterialDemoDocumentationButton(DialogDemo.routeName)], + ), + body: ListView( + padding: const EdgeInsets.symmetric(vertical: 24.0, horizontal: 72.0), + children: [ + ElevatedButton( + child: const Text('ALERT'), + onPressed: () { + showDemoDialog( + context: context, + child: AlertDialog( + content: Text( + _alertWithoutTitleText, + style: dialogTextStyle, + ), + actions: [ + TextButton( + child: const Text('CANCEL'), + onPressed: () { Navigator.pop(context, DialogDemoAction.cancel); }, + ), + TextButton( + child: const Text('DISCARD'), + onPressed: () { Navigator.pop(context, DialogDemoAction.discard); }, + ), + ], + ), + ); + }, + ), + ElevatedButton( + child: const Text('ALERT WITH TITLE'), + onPressed: () { + showDemoDialog( + context: context, + child: AlertDialog( + title: const Text("Use Google's location service?"), + content: Text( + _alertWithTitleText, + style: dialogTextStyle, + ), + actions: [ + TextButton( + child: const Text('DISAGREE'), + onPressed: () { Navigator.pop(context, DialogDemoAction.disagree); }, + ), + TextButton( + child: const Text('AGREE'), + onPressed: () { Navigator.pop(context, DialogDemoAction.agree); }, + ), + ], + ), + ); + }, + ), + ElevatedButton( + child: const Text('SIMPLE'), + onPressed: () { + showDemoDialog( + context: context, + child: SimpleDialog( + title: const Text('Set backup account'), + children: [ + DialogDemoItem( + icon: Icons.account_circle, + color: theme.primaryColor, + text: 'username@gmail.com', + onPressed: () { Navigator.pop(context, 'username@gmail.com'); }, + ), + DialogDemoItem( + icon: Icons.account_circle, + color: theme.primaryColor, + text: 'user02@gmail.com', + onPressed: () { Navigator.pop(context, 'user02@gmail.com'); }, + ), + DialogDemoItem( + icon: Icons.add_circle, + text: 'add account', + color: theme.disabledColor, + ), + ], + ), + ); + }, + ), + ElevatedButton( + child: const Text('CONFIRMATION'), + onPressed: () { + showTimePicker( + context: context, + initialTime: _selectedTime!, + ) + .then((TimeOfDay? value) { + if (value != null && value != _selectedTime) { + _selectedTime = value; + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text('You selected: ${value.format(context)}'), + )); + } + }); + }, + ), + ElevatedButton( + child: const Text('FULLSCREEN'), + onPressed: () { + Navigator.push(context, MaterialPageRoute( + builder: (BuildContext context) => const FullScreenDialogDemo(), + fullscreenDialog: true, + )); + }, + ), + ] + // Add a little space between the buttons + .map((Widget button) { + return Container( + padding: const EdgeInsets.symmetric(vertical: 8.0), + child: button, + ); + }) + .toList(), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/drawer_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/drawer_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..bf1291f9b8d92d02da5478c8d6b854b3ef3c696d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/drawer_demo.dart @@ -0,0 +1,269 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart' show DragStartBehavior; +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +const String _kAsset0 = 'people/square/trevor.png'; +const String _kAsset1 = 'people/square/stella.png'; +const String _kAsset2 = 'people/square/sandra.png'; +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; + +class DrawerDemo extends StatefulWidget { + const DrawerDemo({super.key}); + + static const String routeName = '/material/drawer'; + + @override + State createState() => _DrawerDemoState(); +} + +class _DrawerDemoState extends State with TickerProviderStateMixin { + final GlobalKey _scaffoldKey = GlobalKey(); + + static const List _drawerContents = [ + 'A', 'B', 'C', 'D', 'E', + ]; + + static final Animatable _drawerDetailsTween = Tween( + begin: const Offset(0.0, -1.0), + end: Offset.zero, + ).chain(CurveTween( + curve: Curves.fastOutSlowIn, + )); + + late AnimationController _controller; + late Animation _drawerContentsOpacity; + late Animation _drawerDetailsPosition; + bool _showDrawerContents = true; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 200), + ); + _drawerContentsOpacity = CurvedAnimation( + parent: ReverseAnimation(_controller), + curve: Curves.fastOutSlowIn, + ); + _drawerDetailsPosition = _controller.drive(_drawerDetailsTween); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + IconData? _backIcon() { + switch (Theme.of(context).platform) { + case TargetPlatform.android: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + return Icons.arrow_back; + case TargetPlatform.iOS: + case TargetPlatform.macOS: + return Icons.arrow_back_ios; + } + } + + void _showNotImplementedMessage() { + Navigator.pop(context); // Dismiss the drawer. + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text("The drawer's items don't do anything"), + )); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + drawerDragStartBehavior: DragStartBehavior.down, + key: _scaffoldKey, + appBar: AppBar( + leading: IconButton( + icon: Icon(_backIcon()), + alignment: Alignment.centerLeft, + tooltip: 'Back', + onPressed: () { + Navigator.pop(context); + }, + ), + title: const Text('Navigation drawer'), + actions: [MaterialDemoDocumentationButton(DrawerDemo.routeName)], + ), + drawer: Drawer( + child: Column( + children: [ + UserAccountsDrawerHeader( + accountName: const Text('Trevor Widget'), + accountEmail: const Text('trevor.widget@example.com'), + currentAccountPicture: const CircleAvatar( + backgroundImage: AssetImage( + _kAsset0, + package: _kGalleryAssetsPackage, + ), + ), + otherAccountsPictures: [ + GestureDetector( + dragStartBehavior: DragStartBehavior.down, + onTap: () { + _onOtherAccountsTap(context); + }, + child: Semantics( + label: 'Switch to Account B', + child: const CircleAvatar( + backgroundImage: AssetImage( + _kAsset1, + package: _kGalleryAssetsPackage, + ), + ), + ), + ), + GestureDetector( + dragStartBehavior: DragStartBehavior.down, + onTap: () { + _onOtherAccountsTap(context); + }, + child: Semantics( + label: 'Switch to Account C', + child: const CircleAvatar( + backgroundImage: AssetImage( + _kAsset2, + package: _kGalleryAssetsPackage, + ), + ), + ), + ), + ], + margin: EdgeInsets.zero, + onDetailsPressed: () { + _showDrawerContents = !_showDrawerContents; + if (_showDrawerContents) { + _controller.reverse(); + } else { + _controller.forward(); + } + }, + ), + MediaQuery.removePadding( + context: context, + // DrawerHeader consumes top MediaQuery padding. + removeTop: true, + child: Expanded( + child: ListView( + dragStartBehavior: DragStartBehavior.down, + padding: const EdgeInsets.only(top: 8.0), + children: [ + Stack( + children: [ + // The initial contents of the drawer. + FadeTransition( + opacity: _drawerContentsOpacity, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: _drawerContents.map((String id) { + return ListTile( + leading: CircleAvatar(child: Text(id)), + title: Text('Drawer item $id'), + onTap: _showNotImplementedMessage, + ); + }).toList(), + ), + ), + // The drawer's "details" view. + SlideTransition( + position: _drawerDetailsPosition, + child: FadeTransition( + opacity: ReverseAnimation(_drawerContentsOpacity), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + ListTile( + leading: const Icon(Icons.add), + title: const Text('Add account'), + onTap: _showNotImplementedMessage, + ), + ListTile( + leading: const Icon(Icons.settings), + title: const Text('Manage accounts'), + onTap: _showNotImplementedMessage, + ), + ], + ), + ), + ), + ], + ), + ], + ), + ), + ), + ], + ), + ), + body: Center( + child: InkWell( + onTap: () { + _scaffoldKey.currentState!.openDrawer(); + }, + child: Semantics( + button: true, + label: 'Open drawer', + excludeSemantics: true, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + width: 100.0, + height: 100.0, + decoration: const BoxDecoration( + shape: BoxShape.circle, + image: DecorationImage( + image: AssetImage( + _kAsset0, + package: _kGalleryAssetsPackage, + ), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(top: 8.0), + child: Text('Tap here to open the drawer', + style: Theme.of(context).textTheme.titleMedium, + ), + ), + ], + ), + ), + ), + ), + ); + } + + void _onOtherAccountsTap(BuildContext context) { + showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Account switching not implemented.'), + actions: [ + TextButton( + child: const Text('OK'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/elevation_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/elevation_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..5b8a7988b0189ce0257d18b092b07926d45e2dc5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/elevation_demo.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +class ElevationDemo extends StatefulWidget { + const ElevationDemo({super.key}); + + static const String routeName = '/material/elevation'; + + @override + State createState() => _ElevationDemoState(); +} + +class _ElevationDemoState extends State { + bool _showElevation = true; + + List buildCards() { + const List elevations = [ + 0.0, + 1.0, + 2.0, + 3.0, + 4.0, + 5.0, + 8.0, + 16.0, + 24.0, + ]; + + return elevations.map((double elevation) { + return Center( + child: Card( + margin: const EdgeInsets.all(20.0), + elevation: _showElevation ? elevation : 0.0, + child: SizedBox( + height: 100.0, + width: 100.0, + child: Center( + child: Text('${elevation.toStringAsFixed(0)} pt'), + ), + ), + ), + ); + }).toList(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Elevation'), + actions: [ + MaterialDemoDocumentationButton(ElevationDemo.routeName), + IconButton( + tooltip: 'Toggle elevation', + icon: const Icon(Icons.sentiment_very_satisfied), + onPressed: () { + setState(() => _showElevation = !_showElevation); + }, + ), + ], + ), + body: Scrollbar( + child: ListView( + primary: true, + children: buildCards(), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_panels_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_panels_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..86e0ca50e8086faea7e6fb9f2bd701860d36f14a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_panels_demo.dart @@ -0,0 +1,364 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +@visibleForTesting +enum Location { + Barbados, + Bahamas, + Bermuda +} + +typedef DemoItemBodyBuilder = Widget Function(DemoItem item); +typedef ValueToString = String? Function(T value); + +class DualHeaderWithHint extends StatelessWidget { + const DualHeaderWithHint({ + super.key, + this.name, + this.value, + this.hint, + this.showHint, + }); + + final String? name; + final String? value; + final String? hint; + final bool? showHint; + + Widget _crossFade(Widget first, Widget second, bool isExpanded) { + return AnimatedCrossFade( + firstChild: first, + secondChild: second, + firstCurve: const Interval(0.0, 0.6, curve: Curves.fastOutSlowIn), + secondCurve: const Interval(0.4, 1.0, curve: Curves.fastOutSlowIn), + sizeCurve: Curves.fastOutSlowIn, + crossFadeState: isExpanded ? CrossFadeState.showSecond : CrossFadeState.showFirst, + duration: const Duration(milliseconds: 200), + ); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextTheme textTheme = theme.textTheme; + + return Row( + children: [ + Expanded( + flex: 2, + child: Container( + margin: const EdgeInsets.only(left: 24.0), + child: FittedBox( + fit: BoxFit.scaleDown, + alignment: Alignment.centerLeft, + child: Text( + name!, + style: textTheme.bodyMedium!.copyWith(fontSize: 15.0), + ), + ), + ), + ), + Expanded( + flex: 3, + child: Container( + margin: const EdgeInsets.only(left: 24.0), + child: _crossFade( + Text(value!, style: textTheme.bodySmall!.copyWith(fontSize: 15.0)), + Text(hint!, style: textTheme.bodySmall!.copyWith(fontSize: 15.0)), + showHint!, + ), + ), + ), + ], + ); + } +} + +class CollapsibleBody extends StatelessWidget { + const CollapsibleBody({ + super.key, + this.margin = EdgeInsets.zero, + this.child, + this.onSave, + this.onCancel, + }); + + final EdgeInsets margin; + final Widget? child; + final VoidCallback? onSave; + final VoidCallback? onCancel; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextTheme textTheme = theme.textTheme; + + return Column( + children: [ + Container( + margin: const EdgeInsets.only( + left: 24.0, + right: 24.0, + bottom: 24.0, + ) - margin, + child: Center( + child: DefaultTextStyle( + style: textTheme.bodySmall!.copyWith(fontSize: 15.0), + child: child!, + ), + ), + ), + const Divider(height: 1.0), + Container( + padding: const EdgeInsets.symmetric(vertical: 16.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + margin: const EdgeInsets.only(right: 8.0), + child: TextButton( + onPressed: onCancel, + child: const Text('CANCEL', style: TextStyle( + color: Colors.black54, + fontSize: 15.0, + fontWeight: FontWeight.w500, + )), + ), + ), + Container( + margin: const EdgeInsets.only(right: 8.0), + child: TextButton( + onPressed: onSave, + child: const Text('SAVE'), + ), + ), + ], + ), + ), + ], + ); + } +} + +class DemoItem { + DemoItem({ + this.name, + this.value, + this.hint, + this.builder, + required this.valueToString, + }) : textController = TextEditingController(text: valueToString(value)); + + final String? name; + final String? hint; + final TextEditingController textController; + final DemoItemBodyBuilder? builder; + final ValueToString valueToString; + T? value; + bool isExpanded = false; + + ExpansionPanelHeaderBuilder get headerBuilder { + return (BuildContext context, bool isExpanded) { + return DualHeaderWithHint( + name: name, + value: valueToString(value), + hint: hint, + showHint: isExpanded, + ); + }; + } + + Widget build() => builder!(this); +} + +class ExpansionPanelsDemo extends StatefulWidget { + const ExpansionPanelsDemo({super.key}); + + static const String routeName = '/material/expansion_panels'; + + @override + State createState() => _ExpansionPanelsDemoState(); +} + +class _ExpansionPanelsDemoState extends State { + late List> _demoItems; + + @override + void initState() { + super.initState(); + + _demoItems = >[ + DemoItem( + name: 'Trip', + value: 'Caribbean cruise', + hint: 'Change trip name', + valueToString: (String? value) => value, + builder: (DemoItem item) { + void close() { + setState(() { + item.isExpanded = false; + }); + } + + return Form( + child: Builder( + builder: (BuildContext context) { + return CollapsibleBody( + margin: const EdgeInsets.symmetric(horizontal: 16.0), + onSave: () { Form.of(context).save(); close(); }, + onCancel: () { Form.of(context).reset(); close(); }, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: TextFormField( + controller: item.textController, + decoration: InputDecoration( + hintText: item.hint, + labelText: item.name, + ), + onSaved: (String? value) { item.value = value; }, + ), + ), + ); + }, + ), + ); + }, + ), + DemoItem( + name: 'Location', + value: Location.Bahamas, + hint: 'Select location', + valueToString: (Location? location) => location.toString().split('.')[1], + builder: (DemoItem item) { + void close() { + setState(() { + item.isExpanded = false; + }); + } + return Form( + child: Builder( + builder: (BuildContext context) { + return CollapsibleBody( + onSave: () { Form.of(context).save(); close(); }, + onCancel: () { Form.of(context).reset(); close(); }, + child: FormField( + initialValue: item.value, + onSaved: (Location? result) { item.value = result; }, + builder: (FormFieldState field) { + return Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + RadioListTile( + value: Location.Bahamas, + title: const Text('Bahamas'), + groupValue: field.value, + onChanged: field.didChange, + ), + RadioListTile( + value: Location.Barbados, + title: const Text('Barbados'), + groupValue: field.value, + onChanged: field.didChange, + ), + RadioListTile( + value: Location.Bermuda, + title: const Text('Bermuda'), + groupValue: field.value, + onChanged: field.didChange, + ), + ], + ); + }, + ), + ); + } + ), + ); + }, + ), + DemoItem( + name: 'Sun', + value: 80.0, + hint: 'Select sun level', + valueToString: (double? amount) => '${amount!.round()}', + builder: (DemoItem item) { + void close() { + setState(() { + item.isExpanded = false; + }); + } + + return Form( + child: Builder( + builder: (BuildContext context) { + return CollapsibleBody( + onSave: () { Form.of(context).save(); close(); }, + onCancel: () { Form.of(context).reset(); close(); }, + child: FormField( + initialValue: item.value, + onSaved: (double? value) { item.value = value; }, + builder: (FormFieldState field) { + return Container( + // Allow room for the value indicator. + padding: const EdgeInsets.only(top: 44.0), + child: Slider( + max: 100.0, + divisions: 5, + activeColor: Colors.orange[100 + (field.value! * 5.0).round()], + label: '${field.value!.round()}', + value: field.value!, + onChanged: field.didChange, + ), + ); + }, + ), + ); + } + ), + ); + }, + ), + ]; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Expansion panels'), + actions: [ + MaterialDemoDocumentationButton(ExpansionPanelsDemo.routeName), + ], + ), + body: SingleChildScrollView( + child: SafeArea( + top: false, + bottom: false, + child: Container( + margin: const EdgeInsets.all(24.0), + child: ExpansionPanelList( + expansionCallback: (int index, bool isExpanded) { + setState(() { + _demoItems[index].isExpanded = isExpanded; + }); + }, + children: _demoItems.map((DemoItem item) { + return ExpansionPanel( + isExpanded: item.isExpanded, + headerBuilder: item.headerBuilder, + body: item.build(), + ); + }).toList(), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_tile_list_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_tile_list_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a7fac00a41334c61f1feb09b4408315339bec74 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/expansion_tile_list_demo.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery/demo.dart'; + +class ExpansionTileListDemo extends StatelessWidget { + const ExpansionTileListDemo({super.key}); + + static const String routeName = '/material/expansion-tile-list'; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Expand/collapse list control'), + actions: [MaterialDemoDocumentationButton(routeName)], + ), + body: Scrollbar( + child: ListView( + primary: true, + children: [ + const ListTile(title: Text('Top')), + ExpansionTile( + title: const Text('Sublist'), + backgroundColor: Theme.of(context).colorScheme.secondary.withOpacity(0.025), + children: const [ + ListTile(title: Text('One')), + ListTile(title: Text('Two')), + // https://en.wikipedia.org/wiki/Free_Four + ListTile(title: Text('Free')), + ListTile(title: Text('Four')), + ], + ), + const ListTile(title: Text('Bottom')), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..81ee4dacd8643af725bfb35e7266abec9c5f1210 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart @@ -0,0 +1,283 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:intl/intl.dart'; + +// This demo is based on +// https://material.io/design/components/dialogs.html#full-screen-dialog + +enum DismissDialogAction { + cancel, + discard, + save, +} + +class DateTimeItem extends StatelessWidget { + DateTimeItem({ super.key, required DateTime dateTime, required this.onChanged }) + : date = DateTime(dateTime.year, dateTime.month, dateTime.day), + time = TimeOfDay(hour: dateTime.hour, minute: dateTime.minute); + + final DateTime date; + final TimeOfDay time; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + return DefaultTextStyle( + style: theme.textTheme.titleMedium!, + child: Row( + children: [ + Expanded( + child: Container( + padding: const EdgeInsets.symmetric(vertical: 8.0), + decoration: BoxDecoration( + border: Border(bottom: BorderSide(color: theme.dividerColor)) + ), + child: InkWell( + onTap: () { + showDatePicker( + context: context, + initialDate: date, + firstDate: date.subtract(const Duration(days: 30)), + lastDate: date.add(const Duration(days: 30)), + ) + .then((DateTime? value) { + if (value != null) { + onChanged(DateTime(value.year, value.month, value.day, time.hour, time.minute)); + } + }); + }, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(DateFormat('EEE, MMM d yyyy').format(date)), + const Icon(Icons.arrow_drop_down, color: Colors.black54), + ], + ), + ), + ), + ), + Container( + margin: const EdgeInsets.only(left: 8.0), + padding: const EdgeInsets.symmetric(vertical: 8.0), + decoration: BoxDecoration( + border: Border(bottom: BorderSide(color: theme.dividerColor)) + ), + child: InkWell( + onTap: () { + showTimePicker( + context: context, + initialTime: time, + ) + .then((TimeOfDay? value) { + if (value != null) { + onChanged(DateTime(date.year, date.month, date.day, value.hour, value.minute)); + } + }); + }, + child: Row( + children: [ + Text(time.format(context)), + const Icon(Icons.arrow_drop_down, color: Colors.black54), + ], + ), + ), + ), + ], + ), + ); + } +} + +class FullScreenDialogDemo extends StatefulWidget { + const FullScreenDialogDemo({super.key}); + + @override + FullScreenDialogDemoState createState() => FullScreenDialogDemoState(); +} + +class FullScreenDialogDemoState extends State { + DateTime _fromDateTime = DateTime.now(); + DateTime _toDateTime = DateTime.now(); + bool? _allDayValue = false; + bool _saveNeeded = false; + bool _hasLocation = false; + bool _hasName = false; + late String _eventName; + + Future _handlePopInvoked(bool didPop) async { + if (didPop) { + return; + } + + final ThemeData theme = Theme.of(context); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium!.copyWith(color: theme.textTheme.bodySmall!.color); + + final bool? shouldDiscard = await showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + content: Text( + 'Discard new event?', + style: dialogTextStyle, + ), + actions: [ + TextButton( + child: const Text('CANCEL'), + onPressed: () { + // Pop the confirmation dialog and indicate that the page should + // not be popped. + Navigator.of(context).pop(false); + }, + ), + TextButton( + child: const Text('DISCARD'), + onPressed: () { + // Pop the confirmation dialog and indicate that the page should + // be popped, too. + Navigator.of(context).pop(true); + }, + ), + ], + ); + }, + ); + + if (shouldDiscard ?? false) { + // Since this is the root route, quit the app where possible by invoking + // the SystemNavigator. If this wasn't the root route, then + // Navigator.maybePop could be used instead. + // See https://github.com/flutter/flutter/issues/11490 + SystemNavigator.pop(); + } + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + return Scaffold( + appBar: AppBar( + title: Text(_hasName ? _eventName : 'Event Name TBD'), + actions: [ + TextButton( + child: Text('SAVE', style: theme.textTheme.bodyMedium!.copyWith(color: Colors.white)), + onPressed: () { + Navigator.pop(context, DismissDialogAction.save); + }, + ), + ], + ), + body: Form( + canPop: !_saveNeeded && !_hasLocation && !_hasName, + onPopInvoked: _handlePopInvoked, + child: Scrollbar( + child: ListView( + primary: true, + padding: const EdgeInsets.all(16.0), + children: [ + Container( + padding: const EdgeInsets.symmetric(vertical: 8.0), + alignment: Alignment.bottomLeft, + child: TextField( + decoration: const InputDecoration( + labelText: 'Event name', + filled: true, + ), + style: theme.textTheme.headlineSmall, + onChanged: (String value) { + setState(() { + _hasName = value.isNotEmpty; + if (_hasName) { + _eventName = value; + } + }); + }, + ), + ), + Container( + padding: const EdgeInsets.symmetric(vertical: 8.0), + alignment: Alignment.bottomLeft, + child: TextField( + decoration: const InputDecoration( + labelText: 'Location', + hintText: 'Where is the event?', + filled: true, + ), + onChanged: (String value) { + setState(() { + _hasLocation = value.isNotEmpty; + }); + }, + ), + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('From', style: theme.textTheme.bodySmall), + DateTimeItem( + dateTime: _fromDateTime, + onChanged: (DateTime value) { + setState(() { + _fromDateTime = value; + _saveNeeded = true; + }); + }, + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('To', style: theme.textTheme.bodySmall), + DateTimeItem( + dateTime: _toDateTime, + onChanged: (DateTime value) { + setState(() { + _toDateTime = value; + _saveNeeded = true; + }); + }, + ), + const Text('All-day'), + ], + ), + Container( + decoration: BoxDecoration( + border: Border(bottom: BorderSide(color: theme.dividerColor)) + ), + child: Row( + children: [ + Checkbox( + value: _allDayValue, + onChanged: (bool? value) { + setState(() { + _allDayValue = value; + _saveNeeded = true; + }); + }, + ), + const Text('All-day'), + ], + ), + ), + ] + .map((Widget child) { + return Container( + padding: const EdgeInsets.symmetric(vertical: 8.0), + height: 96.0, + child: child, + ); + }) + .toList(), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/pesto_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/pesto_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..5d40dbeaf8228c217aedd99d1dbd6b6ede7f87b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/pesto_demo.dart @@ -0,0 +1,712 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class PestoDemo extends StatelessWidget { + const PestoDemo({ super.key }); + + static const String routeName = '/pesto'; + + @override + Widget build(BuildContext context) => const PestoHome(); +} + + +const String _kSmallLogoImage = 'logos/pesto/logo_small.png'; +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; +const double _kAppBarHeight = 128.0; +const double _kFabHalfSize = 28.0; // TODO(mpcomplete): needs to adapt to screen size +const double _kRecipePageMaxWidth = 500.0; + +final Set _favoriteRecipes = {}; + +final ThemeData _kTheme = ThemeData( + appBarTheme: const AppBarTheme(foregroundColor: Colors.white, backgroundColor: Colors.teal), + brightness: Brightness.light, + floatingActionButtonTheme: const FloatingActionButtonThemeData(foregroundColor: Colors.white), +); + +class PestoHome extends StatelessWidget { + const PestoHome({super.key}); + + @override + Widget build(BuildContext context) { + return const RecipeGridPage(recipes: kPestoRecipes); + } +} + +class PestoFavorites extends StatelessWidget { + const PestoFavorites({super.key}); + + @override + Widget build(BuildContext context) { + return RecipeGridPage(recipes: _favoriteRecipes.toList()); + } +} + +class PestoStyle extends TextStyle { + const PestoStyle({ + double super.fontSize = 12.0, + super.fontWeight, + Color super.color = Colors.black87, + super.letterSpacing, + super.height, + }) : super( + inherit: false, + fontFamily: 'Raleway', + textBaseline: TextBaseline.alphabetic, + ); +} + +// Displays a grid of recipe cards. +class RecipeGridPage extends StatefulWidget { + const RecipeGridPage({ super.key, this.recipes }); + + final List? recipes; + + @override + State createState() => _RecipeGridPageState(); +} + +class _RecipeGridPageState extends State { + + @override + Widget build(BuildContext context) { + final double statusBarHeight = MediaQuery.of(context).padding.top; + return Theme( + data: _kTheme.copyWith(platform: Theme.of(context).platform), + child: Scaffold( + floatingActionButton: FloatingActionButton( + backgroundColor: Colors.redAccent, + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Not supported.'), + )); + }, + child: const Icon(Icons.edit), + ), + body: CustomScrollView( + semanticChildCount: widget.recipes!.length, + slivers: [ + _buildAppBar(context, statusBarHeight), + _buildBody(context, statusBarHeight), + ], + ), + ), + ); + } + + Widget _buildAppBar(BuildContext context, double statusBarHeight) { + return SliverAppBar( + pinned: true, + expandedHeight: _kAppBarHeight, + actions: [ + IconButton( + icon: const Icon(Icons.search), + tooltip: 'Search', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( + content: Text('Not supported.'), + )); + }, + ), + ], + flexibleSpace: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final Size size = constraints.biggest; + final double appBarHeight = size.height - statusBarHeight; + final double t = (appBarHeight - kToolbarHeight) / (_kAppBarHeight - kToolbarHeight); + final double extraPadding = Tween(begin: 10.0, end: 24.0).transform(t); + final double logoHeight = appBarHeight - 1.5 * extraPadding; + return Padding( + padding: EdgeInsets.only( + top: statusBarHeight + 0.5 * extraPadding, + bottom: extraPadding, + ), + child: Center( + child: PestoLogo(height: logoHeight, t: t.clamp(0.0, 1.0)), + ), + ); + }, + ), + ); + } + + Widget _buildBody(BuildContext context, double statusBarHeight) { + final EdgeInsets mediaPadding = MediaQuery.of(context).padding; + final EdgeInsets padding = EdgeInsets.only( + top: 8.0, + left: 8.0 + mediaPadding.left, + right: 8.0 + mediaPadding.right, + bottom: 8.0, + ); + return SliverPadding( + padding: padding, + sliver: SliverGrid( + gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent( + maxCrossAxisExtent: _kRecipePageMaxWidth, + crossAxisSpacing: 8.0, + mainAxisSpacing: 8.0, + ), + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + final Recipe? recipe = widget.recipes![index]; + return RecipeCard( + recipe: recipe, + onTap: () { showRecipePage(context, recipe); }, + ); + }, + childCount: widget.recipes!.length, + ), + ), + ); + } + + void showFavoritesPage(BuildContext context) { + Navigator.push(context, MaterialPageRoute( + settings: const RouteSettings(name: '/pesto/favorites'), + builder: (BuildContext context) => const PestoFavorites(), + )); + } + + void showRecipePage(BuildContext context, Recipe? recipe) { + Navigator.push(context, MaterialPageRoute( + settings: const RouteSettings(name: '/pesto/recipe'), + builder: (BuildContext context) { + return Theme( + data: _kTheme.copyWith(platform: Theme.of(context).platform), + child: RecipePage(recipe: recipe), + ); + }, + )); + } +} + +class PestoLogo extends StatefulWidget { + const PestoLogo({super.key, this.height, this.t}); + + final double? height; + final double? t; + + @override + State createState() => _PestoLogoState(); +} + +class _PestoLogoState extends State { + // Native sizes for logo and its image/text components. + static const double kLogoHeight = 162.0; + static const double kLogoWidth = 220.0; + static const double kImageHeight = 108.0; + static const double kTextHeight = 48.0; + final TextStyle titleStyle = const PestoStyle(fontSize: kTextHeight, fontWeight: FontWeight.w900, color: Colors.white, letterSpacing: 3.0); + final RectTween _textRectTween = RectTween( + begin: const Rect.fromLTWH(0.0, kLogoHeight, kLogoWidth, kTextHeight), + end: const Rect.fromLTWH(0.0, kImageHeight, kLogoWidth, kTextHeight), + ); + final Curve _textOpacity = const Interval(0.4, 1.0, curve: Curves.easeInOut); + final RectTween _imageRectTween = RectTween( + begin: const Rect.fromLTWH(0.0, 0.0, kLogoWidth, kLogoHeight), + end: const Rect.fromLTWH(0.0, 0.0, kLogoWidth, kImageHeight), + ); + + @override + Widget build(BuildContext context) { + return Semantics( + namesRoute: true, + child: Transform( + transform: Matrix4.identity()..scale(widget.height! / kLogoHeight), + alignment: Alignment.topCenter, + child: SizedBox( + width: kLogoWidth, + child: Stack( + clipBehavior: Clip.none, + children: [ + Positioned.fromRect( + rect: _imageRectTween.lerp(widget.t!)!, + child: Image.asset( + _kSmallLogoImage, + package: _kGalleryAssetsPackage, + fit: BoxFit.contain, + ), + ), + Positioned.fromRect( + rect: _textRectTween.lerp(widget.t!)!, + child: Opacity( + opacity: _textOpacity.transform(widget.t!), + child: Text('PESTO', style: titleStyle, textAlign: TextAlign.center), + ), + ), + ], + ), + ), + ), + ); + } +} + +// A card with the recipe's image, author, and title. +class RecipeCard extends StatelessWidget { + const RecipeCard({ super.key, this.recipe, this.onTap }); + + final Recipe? recipe; + final VoidCallback? onTap; + + TextStyle get titleStyle => const PestoStyle(fontSize: 24.0, fontWeight: FontWeight.w600); + TextStyle get authorStyle => const PestoStyle(fontWeight: FontWeight.w500, color: Colors.black54); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onTap, + child: Card( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Hero( + tag: 'packages/$_kGalleryAssetsPackage/${recipe!.imagePath}', + child: AspectRatio( + aspectRatio: 4.0 / 3.0, + child: Image.asset( + recipe!.imagePath!, + package: recipe!.imagePackage, + fit: BoxFit.cover, + semanticLabel: recipe!.name, + ), + ), + ), + Expanded( + child: Row( + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: Image.asset( + recipe!.ingredientsImagePath!, + package: recipe!.ingredientsImagePackage, + width: 48.0, + height: 48.0, + ), + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(recipe!.name!, style: titleStyle, softWrap: false, overflow: TextOverflow.ellipsis), + Text(recipe!.author!, style: authorStyle), + ], + ), + ), + ], + ), + ), + ], + ), + ), + ); + } +} + +// Displays one recipe. Includes the recipe sheet with a background image. +class RecipePage extends StatefulWidget { + const RecipePage({ super.key, this.recipe }); + + final Recipe? recipe; + + @override + State createState() => _RecipePageState(); +} + +class _RecipePageState extends State { + final TextStyle menuItemStyle = const PestoStyle(fontSize: 15.0, color: Colors.black54, height: 24.0/15.0); + + double _getAppBarHeight(BuildContext context) => MediaQuery.of(context).size.height * 0.3; + + @override + Widget build(BuildContext context) { + // The full page content with the recipe's image behind it. This + // adjusts based on the size of the screen. If the recipe sheet touches + // the edge of the screen, use a slightly different layout. + final double appBarHeight = _getAppBarHeight(context); + final Size screenSize = MediaQuery.of(context).size; + final bool fullWidth = screenSize.width < _kRecipePageMaxWidth; + final bool isFavorite = _favoriteRecipes.contains(widget.recipe); + return Scaffold( + body: Stack( + children: [ + Positioned( + top: 0.0, + left: 0.0, + right: 0.0, + height: appBarHeight + _kFabHalfSize, + child: Hero( + tag: 'packages/$_kGalleryAssetsPackage/${widget.recipe!.imagePath}', + child: Image.asset( + widget.recipe!.imagePath!, + package: widget.recipe!.imagePackage, + fit: fullWidth ? BoxFit.fitWidth : BoxFit.cover, + ), + ), + ), + CustomScrollView( + slivers: [ + SliverAppBar( + expandedHeight: appBarHeight - _kFabHalfSize, + backgroundColor: Colors.transparent, + actions: [ + PopupMenuButton( + onSelected: (String item) { }, + itemBuilder: (BuildContext context) => >[ + _buildMenuItem(Icons.share, 'Tweet recipe'), + _buildMenuItem(Icons.email, 'Email recipe'), + _buildMenuItem(Icons.message, 'Message recipe'), + _buildMenuItem(Icons.people, 'Share on Facebook'), + ], + ), + ], + flexibleSpace: const FlexibleSpaceBar( + background: DecoratedBox( + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment(0.0, -0.2), + colors: [Color(0x60000000), Color(0x00000000)], + ), + ), + ), + ), + ), + SliverToBoxAdapter( + child: Stack( + children: [ + Container( + padding: const EdgeInsets.only(top: _kFabHalfSize), + width: fullWidth ? null : _kRecipePageMaxWidth, + child: RecipeSheet(recipe: widget.recipe), + ), + Positioned( + right: 16.0, + child: FloatingActionButton( + backgroundColor: Colors.redAccent, + onPressed: _toggleFavorite, + child: Icon(isFavorite ? Icons.favorite : Icons.favorite_border), + ), + ), + ], + ), + ), + ], + ), + ], + ), + ); + } + + PopupMenuItem _buildMenuItem(IconData icon, String label) { + return PopupMenuItem( + child: Row( + children: [ + Padding( + padding: const EdgeInsets.only(right: 24.0), + child: Icon(icon, color: Colors.black54), + ), + Text(label, style: menuItemStyle), + ], + ), + ); + } + + void _toggleFavorite() { + setState(() { + if (_favoriteRecipes.contains(widget.recipe)) { + _favoriteRecipes.remove(widget.recipe); + } else { + _favoriteRecipes.add(widget.recipe); + } + }); + } +} + +/// Displays the recipe's name and instructions. +class RecipeSheet extends StatelessWidget { + RecipeSheet({ super.key, this.recipe }); + + final TextStyle titleStyle = const PestoStyle(fontSize: 34.0); + final TextStyle descriptionStyle = const PestoStyle(fontSize: 15.0, color: Colors.black54, height: 24.0/15.0); + final TextStyle itemStyle = const PestoStyle(fontSize: 15.0, height: 24.0/15.0); + final TextStyle itemAmountStyle = PestoStyle(fontSize: 15.0, color: _kTheme.primaryColor, height: 24.0/15.0); + final TextStyle headingStyle = const PestoStyle(fontSize: 16.0, fontWeight: FontWeight.bold, height: 24.0/15.0); + + final Recipe? recipe; + + @override + Widget build(BuildContext context) { + return Material( + child: SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 40.0), + child: Table( + columnWidths: const { + 0: FixedColumnWidth(64.0), + }, + children: [ + TableRow( + children: [ + TableCell( + verticalAlignment: TableCellVerticalAlignment.middle, + child: Image.asset( + recipe!.ingredientsImagePath!, + package: recipe!.ingredientsImagePackage, + width: 32.0, + height: 32.0, + alignment: Alignment.centerLeft, + fit: BoxFit.scaleDown, + ), + ), + TableCell( + verticalAlignment: TableCellVerticalAlignment.middle, + child: Text(recipe!.name!, style: titleStyle), + ), + ] + ), + TableRow( + children: [ + const SizedBox(), + Padding( + padding: const EdgeInsets.only(top: 8.0, bottom: 4.0), + child: Text(recipe!.description!, style: descriptionStyle), + ), + ] + ), + TableRow( + children: [ + const SizedBox(), + Padding( + padding: const EdgeInsets.only(top: 24.0, bottom: 4.0), + child: Text('Ingredients', style: headingStyle), + ), + ] + ), + ...recipe!.ingredients!.map((RecipeIngredient ingredient) { + return _buildItemRow(ingredient.amount!, ingredient.description!); + }), + TableRow( + children: [ + const SizedBox(), + Padding( + padding: const EdgeInsets.only(top: 24.0, bottom: 4.0), + child: Text('Steps', style: headingStyle), + ), + ] + ), + ...recipe!.steps!.map((RecipeStep step) { + return _buildItemRow(step.duration ?? '', step.description!); + }), + ], + ), + ), + ), + ); + } + + TableRow _buildItemRow(String left, String right) { + return TableRow( + children: [ + Padding( + padding: const EdgeInsets.symmetric(vertical: 4.0), + child: Text(left, style: itemAmountStyle), + ), + Padding( + padding: const EdgeInsets.symmetric(vertical: 4.0), + child: Text(right, style: itemStyle), + ), + ], + ); + } +} + +class Recipe { + const Recipe({ + this.name, + this.author, + this.description, + this.imagePath, + this.imagePackage, + this.ingredientsImagePath, + this.ingredientsImagePackage, + this.ingredients, + this.steps, + }); + + final String? name; + final String? author; + final String? description; + final String? imagePath; + final String? imagePackage; + final String? ingredientsImagePath; + final String? ingredientsImagePackage; + final List? ingredients; + final List? steps; +} + +class RecipeIngredient { + const RecipeIngredient({this.amount, this.description}); + + final String? amount; + final String? description; +} + +class RecipeStep { + const RecipeStep({this.duration, this.description}); + + final String? duration; + final String? description; +} + +const List kPestoRecipes = [ + Recipe( + name: 'Roasted Chicken', + author: 'Peter Carlsson', + ingredientsImagePath: 'food/icons/main.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: 'The perfect dish to welcome your family and friends with on a crisp autumn night. Pair with roasted veggies to truly impress them.', + imagePath: 'food/roasted_chicken.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '1 whole', description: 'Chicken'), + RecipeIngredient(amount: '1/2 cup', description: 'Butter'), + RecipeIngredient(amount: '1 tbsp', description: 'Onion powder'), + RecipeIngredient(amount: '1 tbsp', description: 'Freshly ground pepper'), + RecipeIngredient(amount: '1 tsp', description: 'Salt'), + ], + steps: [ + RecipeStep(duration: '1 min', description: 'Put in oven'), + RecipeStep(duration: '1hr 45 min', description: 'Cook'), + ], + ), + Recipe( + name: 'Chopped Beet Leaves', + author: 'Trevor Hansen', + ingredientsImagePath: 'food/icons/veggie.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: 'This vegetable has more to offer than just its root. Beet greens can be tossed into a salad to add some variety or sauteed on its own with some oil and garlic.', + imagePath: 'food/chopped_beet_leaves.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '3 cups', description: 'Beet greens'), + ], + steps: [ + RecipeStep(duration: '5 min', description: 'Chop'), + ], + ), + Recipe( + name: 'Pesto Pasta', + author: 'Ali Connors', + ingredientsImagePath: 'food/icons/main.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: "With this pesto recipe, you can quickly whip up a meal to satisfy your savory needs. And if you're feeling festive, you can add bacon to taste.", + imagePath: 'food/pesto_pasta.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '1/4 cup ', description: 'Pasta'), + RecipeIngredient(amount: '2 cups', description: 'Fresh basil leaves'), + RecipeIngredient(amount: '1/2 cup', description: 'Parmesan cheese'), + RecipeIngredient(amount: '1/2 cup', description: 'Extra virgin olive oil'), + RecipeIngredient(amount: '1/3 cup', description: 'Pine nuts'), + RecipeIngredient(amount: '1/4 cup', description: 'Lemon juice'), + RecipeIngredient(amount: '3 cloves', description: 'Garlic'), + RecipeIngredient(amount: '1/4 tsp', description: 'Salt'), + RecipeIngredient(amount: '1/8 tsp', description: 'Pepper'), + RecipeIngredient(amount: '3 lbs', description: 'Bacon'), + ], + steps: [ + RecipeStep(duration: '15 min', description: 'Blend'), + ], + ), + Recipe( + name: 'Cherry Pie', + author: 'Sandra Adams', + ingredientsImagePath: 'food/icons/main.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: "Sometimes when you're craving some cheer in your life you can jumpstart your day with some cherry pie. Dessert for breakfast is perfectly acceptable.", + imagePath: 'food/cherry_pie.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '1', description: 'Pie crust'), + RecipeIngredient(amount: '4 cups', description: 'Fresh or frozen cherries'), + RecipeIngredient(amount: '1 cup', description: 'Granulated sugar'), + RecipeIngredient(amount: '4 tbsp', description: 'Cornstarch'), + RecipeIngredient(amount: '1½ tbsp', description: 'Butter'), + ], + steps: [ + RecipeStep(duration: '15 min', description: 'Mix'), + RecipeStep(duration: '1hr 30 min', description: 'Bake'), + ], + ), + Recipe( + name: 'Spinach Salad', + author: 'Peter Carlsson', + ingredientsImagePath: 'food/icons/spicy.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: "Everyone's favorite leafy green is back. Paired with fresh sliced onion, it's ready to tackle any dish, whether it be a salad or an egg scramble.", + imagePath: 'food/spinach_onion_salad.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '4 cups', description: 'Spinach'), + RecipeIngredient(amount: '1 cup', description: 'Sliced onion'), + ], + steps: [ + RecipeStep(duration: '5 min', description: 'Mix'), + ], + ), + Recipe( + name: 'Butternut Squash Soup', + author: 'Ali Connors', + ingredientsImagePath: 'food/icons/healthy.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: 'This creamy butternut squash soup will warm you on the chilliest of winter nights and bring a delightful pop of orange to the dinner table.', + imagePath: 'food/butternut_squash_soup.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '1', description: 'Butternut squash'), + RecipeIngredient(amount: '4 cups', description: 'Chicken stock'), + RecipeIngredient(amount: '2', description: 'Potatoes'), + RecipeIngredient(amount: '1', description: 'Onion'), + RecipeIngredient(amount: '1', description: 'Carrot'), + RecipeIngredient(amount: '1', description: 'Celery'), + RecipeIngredient(amount: '1 tsp', description: 'Salt'), + RecipeIngredient(amount: '1 tsp', description: 'Pepper'), + ], + steps: [ + RecipeStep(duration: '10 min', description: 'Prep vegetables'), + RecipeStep(duration: '5 min', description: 'Stir'), + RecipeStep(duration: '1 hr 10 min', description: 'Cook'), + ], + ), + Recipe( + name: 'Spanakopita', + author: 'Trevor Hansen', + ingredientsImagePath: 'food/icons/quick.png', + ingredientsImagePackage: _kGalleryAssetsPackage, + description: "You 'feta' believe this is a crowd-pleaser! Flaky phyllo pastry surrounds a delicious mixture of spinach and cheeses to create the perfect appetizer.", + imagePath: 'food/spanakopita.png', + imagePackage: _kGalleryAssetsPackage, + ingredients: [ + RecipeIngredient(amount: '1 lb', description: 'Spinach'), + RecipeIngredient(amount: '½ cup', description: 'Feta cheese'), + RecipeIngredient(amount: '½ cup', description: 'Cottage cheese'), + RecipeIngredient(amount: '2', description: 'Eggs'), + RecipeIngredient(amount: '1', description: 'Onion'), + RecipeIngredient(amount: '½ lb', description: 'Phyllo dough'), + ], + steps: [ + RecipeStep(duration: '5 min', description: 'Sauté vegetables'), + RecipeStep(duration: '3 min', description: 'Stir vegetables and other filling ingredients'), + RecipeStep(duration: '10 min', description: 'Fill phyllo squares half-full with filling and fold.'), + RecipeStep(duration: '40 min', description: 'Bake'), + ], + ), +]; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..97e6c5203597ef015e4eb76bd548628a26a59ce3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine_demo.dart @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'shrine/app.dart'; + +class ShrineDemo extends StatelessWidget { + const ShrineDemo({ super.key }); + + static const String routeName = '/shrine'; // Used by the Gallery app. + + @override + Widget build(BuildContext context) => const ShrineApp(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/typography_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/typography_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..4047e4ecc602d8ca626a3642e3bba91c002f0383 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/typography_demo.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class TextStyleItem extends StatelessWidget { + const TextStyleItem({ + super.key, + required this.name, + required this.style, + required this.text, + }); + + final String name; + final TextStyle style; + final String text; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle nameStyle = theme.textTheme.bodySmall!.copyWith(color: theme.textTheme.bodySmall!.color); + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 16.0), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + width: 72.0, + child: Text(name, style: nameStyle), + ), + Expanded( + child: Text(text, style: style.copyWith(height: 1.0)), + ), + ], + ), + ); + } +} + +class TypographyDemo extends StatelessWidget { + const TypographyDemo({super.key}); + + static const String routeName = '/typography'; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final List styleItems = [ + TextStyleItem(name: 'Display Large', style: textTheme.displayLarge!, text: 'Regular 57/64 +0'), + TextStyleItem(name: 'Display Medium', style: textTheme.displayMedium!, text: 'Regular 45/52 +0'), + TextStyleItem(name: 'Display Small', style: textTheme.displaySmall!, text: 'Regular 36/44 +0'), + TextStyleItem(name: 'Headline Large', style: textTheme.headlineLarge!, text: 'Regular 32/40 +0'), + TextStyleItem(name: 'Headline Medium', style: textTheme.headlineMedium!, text: 'Regular 28/36 +0'), + TextStyleItem(name: 'Headline Small', style: textTheme.headlineSmall!, text: 'Regular 24/32 +0'), + TextStyleItem(name: 'Title Large', style: textTheme.titleLarge!, text: 'Medium 22/28 +0'), + TextStyleItem(name: 'Title Medium', style: textTheme.titleMedium!, text: 'Medium 16/24 +0.15'), + TextStyleItem(name: 'Title Small', style: textTheme.titleSmall!, text: 'Medium 14/20 +0.1'), + TextStyleItem(name: 'Body Large', style: textTheme.bodyLarge!, text: 'Regular 16/24 +0.5'), + TextStyleItem(name: 'Body Medium', style: textTheme.bodyMedium!, text: 'Regular 14/20 +0.25'), + TextStyleItem(name: 'Body Small', style: textTheme.bodySmall!, text: 'Regular 12/16 +0.4'), + TextStyleItem(name: 'Label Large', style: textTheme.labelLarge!, text: 'Medium 14/20 +0.1'), + TextStyleItem(name: 'Label Medium', style: textTheme.labelMedium!, text: 'Medium 12/16 +0.5'), + TextStyleItem(name: 'Label Small', style: textTheme.labelSmall!, text: 'Medium 11/16 +0.5'), + ]; + + return Scaffold( + appBar: AppBar(title: const Text('Typography')), + body: SafeArea( + top: false, + bottom: false, + child: Scrollbar( + child: ListView( + primary: true, + children: styleItems, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/video_demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/video_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..ba138c5bec13965e8314bd85b2b2467b06606701 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo/video_demo.dart @@ -0,0 +1,443 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io'; + +import 'package:connectivity/connectivity.dart'; +import 'package:device_info/device_info.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:video_player/video_player.dart'; + +class VideoCard extends StatelessWidget { + const VideoCard({ super.key, this.controller, this.title, this.subtitle }); + + final VideoPlayerController? controller; + final String? title; + final String? subtitle; + + Widget _buildInlineVideo() { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 30.0), + child: Center( + child: AspectRatio( + aspectRatio: 3 / 2, + child: Hero( + tag: controller!, + child: VideoPlayerLoading(controller), + ), + ), + ), + ); + } + + Widget _buildFullScreenVideo() { + return Scaffold( + appBar: AppBar( + title: Text(title!), + ), + body: Center( + child: AspectRatio( + aspectRatio: 3 / 2, + child: Hero( + tag: controller!, + child: VideoPlayPause(controller), + ), + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + Widget fullScreenRoutePageBuilder( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) { + return _buildFullScreenVideo(); + } + + void pushFullScreenWidget() { + final TransitionRoute route = PageRouteBuilder( + settings: RouteSettings(name: title), + pageBuilder: fullScreenRoutePageBuilder, + ); + + route.completed.then((void value) { + controller!.setVolume(0.0); + }); + + controller!.setVolume(1.0); + Navigator.of(context).push(route); + } + + return SafeArea( + top: false, + bottom: false, + child: Card( + child: Column( + children: [ + ListTile(title: Text(title!), subtitle: Text(subtitle!)), + GestureDetector( + onTap: pushFullScreenWidget, + child: _buildInlineVideo(), + ), + ], + ), + ), + ); + } +} + +class VideoPlayerLoading extends StatefulWidget { + const VideoPlayerLoading(this.controller, {super.key}); + + final VideoPlayerController? controller; + + @override + State createState() => _VideoPlayerLoadingState(); +} + +class _VideoPlayerLoadingState extends State { + bool? _initialized; + + @override + void initState() { + super.initState(); + _initialized = widget.controller!.value.isInitialized; + widget.controller!.addListener(() { + if (!mounted) { + return; + } + final bool controllerInitialized = widget.controller!.value.isInitialized; + if (_initialized != controllerInitialized) { + setState(() { + _initialized = controllerInitialized; + }); + } + }); + } + + @override + Widget build(BuildContext context) { + if (_initialized!) { + return VideoPlayer(widget.controller!); + } + return Stack( + fit: StackFit.expand, + children: [ + VideoPlayer(widget.controller!), + const Center(child: CircularProgressIndicator()), + ], + ); + } +} + +class VideoPlayPause extends StatefulWidget { + const VideoPlayPause(this.controller, {super.key}); + + final VideoPlayerController? controller; + + @override + State createState() => _VideoPlayPauseState(); +} + +class _VideoPlayPauseState extends State { + _VideoPlayPauseState() { + listener = () { + if (mounted) { + setState(() { }); + } + }; + } + + FadeAnimation? imageFadeAnimation; + late VoidCallback listener; + + VideoPlayerController? get controller => widget.controller; + + @override + void initState() { + super.initState(); + controller!.addListener(listener); + } + + @override + void deactivate() { + controller!.removeListener(listener); + super.deactivate(); + } + + @override + Widget build(BuildContext context) { + return Stack( + alignment: Alignment.bottomCenter, + fit: StackFit.expand, + children: [ + GestureDetector( + child: VideoPlayerLoading(controller), + onTap: () { + if (!controller!.value.isInitialized) { + return; + } + if (controller!.value.isPlaying) { + imageFadeAnimation = const FadeAnimation( + child: Icon(Icons.pause, size: 100.0), + ); + controller!.pause(); + } else { + imageFadeAnimation = const FadeAnimation( + child: Icon(Icons.play_arrow, size: 100.0), + ); + controller!.play(); + } + }, + ), + Center(child: imageFadeAnimation), + ], + ); + } +} + +class FadeAnimation extends StatefulWidget { + const FadeAnimation({ + super.key, + this.child, + this.duration = const Duration(milliseconds: 500), + }); + + final Widget? child; + final Duration duration; + + @override + State createState() => _FadeAnimationState(); +} + +class _FadeAnimationState extends State with SingleTickerProviderStateMixin { + late AnimationController animationController; + + @override + void initState() { + super.initState(); + animationController = AnimationController( + duration: widget.duration, + vsync: this, + ); + animationController.addListener(() { + if (mounted) { + setState(() { }); + } + }); + animationController.forward(from: 0.0); + } + + @override + void deactivate() { + animationController.stop(); + super.deactivate(); + } + + @override + void didUpdateWidget(FadeAnimation oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.child != widget.child) { + animationController.forward(from: 0.0); + } + } + + @override + void dispose() { + animationController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return animationController.isAnimating + ? Opacity( + opacity: 1.0 - animationController.value, + child: widget.child, + ) + : Container(); + } +} + +class ConnectivityOverlay extends StatefulWidget { + const ConnectivityOverlay({ + super.key, + this.child, + this.connectedCompleter, + }); + + final Widget? child; + final Completer? connectedCompleter; + + @override + State createState() => _ConnectivityOverlayState(); +} + +class _ConnectivityOverlayState extends State { + StreamSubscription? connectivitySubscription; + bool connected = true; + + static const SnackBar errorSnackBar = SnackBar( + backgroundColor: Colors.red, + content: ListTile( + title: Text('No network'), + subtitle: Text( + 'To load the videos you must have an active network connection', + ), + ), + ); + + Stream connectivityStream() async* { + final Connectivity connectivity = Connectivity(); + ConnectivityResult previousResult = await connectivity.checkConnectivity(); + yield previousResult; + await for (final ConnectivityResult result in connectivity.onConnectivityChanged) { + if (result != previousResult) { + yield result; + previousResult = result; + } + } + } + + @override + void initState() { + super.initState(); + if (kIsWeb) { + // Assume connectivity + // TODO(ditman): Remove this shortcut when `connectivity` support for web + // lands, https://github.com/flutter/flutter/issues/46735 + if (!widget.connectedCompleter!.isCompleted) { + widget.connectedCompleter!.complete(); + } + return; + } + connectivitySubscription = connectivityStream().listen( + (ConnectivityResult connectivityResult) { + if (!mounted) { + return; + } + if (connectivityResult == ConnectivityResult.none) { + ScaffoldMessenger.of(context).showSnackBar(errorSnackBar); + } else { + if (!widget.connectedCompleter!.isCompleted) { + widget.connectedCompleter!.complete(); + } + } + }, + ); + } + + @override + void dispose() { + connectivitySubscription?.cancel(); + super.dispose(); + } + + @override + Widget build(BuildContext context) => widget.child!; +} + +class VideoDemo extends StatefulWidget { + const VideoDemo({ super.key }); + + static const String routeName = '/video'; + + @override + State createState() => _VideoDemoState(); +} + +final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin(); + +Future isIOSSimulator() async { + return !kIsWeb && + Platform.isIOS && + !(await deviceInfoPlugin.iosInfo).isPhysicalDevice; +} + +class _VideoDemoState extends State with SingleTickerProviderStateMixin { + final VideoPlayerController butterflyController = VideoPlayerController.asset( + 'videos/butterfly.mp4', + package: 'flutter_gallery_assets', + videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true), + ); + + final VideoPlayerController beeController = VideoPlayerController.networkUrl( + Uri.parse('https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'), + videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true), + ); + + final Completer connectedCompleter = Completer(); + bool isSupported = true; + bool isDisposed = false; + + @override + void initState() { + super.initState(); + + Future initController(VideoPlayerController controller, String name) async { + controller.setLooping(true); + controller.setVolume(0.0); + controller.play(); + await connectedCompleter.future; + await controller.initialize(); + if (mounted) { + setState(() { }); + } + } + + initController(butterflyController, 'butterfly'); + initController(beeController, 'bee'); + isIOSSimulator().then((bool result) { + isSupported = !result; + }); + } + + @override + void dispose() { + isDisposed = true; + butterflyController.dispose(); + beeController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Videos'), + ), + body: isSupported + ? ConnectivityOverlay( + connectedCompleter: connectedCompleter, + child: Scrollbar( + child: ListView( + primary: true, + children: [ + VideoCard( + title: 'Butterfly', + subtitle: '… flutters by', + controller: butterflyController, + ), + VideoCard( + title: 'Bee', + subtitle: '… gently buzzing', + controller: beeController, + ), + ], + ), + ), + ) + : const Center( + child: Text( + 'Video playback not supported on the iOS Simulator.', + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo_lists.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo_lists.dart new file mode 100644 index 0000000000000000000000000000000000000000..271d0569730a10e1a8279cba3d480b8a6afc9e14 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/demo_lists.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Demos for which timeline data will be collected using +// FlutterDriver.traceAction(). +// +// Warning: The number of tests executed with timeline collection enabled +// significantly impacts heap size of the running app. When run with +// --trace-startup, as we do in this test, the VM stores trace events in an +// endless buffer instead of a ring buffer. +// +// These names must match GalleryItem titles from kAllGalleryDemos +// in dev/integration_tests/flutter_gallery/lib/gallery/demos.dart +const List kProfiledDemos = [ + 'Shrine@Studies', + 'Contact profile@Studies', + 'Animation@Studies', + 'Bottom navigation@Material', + 'Buttons@Material', + 'Cards@Material', + 'Chips@Material', + 'Dialogs@Material', + 'Pickers@Material', +]; + +// There are 3 places where the Gallery demos are traversed. +// 1- In widget tests such as dev/integration_tests/flutter_gallery/test/smoke_test.dart +// 2- In driver tests such as dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart +// 3- In on-device instrumentation tests such as dev/integration_tests/flutter_gallery/test/live_smoketest.dart +// +// If you change navigation behavior in the Gallery or in the framework, make +// sure all 3 are covered. + +// Demos that will be backed out of within FlutterDriver.runUnsynchronized(); +// +// These names must match GalleryItem titles from kAllGalleryDemos +// in dev/integration_tests/flutter_gallery/lib/gallery/demos.dart +const List kUnsynchronizedDemos = [ + 'Progress indicators@Material', + 'Activity Indicator@Cupertino', + 'Video@Media', +]; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/about.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/about.dart new file mode 100644 index 0000000000000000000000000000000000000000..fb28d9b6655b01d977e70e60e1ce6773fd052e1c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/about.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart' show defaultTargetPlatform; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher.dart'; + +class _LinkTextSpan extends TextSpan { + + // Beware! + // + // This class is only safe because the TapGestureRecognizer is not + // given a deadline and therefore never allocates any resources. + // + // In any other situation -- setting a deadline, using any of the less trivial + // recognizers, etc -- you would have to manage the gesture recognizer's + // lifetime and call dispose() when the TextSpan was no longer being rendered. + // + // Since TextSpan itself is @immutable, this means that you would have to + // manage the recognizer from outside the TextSpan, e.g. in the State of a + // stateful widget that then hands the recognizer to the TextSpan. + + _LinkTextSpan({ super.style, required String url, String? text }) : super( + text: text ?? url, + recognizer: TapGestureRecognizer()..onTap = () { + launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication); + } + ); +} + +void showGalleryAboutDialog(BuildContext context) { + final ThemeData themeData = Theme.of(context); + final TextStyle? aboutTextStyle = themeData.textTheme.bodyLarge; + final TextStyle linkStyle = themeData.textTheme.bodyLarge!.copyWith(color: themeData.colorScheme.primary); + + showAboutDialog( + context: context, + applicationVersion: 'January 2019', + applicationIcon: const FlutterLogo(), + applicationLegalese: '© 2014 The Flutter Authors', + children: [ + Padding( + padding: const EdgeInsets.only(top: 24.0), + child: RichText( + text: TextSpan( + children: [ + TextSpan( + style: aboutTextStyle, + text: 'Flutter is an open-source project to help developers ' + 'build high-performance, high-fidelity, mobile apps for ' + '${defaultTargetPlatform == TargetPlatform.iOS ? 'multiple platforms' : 'iOS and Android'} ' + 'from a single codebase. This design lab is a playground ' + "and showcase of Flutter's many widgets, behaviors, " + 'animations, layouts, and more. Learn more about Flutter at ', + ), + _LinkTextSpan( + style: linkStyle, + url: 'https://flutter.dev', + ), + TextSpan( + style: aboutTextStyle, + text: '.\n\nTo see the source code for this app, please visit the ', + ), + _LinkTextSpan( + style: linkStyle, + url: 'https://goo.gl/iv1p4G', + text: 'flutter github repo', + ), + TextSpan( + style: aboutTextStyle, + text: '.', + ), + ], + ), + ), + ), + ], + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/app.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..e2d8f0fb34a785c7628a1571300257919b4f6d02 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/app.dart @@ -0,0 +1,176 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart' show defaultTargetPlatform; +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart' show timeDilation; +import 'package:scoped_model/scoped_model.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import '../demo/shrine/model/app_state_model.dart'; +import 'demos.dart'; +import 'home.dart'; +import 'options.dart'; +import 'scales.dart'; +import 'themes.dart'; +import 'updater.dart'; + +class GalleryApp extends StatefulWidget { + const GalleryApp({ + super.key, + this.updateUrlFetcher, + this.enablePerformanceOverlay = true, + this.enableRasterCacheImagesCheckerboard = true, + this.enableOffscreenLayersCheckerboard = true, + this.onSendFeedback, + this.testMode = false, + }); + + final UpdateUrlFetcher? updateUrlFetcher; + final bool enablePerformanceOverlay; + final bool enableRasterCacheImagesCheckerboard; + final bool enableOffscreenLayersCheckerboard; + final VoidCallback? onSendFeedback; + final bool testMode; + + @override + State createState() => _GalleryAppState(); +} + +class _GalleryAppState extends State { + GalleryOptions? _options; + Timer? _timeDilationTimer; + late final AppStateModel model = AppStateModel()..loadProducts(); + + Map _buildRoutes() { + // For a different example of how to set up an application routing table + // using named routes, consider the example in the Navigator class documentation: + // https://api.flutter.dev/flutter/widgets/Navigator-class.html + return { + for (final GalleryDemo demo in kAllGalleryDemos) demo.routeName: demo.buildRoute, + }; + } + + @override + void initState() { + super.initState(); + _options = GalleryOptions( + themeMode: ThemeMode.system, + textScaleFactor: kAllGalleryTextScaleValues[0], + visualDensity: kAllGalleryVisualDensityValues[0], + timeDilation: timeDilation, + platform: defaultTargetPlatform, + ); + } + + @override + void reassemble() { + _options = _options!.copyWith(platform: defaultTargetPlatform); + super.reassemble(); + } + + @override + void dispose() { + _timeDilationTimer?.cancel(); + _timeDilationTimer = null; + super.dispose(); + } + + void _handleOptionsChanged(GalleryOptions newOptions) { + setState(() { + if (_options!.timeDilation != newOptions.timeDilation) { + _timeDilationTimer?.cancel(); + _timeDilationTimer = null; + if (newOptions.timeDilation > 1.0) { + // We delay the time dilation change long enough that the user can see + // that UI has started reacting and then we slam on the brakes so that + // they see that the time is in fact now dilated. + _timeDilationTimer = Timer(const Duration(milliseconds: 150), () { + timeDilation = newOptions.timeDilation; + }); + } else { + timeDilation = newOptions.timeDilation; + } + } + + _options = newOptions; + }); + } + + Widget _applyTextScaleFactor(Widget child) { + return Builder( + builder: (BuildContext context) { + final double? textScaleFactor = _options!.textScaleFactor!.scale; + return MediaQuery.withClampedTextScaling( + minScaleFactor: textScaleFactor ?? 0.0, + maxScaleFactor: textScaleFactor ?? double.infinity, + child: child, + ); + }, + ); + } + + @override + Widget build(BuildContext context) { + Widget home = GalleryHome( + testMode: widget.testMode, + optionsPage: GalleryOptionsPage( + options: _options, + onOptionsChanged: _handleOptionsChanged, + onSendFeedback: widget.onSendFeedback ?? () { + launchUrl(Uri.parse('https://github.com/flutter/flutter/issues/new/choose'), mode: LaunchMode.externalApplication); + }, + ), + ); + + if (widget.updateUrlFetcher != null) { + home = Updater( + updateUrlFetcher: widget.updateUrlFetcher!, + child: home, + ); + } + + return ScopedModel( + model: model, + child: MaterialApp( + // The automatically applied scrollbars on desktop can cause a crash for + // demos where many scrollables are all attached to the same + // PrimaryScrollController. The gallery needs to be migrated before + // enabling this. https://github.com/flutter/gallery/issues/523 + scrollBehavior: const MaterialScrollBehavior().copyWith(scrollbars: false), + theme: kLightGalleryTheme.copyWith(platform: _options!.platform, visualDensity: _options!.visualDensity!.visualDensity), + darkTheme: kDarkGalleryTheme.copyWith(platform: _options!.platform, visualDensity: _options!.visualDensity!.visualDensity), + themeMode: _options!.themeMode, + title: 'Flutter Gallery', + color: Colors.grey, + showPerformanceOverlay: _options!.showPerformanceOverlay, + checkerboardOffscreenLayers: _options!.showOffscreenLayersCheckerboard, + checkerboardRasterCacheImages: _options!.showRasterCacheImagesCheckerboard, + routes: _buildRoutes(), + builder: (BuildContext context, Widget? child) { + return Directionality( + textDirection: _options!.textDirection, + child: _applyTextScaleFactor( + // Specifically use a blank Cupertino theme here and do not transfer + // over the Material primary color etc except the brightness to + // showcase standard iOS looks. + Builder(builder: (BuildContext context) { + return CupertinoTheme( + data: CupertinoThemeData( + brightness: Theme.of(context).brightness, + ), + child: child!, + ); + }), + ), + ); + }, + home: home, + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/backdrop.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/backdrop.dart new file mode 100644 index 0000000000000000000000000000000000000000..7f6a56303dc47c25f2c6b2fdf9e0d464ec4c73b6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/backdrop.dart @@ -0,0 +1,362 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +const double _kFrontHeadingHeight = 32.0; // front layer beveled rectangle +const double _kFrontClosedHeight = 92.0; // front layer height when closed +const double _kBackAppBarHeight = 56.0; // back layer (options) appbar height + +// The size of the front layer heading's left and right beveled corners. +final Animatable _kFrontHeadingBevelRadius = BorderRadiusTween( + begin: const BorderRadius.only( + topLeft: Radius.circular(12.0), + topRight: Radius.circular(12.0), + ), + end: const BorderRadius.only( + topLeft: Radius.circular(_kFrontHeadingHeight), + topRight: Radius.circular(_kFrontHeadingHeight), + ), +); + +class _TappableWhileStatusIs extends StatefulWidget { + const _TappableWhileStatusIs( + this.status, { + this.controller, + this.child, + }); + + final AnimationController? controller; + final AnimationStatus status; + final Widget? child; + + @override + _TappableWhileStatusIsState createState() => _TappableWhileStatusIsState(); +} + +class _TappableWhileStatusIsState extends State<_TappableWhileStatusIs> { + bool? _active; + + @override + void initState() { + super.initState(); + widget.controller!.addStatusListener(_handleStatusChange); + _active = widget.controller!.status == widget.status; + } + + @override + void dispose() { + widget.controller!.removeStatusListener(_handleStatusChange); + super.dispose(); + } + + void _handleStatusChange(AnimationStatus status) { + final bool value = widget.controller!.status == widget.status; + if (_active != value) { + setState(() { + _active = value; + }); + } + } + + @override + Widget build(BuildContext context) { + Widget child = AbsorbPointer( + absorbing: !_active!, + child: widget.child, + ); + + if (!_active!) { + child = FocusScope( + canRequestFocus: false, + debugLabel: '$_TappableWhileStatusIs', + child: child, + ); + } + return child; + } +} + +class _CrossFadeTransition extends AnimatedWidget { + const _CrossFadeTransition({ + this.alignment = Alignment.center, + required Animation progress, + this.child0, + this.child1, + }) : super(listenable: progress); + + final AlignmentGeometry alignment; + final Widget? child0; + final Widget? child1; + + @override + Widget build(BuildContext context) { + final Animation progress = listenable as Animation; + + final double opacity1 = CurvedAnimation( + parent: ReverseAnimation(progress), + curve: const Interval(0.5, 1.0), + ).value; + + final double opacity2 = CurvedAnimation( + parent: progress, + curve: const Interval(0.5, 1.0), + ).value; + + return Stack( + alignment: alignment, + children: [ + Opacity( + opacity: opacity1, + child: Semantics( + scopesRoute: true, + explicitChildNodes: true, + child: child1, + ), + ), + Opacity( + opacity: opacity2, + child: Semantics( + scopesRoute: true, + explicitChildNodes: true, + child: child0, + ), + ), + ], + ); + } +} + +class _BackAppBar extends StatelessWidget { + const _BackAppBar({ + this.leading = const SizedBox(width: 56.0), + required this.title, + this.trailing, + }); + + final Widget leading; + final Widget title; + final Widget? trailing; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return IconTheme.merge( + data: theme.primaryIconTheme, + child: DefaultTextStyle( + style: theme.primaryTextTheme.titleLarge!, + child: SizedBox( + height: _kBackAppBarHeight, + child: Row( + children: [ + Container( + alignment: Alignment.center, + width: 56.0, + child: leading, + ), + Expanded( + child: title, + ), + if (trailing != null) + Container( + alignment: Alignment.center, + width: 56.0, + child: trailing, + ), + ], + ), + ), + ), + ); + } +} + +class Backdrop extends StatefulWidget { + const Backdrop({ + super.key, + this.frontAction, + this.frontTitle, + this.frontHeading, + this.frontLayer, + this.backTitle, + this.backLayer, + }); + + final Widget? frontAction; + final Widget? frontTitle; + final Widget? frontLayer; + final Widget? frontHeading; + final Widget? backTitle; + final Widget? backLayer; + + @override + State createState() => _BackdropState(); +} + +class _BackdropState extends State with SingleTickerProviderStateMixin { + final GlobalKey _backdropKey = GlobalKey(debugLabel: 'Backdrop'); + AnimationController? _controller; + late Animation _frontOpacity; + + static final Animatable _frontOpacityTween = Tween(begin: 0.2, end: 1.0) + .chain(CurveTween(curve: const Interval(0.0, 0.4, curve: Curves.easeInOut))); + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 300), + value: 1.0, + vsync: this, + ); + _controller!.addStatusListener((AnimationStatus status) { + setState(() { + // This is intentionally left empty. The state change itself takes + // place inside the AnimationController, so there's nothing to update. + // All we want is for the widget to rebuild and read the new animation + // state from the AnimationController. + }); + }); + _frontOpacity = _controller!.drive(_frontOpacityTween); + } + + @override + void dispose() { + _controller!.dispose(); + super.dispose(); + } + + double get _backdropHeight { + // Warning: this can be safely called from the event handlers but it may + // not be called at build time. + final RenderBox renderBox = _backdropKey.currentContext!.findRenderObject()! as RenderBox; + return math.max(0.0, renderBox.size.height - _kBackAppBarHeight - _kFrontClosedHeight); + } + + void _handleDragUpdate(DragUpdateDetails details) { + _controller!.value -= details.primaryDelta! / _backdropHeight; + } + + void _handleDragEnd(DragEndDetails details) { + if (_controller!.isAnimating || _controller!.status == AnimationStatus.completed) { + return; + } + + final double flingVelocity = details.velocity.pixelsPerSecond.dy / _backdropHeight; + if (flingVelocity < 0.0) { + _controller!.fling(velocity: math.max(2.0, -flingVelocity)); + } else if (flingVelocity > 0.0) { + _controller!.fling(velocity: math.min(-2.0, -flingVelocity)); + } else { + _controller!.fling(velocity: _controller!.value < 0.5 ? -2.0 : 2.0); + } + } + + void _toggleFrontLayer() { + final AnimationStatus status = _controller!.status; + final bool isOpen = status == AnimationStatus.completed || status == AnimationStatus.forward; + _controller!.fling(velocity: isOpen ? -2.0 : 2.0); + } + + Widget _buildStack(BuildContext context, BoxConstraints constraints) { + final Animation frontRelativeRect = _controller!.drive(RelativeRectTween( + begin: RelativeRect.fromLTRB(0.0, constraints.biggest.height - _kFrontClosedHeight, 0.0, 0.0), + end: const RelativeRect.fromLTRB(0.0, _kBackAppBarHeight, 0.0, 0.0), + )); + return Stack( + key: _backdropKey, + children: [ + // Back layer + Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _BackAppBar( + leading: widget.frontAction!, + title: _CrossFadeTransition( + progress: _controller!, + alignment: AlignmentDirectional.centerStart, + child0: Semantics(namesRoute: true, child: widget.frontTitle), + child1: Semantics(namesRoute: true, child: widget.backTitle), + ), + trailing: IconButton( + onPressed: _toggleFrontLayer, + tooltip: 'Toggle options page', + icon: AnimatedIcon( + icon: AnimatedIcons.close_menu, + progress: _controller!, + ), + ), + ), + Expanded( + child: _TappableWhileStatusIs( + AnimationStatus.dismissed, + controller: _controller, + child: Visibility( + visible: _controller!.status != AnimationStatus.completed, + maintainState: true, + child: widget.backLayer!, + ), + ), + ), + ], + ), + // Front layer + PositionedTransition( + rect: frontRelativeRect, + child: AnimatedBuilder( + animation: _controller!, + builder: (BuildContext context, Widget? child) { + return PhysicalShape( + elevation: 12.0, + color: Theme.of(context).canvasColor, + clipper: ShapeBorderClipper( + shape: BeveledRectangleBorder( + borderRadius: _kFrontHeadingBevelRadius.transform(_controller!.value)!, + ), + ), + clipBehavior: Clip.antiAlias, + child: child, + ); + }, + child: _TappableWhileStatusIs( + AnimationStatus.completed, + controller: _controller, + child: FadeTransition( + opacity: _frontOpacity, + child: widget.frontLayer, + ), + ), + ), + ), + // The front "heading" is a (typically transparent) widget that's stacked on + // top of, and at the top of, the front layer. It adds support for dragging + // the front layer up and down and for opening and closing the front layer + // with a tap. It may obscure part of the front layer's topmost child. + if (widget.frontHeading != null) + PositionedTransition( + rect: frontRelativeRect, + child: ExcludeSemantics( + child: Container( + alignment: Alignment.topLeft, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: _toggleFrontLayer, + onVerticalDragUpdate: _handleDragUpdate, + onVerticalDragEnd: _handleDragEnd, + child: widget.frontHeading, + ), + ), + ), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: _buildStack); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demo.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..c064b837ab881d258b8bf45a694a78b2e03581e6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demo.dart @@ -0,0 +1,267 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import 'demos.dart'; +import 'example_code_parser.dart'; +import 'syntax_highlighter.dart'; + +@immutable +class ComponentDemoTabData { + const ComponentDemoTabData({ + this.demoWidget, + this.exampleCodeTag, + this.description, + this.tabName, + this.documentationUrl, + }); + + final Widget? demoWidget; + final String? exampleCodeTag; + final String? description; + final String? tabName; + final String? documentationUrl; + + @override + bool operator==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is ComponentDemoTabData + && other.tabName == tabName + && other.description == description + && other.documentationUrl == documentationUrl; + } + + @override + int get hashCode => Object.hash(tabName, description, documentationUrl); +} + +class TabbedComponentDemoScaffold extends StatefulWidget { + const TabbedComponentDemoScaffold({ + super.key, + this.title, + this.demos, + this.actions, + this.isScrollable = true, + this.showExampleCodeAction = true, + }); + + final List? demos; + final String? title; + final List? actions; + final bool isScrollable; + final bool showExampleCodeAction; + + @override + State createState() => _TabbedComponentDemoScaffoldState(); +} + +class _TabbedComponentDemoScaffoldState extends State { + void _showExampleCode(BuildContext context) { + final String? tag = widget.demos![DefaultTabController.of(context).index].exampleCodeTag; + if (tag != null) { + Navigator.push(context, MaterialPageRoute( + builder: (BuildContext context) => FullScreenCodeDialog(exampleCodeTag: tag) + )); + } + } + + Future _showApiDocumentation(BuildContext context) async { + final String? url = widget.demos![DefaultTabController.of(context).index].documentationUrl; + if (url == null) { + return; + } + + final Uri uri = Uri.parse(url); + if (await canLaunchUrl(uri)) { + await launchUrl(uri); + } else if (context.mounted) { + showDialog( + context: context, + builder: (BuildContext context) { + return SimpleDialog( + title: const Text("Couldn't display URL:"), + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: Text(url), + ), + ], + ); + }, + ); + } + } + + @override + Widget build(BuildContext context) { + return DefaultTabController( + length: widget.demos!.length, + child: Scaffold( + appBar: AppBar( + title: Text(widget.title!), + actions: [ + ...?widget.actions, + Builder( + builder: (BuildContext context) { + return IconButton( + icon: const Icon(Icons.library_books, semanticLabel: 'Show documentation'), + onPressed: () => _showApiDocumentation(context), + ); + }, + ), + if (widget.showExampleCodeAction) + Builder( + builder: (BuildContext context) { + return IconButton( + icon: const Icon(Icons.code), + tooltip: 'Show example code', + onPressed: () => _showExampleCode(context), + ); + }, + ), + ], + bottom: TabBar( + isScrollable: widget.isScrollable, + tabs: widget.demos!.map((ComponentDemoTabData data) => Tab(text: data.tabName)).toList(), + ), + ), + body: TabBarView( + children: widget.demos!.map((ComponentDemoTabData demo) { + return SafeArea( + top: false, + bottom: false, + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: Text(demo.description!, + style: Theme.of(context).textTheme.titleMedium, + ), + ), + Expanded(child: demo.demoWidget!), + ], + ), + ); + }).toList(), + ), + ), + ); + } +} + +class FullScreenCodeDialog extends StatefulWidget { + const FullScreenCodeDialog({ super.key, this.exampleCodeTag }); + + final String? exampleCodeTag; + + @override + FullScreenCodeDialogState createState() => FullScreenCodeDialogState(); +} + +class FullScreenCodeDialogState extends State { + + String? _exampleCode; + + @override + void didChangeDependencies() { + getExampleCode(widget.exampleCodeTag, DefaultAssetBundle.of(context)).then((String? code) { + if (mounted) { + setState(() { + _exampleCode = code ?? 'Example code not found'; + }); + } + }); + super.didChangeDependencies(); + } + + @override + Widget build(BuildContext context) { + final SyntaxHighlighterStyle style = Theme.of(context).brightness == Brightness.dark + ? SyntaxHighlighterStyle.darkThemeStyle() + : SyntaxHighlighterStyle.lightThemeStyle(); + + Widget body; + if (_exampleCode == null) { + body = const Center( + child: CircularProgressIndicator(), + ); + } else { + body = SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: RichText( + text: TextSpan( + style: const TextStyle(fontFamily: 'monospace', fontSize: 10.0), + children: [ + DartSyntaxHighlighter(style).format(_exampleCode), + ], + ), + ), + ), + ); + } + + return Scaffold( + appBar: AppBar( + leading: IconButton( + icon: const Icon( + Icons.clear, + semanticLabel: 'Close', + ), + onPressed: () { Navigator.pop(context); }, + ), + title: const Text('Example code'), + ), + body: body, + ); + } +} + +class MaterialDemoDocumentationButton extends StatelessWidget { + MaterialDemoDocumentationButton(String routeName, { super.key }) + : documentationUrl = kDemoDocumentationUrl[routeName], + assert( + kDemoDocumentationUrl[routeName] != null, + 'A documentation URL was not specified for demo route $routeName in kAllGalleryDemos', + ); + + final String? documentationUrl; + + @override + Widget build(BuildContext context) { + return IconButton( + icon: const Icon(Icons.library_books), + tooltip: 'API documentation', + onPressed: () => launchUrl(Uri.parse(documentationUrl!), mode: LaunchMode.inAppWebView), + ); + } +} + +class CupertinoDemoDocumentationButton extends StatelessWidget { + CupertinoDemoDocumentationButton(String routeName, { super.key }) + : documentationUrl = kDemoDocumentationUrl[routeName], + assert( + kDemoDocumentationUrl[routeName] != null, + 'A documentation URL was not specified for demo route $routeName in kAllGalleryDemos', + ); + + final String? documentationUrl; + + @override + Widget build(BuildContext context) { + return CupertinoButton( + padding: EdgeInsets.zero, + child: Semantics( + label: 'API documentation', + child: const Icon(CupertinoIcons.book), + ), + onPressed: () => launchUrl(Uri.parse(documentationUrl!), mode: LaunchMode.inAppWebView), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demos.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demos.dart new file mode 100644 index 0000000000000000000000000000000000000000..dc025cfcec5549235627fc96664cff81d2e66539 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/demos.dart @@ -0,0 +1,586 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../demo/all.dart'; +import 'icons.dart'; + +@immutable +class GalleryDemoCategory { + const GalleryDemoCategory._({ + required this.name, + required this.icon, + }); + + final String name; + final IconData icon; + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (other.runtimeType != runtimeType) { + return false; + } + return other is GalleryDemoCategory + && other.name == name + && other.icon == icon; + } + + @override + int get hashCode => Object.hash(name, icon); + + @override + String toString() { + return '$runtimeType($name)'; + } +} + +const GalleryDemoCategory _kDemos = GalleryDemoCategory._( + name: 'Studies', + icon: GalleryIcons.animation, +); + +const GalleryDemoCategory _kStyle = GalleryDemoCategory._( + name: 'Style', + icon: GalleryIcons.custom_typography, +); + +const GalleryDemoCategory _kMaterialComponents = GalleryDemoCategory._( + name: 'Material', + icon: GalleryIcons.category_mdc, +); + +const GalleryDemoCategory _kCupertinoComponents = GalleryDemoCategory._( + name: 'Cupertino', + icon: GalleryIcons.phone_iphone, +); + +const GalleryDemoCategory _kMedia = GalleryDemoCategory._( + name: 'Media', + icon: GalleryIcons.drive_video, +); + +class GalleryDemo { + const GalleryDemo({ + required this.title, + required this.icon, + this.subtitle, + required this.category, + required this.routeName, + this.documentationUrl, + required this.buildRoute, + }); + + final String title; + final IconData icon; + final String? subtitle; + final GalleryDemoCategory category; + final String routeName; + final WidgetBuilder buildRoute; + final String? documentationUrl; + + @override + String toString() { + return '$runtimeType($title $routeName)'; + } +} + +List _buildGalleryDemos() { + final List galleryDemos = [ + // Demos + GalleryDemo( + title: 'Shrine', + subtitle: 'Basic shopping app', + icon: GalleryIcons.shrine, + category: _kDemos, + routeName: ShrineDemo.routeName, + buildRoute: (BuildContext context) => const ShrineDemo(), + ), + GalleryDemo( + title: 'Fortnightly', + subtitle: 'Newspaper typography app', + icon: GalleryIcons.custom_typography, + category: _kDemos, + routeName: FortnightlyDemo.routeName, + buildRoute: (BuildContext context) => const FortnightlyDemo(), + ), + GalleryDemo( + title: 'Contact profile', + subtitle: 'Address book entry with a flexible appbar', + icon: GalleryIcons.account_box, + category: _kDemos, + routeName: ContactsDemo.routeName, + buildRoute: (BuildContext context) => const ContactsDemo(), + ), + GalleryDemo( + title: 'Animation', + subtitle: 'Section organizer', + icon: GalleryIcons.animation, + category: _kDemos, + routeName: AnimationDemo.routeName, + buildRoute: (BuildContext context) => const AnimationDemo(), + ), + GalleryDemo( + title: '2D Transformations', + subtitle: 'Pan, Zoom, Rotate', + icon: GalleryIcons.grid_on, + category: _kDemos, + routeName: TransformationsDemo.routeName, + buildRoute: (BuildContext context) => const TransformationsDemo(), + ), + GalleryDemo( + title: 'Pesto', + subtitle: 'Simple recipe browser', + icon: Icons.adjust, + category: _kDemos, + routeName: PestoDemo.routeName, + buildRoute: (BuildContext context) => const PestoDemo(), + ), + + // Style + GalleryDemo( + title: 'Colors', + subtitle: 'All of the predefined colors', + icon: GalleryIcons.colors, + category: _kStyle, + routeName: ColorsDemo.routeName, + buildRoute: (BuildContext context) => const ColorsDemo(), + ), + GalleryDemo( + title: 'Typography', + subtitle: 'All of the predefined text styles', + icon: GalleryIcons.custom_typography, + category: _kStyle, + routeName: TypographyDemo.routeName, + buildRoute: (BuildContext context) => const TypographyDemo(), + ), + + // Material Components + GalleryDemo( + title: 'Backdrop', + subtitle: 'Select a front layer from back layer', + icon: GalleryIcons.backdrop, + category: _kMaterialComponents, + routeName: BackdropDemo.routeName, + buildRoute: (BuildContext context) => const BackdropDemo(), + ), + GalleryDemo( + title: 'Banner', + subtitle: 'Displaying a banner within a list', + icon: GalleryIcons.lists_leave_behind, + category: _kMaterialComponents, + routeName: BannerDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/MaterialBanner-class.html', + buildRoute: (BuildContext context) => const BannerDemo(), + ), + GalleryDemo( + title: 'Bottom app bar', + subtitle: 'Optional floating action button notch', + icon: GalleryIcons.bottom_app_bar, + category: _kMaterialComponents, + routeName: BottomAppBarDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/BottomAppBar-class.html', + buildRoute: (BuildContext context) => const BottomAppBarDemo(), + ), + GalleryDemo( + title: 'Bottom navigation', + subtitle: 'Bottom navigation with cross-fading views', + icon: GalleryIcons.bottom_navigation, + category: _kMaterialComponents, + routeName: BottomNavigationDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html', + buildRoute: (BuildContext context) => const BottomNavigationDemo(), + ), + GalleryDemo( + title: 'Bottom sheet: Modal', + subtitle: 'A dismissible bottom sheet', + icon: GalleryIcons.bottom_sheets, + category: _kMaterialComponents, + routeName: ModalBottomSheetDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/showModalBottomSheet.html', + buildRoute: (BuildContext context) => const ModalBottomSheetDemo(), + ), + GalleryDemo( + title: 'Bottom sheet: Persistent', + subtitle: 'A bottom sheet that sticks around', + icon: GalleryIcons.bottom_sheet_persistent, + category: _kMaterialComponents, + routeName: PersistentBottomSheetDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ScaffoldState/showBottomSheet.html', + buildRoute: (BuildContext context) => const PersistentBottomSheetDemo(), + ), + GalleryDemo( + title: 'Buttons', + subtitle: 'Flat, raised, dropdown, and more', + icon: GalleryIcons.generic_buttons, + category: _kMaterialComponents, + routeName: ButtonsDemo.routeName, + buildRoute: (BuildContext context) => const ButtonsDemo(), + ), + GalleryDemo( + title: 'Buttons: Floating Action Button', + subtitle: 'FAB with transitions', + icon: GalleryIcons.buttons, + category: _kMaterialComponents, + routeName: TabsFabDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/FloatingActionButton-class.html', + buildRoute: (BuildContext context) => const TabsFabDemo(), + ), + GalleryDemo( + title: 'Cards', + subtitle: 'Baseline cards with rounded corners', + icon: GalleryIcons.cards, + category: _kMaterialComponents, + routeName: CardsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Card-class.html', + buildRoute: (BuildContext context) => const CardsDemo(), + ), + GalleryDemo( + title: 'Chips', + subtitle: 'Labeled with delete buttons and avatars', + icon: GalleryIcons.chips, + category: _kMaterialComponents, + routeName: ChipDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Chip-class.html', + buildRoute: (BuildContext context) => const ChipDemo(), + ), + GalleryDemo( + title: 'Data tables', + subtitle: 'Rows and columns', + icon: GalleryIcons.data_table, + category: _kMaterialComponents, + routeName: DataTableDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/PaginatedDataTable-class.html', + buildRoute: (BuildContext context) => const DataTableDemo(), + ), + GalleryDemo( + title: 'Dialogs', + subtitle: 'Simple, alert, and fullscreen', + icon: GalleryIcons.dialogs, + category: _kMaterialComponents, + routeName: DialogDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/showDialog.html', + buildRoute: (BuildContext context) => const DialogDemo(), + ), + GalleryDemo( + title: 'Elevations', + subtitle: 'Shadow values on cards', + // TODO(larche): Change to custom icon for elevations when one exists. + icon: GalleryIcons.cupertino_progress, + category: _kMaterialComponents, + routeName: ElevationDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Material/elevation.html', + buildRoute: (BuildContext context) => const ElevationDemo(), + ), + GalleryDemo( + title: 'Expand/collapse list control', + subtitle: 'A list with one sub-list level', + icon: GalleryIcons.expand_all, + category: _kMaterialComponents, + routeName: ExpansionTileListDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ExpansionTile-class.html', + buildRoute: (BuildContext context) => const ExpansionTileListDemo(), + ), + GalleryDemo( + title: 'Expansion panels', + subtitle: 'List of expanding panels', + icon: GalleryIcons.expand_all, + category: _kMaterialComponents, + routeName: ExpansionPanelsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ExpansionPanel-class.html', + buildRoute: (BuildContext context) => const ExpansionPanelsDemo(), + ), + GalleryDemo( + title: 'Grid', + subtitle: 'Row and column layout', + icon: GalleryIcons.grid_on, + category: _kMaterialComponents, + routeName: GridListDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/widgets/GridView-class.html', + buildRoute: (BuildContext context) => const GridListDemo(), + ), + GalleryDemo( + title: 'Icons', + subtitle: 'Enabled and disabled icons with opacity', + icon: GalleryIcons.sentiment_very_satisfied, + category: _kMaterialComponents, + routeName: IconsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/IconButton-class.html', + buildRoute: (BuildContext context) => const IconsDemo(), + ), + GalleryDemo( + title: 'Lists', + subtitle: 'Scrolling list layouts', + icon: GalleryIcons.list_alt, + category: _kMaterialComponents, + routeName: ListDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ListTile-class.html', + buildRoute: (BuildContext context) => const ListDemo(), + ), + GalleryDemo( + title: 'Lists: leave-behind list items', + subtitle: 'List items with hidden actions', + icon: GalleryIcons.lists_leave_behind, + category: _kMaterialComponents, + routeName: LeaveBehindDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/widgets/Dismissible-class.html', + buildRoute: (BuildContext context) => const LeaveBehindDemo(), + ), + GalleryDemo( + title: 'Lists: reorderable', + subtitle: 'Reorderable lists', + icon: GalleryIcons.list_alt, + category: _kMaterialComponents, + routeName: ReorderableListDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ReorderableListView-class.html', + buildRoute: (BuildContext context) => const ReorderableListDemo(), + ), + GalleryDemo( + title: 'Menus', + subtitle: 'Menu buttons and simple menus', + icon: GalleryIcons.more_vert, + category: _kMaterialComponents, + routeName: MenuDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/PopupMenuButton-class.html', + buildRoute: (BuildContext context) => const MenuDemo(), + ), + GalleryDemo( + title: 'Navigation drawer', + subtitle: 'Navigation drawer with standard header', + icon: GalleryIcons.menu, + category: _kMaterialComponents, + routeName: DrawerDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Drawer-class.html', + buildRoute: (BuildContext context) => const DrawerDemo(), + ), + GalleryDemo( + title: 'Pagination', + subtitle: 'PageView with indicator', + icon: GalleryIcons.page_control, + category: _kMaterialComponents, + routeName: PageSelectorDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/TabBarView-class.html', + buildRoute: (BuildContext context) => const PageSelectorDemo(), + ), + GalleryDemo( + title: 'Pickers', + subtitle: 'Date and time selection widgets', + icon: GalleryIcons.event, + category: _kMaterialComponents, + routeName: DateAndTimePickerDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/showDatePicker.html', + buildRoute: (BuildContext context) => const DateAndTimePickerDemo(), + ), + GalleryDemo( + title: 'Progress indicators', + subtitle: 'Linear, circular, indeterminate', + icon: GalleryIcons.progress_activity, + category: _kMaterialComponents, + routeName: ProgressIndicatorDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/LinearProgressIndicator-class.html', + buildRoute: (BuildContext context) => const ProgressIndicatorDemo(), + ), + GalleryDemo( + title: 'Pull to refresh', + subtitle: 'Refresh indicators', + icon: GalleryIcons.refresh, + category: _kMaterialComponents, + routeName: OverscrollDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/RefreshIndicator-class.html', + buildRoute: (BuildContext context) => const OverscrollDemo(), + ), + GalleryDemo( + title: 'Search', + subtitle: 'Expandable search', + icon: Icons.search, + category: _kMaterialComponents, + routeName: SearchDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/showSearch.html', + buildRoute: (BuildContext context) => const SearchDemo(), + ), + GalleryDemo( + title: 'Selection controls', + subtitle: 'Checkboxes, radio buttons, and switches', + icon: GalleryIcons.check_box, + category: _kMaterialComponents, + routeName: SelectionControlsDemo.routeName, + buildRoute: (BuildContext context) => const SelectionControlsDemo(), + ), + GalleryDemo( + title: 'Sliders', + subtitle: 'Widgets for selecting a value by swiping', + icon: GalleryIcons.sliders, + category: _kMaterialComponents, + routeName: SliderDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Slider-class.html', + buildRoute: (BuildContext context) => const SliderDemo(), + ), + GalleryDemo( + title: 'Snackbar', + subtitle: 'Temporary messaging', + icon: GalleryIcons.snackbar, + category: _kMaterialComponents, + routeName: SnackBarDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/ScaffoldState/showSnackBar.html', + buildRoute: (BuildContext context) => const SnackBarDemo(), + ), + GalleryDemo( + title: 'Tabs', + subtitle: 'Tabs with independently scrollable views', + icon: GalleryIcons.tabs, + category: _kMaterialComponents, + routeName: TabsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/TabBarView-class.html', + buildRoute: (BuildContext context) => const TabsDemo(), + ), + GalleryDemo( + title: 'Tabs: Scrolling', + subtitle: 'Tab bar that scrolls', + category: _kMaterialComponents, + icon: GalleryIcons.tabs, + routeName: ScrollableTabsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/TabBar-class.html', + buildRoute: (BuildContext context) => const ScrollableTabsDemo(), + ), + GalleryDemo( + title: 'Text fields', + subtitle: 'Single line of editable text and numbers', + icon: GalleryIcons.text_fields_alt, + category: _kMaterialComponents, + routeName: TextFormFieldDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/TextFormField-class.html', + buildRoute: (BuildContext context) => const TextFormFieldDemo(), + ), + GalleryDemo( + title: 'Tooltips', + subtitle: 'Short message displayed on long-press', + icon: GalleryIcons.tooltip, + category: _kMaterialComponents, + routeName: TooltipDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/material/Tooltip-class.html', + buildRoute: (BuildContext context) => const TooltipDemo(), + ), + + // Cupertino Components + GalleryDemo( + title: 'Activity Indicator', + icon: GalleryIcons.cupertino_progress, + category: _kCupertinoComponents, + routeName: CupertinoProgressIndicatorDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoActivityIndicator-class.html', + buildRoute: (BuildContext context) => const CupertinoProgressIndicatorDemo(), + ), + GalleryDemo( + title: 'Alerts', + icon: GalleryIcons.dialogs, + category: _kCupertinoComponents, + routeName: CupertinoAlertDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/showCupertinoDialog.html', + buildRoute: (BuildContext context) => const CupertinoAlertDemo(), + ), + GalleryDemo( + title: 'Buttons', + icon: GalleryIcons.generic_buttons, + category: _kCupertinoComponents, + routeName: CupertinoButtonsDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoButton-class.html', + buildRoute: (BuildContext context) => const CupertinoButtonsDemo(), + ), + GalleryDemo( + title: 'Navigation', + icon: GalleryIcons.bottom_navigation, + category: _kCupertinoComponents, + routeName: CupertinoNavigationDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoTabScaffold-class.html', + buildRoute: (BuildContext context) => CupertinoNavigationDemo(), + ), + GalleryDemo( + title: 'Pickers', + icon: GalleryIcons.event, + category: _kCupertinoComponents, + routeName: CupertinoPickerDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoPicker-class.html', + buildRoute: (BuildContext context) => const CupertinoPickerDemo(), + ), + GalleryDemo( + title: 'Pull to refresh', + icon: GalleryIcons.cupertino_pull_to_refresh, + category: _kCupertinoComponents, + routeName: CupertinoRefreshControlDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSliverRefreshControl-class.html', + buildRoute: (BuildContext context) => const CupertinoRefreshControlDemo(), + ), + GalleryDemo( + title: 'Segmented Control', + icon: GalleryIcons.tabs, + category: _kCupertinoComponents, + routeName: CupertinoSegmentedControlDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSegmentedControl-class.html', + buildRoute: (BuildContext context) => const CupertinoSegmentedControlDemo(), + ), + GalleryDemo( + title: 'Sliders', + icon: GalleryIcons.sliders, + category: _kCupertinoComponents, + routeName: CupertinoSliderDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSlider-class.html', + buildRoute: (BuildContext context) => const CupertinoSliderDemo(), + ), + GalleryDemo( + title: 'Switches', + icon: GalleryIcons.cupertino_switch, + category: _kCupertinoComponents, + routeName: CupertinoSwitchDemo.routeName, + documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSwitch-class.html', + buildRoute: (BuildContext context) => const CupertinoSwitchDemo(), + ), + GalleryDemo( + title: 'Text Fields', + icon: GalleryIcons.text_fields_alt, + category: _kCupertinoComponents, + routeName: CupertinoTextFieldDemo.routeName, + buildRoute: (BuildContext context) => const CupertinoTextFieldDemo(), + ), + + // Media + GalleryDemo( + title: 'Animated images', + subtitle: 'GIF and WebP animations', + icon: GalleryIcons.animation, + category: _kMedia, + routeName: ImagesDemo.routeName, + buildRoute: (BuildContext context) => const ImagesDemo(), + ), + GalleryDemo( + title: 'Video', + subtitle: 'Video playback', + icon: GalleryIcons.drive_video, + category: _kMedia, + routeName: VideoDemo.routeName, + buildRoute: (BuildContext context) => const VideoDemo(), + ), + ]; + return galleryDemos; +} + +final List kAllGalleryDemos = _buildGalleryDemos(); + +final Set kAllGalleryDemoCategories = + kAllGalleryDemos.map((GalleryDemo demo) => demo.category).toSet(); + +final Map> kGalleryCategoryToDemos = + Map>.fromIterable( + kAllGalleryDemoCategories, + value: (dynamic category) { + return kAllGalleryDemos.where((GalleryDemo demo) => demo.category == category).toList(); + }, + ); + +final Map kDemoDocumentationUrl = { + for (final GalleryDemo demo in kAllGalleryDemos) + if (demo.documentationUrl != null) demo.routeName: demo.documentationUrl, +}; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code.dart new file mode 100644 index 0000000000000000000000000000000000000000..dbbbaea30a4a748fc6f83f2e8be55549ca237db2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code.dart @@ -0,0 +1,285 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This code is not runnable, it contains code snippets displayed in the Gallery. + +import 'package:flutter/material.dart'; + +class ButtonsDemo { + void setState(VoidCallback callback) { } + late BuildContext context; + + void buttons() { + +// START buttons_elevated +// Create an elevated button. +ElevatedButton( + child: const Text('BUTTON TITLE'), + onPressed: () { + // Perform some action + }, +); + +// Create a disabled button. +// Buttons are disabled when onPressed isn't +// specified or is null. +const ElevatedButton( + onPressed: null, + child: Text('BUTTON TITLE'), +); + +// Create a button with an icon and a +// title. +ElevatedButton.icon( + icon: const Icon(Icons.add, size: 18.0), + label: const Text('BUTTON TITLE'), + onPressed: () { + // Perform some action + }, +); +// END + +// START buttons_outlined +// Create an outlined button. +OutlinedButton( + child: const Text('BUTTON TITLE'), + onPressed: () { + // Perform some action + }, +); + +// Create a disabled button. +// Buttons are disabled when onPressed isn't +// specified or is null. +const OutlinedButton( + onPressed: null, + child: Text('BUTTON TITLE'), +); + +// Create a button with an icon and a +// title. +OutlinedButton.icon( + icon: const Icon(Icons.add, size: 18.0), + label: const Text('BUTTON TITLE'), + onPressed: () { + // Perform some action + }, +); +// END + +// START buttons_text +// Create a text button. +TextButton( + child: const Text('BUTTON TITLE'), + onPressed: () { + // Perform some action + }, +); + +// Create a disabled button. +// Buttons are disabled when onPressed isn't +// specified or is null. +const TextButton( + onPressed: null, + child: Text('BUTTON TITLE'), +); +// END + + +// START buttons_dropdown +// Member variable holding value. +String? dropdownValue; + +// Dropdown button with string values. +DropdownButton( + value: dropdownValue, + onChanged: (String? newValue) { + // null indicates the user didn't select a + // new value. + setState(() { + if (newValue != null) { + dropdownValue = newValue; + } + }); + }, + items: ['One', 'Two', 'Free', 'Four'] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value)); + }) + .toList(), +); +// END + + +// START buttons_icon +// Member variable holding toggle value. +late bool value = true; + +// Toggleable icon button. +IconButton( + icon: const Icon(Icons.thumb_up), + onPressed: () { + setState(() => value = !value); + }, + color: value ? Theme.of(context).primaryColor : null, +); +// END + + +// START buttons_action +// Floating action button in Scaffold. +Scaffold( + appBar: AppBar( + title: const Text('Demo'), + ), + floatingActionButton: const FloatingActionButton( + onPressed: null, + child: Icon(Icons.add), + ), +); +// END + } +} + + +class SelectionControls { + void setState(VoidCallback callback) { } + + void selectionControls() { + +// START selectioncontrols_checkbox +// Member variable holding the checkbox's value. +bool? checkboxValue = false; + +// Create a checkbox. +Checkbox( + value: checkboxValue, + onChanged: (bool? value) { + setState(() { + checkboxValue = value; + }); + }, +); + +// Create a tristate checkbox. +Checkbox( + tristate: true, + value: checkboxValue, + onChanged: (bool? value) { + setState(() { + checkboxValue = value; + }); + }, +); + +// Create a disabled checkbox. +// Checkboxes are disabled when onChanged isn't +// specified or null. +const Checkbox(value: false, onChanged: null); +// END + + +// START selectioncontrols_radio +// Member variable holding value. +int? radioValue = 0; + +// Method setting value. +void handleRadioValueChanged(int? value) { + setState(() { + radioValue = value; + }); +} + +// Creates a set of radio buttons. +Row( + children: [ + Radio( + value: 0, + groupValue: radioValue, + onChanged: handleRadioValueChanged, + ), + Radio( + value: 1, + groupValue: radioValue, + onChanged: handleRadioValueChanged, + ), + Radio( + value: 2, + groupValue: radioValue, + onChanged: handleRadioValueChanged, + ), + ], +); + +// Creates a disabled radio button. +const Radio( + value: 0, + groupValue: 0, + onChanged: null, +); +// END + + +// START selectioncontrols_switch +// Member variable holding value. +bool switchValue = false; + +// Create a switch. +Switch( + value: switchValue, + onChanged: (bool value) { + setState(() { + switchValue = value; + } + ); +}); + +// Create a disabled switch. +// Switches are disabled when onChanged isn't +// specified or null. +const Switch(value: false, onChanged: null); +// END + } +} + + +class GridLists { + void gridlists() { +// START gridlists +// Creates a scrollable grid list with images +// loaded from the web. +GridView.count( + crossAxisCount: 3, + padding: const EdgeInsets.all(4.0), + mainAxisSpacing: 4.0, + crossAxisSpacing: 4.0, + children: [ + 'https://example.com/image-0.jpg', + 'https://example.com/image-1.jpg', + 'https://example.com/image-2.jpg', + '...', + 'https://example.com/image-n.jpg', + ].map((String url) { + return GridTile( + footer: GridTileBar( + title: Text(url), + ), + child: Image.network(url, fit: BoxFit.cover), + ); + }).toList(), +); +// END + } +} + + +class AnimatedImage { + void animatedImage() { +// START animated_image +Image.network('https://example.com/animated-image.gif'); +// END + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code_parser.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code_parser.dart new file mode 100644 index 0000000000000000000000000000000000000000..1f06984ec0659c5babaf273b245c2fc6c0c3d379 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/example_code_parser.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/services.dart'; + +const String _kStartTag = '// START '; +const String _kEndTag = '// END'; + +Map? _exampleCode; + +Future getExampleCode(String? tag, AssetBundle bundle) async { + if (_exampleCode == null) { + await _parseExampleCode(bundle); + } + return _exampleCode![tag]; +} + +Future _parseExampleCode(AssetBundle bundle) async { + final String code = await bundle.loadString('lib/gallery/example_code.dart'); + _exampleCode = {}; + + final List lines = code.split('\n'); + + List? codeBlock; + String? codeTag; + + for (final String line in lines) { + if (codeBlock == null) { + // Outside a block. + if (line.startsWith(_kStartTag)) { + // Starting a new code block. + codeBlock = []; + codeTag = line.substring(_kStartTag.length).trim(); + } else { + // Just skipping the line. + } + } else { + // Inside a block. + if (line.startsWith(_kEndTag)) { + // Add the block. + _exampleCode![codeTag] = codeBlock.join('\n'); + codeBlock = null; + codeTag = null; + } else { + // Add to the current block + // trimRight() to remove any \r on Windows + // without removing any useful indentation + codeBlock.add(line.trimRight()); + } + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/home.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..4a5f01fede8de863d5cd2ddf88495a77733d6b67 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/home.dart @@ -0,0 +1,405 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:developer'; +import 'dart:math' as math; + +import 'package:flutter/gestures.dart' show DragStartBehavior; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +import 'backdrop.dart'; +import 'demos.dart'; + +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; +const Color _kFlutterBlue = Color(0xFF003D75); +const double _kDemoItemHeight = 64.0; +const Duration _kFrontLayerSwitchDuration = Duration(milliseconds: 300); + +class _FlutterLogo extends StatelessWidget { + const _FlutterLogo(); + + @override + Widget build(BuildContext context) { + return Center( + child: Container( + width: 34.0, + height: 34.0, + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage( + 'logos/flutter_white/logo.png', + package: _kGalleryAssetsPackage, + ), + ), + ), + ), + ); + } +} + +class _CategoryItem extends StatelessWidget { + const _CategoryItem({ + this.category, + this.onTap, + }); + + final GalleryDemoCategory? category; + final VoidCallback? onTap; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final bool isDark = theme.brightness == Brightness.dark; + + // This repaint boundary prevents the entire _CategoriesPage from being + // repainted when the button's ink splash animates. + return RepaintBoundary( + child: RawMaterialButton( + hoverColor: theme.primaryColor.withOpacity(0.05), + splashColor: theme.primaryColor.withOpacity(0.12), + highlightColor: Colors.transparent, + onPressed: onTap, + child: Column( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Padding( + padding: const EdgeInsets.all(6.0), + child: Icon( + category!.icon, + size: 60.0, + color: isDark ? Colors.white : _kFlutterBlue, + ), + ), + const SizedBox(height: 10.0), + Container( + height: 48.0, + alignment: Alignment.center, + child: Text( + category!.name, + textAlign: TextAlign.center, + style: theme.textTheme.titleMedium!.copyWith( + fontFamily: 'GoogleSans', + color: isDark ? Colors.white : _kFlutterBlue, + ), + ), + ), + ], + ), + ), + ); + } +} + +class _CategoriesPage extends StatelessWidget { + const _CategoriesPage({ + this.categories, + this.onCategoryTap, + }); + + final Iterable? categories; + final ValueChanged? onCategoryTap; + + @override + Widget build(BuildContext context) { + const double aspectRatio = 160.0 / 180.0; + final List categoriesList = categories!.toList(); + final int columnCount = (MediaQuery.of(context).orientation == Orientation.portrait) ? 2 : 3; + + return Semantics( + scopesRoute: true, + namesRoute: true, + label: 'categories', + explicitChildNodes: true, + child: SingleChildScrollView( + key: const PageStorageKey('categories'), + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final double columnWidth = constraints.biggest.width / columnCount.toDouble(); + final double rowHeight = math.min(225.0, columnWidth * aspectRatio); + final int rowCount = (categories!.length + columnCount - 1) ~/ columnCount; + + // This repaint boundary prevents the inner contents of the front layer + // from repainting when the backdrop toggle triggers a repaint on the + // LayoutBuilder. + return RepaintBoundary( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: List.generate(rowCount, (int rowIndex) { + final int columnCountForRow = rowIndex == rowCount - 1 + ? categories!.length - columnCount * math.max(0, rowCount - 1) + : columnCount; + + return Row( + children: List.generate(columnCountForRow, (int columnIndex) { + final int index = rowIndex * columnCount + columnIndex; + final GalleryDemoCategory category = categoriesList[index]; + + return SizedBox( + width: columnWidth, + height: rowHeight, + child: _CategoryItem( + category: category, + onTap: () { + onCategoryTap!(category); + }, + ), + ); + }), + ); + }), + ), + ); + }, + ), + ), + ); + } +} + +class _DemoItem extends StatelessWidget { + const _DemoItem({ this.demo }); + + final GalleryDemo? demo; + + void _launchDemo(BuildContext context) { + if (demo != null) { + Timeline.instantSync('Start Transition', arguments: { + 'from': '/', + 'to': demo!.routeName, + }); + Navigator.pushNamed(context, demo!.routeName); + } + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final bool isDark = theme.brightness == Brightness.dark; + // ignore: deprecated_member_use, https://github.com/flutter/flutter/issues/128825 + final double textScaleFactor = MediaQuery.textScalerOf(context).textScaleFactor; + return RawMaterialButton( + splashColor: theme.primaryColor.withOpacity(0.12), + highlightColor: Colors.transparent, + onPressed: () { + _launchDemo(context); + }, + child: Container( + constraints: BoxConstraints(minHeight: _kDemoItemHeight * textScaleFactor), + child: Row( + children: [ + Container( + width: 56.0, + height: 56.0, + alignment: Alignment.center, + child: Icon( + demo!.icon, + size: 24.0, + color: isDark ? Colors.white : _kFlutterBlue, + ), + ), + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Text( + demo!.title, + style: theme.textTheme.titleMedium!.copyWith( + color: isDark ? Colors.white : const Color(0xFF202124), + ), + ), + if (demo!.subtitle != null) + Text( + demo!.subtitle!, + style: theme.textTheme.bodyMedium!.copyWith( + color: isDark ? Colors.white : const Color(0xFF60646B) + ), + ), + ], + ), + ), + const SizedBox(width: 44.0), + ], + ), + ), + ); + } +} + +class _DemosPage extends StatelessWidget { + const _DemosPage(this.category); + + final GalleryDemoCategory? category; + + @override + Widget build(BuildContext context) { + // When overriding ListView.padding, it is necessary to manually handle + // safe areas. + final double windowBottomPadding = MediaQuery.of(context).padding.bottom; + return KeyedSubtree( + key: const ValueKey('GalleryDemoList'), // So the tests can find this ListView + child: Semantics( + scopesRoute: true, + namesRoute: true, + label: category!.name, + explicitChildNodes: true, + child: ListView( + dragStartBehavior: DragStartBehavior.down, + key: PageStorageKey(category!.name), + padding: EdgeInsets.only(top: 8.0, bottom: windowBottomPadding), + children: kGalleryCategoryToDemos[category!]!.map((GalleryDemo demo) { + return _DemoItem(demo: demo); + }).toList(), + ), + ), + ); + } +} + +class GalleryHome extends StatefulWidget { + const GalleryHome({ + super.key, + this.testMode = false, + this.optionsPage, + }); + + final Widget? optionsPage; + final bool testMode; + + // In checked mode our MaterialApp will show the default "debug" banner. + // Otherwise show the "preview" banner. + static bool showPreviewBanner = true; + + @override + State createState() => _GalleryHomeState(); +} + +class _GalleryHomeState extends State with SingleTickerProviderStateMixin { + static final GlobalKey _scaffoldKey = GlobalKey(); + late AnimationController _controller; + GalleryDemoCategory? _category; + + static Widget _topHomeLayout(Widget? currentChild, List previousChildren) { + return Stack( + alignment: Alignment.topCenter, + children: [ + ...previousChildren, + if (currentChild != null) currentChild, + ], + ); + } + + static const AnimatedSwitcherLayoutBuilder _centerHomeLayout = AnimatedSwitcher.defaultLayoutBuilder; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 600), + debugLabel: 'preview banner', + vsync: this, + )..forward(); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final bool isDark = theme.brightness == Brightness.dark; + final MediaQueryData media = MediaQuery.of(context); + final bool centerHome = media.orientation == Orientation.portrait && media.size.height < 800.0; + + const Curve switchOutCurve = Interval(0.4, 1.0, curve: Curves.fastOutSlowIn); + const Curve switchInCurve = Interval(0.4, 1.0, curve: Curves.fastOutSlowIn); + + Widget home = Scaffold( + key: _scaffoldKey, + backgroundColor: isDark ? _kFlutterBlue : theme.primaryColor, + body: SafeArea( + bottom: false, + child: PopScope( + canPop: _category == null, + onPopInvoked: (bool didPop) { + if (didPop) { + return; + } + // Pop the category page if Android back button is pressed. + setState(() => _category = null); + }, + child: Backdrop( + backTitle: const Text('Options'), + backLayer: widget.optionsPage, + frontAction: AnimatedSwitcher( + duration: _kFrontLayerSwitchDuration, + switchOutCurve: switchOutCurve, + switchInCurve: switchInCurve, + child: _category == null + ? const _FlutterLogo() + : IconButton( + icon: const BackButtonIcon(), + tooltip: 'Back', + onPressed: () => setState(() => _category = null), + ), + ), + frontTitle: AnimatedSwitcher( + duration: _kFrontLayerSwitchDuration, + child: _category == null + ? const Text('Flutter gallery') + : Text(_category!.name), + ), + frontHeading: widget.testMode ? null : Container(height: 24.0), + frontLayer: AnimatedSwitcher( + duration: _kFrontLayerSwitchDuration, + switchOutCurve: switchOutCurve, + switchInCurve: switchInCurve, + layoutBuilder: centerHome ? _centerHomeLayout : _topHomeLayout, + child: _category != null + ? _DemosPage(_category) + : _CategoriesPage( + categories: kAllGalleryDemoCategories, + onCategoryTap: (GalleryDemoCategory category) { + setState(() => _category = category); + }, + ), + ), + ), + ), + ), + ); + + assert(() { + GalleryHome.showPreviewBanner = false; + return true; + }()); + + if (GalleryHome.showPreviewBanner) { + home = Stack( + fit: StackFit.expand, + children: [ + home, + FadeTransition( + opacity: CurvedAnimation(parent: _controller, curve: Curves.easeInOut), + child: const Banner( + message: 'PREVIEW', + location: BannerLocation.topEnd, + ), + ), + ], + ); + } + home = AnnotatedRegion( + value: SystemUiOverlayStyle.light, + child: home, + ); + + return home; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart new file mode 100644 index 0000000000000000000000000000000000000000..0d2cce543bf522a187f1be2c0fa86b219fb556df --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +abstract final class GalleryIcons { + static const IconData tooltip = IconData(0xe900, fontFamily: 'GalleryIcons'); + static const IconData text_fields_alt = IconData(0xe901, fontFamily: 'GalleryIcons'); + static const IconData tabs = IconData(0xe902, fontFamily: 'GalleryIcons'); + static const IconData switches = IconData(0xe903, fontFamily: 'GalleryIcons'); + static const IconData sliders = IconData(0xe904, fontFamily: 'GalleryIcons'); + static const IconData shrine = IconData(0xe905, fontFamily: 'GalleryIcons'); + static const IconData sentiment_very_satisfied = IconData(0xe906, fontFamily: 'GalleryIcons'); + static const IconData refresh = IconData(0xe907, fontFamily: 'GalleryIcons'); + static const IconData progress_activity = IconData(0xe908, fontFamily: 'GalleryIcons'); + static const IconData phone_iphone = IconData(0xe909, fontFamily: 'GalleryIcons'); + static const IconData page_control = IconData(0xe90a, fontFamily: 'GalleryIcons'); + static const IconData more_vert = IconData(0xe90b, fontFamily: 'GalleryIcons'); + static const IconData menu = IconData(0xe90c, fontFamily: 'GalleryIcons'); + static const IconData list_alt = IconData(0xe90d, fontFamily: 'GalleryIcons'); + static const IconData grid_on = IconData(0xe90e, fontFamily: 'GalleryIcons'); + static const IconData expand_all = IconData(0xe90f, fontFamily: 'GalleryIcons'); + static const IconData event = IconData(0xe910, fontFamily: 'GalleryIcons'); + static const IconData drive_video = IconData(0xe911, fontFamily: 'GalleryIcons'); + static const IconData dialogs = IconData(0xe912, fontFamily: 'GalleryIcons'); + static const IconData data_table = IconData(0xe913, fontFamily: 'GalleryIcons'); + static const IconData custom_typography = IconData(0xe914, fontFamily: 'GalleryIcons'); + static const IconData colors = IconData(0xe915, fontFamily: 'GalleryIcons'); + static const IconData chips = IconData(0xe916, fontFamily: 'GalleryIcons'); + static const IconData check_box = IconData(0xe917, fontFamily: 'GalleryIcons'); + static const IconData cards = IconData(0xe918, fontFamily: 'GalleryIcons'); + static const IconData buttons = IconData(0xe919, fontFamily: 'GalleryIcons'); + static const IconData bottom_sheets = IconData(0xe91a, fontFamily: 'GalleryIcons'); + static const IconData bottom_navigation = IconData(0xe91b, fontFamily: 'GalleryIcons'); + static const IconData animation = IconData(0xe91c, fontFamily: 'GalleryIcons'); + static const IconData account_box = IconData(0xe91d, fontFamily: 'GalleryIcons'); + static const IconData snackbar = IconData(0xe91e, fontFamily: 'GalleryIcons'); + static const IconData category_mdc = IconData(0xe91f, fontFamily: 'GalleryIcons'); + static const IconData cupertino_progress = IconData(0xe920, fontFamily: 'GalleryIcons'); + static const IconData cupertino_pull_to_refresh = IconData(0xe921, fontFamily: 'GalleryIcons'); + static const IconData cupertino_switch = IconData(0xe922, fontFamily: 'GalleryIcons'); + static const IconData generic_buttons = IconData(0xe923, fontFamily: 'GalleryIcons'); + static const IconData backdrop = IconData(0xe924, fontFamily: 'GalleryIcons'); + static const IconData bottom_app_bar = IconData(0xe925, fontFamily: 'GalleryIcons'); + static const IconData bottom_sheet_persistent = IconData(0xe926, fontFamily: 'GalleryIcons'); + static const IconData lists_leave_behind = IconData(0xe927, fontFamily: 'GalleryIcons'); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/options.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/options.dart new file mode 100644 index 0000000000000000000000000000000000000000..8e195a69162442d23ca8e4a9cd70a4d46a6b5b87 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/options.dart @@ -0,0 +1,539 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'about.dart'; +import 'scales.dart'; + +@immutable +class GalleryOptions { + const GalleryOptions({ + this.themeMode, + this.textScaleFactor, + this.visualDensity, + this.textDirection = TextDirection.ltr, + this.timeDilation = 1.0, + this.platform, + this.showOffscreenLayersCheckerboard = false, + this.showRasterCacheImagesCheckerboard = false, + this.showPerformanceOverlay = false, + }); + + final ThemeMode? themeMode; + final GalleryTextScaleValue? textScaleFactor; + final GalleryVisualDensityValue? visualDensity; + final TextDirection textDirection; + final double timeDilation; + final TargetPlatform? platform; + final bool showPerformanceOverlay; + final bool showRasterCacheImagesCheckerboard; + final bool showOffscreenLayersCheckerboard; + + GalleryOptions copyWith({ + ThemeMode? themeMode, + GalleryTextScaleValue? textScaleFactor, + GalleryVisualDensityValue? visualDensity, + TextDirection? textDirection, + double? timeDilation, + TargetPlatform? platform, + bool? showPerformanceOverlay, + bool? showRasterCacheImagesCheckerboard, + bool? showOffscreenLayersCheckerboard, + }) { + return GalleryOptions( + themeMode: themeMode ?? this.themeMode, + textScaleFactor: textScaleFactor ?? this.textScaleFactor, + visualDensity: visualDensity ?? this.visualDensity, + textDirection: textDirection ?? this.textDirection, + timeDilation: timeDilation ?? this.timeDilation, + platform: platform ?? this.platform, + showPerformanceOverlay: showPerformanceOverlay ?? this.showPerformanceOverlay, + showOffscreenLayersCheckerboard: showOffscreenLayersCheckerboard ?? this.showOffscreenLayersCheckerboard, + showRasterCacheImagesCheckerboard: showRasterCacheImagesCheckerboard ?? this.showRasterCacheImagesCheckerboard, + ); + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is GalleryOptions + && other.themeMode == themeMode + && other.textScaleFactor == textScaleFactor + && other.visualDensity == visualDensity + && other.textDirection == textDirection + && other.platform == platform + && other.showPerformanceOverlay == showPerformanceOverlay + && other.showRasterCacheImagesCheckerboard == showRasterCacheImagesCheckerboard + && other.showOffscreenLayersCheckerboard == showRasterCacheImagesCheckerboard; + } + + @override + int get hashCode => Object.hash( + themeMode, + textScaleFactor, + visualDensity, + textDirection, + timeDilation, + platform, + showPerformanceOverlay, + showRasterCacheImagesCheckerboard, + showOffscreenLayersCheckerboard, + ); + + @override + String toString() { + return '$runtimeType($themeMode)'; + } +} + +const double _kItemHeight = 48.0; +const EdgeInsetsDirectional _kItemPadding = EdgeInsetsDirectional.only(start: 56.0); + +class _OptionsItem extends StatelessWidget { + const _OptionsItem({ this.child }); + + final Widget? child; + + @override + Widget build(BuildContext context) { + // ignore: deprecated_member_use, https://github.com/flutter/flutter/issues/128825 + final double textScaleFactor = MediaQuery.textScalerOf(context).textScaleFactor; + + return MergeSemantics( + child: Container( + constraints: BoxConstraints(minHeight: _kItemHeight * textScaleFactor), + padding: _kItemPadding, + alignment: AlignmentDirectional.centerStart, + child: DefaultTextStyle( + style: DefaultTextStyle.of(context).style, + maxLines: 2, + overflow: TextOverflow.fade, + child: IconTheme( + data: Theme.of(context).primaryIconTheme, + child: child!, + ), + ), + ), + ); + } +} + +class _BooleanItem extends StatelessWidget { + const _BooleanItem(this.title, this.value, this.onChanged, { this.switchKey }); + + final String title; + final bool value; + final ValueChanged onChanged; + // [switchKey] is used for accessing the switch from driver tests. + final Key? switchKey; + + @override + Widget build(BuildContext context) { + final bool isDark = Theme.of(context).brightness == Brightness.dark; + return _OptionsItem( + child: Row( + children: [ + Expanded(child: Text(title)), + Switch( + key: switchKey, + value: value, + onChanged: onChanged, + activeColor: const Color(0xFF39CEFD), + activeTrackColor: isDark ? Colors.white30 : Colors.black26, + ), + ], + ), + ); + } +} + +class _ActionItem extends StatelessWidget { + const _ActionItem(this.text, this.onTap); + + final String text; + final VoidCallback? onTap; + + @override + Widget build(BuildContext context) { + return _OptionsItem( + child: _TextButton( + onPressed: onTap, + child: Text(text), + ), + ); + } +} + +class _TextButton extends StatelessWidget { + const _TextButton({ this.onPressed, this.child }); + + final VoidCallback? onPressed; + final Widget? child; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return TextButton( + style: TextButton.styleFrom( + foregroundColor: theme.colorScheme.onPrimary, + textStyle: theme.textTheme.titleMedium, + padding: EdgeInsets.zero, + ), + onPressed: onPressed, + child: child!, + ); + } +} + +class _Heading extends StatelessWidget { + const _Heading(this.text); + + final String text; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return _OptionsItem( + child: DefaultTextStyle( + style: theme.textTheme.titleLarge!.copyWith( + fontFamily: 'GoogleSans', + color: theme.colorScheme.onPrimary, + fontWeight: FontWeight.w700, + ), + child: Semantics( + header: true, + child: Text(text), + ), + ), + ); + } +} + +class _ThemeModeItem extends StatelessWidget { + const _ThemeModeItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + static final Map modeLabels = { + ThemeMode.system: 'System Default', + ThemeMode.light: 'Light', + ThemeMode.dark: 'Dark', + }; + + @override + Widget build(BuildContext context) { + return _OptionsItem( + child: Row( + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Theme'), + Text( + modeLabels[options!.themeMode!]!, + style: Theme.of(context).primaryTextTheme.bodyMedium, + ), + ], + ), + ), + PopupMenuButton( + padding: const EdgeInsetsDirectional.only(end: 16.0), + icon: const Icon(Icons.arrow_drop_down), + initialValue: options!.themeMode, + itemBuilder: (BuildContext context) { + return ThemeMode.values.map>((ThemeMode mode) { + return PopupMenuItem( + value: mode, + child: Text(modeLabels[mode]!), + ); + }).toList(); + }, + onSelected: (ThemeMode mode) { + onOptionsChanged!( + options!.copyWith(themeMode: mode), + ); + }, + ), + ], + ), + ); + } +} + +class _TextScaleFactorItem extends StatelessWidget { + const _TextScaleFactorItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + @override + Widget build(BuildContext context) { + return _OptionsItem( + child: Row( + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Text size'), + Text( + options!.textScaleFactor!.label, + style: Theme.of(context).primaryTextTheme.bodyMedium, + ), + ], + ), + ), + PopupMenuButton( + padding: const EdgeInsetsDirectional.only(end: 16.0), + icon: const Icon(Icons.arrow_drop_down), + itemBuilder: (BuildContext context) { + return kAllGalleryTextScaleValues.map>((GalleryTextScaleValue scaleValue) { + return PopupMenuItem( + value: scaleValue, + child: Text(scaleValue.label), + ); + }).toList(); + }, + onSelected: (GalleryTextScaleValue scaleValue) { + onOptionsChanged!( + options!.copyWith(textScaleFactor: scaleValue), + ); + }, + ), + ], + ), + ); + } +} + +class _VisualDensityItem extends StatelessWidget { + const _VisualDensityItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + @override + Widget build(BuildContext context) { + return _OptionsItem( + child: Row( + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Visual density'), + Text( + options!.visualDensity!.label, + style: Theme.of(context).primaryTextTheme.bodyMedium, + ), + ], + ), + ), + PopupMenuButton( + padding: const EdgeInsetsDirectional.only(end: 16.0), + icon: const Icon(Icons.arrow_drop_down), + itemBuilder: (BuildContext context) { + return kAllGalleryVisualDensityValues.map>((GalleryVisualDensityValue densityValue) { + return PopupMenuItem( + value: densityValue, + child: Text(densityValue.label), + ); + }).toList(); + }, + onSelected: (GalleryVisualDensityValue densityValue) { + onOptionsChanged!( + options!.copyWith(visualDensity: densityValue), + ); + }, + ), + ], + ), + ); + } +} + +class _TextDirectionItem extends StatelessWidget { + const _TextDirectionItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + @override + Widget build(BuildContext context) { + return _BooleanItem( + 'Force RTL', + options!.textDirection == TextDirection.rtl, + (bool value) { + onOptionsChanged!( + options!.copyWith( + textDirection: value ? TextDirection.rtl : TextDirection.ltr, + ), + ); + }, + switchKey: const Key('text_direction'), + ); + } +} + +class _TimeDilationItem extends StatelessWidget { + const _TimeDilationItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + @override + Widget build(BuildContext context) { + return _BooleanItem( + 'Slow motion', + options!.timeDilation != 1.0, + (bool value) { + onOptionsChanged!( + options!.copyWith( + timeDilation: value ? 20.0 : 1.0, + ), + ); + }, + switchKey: const Key('slow_motion'), + ); + } +} + +class _PlatformItem extends StatelessWidget { + const _PlatformItem(this.options, this.onOptionsChanged); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + + String _platformLabel(TargetPlatform platform) { + return switch (platform) { + TargetPlatform.android => 'Mountain View', + TargetPlatform.fuchsia => 'Fuchsia', + TargetPlatform.iOS => 'Cupertino', + TargetPlatform.linux => 'Material Desktop (linux)', + TargetPlatform.macOS => 'Material Desktop (macOS)', + TargetPlatform.windows => 'Material Desktop (Windows)', + }; + } + + @override + Widget build(BuildContext context) { + return _OptionsItem( + child: Row( + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Platform mechanics'), + Text( + _platformLabel(options!.platform!), + style: Theme.of(context).primaryTextTheme.bodyMedium, + ), + ], + ), + ), + PopupMenuButton( + padding: const EdgeInsetsDirectional.only(end: 16.0), + icon: const Icon(Icons.arrow_drop_down), + itemBuilder: (BuildContext context) { + return TargetPlatform.values.map((TargetPlatform platform) { + return PopupMenuItem( + value: platform, + child: Text(_platformLabel(platform)), + ); + }).toList(); + }, + onSelected: (TargetPlatform platform) { + onOptionsChanged!( + options!.copyWith(platform: platform), + ); + }, + ), + ], + ), + ); + } +} + +class GalleryOptionsPage extends StatelessWidget { + const GalleryOptionsPage({ + super.key, + this.options, + this.onOptionsChanged, + this.onSendFeedback, + }); + + final GalleryOptions? options; + final ValueChanged? onOptionsChanged; + final VoidCallback? onSendFeedback; + + List _enabledDiagnosticItems() { + // Boolean showFoo options with a value of null: don't display + // the showFoo option at all. + if (options == null) { + return const []; + } + + return [ + const Divider(), + const _Heading('Diagnostics'), + _BooleanItem( + 'Highlight offscreen layers', + options!.showOffscreenLayersCheckerboard, + (bool value) { + onOptionsChanged!(options!.copyWith(showOffscreenLayersCheckerboard: value)); + }, + ), + _BooleanItem( + 'Highlight raster cache images', + options!.showRasterCacheImagesCheckerboard, + (bool value) { + onOptionsChanged!(options!.copyWith(showRasterCacheImagesCheckerboard: value)); + }, + ), + _BooleanItem( + 'Show performance overlay', + options!.showPerformanceOverlay, + (bool value) { + onOptionsChanged!(options!.copyWith(showPerformanceOverlay: value)); + }, + ), + ]; + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + return DefaultTextStyle( + style: theme.primaryTextTheme.titleMedium!, + child: ListView( + padding: const EdgeInsets.only(bottom: 124.0), + children: [ + const _Heading('Display'), + _ThemeModeItem(options, onOptionsChanged), + _TextScaleFactorItem(options, onOptionsChanged), + _VisualDensityItem(options, onOptionsChanged), + _TextDirectionItem(options, onOptionsChanged), + _TimeDilationItem(options, onOptionsChanged), + const Divider(), + const ExcludeSemantics(child: _Heading('Platform mechanics')), + _PlatformItem(options, onOptionsChanged), + ..._enabledDiagnosticItems(), + const Divider(), + const _Heading('Flutter gallery'), + _ActionItem('About Flutter Gallery', () { + showGalleryAboutDialog(context); + }), + _ActionItem('Send feedback', onSendFeedback), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/scales.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/scales.dart new file mode 100644 index 0000000000000000000000000000000000000000..ba2dc28b0bdbe28cb6be273238045e811165f831 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/scales.dart @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +@immutable +class GalleryTextScaleValue { + const GalleryTextScaleValue(this.scale, this.label); + + final double? scale; + final String label; + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is GalleryTextScaleValue + && other.scale == scale + && other.label == label; + } + + @override + int get hashCode => Object.hash(scale, label); + + @override + String toString() { + return '$runtimeType($label)'; + } + +} + +const List kAllGalleryTextScaleValues = [ + GalleryTextScaleValue(null, 'System Default'), + GalleryTextScaleValue(0.8, 'Small'), + GalleryTextScaleValue(1.0, 'Normal'), + GalleryTextScaleValue(1.3, 'Large'), + GalleryTextScaleValue(2.0, 'Huge'), +]; + +@immutable +class GalleryVisualDensityValue { + const GalleryVisualDensityValue(this.visualDensity, this.label); + + final VisualDensity visualDensity; + final String label; + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is GalleryVisualDensityValue + && other.visualDensity == visualDensity + && other.label == label; + } + + @override + int get hashCode => Object.hash(visualDensity, label); + + @override + String toString() { + return '$runtimeType($label)'; + } + +} + +const List kAllGalleryVisualDensityValues = [ + GalleryVisualDensityValue(VisualDensity.standard, 'System Default'), + GalleryVisualDensityValue(VisualDensity.comfortable, 'Comfortable'), + GalleryVisualDensityValue(VisualDensity.compact, 'Compact'), + GalleryVisualDensityValue(VisualDensity(horizontal: -3, vertical: -3), 'Very Compact'), +]; diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/syntax_highlighter.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/syntax_highlighter.dart new file mode 100644 index 0000000000000000000000000000000000000000..d81430e5f99a50505e523a99c90abd11237ce2f9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/syntax_highlighter.dart @@ -0,0 +1,362 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:string_scanner/string_scanner.dart'; + +class SyntaxHighlighterStyle { + SyntaxHighlighterStyle({ + this.baseStyle, + this.numberStyle, + this.commentStyle, + this.keywordStyle, + this.stringStyle, + this.punctuationStyle, + this.classStyle, + this.constantStyle, + }); + + static SyntaxHighlighterStyle lightThemeStyle() { + return SyntaxHighlighterStyle( + baseStyle: const TextStyle(color: Color(0xFF000000)), + numberStyle: const TextStyle(color: Color(0xFF1565C0)), + commentStyle: const TextStyle(color: Color(0xFF9E9E9E)), + keywordStyle: const TextStyle(color: Color(0xFF9C27B0)), + stringStyle: const TextStyle(color: Color(0xFF43A047)), + punctuationStyle: const TextStyle(color: Color(0xFF000000)), + classStyle: const TextStyle(color: Color(0xFF512DA8)), + constantStyle: const TextStyle(color: Color(0xFF795548)), + ); + } + + static SyntaxHighlighterStyle darkThemeStyle() { + return SyntaxHighlighterStyle( + baseStyle: const TextStyle(color: Color(0xFFFFFFFF)), + numberStyle: const TextStyle(color: Color(0xFF1565C0)), + commentStyle: const TextStyle(color: Color(0xFF9E9E9E)), + keywordStyle: const TextStyle(color: Color(0xFF80CBC4)), + stringStyle: const TextStyle(color: Color(0xFF009688)), + punctuationStyle: const TextStyle(color: Color(0xFFFFFFFF)), + classStyle: const TextStyle(color: Color(0xFF009688)), + constantStyle: const TextStyle(color: Color(0xFF795548)), + ); + } + + final TextStyle? baseStyle; + final TextStyle? numberStyle; + final TextStyle? commentStyle; + final TextStyle? keywordStyle; + final TextStyle? stringStyle; + final TextStyle? punctuationStyle; + final TextStyle? classStyle; + final TextStyle? constantStyle; +} + +abstract class SyntaxHighlighter { + TextSpan format(String src); +} + +class DartSyntaxHighlighter extends SyntaxHighlighter { + DartSyntaxHighlighter([this._style]) { + _spans = <_HighlightSpan>[]; + _style ??= SyntaxHighlighterStyle.darkThemeStyle(); + } + + SyntaxHighlighterStyle? _style; + + static const List _keywords = [ + 'abstract', 'as', 'assert', 'async', 'await', 'break', 'case', 'catch', + 'class', 'const', 'continue', 'default', 'deferred', 'do', 'dynamic', 'else', + 'enum', 'export', 'external', 'extends', 'factory', 'false', 'final', + 'finally', 'for', 'get', 'if', 'implements', 'import', 'in', 'is', 'library', + 'new', 'null', 'operator', 'part', 'rethrow', 'return', 'set', 'static', + 'super', 'switch', 'sync', 'this', 'throw', 'true', 'try', 'typedef', 'var', + 'void', 'while', 'with', 'yield', + ]; + + static const List _builtInTypes = [ + 'int', 'double', 'num', 'bool', + ]; + + String? _src; + late StringScanner _scanner; + + late List<_HighlightSpan> _spans; + + @override + TextSpan format(String? src) { + _src = src; + _scanner = StringScanner(_src!); + + if (_generateSpans()) { + // Successfully parsed the code + final List formattedText = []; + int currentPosition = 0; + + for (final _HighlightSpan span in _spans) { + if (currentPosition != span.start) { + formattedText.add(TextSpan(text: _src!.substring(currentPosition, span.start))); + } + + formattedText.add(TextSpan(style: span.textStyle(_style), text: span.textForSpan(_src!))); + + currentPosition = span.end; + } + + if (currentPosition != _src!.length) { + formattedText.add(TextSpan(text: _src!.substring(currentPosition, _src!.length))); + } + + return TextSpan(style: _style!.baseStyle, children: formattedText); + } else { + // Parsing failed, return with only basic formatting + return TextSpan(style: _style!.baseStyle, text: src); + } + } + + bool _generateSpans() { + int lastLoopPosition = _scanner.position; + + while (!_scanner.isDone) { + // Skip White space + _scanner.scan(RegExp(r'\s+')); + + // Block comments + if (_scanner.scan(RegExp(r'/\*(.|\n)*\*/'))) { + _spans.add(_HighlightSpan( + _HighlightType.comment, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Line comments + if (_scanner.scan('//')) { + final int startComment = _scanner.lastMatch!.start; + + bool eof = false; + int endComment; + if (_scanner.scan(RegExp(r'.*\n'))) { + endComment = _scanner.lastMatch!.end - 1; + } else { + eof = true; + endComment = _src!.length; + } + + _spans.add(_HighlightSpan( + _HighlightType.comment, + startComment, + endComment, + )); + + if (eof) { + break; + } + + continue; + } + + // Raw r"String" + if (_scanner.scan(RegExp(r'r".*"'))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Raw r'String' + if (_scanner.scan(RegExp(r"r'.*'"))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Multiline """String""" + if (_scanner.scan(RegExp(r'"""(?:[^"\\]|\\(.|\n))*"""'))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Multiline '''String''' + if (_scanner.scan(RegExp(r"'''(?:[^'\\]|\\(.|\n))*'''"))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // "String" + if (_scanner.scan(RegExp(r'"(?:[^"\\]|\\.)*"'))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // 'String' + if (_scanner.scan(RegExp(r"'(?:[^'\\]|\\.)*'"))) { + _spans.add(_HighlightSpan( + _HighlightType.string, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Double + if (_scanner.scan(RegExp(r'\d+\.\d+'))) { + _spans.add(_HighlightSpan( + _HighlightType.number, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Integer + if (_scanner.scan(RegExp(r'\d+'))) { + _spans.add(_HighlightSpan( + _HighlightType.number, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end) + ); + continue; + } + + // Punctuation + if (_scanner.scan(RegExp(r'[\[\]{}().!=<>&\|\?\+\-\*/%\^~;:,]'))) { + _spans.add(_HighlightSpan( + _HighlightType.punctuation, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Meta data + if (_scanner.scan(RegExp(r'@\w+'))) { + _spans.add(_HighlightSpan( + _HighlightType.keyword, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + continue; + } + + // Words + if (_scanner.scan(RegExp(r'\w+'))) { + _HighlightType? type; + + String word = _scanner.lastMatch![0]!; + if (word.startsWith('_')) { + word = word.substring(1); + } + + if (_keywords.contains(word)) { + type = _HighlightType.keyword; + } else if (_builtInTypes.contains(word)) { + type = _HighlightType.keyword; + } else if (_firstLetterIsUpperCase(word)) { + type = _HighlightType.klass; + } else if (word.length >= 2 && word.startsWith('k') && _firstLetterIsUpperCase(word.substring(1))) { + type = _HighlightType.constant; + } + + if (type != null) { + _spans.add(_HighlightSpan( + type, + _scanner.lastMatch!.start, + _scanner.lastMatch!.end, + )); + } + } + + // Check if this loop did anything + if (lastLoopPosition == _scanner.position) { + // Failed to parse this file, abort gracefully + return false; + } + lastLoopPosition = _scanner.position; + } + + _simplify(); + return true; + } + + void _simplify() { + for (int i = _spans.length - 2; i >= 0; i -= 1) { + if (_spans[i].type == _spans[i + 1].type && _spans[i].end == _spans[i + 1].start) { + _spans[i] = _HighlightSpan( + _spans[i].type, + _spans[i].start, + _spans[i + 1].end, + ); + _spans.removeAt(i + 1); + } + } + } + + bool _firstLetterIsUpperCase(String str) { + if (str.isNotEmpty) { + final String first = str.substring(0, 1); + return first == first.toUpperCase(); + } + return false; + } +} + +enum _HighlightType { + number, + comment, + keyword, + string, + punctuation, + klass, + constant +} + +class _HighlightSpan { + _HighlightSpan(this.type, this.start, this.end); + final _HighlightType type; + final int start; + final int end; + + String textForSpan(String src) { + return src.substring(start, end); + } + + TextStyle? textStyle(SyntaxHighlighterStyle? style) { + if (type == _HighlightType.number) { + return style!.numberStyle; + } else if (type == _HighlightType.comment) { + return style!.commentStyle; + } else if (type == _HighlightType.keyword) { + return style!.keywordStyle; + } else if (type == _HighlightType.string) { + return style!.stringStyle; + } else if (type == _HighlightType.punctuation) { + return style!.punctuationStyle; + } else if (type == _HighlightType.klass) { + return style!.classStyle; + } else if (type == _HighlightType.constant) { + return style!.constantStyle; + } else { + return style!.baseStyle; + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/themes.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/themes.dart new file mode 100644 index 0000000000000000000000000000000000000000..dbaefed98cbde8b771f869c5f9670dfd0bae7245 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/themes.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +final ThemeData kLightGalleryTheme = _buildLightTheme(); +final ThemeData kDarkGalleryTheme = _buildDarkTheme(); + +TextTheme _buildTextTheme(TextTheme base) { + return base.copyWith( + titleLarge: base.titleLarge!.copyWith( + fontFamily: 'GoogleSans', + ), + ); +} + +ThemeData _buildDarkTheme() { + const Color primaryColor = Color(0xFF0175c2); + const Color secondaryColor = Color(0xFF13B9FD); + final ColorScheme colorScheme = const ColorScheme.dark().copyWith( + primary: primaryColor, + secondary: secondaryColor, + onPrimary: Colors.white, + error: const Color(0xFFB00020), + background: const Color(0xFF202124), + ); + final ThemeData base = ThemeData( + useMaterial3: false, + brightness: Brightness.dark, + colorScheme: colorScheme, + primaryColor: primaryColor, + primaryColorDark: const Color(0xFF0050a0), + primaryColorLight: secondaryColor, + indicatorColor: Colors.white, + canvasColor: const Color(0xFF202124), + scaffoldBackgroundColor: const Color(0xFF202124), + ); + return base.copyWith( + textTheme: _buildTextTheme(base.textTheme), + primaryTextTheme: _buildTextTheme(base.primaryTextTheme), + ); +} + +ThemeData _buildLightTheme() { + const Color primaryColor = Color(0xFF0175c2); + const Color secondaryColor = Color(0xFF13B9FD); + final ColorScheme colorScheme = const ColorScheme.light().copyWith( + primary: primaryColor, + secondary: secondaryColor, + error: const Color(0xFFB00020), + ); + final ThemeData base = ThemeData( + useMaterial3: false, + brightness: Brightness.light, + colorScheme: colorScheme, + primaryColor: primaryColor, + indicatorColor: Colors.white, + splashColor: Colors.white24, + splashFactory: InkRipple.splashFactory, + canvasColor: Colors.white, + scaffoldBackgroundColor: Colors.white, + ); + return base.copyWith( + textTheme: _buildTextTheme(base.textTheme), + primaryTextTheme: _buildTextTheme(base.primaryTextTheme), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/updater.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/updater.dart new file mode 100644 index 0000000000000000000000000000000000000000..57175d98a368cbd95839c84f6c332578afe7d673 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/gallery/updater.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'package:url_launcher/url_launcher.dart'; + +typedef UpdateUrlFetcher = Future Function(); + +class Updater extends StatefulWidget { + const Updater({ required this.updateUrlFetcher, this.child, super.key }); + + final UpdateUrlFetcher updateUrlFetcher; + final Widget? child; + + @override + State createState() => UpdaterState(); +} + +class UpdaterState extends State { + @override + void initState() { + super.initState(); + _checkForUpdates(); + } + + static DateTime? _lastUpdateCheck; + Future _checkForUpdates() async { + // Only prompt once a day + if (_lastUpdateCheck != null && + DateTime.now().difference(_lastUpdateCheck!) < const Duration(days: 1)) { + return; // We already checked for updates recently + } + _lastUpdateCheck = DateTime.now(); + + final String? updateUrl = await widget.updateUrlFetcher(); + if (mounted) { + final bool? wantsUpdate = await showDialog(context: context, builder: _buildDialog); + if (wantsUpdate != null && updateUrl != null && wantsUpdate) { + launchUrl(Uri.parse(updateUrl)); + } + } + } + + Widget _buildDialog(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle dialogTextStyle = + theme.textTheme.titleMedium!.copyWith(color: theme.textTheme.bodySmall!.color); + return AlertDialog( + title: const Text('Update Flutter Gallery?'), + content: Text('A newer version is available.', style: dialogTextStyle), + actions: [ + TextButton( + child: const Text('NO THANKS'), + onPressed: () { + Navigator.pop(context, false); + }, + ), + TextButton( + child: const Text('UPDATE'), + onPressed: () { + Navigator.pop(context, true); + }, + ), + ], + ); + } + + @override + Widget build(BuildContext context) => widget.child!; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..ca4d8adf6a35e3c4ab19e7b48be0d3f7a208d59f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main.dart @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Thanks for checking out Flutter! +// Like what you see? Tweet us @FlutterDev + +import 'package:flutter/material.dart'; + +import 'gallery/app.dart'; + +void main() => runApp(const GalleryApp()); diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main_publish.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main_publish.dart new file mode 100644 index 0000000000000000000000000000000000000000..faf2bd8d9681580297637aeb346476a8635eb581 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/lib/main_publish.dart @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'gallery/home.dart'; +import 'main.dart' as other_main; + +// This main chain-calls main.dart's main. This file is used for publishing +// the gallery and removes the 'PREVIEW' banner. +void main() { + GalleryHome.showPreviewBanner = false; + other_main.main(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..c5fb2d4eeb214441a1167c2ecdeb1fa1f69d12e9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/CMakeLists.txt @@ -0,0 +1,106 @@ +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +set(BINARY_NAME "flutter_gallery") +set(APPLICATION_ID "io.flutter.demo.flutter_gallery") + +cmake_policy(SET CMP0063 NEW) + +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Configure build options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") + +# Flutter library and tool build rules. +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Application build +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) +apply_standard_settings(${BINARY_NAME}) +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) +add_dependencies(${BINARY_NAME} flutter_assemble) +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/flutter/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..33fd5801e7134249aa03257b3190f0e700055870 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/flutter/CMakeLists.txt @@ -0,0 +1,87 @@ +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/main.cc b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/main.cc new file mode 100644 index 0000000000000000000000000000000000000000..3253d374395b4ed50402451b2ba5d388b33b6dcc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/main.cc @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "my_application.h" + +int main(int argc, char** argv) { + // Only X11 is currently supported. + // Wayland support is being developed: https://github.com/flutter/flutter/issues/57932. + gdk_set_allowed_backends("x11"); + + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.cc b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.cc new file mode 100644 index 0000000000000000000000000000000000000000..3a4c060b07d50459a27aacc5bd0d51f8b3d4d47d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.cc @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "my_application.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + GtkHeaderBar *header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "flutter_gallery"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + nullptr)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.h b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.h new file mode 100644 index 0000000000000000000000000000000000000000..8c66ec485434d1f922c9915bdaefcb8969cdfec9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/linux/my_application.h @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..4b81f9b2d200fc807eed25bca04dff9ee9dcc45f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..5caa9d1579e481a5894c37e2e56b0da062e95b35 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..47c1b18fedaef2a21670842b6929ad36ba0431dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile @@ -0,0 +1,44 @@ +platform :osx, '10.14' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile.lock b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile.lock new file mode 100644 index 0000000000000000000000000000000000000000..04d3145211d20565979e8615f56413da3c7682b1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Podfile.lock @@ -0,0 +1,35 @@ +PODS: + - connectivity_macos (0.0.1): + - FlutterMacOS + - Reachability + - FlutterMacOS (1.0.0) + - Reachability (3.2) + - url_launcher_macos (0.0.1): + - FlutterMacOS + +DEPENDENCIES: + - connectivity_macos (from `Flutter/ephemeral/.symlinks/plugins/connectivity_macos/macos`) + - FlutterMacOS (from `Flutter/ephemeral`) + - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) + +SPEC REPOS: + trunk: + - Reachability + +EXTERNAL SOURCES: + connectivity_macos: + :path: Flutter/ephemeral/.symlinks/plugins/connectivity_macos/macos + FlutterMacOS: + :path: Flutter/ephemeral + url_launcher_macos: + :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos + +SPEC CHECKSUMS: + connectivity_macos: 5dae6ee11d320fac7c05f0d08bd08fc32b5514d9 + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 + url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 + +PODFILE CHECKSUM: 2e6060c123c393d6beb3ee5b7beaf789de4d2e47 + +COCOAPODS: 1.12.1 diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..00182c6a45f8c1cef3fcf867e4c3e79ad713d323 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,805 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 329CBB511998F0EDE915EE87 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4D44CC493D5E2EC3762DAE2 /* Pods_Runner.framework */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 7FE95D6B675486D860A3DBFB /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4086A70F8522279C70BBB26B /* Pods_RunnerTests.framework */; }; + F7BDBB0E26E829B700DE9315 /* RunnerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F7BDBB0D26E829B700DE9315 /* RunnerTests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; + F7BDBB0F26E829B700DE9315 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 0A9BC03BA29AB9AC95A6B56C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 21BDE859A3D5F26F70C3E805 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 31E9DDB21E0B961FFC0E8ADA /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* Flutter Gallery.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flutter Gallery.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 4086A70F8522279C70BBB26B /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 8CB6E348C1DAF1D3375AF578 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + 9E7679472481DA711299BF04 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + B4D44CC493D5E2EC3762DAE2 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BED2A53D26C8AB5761760332 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + F7BDBB0B26E829B700DE9315 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + F7BDBB0D26E829B700DE9315 /* RunnerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerTests.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 329CBB511998F0EDE915EE87 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7BDBB0826E829B700DE9315 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 7FE95D6B675486D860A3DBFB /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + F7BDBB0C26E829B700DE9315 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + 727549F29CB745BF02B0E8A3 /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* Flutter Gallery.app */, + F7BDBB0B26E829B700DE9315 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + 727549F29CB745BF02B0E8A3 /* Pods */ = { + isa = PBXGroup; + children = ( + 0A9BC03BA29AB9AC95A6B56C /* Pods-Runner.debug.xcconfig */, + BED2A53D26C8AB5761760332 /* Pods-Runner.release.xcconfig */, + 21BDE859A3D5F26F70C3E805 /* Pods-Runner.profile.xcconfig */, + 8CB6E348C1DAF1D3375AF578 /* Pods-RunnerTests.debug.xcconfig */, + 9E7679472481DA711299BF04 /* Pods-RunnerTests.release.xcconfig */, + 31E9DDB21E0B961FFC0E8ADA /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + B4D44CC493D5E2EC3762DAE2 /* Pods_Runner.framework */, + 4086A70F8522279C70BBB26B /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + F7BDBB0C26E829B700DE9315 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + F7BDBB0D26E829B700DE9315 /* RunnerTests.m */, + ); + path = RunnerTests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 36C290D58D35783923B6B124 /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + 8D829D9480108C54565A191B /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* Flutter Gallery.app */; + productType = "com.apple.product-type.application"; + }; + F7BDBB0A26E829B700DE9315 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = F7BDBB1426E829B700DE9315 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + D4A146852504EFCE6D36634B /* [CP] Check Pods Manifest.lock */, + F7BDBB0726E829B700DE9315 /* Sources */, + F7BDBB0826E829B700DE9315 /* Frameworks */, + F7BDBB0926E829B700DE9315 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + F7BDBB1026E829B700DE9315 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = F7BDBB0B26E829B700DE9315 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + F7BDBB0A26E829B700DE9315 = { + CreatedOnToolsVersion = 13.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + F7BDBB0A26E829B700DE9315 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7BDBB0926E829B700DE9315 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; + 36C290D58D35783923B6B124 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 8D829D9480108C54565A191B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + D4A146852504EFCE6D36634B /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7BDBB0726E829B700DE9315 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F7BDBB0E26E829B700DE9315 /* RunnerTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; + F7BDBB1026E829B700DE9315 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = F7BDBB0F26E829B700DE9315 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + F7BDBB1126E829B700DE9315 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8CB6E348C1DAF1D3375AF578 /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGallery.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Flutter Gallery.app/Contents/MacOS/Flutter Gallery"; + }; + name = Debug; + }; + F7BDBB1226E829B700DE9315 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9E7679472481DA711299BF04 /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGallery.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Flutter Gallery.app/Contents/MacOS/Flutter Gallery"; + }; + name = Release; + }; + F7BDBB1326E829B700DE9315 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 31E9DDB21E0B961FFC0E8ADA /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGallery.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Flutter Gallery.app/Contents/MacOS/Flutter Gallery"; + }; + name = Profile; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F7BDBB1426E829B700DE9315 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F7BDBB1126E829B700DE9315 /* Debug */, + F7BDBB1226E829B700DE9315 /* Release */, + F7BDBB1326E829B700DE9315 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..0af47c9a8843c5f8c20a75d51927d27f82b41a25 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d080d41951d3506a861ceadcf4354bbbb609a562 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..a2ec33f19f110ebff51a23342d7bc29ec9a1aaa6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000000000000000000000000000000000000..3c4935a7ca84f0976aca34b7f2895d65fb94d1ea Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..ed4cc16421680a50164ba74381b4b35ceaa0ccfc Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000000000000000000000000000000000000..483be61389733f2e5331c08db8ca245268610ccb Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 0000000000000000000000000000000000000000..bcbf36df2f2aaaa0a63c7dabc94e600184229d0d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 0000000000000000000000000000000000000000..9c0a652864769b250ed58097f2f6270b393f751f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 0000000000000000000000000000000000000000..e71a726136a47ed24125c7efc79d68a4a01961b4 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..8a31fe2dd3f91d79cab6e0390356bb3c1a355f94 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Base.lproj/MainMenu.xib b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000000000000000000000000000000000000..80e867a4e06b4dc26d0a2b327cbd54041addc50a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/AppInfo.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..b13c547d4467ae8faa3f5dde9fdb5e142a1101dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = Flutter Gallery + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGallery + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2014 The Flutter Authors. All rights reserved. diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..36b0fd9464f45b33f482e64bea579787e142affa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..dff4f49561c816f70eaea557d889d31cf63447ac --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Warnings.xcconfig b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..42bcbf4780b187e80025b7917058bcb882012aa1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/DebugProfile.entitlements b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..4eac53fe0f732d083dcfc39d225bff6950c13601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..4789daa6a443eefa7f3f729164a18351e06e9800 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/MainFlutterWindow.swift b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000000000000000000000000000000000000..a6a6b9af83072d4765fb492f05ebc05671f9924e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Release.entitlements b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Release.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..852fa1a4728ae4789e3bca55dd07caef3b41f2a5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/RunnerTests/RunnerTests.m b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/RunnerTests/RunnerTests.m new file mode 100644 index 0000000000000000000000000000000000000000..d18fbbdbf4daff93076ef941bb56f6a004a1a22b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/macos/RunnerTests/RunnerTests.m @@ -0,0 +1,33 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface RunnerTests : XCTestCase +@end + +@implementation RunnerTests + +- (void)testMenu { + NSMenu *applicationMenu = ((FlutterAppDelegate *)NSApplication.sharedApplication.delegate).applicationMenu; + XCTAssertEqual(applicationMenu.numberOfItems, 11); + XCTAssertEqualObjects([applicationMenu itemAtIndex:0].title, @"About Flutter Gallery"); + + NSMenu *mainMenu = NSApplication.sharedApplication.mainMenu; + XCTAssertEqual([mainMenu indexOfItemWithSubmenu:applicationMenu], 0); + + // The number of submenu items changes depending on what the OS decides to inject. + // Just check there's at least one per menu item. + XCTAssertGreaterThanOrEqual([mainMenu itemWithTitle:@"Edit"].submenu.numberOfItems, 1); + XCTAssertGreaterThanOrEqual([mainMenu itemWithTitle:@"View"].submenu.numberOfItems, 1); + XCTAssertGreaterThanOrEqual([mainMenu itemWithTitle:@"Window"].submenu.numberOfItems, 1); + + NSMenu *helpMenu = NSApplication.sharedApplication.helpMenu; + XCTAssertNotNil(helpMenu); + // Only the help menu search text box. + XCTAssertEqual(helpMenu.numberOfItems, 0); +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c1d229acb40c53e7a8eddbf15391903f6d0f5181 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart @@ -0,0 +1,776 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/all.dart'; +import 'package:flutter_gallery/gallery/app.dart'; +import 'package:flutter_gallery/gallery/themes.dart'; +import 'package:flutter_test/flutter_test.dart'; + +class TestMaterialApp extends StatelessWidget { + const TestMaterialApp({ super.key, required this.home }); + + final Widget home; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: false), + home: home, + ); + } +} + +void main() { + group('All material demos meet recommended tap target sizes', () { + testWidgets('backdrop_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BackdropDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_app_bar_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BottomAppBarDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_navigation_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BottomNavigationDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('buttons_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ButtonsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('cards_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: CardsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('chip_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ChipDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }, skip: true); // https://github.com/flutter/flutter/issues/42455 + + testWidgets('data_table_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DataTableDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('date_and_time_picker_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DateAndTimePickerDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('dialog_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DialogDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('drawer_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DrawerDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('elevation_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ElevationDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_panels_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ExpansionPanelsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('grid_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: GridListDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('icons_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: IconsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('leave_behind_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: LeaveBehindDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ListDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('menu_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: MenuDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('modal_bottom_sheet_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ModalBottomSheetDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('overscroll_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: OverscrollDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('page_selector_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: PageSelectorDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('persistent_bottom_sheet_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: PersistentBottomSheetDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('progress_indicator_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ProgressIndicatorDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('reorderable_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ReorderableListDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('scrollable_tabs_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ScrollableTabsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('search_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SearchDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('selection_controls_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SelectionControlsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('slider_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SliderDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('snack_bar_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SnackBarDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TabsDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_fab_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TabsFabDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('text_form_field_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TextFormFieldDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tooltip_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TooltipDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_tile_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ExpansionTileListDemo())); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + handle.dispose(); + }); + }); + + group('All material demos have labeled tap targets', () { + testWidgets('backdrop_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BackdropDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_app_bar_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BottomAppBarDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_navigation_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: BottomNavigationDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('buttons_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ButtonsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('cards_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: CardsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('chip_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ChipDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('data_table_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DataTableDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }, skip: true); // DataTables are not accessible, https://github.com/flutter/flutter/issues/10830 + + testWidgets('date_and_time_picker_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DateAndTimePickerDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('dialog_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DialogDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('drawer_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DrawerDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('elevation_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ElevationDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_panels_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ExpansionPanelsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('grid_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: GridListDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('icons_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: IconsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('leave_behind_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: LeaveBehindDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ListDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('menu_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: MenuDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('modal_bottom_sheet_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ModalBottomSheetDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('overscroll_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: OverscrollDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('page_selector_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: PageSelectorDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('persistent_bottom_sheet_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: PersistentBottomSheetDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('progress_indicator_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ProgressIndicatorDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('reorderable_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ReorderableListDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('scrollable_tabs_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ScrollableTabsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('search_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SearchDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('selection_controls_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SelectionControlsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('slider_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SliderDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('snack_bar_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: SnackBarDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TabsDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_fab_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TabsFabDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('text_form_field_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TextFormFieldDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('tooltip_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: TooltipDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_tile_list_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: ExpansionTileListDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }); + }); + + group('All material demos meet text contrast guidelines', () { + final List themes = [ + kLightGalleryTheme, + kDarkGalleryTheme, + ]; + + const List themeNames = [ + 'kLightGalleryTheme', + 'kDarkGalleryTheme', + ]; + + for (int themeIndex = 0; themeIndex < themes.length; themeIndex += 1) { + final ThemeData theme = themes[themeIndex]; + final String themeName = themeNames[themeIndex]; + + testWidgets('backdrop_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const BackdropDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_app_bar_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const BottomAppBarDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('bottom_navigation_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const BottomNavigationDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('buttons_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ButtonsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('cards_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const CardsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('chip_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ChipDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('data_table_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const DataTableDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('date_and_time_picker_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const DateAndTimePickerDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('dialog_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const DialogDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('drawer_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const DrawerDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('elevation_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ElevationDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_panels_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ExpansionPanelsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('grid_list_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const GridListDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('icons_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const IconsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('leave_behind_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const LeaveBehindDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('list_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ListDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('menu_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const MenuDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('modal_bottom_sheet_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget( + MaterialApp(theme: theme, home: const ModalBottomSheetDemo()) + ); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('overscroll_demo', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const MaterialApp(home: OverscrollDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('page_selector_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const PageSelectorDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('persistent_bottom_sheet_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget( + MaterialApp(theme: theme, home: const PersistentBottomSheetDemo()) + ); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('progress_indicator_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ProgressIndicatorDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('reorderable_list_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ReorderableListDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('scrollable_tabs_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ScrollableTabsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('search_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const SearchDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('selection_controls_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const SelectionControlsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('slider_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const SliderDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('snack_bar_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget( + MaterialApp(theme: theme, home: const SnackBarDemo()) + ); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const TabsDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('tabs_fab_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const TabsFabDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('text_form_field_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const TextFormFieldDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('tooltip_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const TooltipDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + + testWidgets('expansion_tile_list_demo $themeName', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ExpansionTileListDemo())); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + } + }); + + group('Gallery home page meets text contrast guidelines', () { + testWidgets('options menu', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp(testMode: true)); + await tester.tap(find.byTooltip('Toggle options page')); + await tester.pumpAndSettle(); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + }); + + testWidgets('options menu - dark theme', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp(testMode: true)); + await tester.tap(find.byTooltip('Toggle options page')); + await tester.pumpAndSettle(); + + // Toggle dark mode. + final Finder themeToggleContainer = find.ancestor( + of: find.text('Theme'), + matching: find.byType(Container), + ); + final Finder themeMenuButton = find.descendant( + of: themeToggleContainer, + matching: find.byIcon(Icons.arrow_drop_down), + ); + await tester.tap(themeMenuButton); + await tester.pumpAndSettle(); + await tester.tap(find.text('Dark')); + await tester.pumpAndSettle(); + + await expectLater(tester, meetsGuideline(textContrastGuideline)); + }); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/logic.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/logic.dart new file mode 100644 index 0000000000000000000000000000000000000000..b17079f2213bab7c3727748ad3a0a8549a76bef5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/logic.dart @@ -0,0 +1,89 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_gallery/demo/calculator/logic.dart'; + +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + test('Test order of operations: 12 + 3 * 4 = 24', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendDigit(1)!; + expression = expression.appendDigit(2)!; + expression = expression.appendOperation(Operation.Addition)!; + expression = expression.appendDigit(3)!; + expression = expression.appendOperation(Operation.Multiplication)!; + expression = expression.appendDigit(4)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('24')); + }); + + test('Test floating point 0.1 + 0.2 = 0.3', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendDigit(0)!; + expression = expression.appendPoint()!; + expression = expression.appendDigit(1)!; + expression = expression.appendOperation(Operation.Addition)!; + expression = expression.appendDigit(0)!; + expression = expression.appendPoint()!; + expression = expression.appendDigit(2)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('0.3')); + }); + + test('Test floating point 1.0/10.0 = 0.1', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendDigit(1)!; + expression = expression.appendPoint()!; + expression = expression.appendDigit(0)!; + expression = expression.appendOperation(Operation.Division)!; + expression = expression.appendDigit(1)!; + expression = expression.appendDigit(0)!; + expression = expression.appendPoint()!; + expression = expression.appendDigit(0)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('0.1')); + }); + + test('Test 1/0 = Infinity', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendDigit(1)!; + expression = expression.appendOperation(Operation.Division)!; + expression = expression.appendDigit(0)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('Infinity')); + }); + + test('Test use result in next calculation: 1 + 1 = 2 + 1 = 3 + 1 = 4', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendDigit(1)!; + expression = expression.appendOperation(Operation.Addition)!; + expression = expression.appendDigit(1)!; + expression = expression.computeResult()!; + expression = expression.appendOperation(Operation.Addition)!; + expression = expression.appendDigit(1)!; + expression = expression.computeResult()!; + expression = expression.appendOperation(Operation.Addition)!; + expression = expression.appendDigit(1)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('4')); + }); + + test('Test minus -3 - -2 = -1', () { + CalcExpression expression = CalcExpression.empty(); + expression = expression.appendMinus()!; + expression = expression.appendDigit(3)!; + expression = expression.appendMinus()!; + expression = expression.appendMinus()!; + expression = expression.appendDigit(2)!; + expression = expression.computeResult()!; + expect(expression.state, equals(ExpressionState.Result)); + expect(expression.toString(), equals('-1')); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/smoke_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/smoke_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3a53a022b30adfddac7af4f13df76d5eee7a133d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/calculator/smoke_test.dart @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/calculator_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + // We press the "1" and the "2" buttons and check that the display + // reads "12". + testWidgets('Flutter calculator app smoke test', (WidgetTester tester) async { + await tester.pumpWidget(const MaterialApp(home: CalculatorDemo())); + + final Finder oneButton = find.widgetWithText(InkResponse, '1'); + expect(oneButton, findsOneWidget); + + final Finder twoButton = find.widgetWithText(InkResponse, '2'); + expect(twoButton, findsOneWidget); + + await tester.tap(oneButton); + await tester.pump(); + await tester.tap(twoButton); + await tester.pump(); + await tester.pump(const Duration(seconds: 1)); // Wait until it has finished. + + final Finder display = find.widgetWithText(Expanded, '12'); + expect(display, findsOneWidget); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/cupertino/cupertino_navigation_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/cupertino/cupertino_navigation_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..bdec31f114cc2f4c360bd962b9be212ebbf0adea --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/cupertino/cupertino_navigation_demo_test.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_gallery/demo/cupertino/cupertino_navigation_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Navigation demo golden', (WidgetTester tester) async { + // The point is to mainly test the cupertino icons that we don't have a + // dependency against in the flutter/cupertino package directly. + + final Future font = rootBundle.load( + 'packages/cupertino_icons/assets/CupertinoIcons.ttf' + ); + + await (FontLoader('packages/cupertino_icons/CupertinoIcons')..addFont(font)) + .load(); + + await tester.pumpWidget(CupertinoApp( + home: CupertinoNavigationDemo(randomSeed: 123456), + )); + + await expectLater( + find.byType(CupertinoNavigationDemo), + matchesGoldenFile('cupertino_navigation_demo.screen.1.png'), + ); + + await tester.pump(); // Need a new frame after loading fonts to refresh layout. + // Tap some row to go to the next page. + await tester.tap(find.text('Buy this cool color').first); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 600)); + + await expectLater( + find.byType(CupertinoNavigationDemo), + matchesGoldenFile('cupertino_navigation_demo.screen.2.png'), + ); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/buttons_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/buttons_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b4faf83c08f17f7400fdb6322a5ce801f2f96fa3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/buttons_demo_test.dart @@ -0,0 +1,44 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/buttons_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Button locations are OK', (WidgetTester tester) async { + // Regression test for https://github.com/flutter/flutter/pull/85351 + { + await tester.pumpWidget(MaterialApp(theme: ThemeData(useMaterial3: false), home: const ButtonsDemo())); + expect(find.byType(ElevatedButton).evaluate().length, 2); + final Offset topLeft1 = tester.getTopLeft(find.byType(ElevatedButton).first); + final Offset topLeft2 = tester.getTopLeft(find.byType(ElevatedButton).last); + expect(topLeft1.dx, 203); + expect(topLeft2.dx, 453); + expect(topLeft1.dy, topLeft2.dy); + } + + { + await tester.tap(find.text('TEXT')); + await tester.pumpAndSettle(); + expect(find.byType(TextButton).evaluate().length, 2); + final Offset topLeft1 = tester.getTopLeft(find.byType(TextButton).first); + final Offset topLeft2 = tester.getTopLeft(find.byType(TextButton).last); + expect(topLeft1.dx, 247); + expect(topLeft2.dx, 425); + expect(topLeft1.dy, topLeft2.dy); + } + + { + await tester.tap(find.text('OUTLINED')); + await tester.pumpAndSettle(); + expect(find.byType(OutlinedButton).evaluate().length, 2); + final Offset topLeft1 = tester.getTopLeft(find.byType(OutlinedButton).first); + final Offset topLeft2 = tester.getTopLeft(find.byType(OutlinedButton).last); + expect(topLeft1.dx, 203); + expect(topLeft2.dx, 453); + expect(topLeft1.dy, topLeft2.dy); + } + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/chip_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/chip_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..9d769f7337fda8f64ada9f3fa8ea5e332f37301c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/chip_demo_test.dart @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/chip_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Chip demo has semantic labels', (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(MaterialApp( + theme: ThemeData(platform: TargetPlatform.iOS), + home: const ChipDemo(), + )); + + expect(tester.getSemantics(find.byIcon(Icons.vignette)), matchesSemantics( + isButton: true, + hasEnabledState: true, + isEnabled: true, + isFocusable: true, + hasTapAction: true, + label: 'Update border shape', + )); + + expect(tester.getSemantics(find.byIcon(Icons.refresh)), matchesSemantics( + isButton: true, + hasEnabledState: true, + isEnabled: true, + isFocusable: true, + hasTapAction: true, + label: 'Reset chips', + )); + + handle.dispose(); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/drawer_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/drawer_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..57ffb4824d88cde5fd1cb679976f37d8b0ebe25d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/drawer_demo_test.dart @@ -0,0 +1,31 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/drawer_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Drawer header does not scroll', (WidgetTester tester) async { + await tester.pumpWidget(MaterialApp( + theme: ThemeData(platform: TargetPlatform.iOS), + home: const DrawerDemo(), + )); + + await tester.tap(find.text('Tap here to open the drawer')); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 500)); + + expect(tester.getTopLeft(find.byType(UserAccountsDrawerHeader)).dy, 0.0); + final double initialTopItemSaneY = tester.getTopLeft(find.text('Drawer item A')).dy; + expect(initialTopItemSaneY, greaterThan(0.0)); + + await tester.drag(find.text('Drawer item B'), const Offset(0.0, 400.0)); + await tester.pump(); + + expect(tester.getTopLeft(find.byType(UserAccountsDrawerHeader)).dy, 0.0); + expect(tester.getTopLeft(find.text('Drawer item A')).dy, greaterThan(initialTopItemSaneY)); + expect(tester.getTopLeft(find.text('Drawer item A')).dy, lessThanOrEqualTo(initialTopItemSaneY + 400.0)); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/expansion_panels_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/expansion_panels_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3498240bb8a737c71bd86c7e73a6e88c7974a886 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/expansion_panels_demo_test.dart @@ -0,0 +1,55 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/expansion_panels_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +Future main() async { + testWidgets('Expansion panel demo: radio tile selection changes on tap', (WidgetTester tester) async { + await tester.pumpWidget(const MaterialApp(home: ExpansionPanelsDemo())); + + expect(_expandIcons, findsNWidgets(3)); + + await tester.tap(find.byWidget(_radioPanelExpandIcon)); + await tester.pumpAndSettle(); + + expect(_radioFinder, findsNWidgets(3)); + + const int i = 1; + + expect(_isRadioSelected(0), isTrue); + expect(_isRadioSelected(i), isFalse); + + await tester.tap(find.byWidget(_radioListTiles[i])); + await tester.pumpAndSettle(); + + expect(_isRadioSelected(0), isFalse); + expect(_isRadioSelected(i), isTrue); + }); +} + +Finder get _expandIcons => find.byType(ExpandIcon); + +Widget get _radioPanelExpandIcon => _expandIcons.evaluate().toList()[1].widget; + +bool _isRadioSelected(int index) => + _radios[index].value == _radios[index].groupValue; + +List> get _radios => List>.from( + _radioFinder.evaluate().map((Element e) => e.widget)); + +// [find.byType] and [find.widgetWithText] do not match subclasses; `Radio` is +// not sufficient to find a `Radio<_Location>`. Another approach is to grab the +// `runtimeType` of a dummy instance; see +// packages/flutter/test/material/radio_list_tile_test.dart. +Finder get _radioFinder => + find.byWidgetPredicate((Widget w) => w is Radio); + +List> get _radioListTiles => + List>.from( + _radioListTilesFinder.evaluate().map((Element e) => e.widget)); + +Finder get _radioListTilesFinder => + find.byWidgetPredicate((Widget w) => w is RadioListTile); diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/menu_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/menu_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3b2346be6e8842a5e223fe765da837cdc0e74f51 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/menu_demo_test.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/menu_demo.dart'; +import 'package:flutter_gallery/gallery/themes.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Menu icon satisfies accessibility contrast ratio guidelines, light mode', (WidgetTester tester) async { + await tester.pumpWidget(MaterialApp( + theme: kLightGalleryTheme, + home: const MenuDemo(), + )); + + await expectLater(tester, meetsGuideline(textContrastGuideline)); + + await expectLater(tester, meetsGuideline(CustomMinimumContrastGuideline(finder: find.byWidgetPredicate((Widget widget) => widget is Icon)))); + }); + + testWidgets('Menu icon satisfies accessibility contrast ratio guidelines, dark mode', (WidgetTester tester) async { + await tester.pumpWidget(MaterialApp( + theme: kDarkGalleryTheme, + home: const MenuDemo(), + )); + + await expectLater(tester, meetsGuideline(textContrastGuideline)); + + await expectLater(tester, meetsGuideline(CustomMinimumContrastGuideline(finder: find.byWidgetPredicate((Widget widget) => widget is Icon)))); + }); + + testWidgets('The selected menu item update test', (WidgetTester tester) async { + await tester.pumpWidget(MaterialApp( + theme: kDarkGalleryTheme, + home: const MenuDemo(), + )); + + // Popup the menu. + await tester.tap(find.text('An item with a simple menu')); + await tester.pumpAndSettle(); + + // Select one item. + await tester.tap(find.text('Menu item value three')); + await tester.pumpAndSettle(); + + // The subtitle updated with the selected item. + expect(find.text('Menu item value three'), findsOneWidget); + + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..bf5efd7c8cc6f7a9745b18bbfa308e0f47dfcc3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/demo/material/text_form_field_demo.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('validates name field correctly', (WidgetTester tester) async { + await tester.pumpWidget(const MaterialApp(home: TextFormFieldDemo())); + + final Finder submitButton = find.widgetWithText(ElevatedButton, 'SUBMIT'); + expect(submitButton, findsOneWidget); + + final Finder nameField = find.widgetWithText(TextFormField, 'Name *'); + expect(nameField, findsOneWidget); + + final Finder phoneNumberField = find.widgetWithText(TextFormField, 'Phone Number *'); + expect(phoneNumberField, findsOneWidget); + + final Finder passwordField = find.widgetWithText(TextFormField, 'Password *'); + expect(passwordField, findsOneWidget); + + // Verify that the phone number's TextInputFormatter does what's expected. + await tester.enterText(phoneNumberField, '1234567890'); + await tester.pumpAndSettle(); + expect(find.text('(123) 456-7890'), findsOneWidget); + + await tester.enterText(nameField, ''); + await tester.pumpAndSettle(); + // The submit button isn't initially visible. Drag it into view so that + // it will see the tap. + await tester.drag(nameField, const Offset(0.0, -1200.0)); + await tester.pumpAndSettle(); + await tester.tap(submitButton); + await tester.pumpAndSettle(); + + // Now drag the password field (the submit button will be obscured by + // the snackbar) and expose the name field again. + await tester.drag(passwordField, const Offset(0.0, 1200.0)); + await tester.pumpAndSettle(); + expect(find.text('Name is required.'), findsOneWidget); + expect(find.text('Please enter only alphabetical characters.'), findsNothing); + await tester.enterText(nameField, '#'); + await tester.pumpAndSettle(); + + // Make the submit button visible again (by dragging the name field), so + // it will see the tap. + await tester.drag(nameField, const Offset(0.0, -1200.0)); + await tester.tap(submitButton); + await tester.pumpAndSettle(); + expect(find.text('Name is required.'), findsNothing); + expect(find.text('Please enter only alphabetical characters.'), findsOneWidget); + + await tester.enterText(nameField, 'Jane Doe'); + await tester.tap(submitButton); + await tester.pumpAndSettle(); + expect(find.text('Name is required.'), findsNothing); + expect(find.text('Please enter only alphabetical characters.'), findsNothing); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..2341180fb64c3b23b687b1c9a9f1fac5a8f70af2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart @@ -0,0 +1,146 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter_gallery/gallery/app.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + testWidgets('Flutter Gallery drawer item test', (WidgetTester tester) async { + bool hasFeedback = false; + + await tester.pumpWidget( + GalleryApp( + testMode: true, + onSendFeedback: () { + hasFeedback = true; + }, + ), + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + // Show the options page + await tester.tap(find.byTooltip('Toggle options page')); + await tester.pumpAndSettle(); + + // Verify theme settings + MaterialApp app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.theme!.brightness, equals(Brightness.light)); + expect(app.darkTheme!.brightness, equals(Brightness.dark)); + + // Switch to the dark theme: first menu button, choose 'Dark' + await tester.tap(find.byIcon(Icons.arrow_drop_down).first); + await tester.pumpAndSettle(); + await tester.tap(find.text('Dark')); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.themeMode, ThemeMode.dark); + + // Switch to the light theme: first menu button, choose 'Light' + await tester.tap(find.byIcon(Icons.arrow_drop_down).first); + await tester.pumpAndSettle(); + await tester.tap(find.text('Light')); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.themeMode, ThemeMode.light); + + // Switch back to system theme setting: first menu button, choose 'System Default' + await tester.tap(find.byIcon(Icons.arrow_drop_down).first); + await tester.pumpAndSettle(); + await tester.tap(find.descendant( + of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), + matching: find.text('System Default') + )); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.themeMode, ThemeMode.system); + + // Verify density settings + expect(app.theme!.visualDensity, equals(VisualDensity.standard)); + + // Popup the density menu: third menu button, choose 'Compact' + await tester.tap(find.byIcon(Icons.arrow_drop_down).at(2)); + await tester.pumpAndSettle(); + await tester.tap(find.text('Compact')); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.theme!.visualDensity, equals(VisualDensity.compact)); + + await tester.tap(find.byIcon(Icons.arrow_drop_down).at(2)); + await tester.pumpAndSettle(); + await tester.tap(find.descendant( + of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), + matching: find.text('System Default') + )); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.theme!.visualDensity, equals(VisualDensity.standard)); + + // Verify platform settings + expect(app.theme!.platform, equals(TargetPlatform.android)); + + // Popup the platform menu: fourth menu button, choose 'Cupertino' + await tester.tap(find.byIcon(Icons.arrow_drop_down).at(3)); + await tester.pumpAndSettle(); + await tester.tap(find.text('Cupertino').at(1)); + await tester.pumpAndSettle(); + app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; + expect(app.theme!.platform, equals(TargetPlatform.iOS)); + + // Verify the font scale. + final Size origTextSize = tester.getSize(find.text('Text size')); + expect(origTextSize, equals(const Size(144.0, 16.0))); + + // Popup the text size menu: second menu button, choose 'Small' + await tester.tap(find.byIcon(Icons.arrow_drop_down).at(1)); + await tester.pumpAndSettle(); + await tester.tap(find.text('Small')); + await tester.pumpAndSettle(); + Size textSize = tester.getSize(find.text('Text size')); + expect(textSize, equals(within(distance: 0.05, from: const Size(115.2, 13.0)))); + + // Set font scale back to the default. + await tester.tap(find.byIcon(Icons.arrow_drop_down).at(1)); + await tester.pumpAndSettle(); + await tester.tap(find.descendant( + of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), + matching: find.text('System Default') + )); + await tester.pumpAndSettle(); + textSize = tester.getSize(find.text('Text size')); + expect(textSize, origTextSize); + + // Switch to slow animation: second switch control + expect(timeDilation, 1.0); + await tester.tap(find.byType(Switch).at(1)); + await tester.pumpAndSettle(); + expect(timeDilation, greaterThan(1.0)); + + // Restore normal animation: second switch control + await tester.tap(find.byType(Switch).at(1)); + await tester.pumpAndSettle(); + expect(timeDilation, 1.0); + + // Send feedback. + expect(hasFeedback, false); + + // Scroll to the end + await tester.drag(find.text('Text size'), const Offset(0.0, -1000.0)); + await tester.pumpAndSettle(); + await tester.tap(find.text('Send feedback')); + await tester.pumpAndSettle(); + expect(hasFeedback, true); + + // Hide the options page + await tester.tap(find.byTooltip('Toggle options page')); + await tester.pumpAndSettle(); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_display_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_display_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..eba2996d439405c69cfdaeb1472ee511f848f31f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_display_test.dart @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/gallery/app.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + testWidgets('Flutter gallery button example code displays', (WidgetTester tester) async { + // Regression test for https://github.com/flutter/flutter/issues/6147 + + await tester.pumpWidget(const GalleryApp(testMode: true)); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + await Scrollable.ensureVisible(tester.element(find.text('Material')), alignment: 0.5); + await tester.pumpAndSettle(); + await tester.tap(find.text('Material')); + await tester.pumpAndSettle(); + + // Launch the buttons demo and then prove that showing the example + // code dialog does not crash. + + await tester.tap(find.text('Buttons')); + await tester.pumpAndSettle(); + + await tester.tap(find.byTooltip('Show example code')); + await tester.pump(); // start animation + await tester.pump(const Duration(seconds: 1)); // end animation + + expect(find.text('Example code'), findsOneWidget); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..94276fb38e19a503546b370747e8f5060053bda1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/services.dart'; +import 'package:flutter_gallery/gallery/example_code_parser.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + test('Flutter gallery example code parser test', () async { + final TestAssetBundle bundle = TestAssetBundle(); + + final String? codeSnippet0 = await getExampleCode('test_0', bundle); + expect(codeSnippet0, 'test 0 0\ntest 0 1'); + + final String? codeSnippet1 = await getExampleCode('test_1', bundle); + expect(codeSnippet1, 'test 1 0\ntest 1 1'); + + final String? codeSnippet3 = await getExampleCode('test_2_windows_breaks', bundle); + expect(codeSnippet3, 'windows test 2 0\nwindows test 2 1'); + }); +} + +const String testCodeFile = ''' +// A fake test file +// START test_0 +test 0 0 +test 0 1 +// END + +// Some comments +// START test_1 +test 1 0 +test 1 1 +// END + +// START test_2_windows_breaks\r\nwindows test 2 0\r\nwindows test 2 1\r\n// END +'''; + +class TestAssetBundle extends AssetBundle { + @override + Future load(String key) async { + return ByteData.sublistView(Uint8List(0)); + } + + @override + Future loadString(String key, { bool cache = true }) async { + if (key == 'lib/gallery/example_code.dart') { + return testCodeFile; + } + return ''; + } + + @override + Future loadStructuredData(String key, Future Function(String value) parser) async { + return parser(await loadString(key)); + } + + @override + String toString() => '$runtimeType@$hashCode()'; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/flutter_test_config.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/flutter_test_config.dart new file mode 100644 index 0000000000000000000000000000000000000000..7f81bd9d4a9698ba76f55cc07c117453ef54763d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/flutter_test_config.dart @@ -0,0 +1,21 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/rendering.dart'; +import 'package:flutter_goldens/flutter_goldens.dart' as flutter_goldens show testExecutable; +import 'package:flutter_test/flutter_test.dart'; + +Future testExecutable(FutureOr Function() testMain) { + // Enable extra checks since this package exercises a lot of the framework. + debugCheckIntrinsicSizes = true; + + // Make tap() et al fail if the given finder specifies a widget that would not + // receive the event. + WidgetController.hitTestWarningShouldBeFatal = true; + + // Enable golden file testing using Skia Gold. + return flutter_goldens.testExecutable(testMain); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart new file mode 100644 index 0000000000000000000000000000000000000000..cbc7fe9a60ef87989a62a44ba06cfcecc84d56ab --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart @@ -0,0 +1,154 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// ATTENTION! +// +// This file is not named "*_test.dart", and as such will not run when you run +// "flutter test". It is only intended to be run as part of the +// flutter_gallery_instrumentation_test devicelab test. + +import 'dart:async'; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/gestures.dart' show PointerDeviceKind, kPrimaryButton; +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_gallery/gallery/demos.dart'; +import 'package:flutter_test/flutter_test.dart'; + +// Reports success or failure to the native code. +const MethodChannel _kTestChannel = MethodChannel('io.flutter.demo.gallery/TestLifecycleListener'); + +// We don't want to wait for animations to complete before tapping the +// back button in the demos with these titles. +const List _kUnsynchronizedDemoTitles = [ + 'Progress indicators', + 'Activity Indicator', + 'Video', +]; + +// These demos can't be backed out of by tapping a button whose +// tooltip is 'Back'. +const List _kSkippedDemoTitles = [ + 'Progress indicators', + 'Activity Indicator', + 'Video', +]; + +// There are 3 places where the Gallery demos are traversed. +// 1- In widget tests such as dev/integration_tests/flutter_gallery/test/smoke_test.dart +// 2- In driver tests such as dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart +// 3- In on-device instrumentation tests such as dev/integration_tests/flutter_gallery/test/live_smoketest.dart +// +// If you change navigation behavior in the Gallery or in the framework, make +// sure all 3 are covered. + +Future main() async { + try { + // Verify that _kUnsynchronizedDemos and _kSkippedDemos identify + // demos that actually exist. + final List allDemoTitles = kAllGalleryDemos.map((GalleryDemo demo) => demo.title).toList(); + if (!Set.from(allDemoTitles).containsAll(_kUnsynchronizedDemoTitles)) { + fail('Unrecognized demo titles in _kUnsynchronizedDemosTitles: $_kUnsynchronizedDemoTitles'); + } + if (!Set.from(allDemoTitles).containsAll(_kSkippedDemoTitles)) { + fail('Unrecognized demo names in _kSkippedDemoTitles: $_kSkippedDemoTitles'); + } + + print('Starting app...'); + runApp(const GalleryApp(testMode: true)); + final _LiveWidgetController controller = _LiveWidgetController(WidgetsBinding.instance); + for (final GalleryDemoCategory category in kAllGalleryDemoCategories) { + print('Tapping "${category.name}" section...'); + await controller.tap(find.text(category.name)); + for (final GalleryDemo demo in kGalleryCategoryToDemos[category]!) { + final Finder demoItem = find.text(demo.title); + print('Scrolling to "${demo.title}"...'); + await controller.scrollIntoView(demoItem, alignment: 0.5); + if (_kSkippedDemoTitles.contains(demo.title)) { + continue; + } + for (int i = 0; i < 2; i += 1) { + print('Tapping "${demo.title}"...'); + await controller.tap(demoItem); // Launch the demo + controller.frameSync = !_kUnsynchronizedDemoTitles.contains(demo.title); + print('Going back to demo list...'); + await controller.tap(backFinder); + controller.frameSync = true; + } + } + print('Going back to home screen...'); + await controller.tap(find.byTooltip('Back')); + } + print('Finished successfully!'); + _kTestChannel.invokeMethod('success'); + } catch (error, stack) { + print('Caught error: $error\n$stack'); + _kTestChannel.invokeMethod('failure'); + } +} + +final Finder backFinder = find.byElementPredicate( + (Element element) { + final Widget widget = element.widget; + if (widget is Tooltip) { + return widget.message == 'Back'; + } + if (widget is CupertinoNavigationBarBackButton) { + return true; + } + return false; + }, + description: 'Material or Cupertino back button', +); + +class _LiveWidgetController extends LiveWidgetController { + _LiveWidgetController(super.binding); + + /// With [frameSync] enabled, Flutter Driver will wait to perform an action + /// until there are no pending frames in the app under test. + bool frameSync = true; + + /// Waits until at the end of a frame the provided [condition] is [true]. + Future _waitUntilFrame(bool Function() condition, [Completer? completer]) { + completer ??= Completer(); + if (!condition()) { + SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) { + _waitUntilFrame(condition, completer); + }); + } else { + completer.complete(); + } + return completer.future; + } + + /// Runs `finder` repeatedly until it finds one or more [Element]s. + Future> _waitForElement(FinderBase finder) async { + if (frameSync) { + await _waitUntilFrame(() => binding.transientCallbackCount == 0); + } + await _waitUntilFrame(() => finder.tryEvaluate()); + if (frameSync) { + await _waitUntilFrame(() => binding.transientCallbackCount == 0); + } + return finder; + } + + Future scrollIntoView(FinderBase finder, {required double alignment}) async { + final FinderBase target = await _waitForElement(finder); + await Scrollable.ensureVisible(target.evaluate().single, duration: const Duration(milliseconds: 100), alignment: alignment); + } + + @override + Future tap(FinderBase finder, { + int? pointer, + int buttons = kPrimaryButton, + bool warnIfMissed = true, + PointerDeviceKind kind = PointerDeviceKind.touch, + }) async { + await super.tap(await _waitForElement(finder), pointer: pointer, buttons: buttons, warnIfMissed: warnIfMissed, kind: kind); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..de3886e4d1f6f0e13929911ea640cd619d61c4d8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/gallery/app.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + // Regression test for https://github.com/flutter/flutter/pull/5168 + testWidgets('Pesto appbar heroics', (WidgetTester tester) async { + await tester.pumpWidget( + // The bug only manifests itself when the screen's orientation is portrait + const Center( + child: SizedBox( + width: 450.0, + height: 800.0, + child: GalleryApp(testMode: true), + ), + ) + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + await tester.tap(find.text('Studies')); + await tester.pumpAndSettle(); + + await tester.tap(find.text('Pesto')); + await tester.pumpAndSettle(); + + await tester.tap(find.text('Roasted Chicken')); + await tester.pumpAndSettle(); + + await tester.drag(find.text('Roasted Chicken'), const Offset(0.0, -300.0)); + await tester.pumpAndSettle(); + + Navigator.pop(find.byType(Scaffold).evaluate().single); + await tester.pumpAndSettle(); + }); + + testWidgets('Pesto can be scrolled all the way down', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp(testMode: true)); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + await tester.tap(find.text('Studies')); + await tester.pumpAndSettle(); + + await tester.tap(find.text('Pesto')); + await tester.pumpAndSettle(); + + await tester.fling(find.text('Roasted Chicken'), const Offset(0.0, -200.0), 10000.0); + await tester.pumpAndSettle(); // start and finish fling + expect(find.text('Spanakopita'), findsOneWidget); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..2744ea2e65600143240a0ba0063c9e5eec527d81 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + testWidgets('Flutter Gallery app simple smoke test', (WidgetTester tester) async { + await tester.pumpWidget( + const GalleryApp(testMode: true) // builds the app and schedules a frame but doesn't trigger one + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + final Finder showOptionsPageButton = find.byTooltip('Toggle options page'); + + // Show the options page + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); + + // Switch to the dark theme: the first switch control + await tester.tap(find.byType(Switch).first); + await tester.pumpAndSettle(); + + // Close the options page + expect(showOptionsPageButton, findsOneWidget); + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); + + // Show the studies (aka "vignettes", aka "demos") + await tester.tap(find.text('Studies')); + await tester.pumpAndSettle(); + + // Show the Contact profile demo and scroll it upwards + await tester.tap(find.text('Contact profile')); + await tester.pumpAndSettle(); + + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + + await tester.pump(const Duration(hours: 100)); // for testing + }, variant: const TargetPlatformVariant({ TargetPlatform.android, TargetPlatform.macOS })); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..cd49804f804b9e4a66455a1640f258ed99ccf224 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart @@ -0,0 +1,192 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_gallery/gallery/demos.dart'; +import 'package:flutter_test/flutter_test.dart'; + +// This title is visible on the home and demo category pages. It's +// not visible when the demos are running. +const String kGalleryTitle = 'Flutter gallery'; + +// All of the classes printed by debugDump etc, must have toString() +// values approved by verityToStringOutput(). +int toStringErrors = 0; + +// There are 3 places where the Gallery demos are traversed. +// 1- In widget tests such as dev/integration_tests/flutter_gallery/test/smoke_test.dart +// 2- In driver tests such as dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart +// 3- In on-device instrumentation tests such as dev/integration_tests/flutter_gallery/test/live_smoketest.dart +// +// If you change navigation behavior in the Gallery or in the framework, make +// sure all 3 are covered. + +void reportToStringError(String name, String route, int lineNumber, List lines, String message) { + // If you're on line 12, then it has index 11. + // If you want 1 line before and 1 line after, then you want lines with index 10, 11, and 12. + // That's (lineNumber-1)-margin .. (lineNumber-1)+margin, or lineNumber-(margin+1) .. lineNumber+(margin-1) + const int margin = 5; + final int firstLine = math.max(0, lineNumber - margin); + final int lastLine = math.min(lines.length, lineNumber + margin); + print('$name : $route : line $lineNumber of ${lines.length} : $message; nearby lines were:\n ${lines.sublist(firstLine, lastLine).join("\n ")}'); + toStringErrors += 1; +} + +void verifyToStringOutput(String name, String route, String testString) { + int lineNumber = 0; + final List lines = testString.split('\n'); + if (!testString.endsWith('\n')) { + reportToStringError(name, route, lines.length, lines, 'does not end with a line feed'); + } + for (final String line in lines) { + lineNumber += 1; + if (line == '' && lineNumber != lines.length) { + reportToStringError(name, route, lineNumber, lines, 'found empty line'); + } else if (line.contains('Instance of ')) { + reportToStringError(name, route, lineNumber, lines, 'found a class that does not have its own toString'); + } else if (line.endsWith(' ')) { + reportToStringError(name, route, lineNumber, lines, 'found a line with trailing whitespace'); + } + } +} + +Future smokeDemo(WidgetTester tester, GalleryDemo demo) async { + // Don't use pumpUntilNoTransientCallbacks in this function, because some of + // the smoketests have infinitely-running animations (e.g. the progress + // indicators demo). + + await tester.tap(find.text(demo.title)); + await tester.pump(); // Launch the demo. + await tester.pump(const Duration(milliseconds: 400)); // Wait until the demo has opened. + expect(find.text(kGalleryTitle), findsNothing); + + // Leave the demo on the screen briefly for manual testing. + await tester.pump(const Duration(milliseconds: 400)); + + // Scroll the demo around a bit. + await tester.flingFrom(const Offset(400.0, 300.0), const Offset(-100.0, 0.0), 500.0); + await tester.flingFrom(const Offset(400.0, 300.0), const Offset(0.0, -100.0), 500.0); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 50)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.pump(const Duration(milliseconds: 400)); + + // Verify that the dumps are pretty. + final String routeName = demo.routeName; + verifyToStringOutput('debugDumpApp', routeName, WidgetsBinding.instance.rootElement!.toStringDeep()); + verifyToStringOutput('debugDumpRenderTree', routeName, RendererBinding.instance.renderViews.single.toStringDeep()); + verifyToStringOutput('debugDumpLayerTree', routeName, RendererBinding.instance.renderViews.single.debugLayer?.toStringDeep() ?? ''); + verifyToStringOutput('debugDumpFocusTree', routeName, WidgetsBinding.instance.focusManager.toStringDeep()); + + // Scroll the demo around a bit more. + await tester.flingFrom(const Offset(400.0, 300.0), const Offset(0.0, 400.0), 1000.0); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 400)); + await tester.flingFrom(const Offset(400.0, 300.0), const Offset(-200.0, 0.0), 500.0); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 50)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.pump(const Duration(milliseconds: 400)); + await tester.flingFrom(const Offset(400.0, 300.0), const Offset(100.0, 0.0), 500.0); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 400)); + + // Go back + await tester.pageBack(); + await tester.pumpAndSettle(); + await tester.pump(); // Start the pop "back" operation. + await tester.pump(); // Complete the willPop() Future. + await tester.pump(const Duration(milliseconds: 400)); // Wait until it has finished. +} + +Future smokeOptionsPage(WidgetTester tester) async { + final Finder showOptionsPageButton = find.byTooltip('Toggle options page'); + + // Show the options page + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); + + // Switch to the dark theme: first menu button, choose 'Dark' + await tester.tap(find.byIcon(Icons.arrow_drop_down).first); + await tester.pumpAndSettle(); + await tester.tap(find.text('Dark')); + await tester.pumpAndSettle(); + + // Switch back to system theme setting: first menu button, choose 'System Default' + await tester.tap(find.byIcon(Icons.arrow_drop_down).first); + await tester.pumpAndSettle(); + await tester.tap(find.text('System Default').at(1), warnIfMissed: false); // https://github.com/flutter/flutter/issues/82908 + await tester.pumpAndSettle(); + + // Switch text direction: first switch + await tester.tap(find.byType(Switch).first); + await tester.pumpAndSettle(); + + // Switch back to system text direction: first switch control again + await tester.tap(find.byType(Switch).first); + await tester.pumpAndSettle(); + + // Scroll the 'Send feedback' item into view + await tester.drag(find.text('Theme'), const Offset(0.0, -1000.0)); + await tester.pumpAndSettle(); + await tester.tap(find.text('Send feedback')); + await tester.pumpAndSettle(); + + // Close the options page + expect(showOptionsPageButton, findsOneWidget); + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); +} + +Future smokeGallery(WidgetTester tester) async { + bool sendFeedbackButtonPressed = false; + + await tester.pumpWidget( + GalleryApp( + testMode: true, + onSendFeedback: () { + sendFeedbackButtonPressed = true; // see smokeOptionsPage() + }, + ), + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + expect(find.text(kGalleryTitle), findsOneWidget); + + for (final GalleryDemoCategory category in kAllGalleryDemoCategories) { + await Scrollable.ensureVisible(tester.element(find.text(category.name)), alignment: 0.5); + await tester.tap(find.text(category.name)); + await tester.pumpAndSettle(); + for (final GalleryDemo demo in kGalleryCategoryToDemos[category]!) { + await Scrollable.ensureVisible(tester.element(find.text(demo.title))); + await smokeDemo(tester, demo); + tester.binding.debugAssertNoTransientCallbacks('A transient callback was still active after running $demo'); + } + await tester.pageBack(); + await tester.pumpAndSettle(); + } + expect(toStringErrors, 0); + + await smokeOptionsPage(tester); + expect(sendFeedbackButtonPressed, true); +} + +void main() { + testWidgets( + 'Flutter Gallery app smoke test', + smokeGallery, + variant: const TargetPlatformVariant({ TargetPlatform.android, TargetPlatform.macOS }), + ); + + testWidgets('Flutter Gallery app smoke test with semantics', (WidgetTester tester) async { + final SemanticsHandle handle = SemanticsBinding.instance.ensureSemantics(); + await smokeGallery(tester); + handle.dispose(); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..82b8002d7dc274d9b3a3d53f8ca7b7de5ba6e90c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_test/flutter_test.dart'; + +Future mockUpdateUrlFetcher() { + // A real implementation would connect to the network to retrieve this value + return Future.value('http://www.example.com/'); +} + +void main() { + final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + if (binding is LiveTestWidgetsFlutterBinding) { + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + } + + // Regression test for https://github.com/flutter/flutter/pull/5168 + testWidgets('update dialog', (WidgetTester tester) async { + await tester.pumpWidget( + const GalleryApp( + testMode: true, + updateUrlFetcher: mockUpdateUrlFetcher, + ) + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + expect(find.text('UPDATE'), findsOneWidget); + + await tester.tap(find.text('NO THANKS')); + await tester.pump(); + + await tester.tap(find.text('Studies')); + await tester.pump(); // Launch + await tester.pump(const Duration(seconds: 1)); // transition is complete + + final Finder backButton = find.byTooltip('Back'); + expect(backButton, findsOneWidget); + await tester.tap(backButton); + await tester.pump(); // Start the pop "back" operation. + await tester.pump(); // Complete the willPop() Future. + await tester.pump(const Duration(seconds: 1)); // transition is complete + //await tester.pumpUntilNoTransientCallbacks(const Duration(seconds: 1)); + + expect(find.text('UPDATE'), findsNothing); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf.dart new file mode 100644 index 0000000000000000000000000000000000000000..fd93bb5d70115c677525db3f9ad8c4ac85a4990a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf.dart @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; + +void main() { + enableFlutterDriverExtension(); + // As in lib/main.dart: overriding https://github.com/flutter/flutter/issues/13736 + // for better visual effect at the cost of performance. + runApp(const GalleryApp(testMode: true)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0ef7ae4614839d88f506790733b8a84113c2811b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('page transition performance test', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + + await driver.waitUntilFirstFrameRasterized(); + }); + + tearDownAll(() async { + driver.close(); + }); + + test('measure', () async { + final Timeline timeline = await driver.traceAction(() async { + await driver.tap(find.text('Material')); + + for (int i = 0; i < 10; i++) { + await driver.tap(find.text('Banner')); + await Future.delayed(const Duration(milliseconds: 500)); + await driver.waitFor(find.byTooltip('Back')); + await driver.tap(find.byTooltip('Back')); + await Future.delayed(const Duration(milliseconds: 500)); + } + }); + + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('page_transition_perf', pretty: true); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart new file mode 100644 index 0000000000000000000000000000000000000000..475e0eeb80dceb6021bd60de22266c0cbf7d5774 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart @@ -0,0 +1,94 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter_gallery/demo_lists.dart'; +import 'package:flutter_test/flutter_test.dart'; + +/// The demos we don't run as part of the integration test. +/// +/// Demo names are formatted as 'DEMO_NAME@DEMO_CATEGORY' (see +/// `demo_lists.dart` for more examples). +final List kSkippedDemos = [ + // This demo is flaky on CI due to hitting the network. + // See: https://github.com/flutter/flutter/issues/100497 + 'Video@Media', +]; + +/// Scrolls each demo menu item into view, launches it, then returns to the +/// home screen twice. +Future runDemos(List demos, WidgetController controller) async { + final Finder demoList = find.byType(Scrollable); + String? currentDemoCategory; + + for (final String demo in demos) { + if (kSkippedDemos.contains(demo)) { + continue; + } + + final String demoName = demo.substring(0, demo.indexOf('@')); + final String demoCategory = demo.substring(demo.indexOf('@') + 1); + print('> $demo'); + await controller.pump(const Duration(milliseconds: 250)); + + final Finder demoCategoryItem = find.text(demoCategory); + if (currentDemoCategory == null) { + await controller.scrollUntilVisible(demoCategoryItem, 48.0); + await controller.tap(demoCategoryItem); + await controller.pumpAndSettle(); + } else if (currentDemoCategory != demoCategory) { + await controller.tap(find.byTooltip('Back')); + await controller.pumpAndSettle(); + await controller.scrollUntilVisible(demoCategoryItem, 48.0); + await controller.tap(demoCategoryItem); + await controller.pumpAndSettle(); + // Scroll back to the top + await controller.drag(demoList, const Offset(0.0, 10000.0)); + await controller.pumpAndSettle(); + } + currentDemoCategory = demoCategory; + + Future pageBack() { + Finder backButton = find.byTooltip('Back'); + if (backButton.evaluate().isEmpty) { + backButton = find.byType(CupertinoNavigationBarBackButton); + } + return controller.tap(backButton); + } + + for (int i = 0; i < 2; i += 1) { + final Finder demoItem = find.text(demoName); + await controller.scrollUntilVisible(demoItem, 48.0); + await controller.pumpAndSettle(); + if (demoItem.evaluate().isEmpty) { + print('Failed to find $demoItem'); + print('All available elements:'); + print(controller.allElements.toList().join('\n')); + print('App structure:'); + debugDumpApp(); + throw TestFailure('Failed to find element'); + } + await controller.tap(demoItem); // Launch the demo + + if (kUnsynchronizedDemos.contains(demo)) { + // These tests have animation, pumpAndSettle cannot be used. + // This time is questionable. 400ms is the tested reasonable result. + await controller.pump(const Duration(milliseconds: 400)); + await controller.pump(); + await pageBack(); + } else { + await controller.pumpAndSettle(); + // page back + await pageBack(); + } + await controller.pumpAndSettle(); + } + + print('< Success'); + } + + // Return to the home screen + await controller.tap(find.byTooltip('Back')); + await controller.pumpAndSettle(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf.dart new file mode 100644 index 0000000000000000000000000000000000000000..fd93bb5d70115c677525db3f9ad8c4ac85a4990a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf.dart @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; + +void main() { + enableFlutterDriverExtension(); + // As in lib/main.dart: overriding https://github.com/flutter/flutter/issues/13736 + // for better visual effect at the cost of performance. + runApp(const GalleryApp(testMode: true)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..92401c8f9ded37375aa9c7bc975515c273befe6e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('scrolling performance test', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + + await driver.waitUntilFirstFrameRasterized(); + }); + + tearDownAll(() async { + driver.close(); + }); + + test('measure', () async { + final Timeline timeline = await driver.traceAction(() async { + await driver.tap(find.text('Material')); + + final SerializableFinder demoList = find.byValueKey('GalleryDemoList'); + + // TODO(eseidel): These are very artificial scrolls, we should use better + // https://github.com/flutter/flutter/issues/3316 + // Scroll down + for (int i = 0; i < 5; i++) { + await driver.scroll(demoList, 0.0, -300.0, const Duration(milliseconds: 300)); + await Future.delayed(const Duration(milliseconds: 500)); + } + + // Scroll up + for (int i = 0; i < 5; i++) { + await driver.scroll(demoList, 0.0, 300.0, const Duration(milliseconds: 300)); + await Future.delayed(const Duration(milliseconds: 500)); + } + }); + + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('home_scroll_perf', pretty: true); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web.dart new file mode 100644 index 0000000000000000000000000000000000000000..e8f26d02f609d13180e0bd987db0304c6e3c7ca3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web.dart @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; + +void main() { + enableFlutterDriverExtension(); + runApp(const GalleryApp(testMode: true)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..f30932d71b4cc6cc46b2921a647fdae847bd31a6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('scrolling performance test', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + driver.close(); + }); + + test('measure', () async { + await driver.tap(find.text('Material')); + + final SerializableFinder demoList = find.byValueKey('GalleryDemoList'); + + // TODO(eseidel): These are very artificial scrolls, we should use better + // https://github.com/flutter/flutter/issues/3316 + // Scroll down + for (int i = 0; i < 5; i++) { + await driver.scroll(demoList, 0.0, -300.0, const Duration(milliseconds: 300)); + await Future.delayed(const Duration(milliseconds: 500)); + } + + // Scroll up + for (int i = 0; i < 5; i++) { + await driver.scroll(demoList, 0.0, 300.0, const Duration(milliseconds: 300)); + await Future.delayed(const Duration(milliseconds: 500)); + } + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart new file mode 100644 index 0000000000000000000000000000000000000000..04b783f88fb7789d1342c85273a654f1ced3ad5e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert' show JsonEncoder; + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; +import 'package:flutter_gallery/demo_lists.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_gallery/gallery/demos.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'run_demos.dart'; + +// All of the gallery demos, identified as "title@category". +// +// These names are reported by the test app, see _handleMessages() +// in transitions_perf.dart. +List _allDemos = kAllGalleryDemos.map( + (GalleryDemo demo) => '${demo.title}@${demo.category.name}', +).toList(); + +Set _unTestedDemos = Set.from(_allDemos); + +class _MessageHandler { + static LiveWidgetController? controller; + Future call(String message) async { + switch (message) { + case 'demoNames': + return const JsonEncoder.withIndent(' ').convert(_allDemos); + case 'profileDemos': + controller ??= LiveWidgetController(WidgetsBinding.instance); + await runDemos(kProfiledDemos, controller!); + _unTestedDemos.removeAll(kProfiledDemos); + return const JsonEncoder.withIndent(' ').convert(kProfiledDemos); + case 'restDemos': + controller ??= LiveWidgetController(WidgetsBinding.instance); + final List restDemos = _unTestedDemos.toList(); + await runDemos(restDemos, controller!); + return const JsonEncoder.withIndent(' ').convert(restDemos); + default: + throw ArgumentError; + } + } +} + +void main() { + enableFlutterDriverExtension(handler: (String? message) => _MessageHandler().call(message!)); + // As in lib/main.dart: overriding https://github.com/flutter/flutter/issues/13736 + // for better visual effect at the cost of performance. + runApp(const GalleryApp(testMode: true)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart new file mode 100644 index 0000000000000000000000000000000000000000..11bc3cbe4a20a4e11a3e15de795423ea7b141ef7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_gallery/demo_lists.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_gallery/gallery/demos.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +import 'run_demos.dart'; + +// All of the gallery demos, identified as "title@category". +// +// These names are reported by the test app, see _handleMessages() +// in transitions_perf.dart. +List _allDemos = kAllGalleryDemos.map( + (GalleryDemo demo) => '${demo.title}@${demo.category.name}', +).toList(); + +void main([List args = const []]) { + final bool withSemantics = args.contains('--with_semantics'); + final IntegrationTestWidgetsFlutterBinding binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + group('flutter gallery transitions on e2e', () { + testWidgets('find.bySemanticsLabel', (WidgetTester tester) async { + runApp(const GalleryApp(testMode: true)); + await tester.pumpAndSettle(); + final int id = tester.getSemantics(find.bySemanticsLabel('Material')).id; + expect(id, greaterThan(-1)); + }, skip: !withSemantics); + + testWidgets( + 'all demos', + (WidgetTester tester) async { + runApp(const GalleryApp(testMode: true)); + await tester.pumpAndSettle(); + // Collect timeline data for just a limited set of demos to avoid OOMs. + await binding.watchPerformance(() async { + await runDemos(kProfiledDemos, tester); + }); + + // Execute the remaining tests. + final Set unprofiledDemos = Set.from(_allDemos) + ..removeAll(kProfiledDemos); + await runDemos(unprofiledDemos.toList(), tester); + }, + semanticsEnabled: withSemantics, + ); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..6ea85114be3cfc023c75d88dfbaa6dc133ebb174 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as driver; + +Future main() => driver.integrationDriver( + responseDataCallback: (Map? data) async { + await driver.writeResponseData( + data!['performance'] as Map, + testOutputFilename: 'e2e_perf_summary', + ); + } +); diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_with_semantics.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_with_semantics.dart new file mode 100644 index 0000000000000000000000000000000000000000..1f26cbda386d8e5387cd8f48af24bad848e69d0d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_with_semantics.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'transitions_perf_e2e.dart' as transitions_perf; + +void main() { + transitions_perf.main(['--with_semantics']); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..dc5ab42f021cb35f3989da7856c9a7e2dd713182 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'transitions_perf_test.dart' as transitions_perf_test; + +void main([List args = const []]) => transitions_perf_test.main( + ['--hybrid', ...args], +); diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..acea40463a7e22935b894069bf103a9b86abaf56 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart @@ -0,0 +1,237 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert' show JsonEncoder, json; + +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:flutter_gallery/demo_lists.dart'; +import 'package:path/path.dart' as path; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +const FileSystem _fs = LocalFileSystem(); + +/// The demos we don't run as part of the integration test. +/// +/// Demo names are formatted as 'DEMO_NAME@DEMO_CATEGORY' (see +/// `demo_lists.dart` for more examples). +const List kSkippedDemos = [ + // This demo is flaky on CI due to hitting the network. + // See: https://github.com/flutter/flutter/issues/100497 + 'Video@Media', +]; + +// All of the gallery demos, identified as "title@category". +// +// These names are reported by the test app, see _handleMessages() +// in transitions_perf.dart. +List _allDemos = []; + +/// Extracts event data from [events] recorded by timeline, validates it, turns +/// it into a histogram, and saves to a JSON file. +Future saveDurationsHistogram(List> events, String outputPath) async { + final Map> durations = >{}; + Map? startEvent; + int? frameStart; + + // Save the duration of the first frame after each 'Start Transition' event. + for (final Map event in events) { + final String eventName = event['name'] as String; + if (eventName == 'Start Transition') { + assert(startEvent == null); + startEvent = event; + } else if (startEvent != null && eventName == 'Frame') { + final String phase = event['ph'] as String; + final int timestamp = event['ts'] as int; + if (phase == 'B' || phase == 'b') { + assert(frameStart == null); + frameStart = timestamp; + } else { + assert(phase == 'E' || phase == 'e'); + final String routeName = (startEvent['args'] as Map)['to'] as String; + durations[routeName] ??= []; + durations[routeName]!.add(timestamp - frameStart!); + startEvent = null; + frameStart = null; + } + } + } + + // Verify that the durations data is valid. + if (durations.keys.isEmpty) { + throw 'no "Start Transition" timeline events found'; + } + final Map unexpectedValueCounts = {}; + durations.forEach((String routeName, List values) { + if (values.length != 2) { + unexpectedValueCounts[routeName] = values.length; + } + }); + + if (unexpectedValueCounts.isNotEmpty) { + final StringBuffer error = StringBuffer('Some routes recorded wrong number of values (expected 2 values/route):\n\n'); + // When run with --trace-startup, the VM stores trace events in an endless buffer instead of a ring buffer. + error.write('You must add the --trace-startup parameter to run the test. \n\n'); + unexpectedValueCounts.forEach((String routeName, int count) { + error.writeln(' - $routeName recorded $count values.'); + }); + error.writeln('\nFull event sequence:'); + final Iterator> eventIter = events.iterator; + String lastEventName = ''; + String lastRouteName = ''; + while (eventIter.moveNext()) { + final String eventName = eventIter.current['name'] as String; + + if (!['Start Transition', 'Frame'].contains(eventName)) { + continue; + } + + final String routeName = eventName == 'Start Transition' + ? (eventIter.current['args'] as Map)['to'] as String + : ''; + + if (eventName == lastEventName && routeName == lastRouteName) { + error.write('.'); + } else { + error.write('\n - $eventName $routeName .'); + } + + lastEventName = eventName; + lastRouteName = routeName; + } + throw error; + } + + // Save the durations Map to a file. + final File file = await _fs.file(outputPath).create(recursive: true); + await file.writeAsString(const JsonEncoder.withIndent(' ').convert(durations)); +} + +/// Scrolls each demo menu item into view, launches it, then returns to the +/// home screen twice. +Future runDemos(List demos, FlutterDriver driver) async { + final SerializableFinder demoList = find.byValueKey('GalleryDemoList'); + String? currentDemoCategory; + + for (final String demo in demos) { + if (kSkippedDemos.contains(demo)) { + continue; + } + + final String demoName = demo.substring(0, demo.indexOf('@')); + final String demoCategory = demo.substring(demo.indexOf('@') + 1); + print('> $demo'); + + final SerializableFinder demoCategoryItem = find.text(demoCategory); + if (currentDemoCategory == null) { + await driver.scrollIntoView(demoCategoryItem); + await driver.tap(demoCategoryItem); + } else if (currentDemoCategory != demoCategory) { + await driver.tap(find.byTooltip('Back')); + await driver.scrollIntoView(demoCategoryItem); + await driver.tap(demoCategoryItem); + // Scroll back to the top + await driver.scroll(demoList, 0.0, 10000.0, const Duration(milliseconds: 100)); + } + currentDemoCategory = demoCategory; + + final SerializableFinder demoItem = find.text(demoName); + await driver.scrollUntilVisible(demoList, demoItem, + dyScroll: -48.0, + alignment: 0.5, + ); + + for (int i = 0; i < 2; i += 1) { + await driver.tap(demoItem); // Launch the demo + + if (kUnsynchronizedDemos.contains(demo)) { + await driver.runUnsynchronized(() async { + await driver.tap(find.pageBack()); + }); + } else { + await driver.tap(find.pageBack()); + } + } + + print('< Success'); + } + + // Return to the home screen + await driver.tap(find.byTooltip('Back')); +} + +void main([List args = const []]) { + final bool withSemantics = args.contains('--with_semantics'); + final bool hybrid = args.contains('--hybrid'); + group('flutter gallery transitions', () { + late FlutterDriver driver; + setUpAll(() async { + driver = await FlutterDriver.connect(); + + // Wait for the first frame to be rasterized. + await driver.waitUntilFirstFrameRasterized(); + if (withSemantics) { + print('Enabling semantics...'); + await driver.setSemantics(true); + } + + // See _handleMessages() in transitions_perf.dart. + _allDemos = List.from(json.decode(await driver.requestData('demoNames')) as List); + if (_allDemos.isEmpty) { + throw 'no demo names found'; + } + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('find.bySemanticsLabel', () async { + // Assert that we can use semantics related finders in profile mode. + final int id = await driver.getSemanticsId(find.bySemanticsLabel('Material')); + expect(id, greaterThan(-1)); + }, + skip: !withSemantics, // [intended] test only makes sense when semantics are turned on. + timeout: Timeout.none, + ); + + test('all demos', () async { + // Collect timeline data for just a limited set of demos to avoid OOMs. + final Timeline timeline = await driver.traceAction( + () async { + if (hybrid) { + await driver.requestData('profileDemos'); + } else { + await runDemos(kProfiledDemos, driver); + } + }, + streams: const [ + TimelineStream.dart, + TimelineStream.embedder, + TimelineStream.gc, + ], + ); + + // Save the duration (in microseconds) of the first timeline Frame event + // that follows a 'Start Transition' event. The Gallery app adds a + // 'Start Transition' event when a demo is launched (see GalleryItem). + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('transitions', pretty: true); + final String histogramPath = path.join(testOutputsDirectory, 'transition_durations.timeline.json'); + await saveDurationsHistogram( + List>.from(timeline.json['traceEvents'] as List), + histogramPath); + + // Execute the remaining tests. + if (hybrid) { + await driver.requestData('restDemos'); + } else { + final Set unprofiledDemos = Set.from(_allDemos)..removeAll(kProfiledDemos); + await runDemos(unprofiledDemos.toList(), driver); + } + + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_with_semantics_test.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_with_semantics_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..eaa0ca226e32d24763ea301ee77847586c2aa6d6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_with_semantics_test.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'transitions_perf_test.dart' as transitions_perf_test; + +void main() { + transitions_perf_test.main(['--with_semantics']); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/back_button.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/back_button.dart new file mode 100644 index 0000000000000000000000000000000000000000..140a45a29cb345222764d41425b013be38770f8c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/back_button.dart @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// See //dev/devicelab/bin/tasks/flutter_gallery__memory_nav.dart + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_test/flutter_test.dart'; + +Future endOfAnimation() async { + do { + await SchedulerBinding.instance.endOfFrame; + } while (SchedulerBinding.instance.hasScheduledFrame); +} + +int iteration = 0; + +class LifecycleObserver extends WidgetsBindingObserver { + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + debugPrint('==== MEMORY BENCHMARK ==== $state ===='); + debugPrint('This was lifecycle event number $iteration in this instance'); + } +} + +Future main() async { + runApp(const GalleryApp()); + await endOfAnimation(); + await Future.delayed(const Duration(milliseconds: 50)); + debugPrint('==== MEMORY BENCHMARK ==== READY ===='); + WidgetsBinding.instance.addObserver(LifecycleObserver()); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart new file mode 100644 index 0000000000000000000000000000000000000000..ccac85a2ce1baa7831b236103ea62f644c5fb051 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/scheduler.dart'; +// See //dev/devicelab/bin/tasks/flutter_gallery__image_cache_memory.dart + +import 'package:flutter/widgets.dart'; +import 'package:flutter_test/flutter_test.dart'; + +// Once we provide an option for images to be resized to +// fit the container, we should see a significant drop in +// the amount of memory consumed by this benchmark. +Future main() async { + const int numItems = 10; + + runApp(Directionality( + textDirection: TextDirection.ltr, + child: ListView.builder( + key: const Key('ImageList'), + itemCount: numItems, + itemBuilder: (BuildContext context, int position) { + return SizedBox( + width: 200, + height: 200, + child: Center( + child: Image.asset( + 'monochrome/red-square-1024x1024.png', + package: 'flutter_gallery_assets', + width: 100, + height: 100, + fit: BoxFit.contain, + key: Key('image_$position'), + ), + ), + ); + }, + ), + )); + + await SchedulerBinding.instance.endOfFrame; + + // We are waiting for the GPU to rasterize a frame here. This makes this + // flaky, we can rely on a more deterministic source such as + // PlatformDispatcher.onReportTimings once + // https://github.com/flutter/flutter/issues/26154 is addressed. + await Future.delayed(const Duration(milliseconds: 50)); + debugPrint('==== MEMORY BENCHMARK ==== READY ===='); + + final WidgetController controller = + LiveWidgetController(WidgetsBinding.instance); + + debugPrint('Scrolling...'); + final Finder list = find.byKey(const Key('ImageList')); + final Finder lastItem = find.byKey(const Key('image_${numItems - 1}')); + do { + await controller.drag(list, const Offset(0.0, -30.0)); + await Future.delayed(const Duration(milliseconds: 20)); + } while (!lastItem.tryEvaluate()); + + debugPrint('==== MEMORY BENCHMARK ==== DONE ===='); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart new file mode 100644 index 0000000000000000000000000000000000000000..5992b64b1aa600bcd7aea842af26326b377ac9fe --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart @@ -0,0 +1,85 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// See //dev/devicelab/bin/tasks/flutter_gallery__memory_nav.dart + +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter_gallery/gallery/app.dart' show GalleryApp; +import 'package:flutter_test/flutter_test.dart'; + +Future endOfAnimation() async { + do { + await SchedulerBinding.instance.endOfFrame; + } while (SchedulerBinding.instance.hasScheduledFrame); +} + +Rect boundsFor(WidgetController controller, Finder item) { + final RenderBox box = controller.renderObject(item); + return box.localToGlobal(Offset.zero) & box.size; +} + +Future main() async { + final Completer ready = Completer(); + runApp(GestureDetector( + onTap: () { + debugPrint('Received tap.'); + ready.complete(); + }, + behavior: HitTestBehavior.opaque, + child: const IgnorePointer( + child: GalleryApp(testMode: true), + ), + )); + await SchedulerBinding.instance.endOfFrame; + await Future.delayed(const Duration(milliseconds: 50)); + debugPrint('==== MEMORY BENCHMARK ==== READY ===='); + + await ready.future; + debugPrint('Continuing...'); + + // remove onTap handler, enable pointer events for app + runApp(GestureDetector( + child: const IgnorePointer( + ignoring: false, + child: GalleryApp(testMode: true), + ), + )); + await SchedulerBinding.instance.endOfFrame; + + final WidgetController controller = LiveWidgetController(WidgetsBinding.instance); + + debugPrint('Navigating...'); + await controller.tap(find.text('Material')); + await Future.delayed(const Duration(milliseconds: 150)); + final Finder demoList = find.byKey(const Key('GalleryDemoList')); + final Finder demoItem = find.text('Text fields'); + do { + await controller.drag(demoList, const Offset(0.0, -300.0)); + await Future.delayed(const Duration(milliseconds: 20)); + } while (!demoItem.tryEvaluate()); + + // Ensure that the center of the "Text fields" item is visible + // because that's where we're going to tap + final Rect demoItemBounds = boundsFor(controller, demoItem); + final Rect demoListBounds = boundsFor(controller, demoList); + if (!demoListBounds.contains(demoItemBounds.center)) { + await controller.drag(demoList, Offset(0.0, demoListBounds.center.dy - demoItemBounds.center.dy)); + await endOfAnimation(); + } + + for (int iteration = 0; iteration < 15; iteration += 1) { + debugPrint('Tapping... (iteration $iteration)'); + await controller.tap(demoItem); + await endOfAnimation(); + debugPrint('Backing out...'); + await controller.tap(find.byTooltip('Back')); + await endOfAnimation(); + await Future.delayed(const Duration(milliseconds: 50)); + } + + debugPrint('==== MEMORY BENCHMARK ==== DONE ===='); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/tool/run_instrumentation_test.sh b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/tool/run_instrumentation_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e0a14ea354fde08e2c3baa4aceb85977003e563 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/tool/run_instrumentation_test.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +if [ ! -f "./pubspec.yaml" ]; then + echo "ERROR: current directory must be the root of flutter_gallery package" + exit 1 +fi + +cd android + +# Currently there's no non-hacky way to pass a device ID to gradlew, but it's +# OK as in the devicelab we have one device per host. +# +# See also: https://goo.gl/oe5aUW +./gradlew connectedAndroidTest -Ptarget=test/live_smoketest.dart diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/favicon.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/favicon.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-192.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-192.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-512.png b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/icons/Icon-512.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/index.html b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..89b85fdc1cd78e888d49f5b6ea7f8ee8c8beaeee --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/index.html @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + Flutter Gallery + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/manifest.json b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..adeae27227efc02ac2fd93c3c97fe2496d7abf9e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "flutter_gallery", + "short_name": "flutter_gallery", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..7bcccd0e730ba7e221fa34c6ba72fb85e8de1bdc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/CMakeLists.txt @@ -0,0 +1,95 @@ +cmake_minimum_required(VERSION 3.14) +project(flutter_gallery LANGUAGES CXX) + +set(BINARY_NAME "flutter_gallery") + +cmake_policy(VERSION 3.14...3.25) + +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Configure build options. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() + +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") + +# Flutter library and tool build rules. +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build +add_subdirectory("runner") + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/flutter/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..903f4899d6fced0eb941e159f7322b21b320c40c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..394917c053a04daa76d8b94f0a02db0bd99e1034 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/Runner.rc b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/Runner.rc new file mode 100644 index 0000000000000000000000000000000000000000..c6d66d79d3861b7328426318e5fa3d2128e43428 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +// IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "A new Flutter project." "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "flutter_gallery" "\0" + VALUE "LegalCopyright", "Copyright (C) 2021 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "flutter_gallery.exe" "\0" + VALUE "ProductName", "flutter_gallery" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.cpp b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..252aa267868b66dcc0805718bf85d561f027feb6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.cpp @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.h b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bbc5836c018a235235e8094ab411d98e1c5443fa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/flutter_window.h @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/main.cpp b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/main.cpp new file mode 100644 index 0000000000000000000000000000000000000000..5afa6e1d166a3bf25f45e022d0ba44c6ff71c328 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/main.cpp @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"flutter_gallery", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/resource.h b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/resource.h new file mode 100644 index 0000000000000000000000000000000000000000..c245ff19cb5805345a3d3265122298cb01b9d71f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/resource.h @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest new file mode 100644 index 0000000000000000000000000000000000000000..a42ea7687cb67e55af955dc8874a072e087ce3ed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f677d8d5f71412f9b1445a198b3a7685f5bfcb74 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length <= 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.h b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.h new file mode 100644 index 0000000000000000000000000000000000000000..54414c989ba716f78f3640e5407dd8ac74284aef --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.h @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.cpp b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..14a183d7eaa272a6faf6cc8811639b68142331fa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.cpp @@ -0,0 +1,292 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.h b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bb93e8879162ee652a0af7e428d938ad027ddcd7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/flutter_gallery/windows/runner/win32_window.h @@ -0,0 +1,106 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..d751a901137c8a051f11513b5356f97e18c95f8b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/build.gradle @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withInputStream { stream -> + localProperties.load(stream) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk 34 + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + applicationId "com.yourcompany.flavors" + minSdkVersion 21 + targetSdkVersion flutter.targetSdkVersion + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..3f278c4b84d40313d7ffd9a03f154de54f2b2c7b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..488c7fb7e6c2db4b6b9f09572ca42f0c2ba0ad71 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/java/com/yourcompany/flavors/MainActivity.java @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.yourcompany.flavors; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity {} diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..fa845f94be424f1a6e062eaaa5a9e999dc70a671 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-app.lockfile @@ -0,0 +1,122 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath +androidx.annotation:annotation:1.7.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..e51ff43d0cfeaf29563f4ca4fb572a19f3a10e24 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera.lockfile @@ -0,0 +1,167 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:core:1.3.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.3.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta03=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta03=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +backport-util-concurrent:backport-util-concurrent:3.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +classworlds:classworlds:1.1-alpha-2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.almworks.sqlite4java:sqlite4java:0.282=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.auto.service:auto-service:1.0-rc4=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.auto:auto-common:0.8=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.2.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:27.0.1-jre=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:2.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.ibm.icu:icu4j:53.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.12=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +nekohtml:nekohtml:1.9.6.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +nekohtml:xercesMinimal:1.9.6.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.11.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.11.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.ant:ant-launcher:1.8.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.ant:ant:1.8.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.apache.maven.wagon:wagon-file:1.0-beta-6=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven.wagon:wagon-http-shared:1.0-beta-6=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven.wagon:wagon-provider-api:1.0-beta-6=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-ant-tasks:2.1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-artifact-manager:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-artifact:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-error-diagnostics:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-model:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-plugin-registry:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-profile:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-project:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-repository-metadata:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.maven:maven-settings:2.2.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.52=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.5.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.17=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.plexus:plexus-interpolation:1.11=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.plexus:plexus-utils:1.5.15=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.mockito:mockito-core:3.12.4=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:3.12.4=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:7.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-commons:7.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-tree:7.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-util:7.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm:7.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:annotations:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:junit:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:pluginapi:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:plugins-maven-dependency-resolver:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:resources:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:robolectric:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:sandbox:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadowapi:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadows-framework:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils-reflector:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils:4.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..6893c1bc9893a79fbc48d59cc5ab4298fb907cdb --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android.lockfile @@ -0,0 +1,157 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.5.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.test:annotation:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:core:1.4.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.almworks.sqlite4java:sqlite4java:1.0.392=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.auto.value:auto-value-annotations:1.10.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.18.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:guava:31.1-jre=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.ibm.icu:icu4j:72.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk18on:1.72=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.12.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.conscrypt:conscrypt-openjdk-uber:2.5.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-analysis:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm-util:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +org.ow2.asm:asm:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:annotations:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:junit:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime-dist-compat:1.0.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:pluginapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:plugins-maven-dependency-resolver:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:resources:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:robolectric:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:sandbox:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadowapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadows-framework:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils-reflector:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android_camerax.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android_camerax.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..9f4e9bdcd3fc1252fc3e0724e47d6b9e599d859c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-camera_android_camerax.lockfile @@ -0,0 +1,95 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.camera:camera-camera2:1.3.4=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.camera:camera-core:1.3.4=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.camera:camera-lifecycle:1.3.4=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.camera:camera-video:1.3.4=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.exifinterface:exifinterface:1.3.2=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.5.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.test:annotation:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:core:1.4.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.almworks.sqlite4java:sqlite4java:1.0.392=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.auto.value:auto-value-annotations:1.10.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.auto.value:auto-value-annotations:1.6.3=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.26.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:33.2.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:3.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugUnitTestCompileClasspath,profileCompileClasspath,profileUnitTestCompileClasspath,releaseCompileClasspath,releaseUnitTestCompileClasspath +com.ibm.icu:icu4j:72.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.annotation:javax.annotation-api:1.3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.bouncycastle:bcprov-jdk18on:1.72=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.42.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.conscrypt:conscrypt-openjdk-uber:2.5.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-bom:1.8.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:23.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-commons:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-tree:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-util:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:annotations:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:junit:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime-dist-compat:1.0.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:pluginapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:plugins-maven-dependency-resolver:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:resources:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:robolectric:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:sandbox:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadowapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadows-framework:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils-reflector:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-flutter_plugin_android_lifecycle.lockfile b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-flutter_plugin_android_lifecycle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..aeabe7398c7932b2cc3e0488206c7c54f3561651 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/project-flutter_plugin_android_lifecycle.lockfile @@ -0,0 +1,125 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.mockito:mockito-core:5.1.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..80b2e6844464076dabafbe0747db7c01ba7e66c3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/android/settings.gradle @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This is the `settings.gradle` file that apps were created with until Flutter +// v1.22.0. This file has changed, so it must be migrated in existing projects. + +include ':app' + +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +def plugins = new Properties() +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') +if (pluginsFile.exists()) { + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } +} + +plugins.each { name, path -> + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() + include ":$name" + project(":$name").projectDir = pluginDirectory +} diff --git a/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..b0681fd5a006509739cb801a3e9815d42d07bb62 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/gradle_deprecated_settings/lib/main.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const Text('Nothing to show')); +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f0bafdcf159d48e94d4d550564c4adf7f5fd12d1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/build.gradle @@ -0,0 +1,59 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "io.flutter.integration.platformviews" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..1ea36ce140ce03999bdedc27ce0797aacebfe391 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..2e5b6199ba49cd504167fa4d1f03350f3daae02b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MainActivity.java @@ -0,0 +1,169 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.integration.platformviews; + +import android.Manifest; +import android.content.pm.PackageManager; +import android.os.Build; +import android.os.Bundle; +import android.view.MotionEvent; +import android.view.View; +import android.view.ViewGroup; + +import java.lang.StringBuilder; +import java.util.HashMap; + +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.android.FlutterImageView; +import io.flutter.embedding.android.FlutterSurfaceView; +import io.flutter.embedding.android.FlutterTextureView; +import io.flutter.embedding.android.FlutterView; +import io.flutter.embedding.engine.dart.DartExecutor; +import io.flutter.embedding.engine.FlutterEngine; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity implements MethodChannel.MethodCallHandler { + final static int STORAGE_PERMISSION_CODE = 1; + + MethodChannel mMethodChannel; + + // The method result to complete with the Android permission request result. + // This is null when not waiting for the Android permission request; + private MethodChannel.Result permissionResult; + + private View getFlutterView() { + return findViewById(FLUTTER_VIEW_ID); + } + + private String getViewName(View view) { + if (view instanceof FlutterImageView) { + return "FlutterImageView"; + } + if (view instanceof FlutterSurfaceView) { + return "FlutterSurfaceView"; + } + if (view instanceof FlutterTextureView) { + return "FlutterTextureView"; + } + if (view instanceof FlutterView) { + return "FlutterView"; + } + if (view instanceof ViewGroup) { + return "ViewGroup"; + } + return "View"; + } + + private void recurseViewHierarchy(View current, String padding, StringBuilder builder) { + if (current.getVisibility() != View.VISIBLE || current.getAlpha() == 0) { + return; + } + String name = getViewName(current); + builder.append(padding); + builder.append("|-"); + builder.append(name); + builder.append("\n"); + + if (current instanceof ViewGroup) { + ViewGroup viewGroup = (ViewGroup) current; + for (int index = 0; index < viewGroup.getChildCount(); index++) { + recurseViewHierarchy(viewGroup.getChildAt(index), padding + " ", builder); + } + } + } + + /** + * Serializes the view hierarchy, so it can be sent to Dart over the method channel. + * + * Notation: + * |- + * |- ... child view ordered by z order. + * + * Example output: + * |- FlutterView + * |- FlutterImageView + * |- ViewGroup + * |- View + */ + private String getSerializedViewHierarchy() { + View root = getFlutterView(); + StringBuilder builder = new StringBuilder(); + recurseViewHierarchy(root, "", builder); + return builder.toString(); + } + + @Override + public void configureFlutterEngine(FlutterEngine flutterEngine) { + DartExecutor executor = flutterEngine.getDartExecutor(); + flutterEngine + .getPlatformViewsController() + .getRegistry() + .registerViewFactory("simple_view", new SimpleViewFactory(executor)); + mMethodChannel = new MethodChannel(executor, "android_views_integration"); + mMethodChannel.setMethodCallHandler(this); + GeneratedPluginRegistrant.registerWith(flutterEngine); + } + + @Override + public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) { + switch (methodCall.method) { + case "getStoragePermission": + if (permissionResult != null) { + result.error("error", "already waiting for permissions", null); + return; + } + permissionResult = result; + getExternalStoragePermissions(); + return; + case "synthesizeEvent": + synthesizeEvent(methodCall); + result.success(null); + return; + case "getViewHierarchy": + String viewHierarchy = getSerializedViewHierarchy(); + result.success(viewHierarchy); + return; + } + result.notImplemented(); + } + + @SuppressWarnings("unchecked") + public void synthesizeEvent(MethodCall methodCall) { + MotionEvent event = MotionEventCodec.decode((HashMap) methodCall.arguments()); + getFlutterView().dispatchTouchEvent(event); + // TODO(egarciad): Remove invokeMethod since it is not necessary. + mMethodChannel.invokeMethod("onTouch", MotionEventCodec.encode(event)); + } + + @Override + public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { + if (requestCode != STORAGE_PERMISSION_CODE || permissionResult == null) + return; + boolean permissionGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED; + sendPermissionResult(permissionGranted); + } + + private void getExternalStoragePermissions() { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) + return; + + if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) + == PackageManager.PERMISSION_GRANTED) { + sendPermissionResult(true); + return; + } + + requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, STORAGE_PERMISSION_CODE); + } + + private void sendPermissionResult(boolean result) { + if (permissionResult == null) + return; + permissionResult.success(result); + permissionResult = null; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MotionEventCodec.java b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MotionEventCodec.java new file mode 100644 index 0000000000000000000000000000000000000000..21a10df6ac26bc10c74b45033262874371863eda --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/MotionEventCodec.java @@ -0,0 +1,125 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.integration.platformviews; + +import android.annotation.TargetApi; +import android.os.Build; +import android.view.MotionEvent; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import static android.view.MotionEvent.PointerCoords; +import static android.view.MotionEvent.PointerProperties; + +@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) +public class MotionEventCodec { + public static HashMap encode(MotionEvent event) { + ArrayList> pointerProperties = new ArrayList<>(); + ArrayList> pointerCoords = new ArrayList<>(); + + for (int i = 0; i < event.getPointerCount(); i++) { + MotionEvent.PointerProperties properties = new MotionEvent.PointerProperties(); + event.getPointerProperties(i, properties); + pointerProperties.add(encodePointerProperties(properties)); + + MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); + event.getPointerCoords(i, coords); + pointerCoords.add(encodePointerCoords(coords)); + } + + HashMap eventMap = new HashMap<>(); + eventMap.put("downTime", event.getDownTime()); + eventMap.put("eventTime", event.getEventTime()); + eventMap.put("action", event.getAction()); + eventMap.put("pointerCount", event.getPointerCount()); + eventMap.put("pointerProperties", pointerProperties); + eventMap.put("pointerCoords", pointerCoords); + eventMap.put("metaState", event.getMetaState()); + eventMap.put("buttonState", event.getButtonState()); + eventMap.put("xPrecision", event.getXPrecision()); + eventMap.put("yPrecision", event.getYPrecision()); + eventMap.put("deviceId", event.getDeviceId()); + eventMap.put("edgeFlags", event.getEdgeFlags()); + eventMap.put("source", event.getSource()); + eventMap.put("flags", event.getFlags()); + + return eventMap; + } + + private static HashMap encodePointerProperties(PointerProperties properties) { + HashMap map = new HashMap<>(); + map.put("id", properties.id); + map.put("toolType", properties.toolType); + return map; + } + + private static HashMap encodePointerCoords(PointerCoords coords) { + HashMap map = new HashMap<>(); + map.put("orientation", coords.orientation); + map.put("pressure", coords.pressure); + map.put("size", coords.size); + map.put("toolMajor", coords.toolMajor); + map.put("toolMinor", coords.toolMinor); + map.put("touchMajor", coords.touchMajor); + map.put("touchMinor", coords.touchMinor); + map.put("x", coords.x); + map.put("y", coords.y); + return map; + } + + @SuppressWarnings("unchecked") + public static MotionEvent decode(HashMap data) { + List pointerProperties = new ArrayList<>(); + List pointerCoords = new ArrayList<>(); + + for (HashMap property : (List>) data.get("pointerProperties")) { + pointerProperties.add(decodePointerProperties(property)) ; + } + + for (HashMap coord : (List>) data.get("pointerCoords")) { + pointerCoords.add(decodePointerCoords(coord)) ; + } + + return MotionEvent.obtain( + (int) data.get("downTime"), + (int) data.get("eventTime"), + (int) data.get("action"), + (int) data.get("pointerCount"), + pointerProperties.toArray(new PointerProperties[pointerProperties.size()]), + pointerCoords.toArray(new PointerCoords[pointerCoords.size()]), + (int) data.get("metaState"), + (int) data.get("buttonState"), + (float) (double) data.get("xPrecision"), + (float) (double) data.get("yPrecision"), + (int) data.get("deviceId"), + (int) data.get("edgeFlags"), + (int) data.get("source"), + (int) data.get("flags") + ); + } + + private static PointerProperties decodePointerProperties(HashMap data) { + PointerProperties properties = new PointerProperties(); + properties.id = (int) data.get("id"); + properties.toolType = (int) data.get("toolType"); + return properties; + } + + private static PointerCoords decodePointerCoords(HashMap data) { + PointerCoords coords = new PointerCoords(); + coords.orientation = (float) (double) data.get("orientation"); + coords.pressure = (float) (double) data.get("pressure"); + coords.size = (float) (double) data.get("size"); + coords.toolMajor = (float) (double) data.get("toolMajor"); + coords.toolMinor = (float) (double) data.get("toolMinor"); + coords.touchMajor = (float) (double) data.get("touchMajor"); + coords.touchMinor = (float) (double) data.get("touchMinor"); + coords.x = (float) (double) data.get("x"); + coords.y = (float) (double) data.get("y"); + return coords; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java new file mode 100644 index 0000000000000000000000000000000000000000..4f88e4a23862a91d3181ea78b81790e3caf91aa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java @@ -0,0 +1,99 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.integration.platformviews; + +import android.app.AlertDialog; +import android.content.Context; +import android.graphics.PixelFormat; +import android.util.Log; +import android.view.Gravity; +import android.view.MotionEvent; +import android.view.View; +import android.view.WindowManager; +import android.widget.Button; +import android.widget.FrameLayout; +import android.widget.TextView; + +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.platform.PlatformView; + +public class SimplePlatformView implements PlatformView, MethodChannel.MethodCallHandler { + private final FrameLayout view; + private final MethodChannel methodChannel; + private final io.flutter.integration.platformviews.TouchPipe touchPipe; + + SimplePlatformView(Context context, MethodChannel methodChannel) { + this.methodChannel = methodChannel; + this.methodChannel.setMethodCallHandler(this); + + view = new FrameLayout(context) { + @Override + public boolean onTouchEvent(MotionEvent event) { + return true; + } + }; + view.setBackgroundColor(0xff0000ff); + + touchPipe = new TouchPipe(this.methodChannel, view); + } + + @Override + public View getView() { + return view; + } + + @Override + public void dispose() {} + + @Override + public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) { + switch (methodCall.method) { + case "pipeTouchEvents": + touchPipe.enable(); + result.success(null); + return; + case "stopTouchEvents": + touchPipe.disable(); + result.success(null); + return; + case "showAndHideAlertDialog": + showAndHideAlertDialog(result); + return; + case "addChildViewAndWaitForClick": + addWindow(result); + return; + + } + result.notImplemented(); + } + + private void showAndHideAlertDialog(MethodChannel.Result result) { + Context context = view.getContext(); + AlertDialog.Builder builder = new AlertDialog.Builder(context); + TextView textView = new TextView(context); + textView.setText("This alert dialog will close in 1 second"); + builder.setView(textView); + final AlertDialog alertDialog = builder.show(); + result.success(null); + view.postDelayed(new Runnable() { + @Override + public void run() { + alertDialog.hide(); + } + }, 1000); + } + + private void addWindow(final MethodChannel.Result result) { + Context context = view.getContext(); + final Button button = new Button(context); + button.setText("This view was added to the Android view"); + view.addView(button); + button.setOnClickListener(v -> { + view.removeView(button); + result.success(null); + }); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimpleViewFactory.java b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimpleViewFactory.java new file mode 100644 index 0000000000000000000000000000000000000000..c5c508be8cb7e6f13e0b068ad0eb17516afef120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimpleViewFactory.java @@ -0,0 +1,27 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.integration.platformviews; + +import android.content.Context; + +import io.flutter.embedding.engine.dart.DartExecutor; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.platform.PlatformView; +import io.flutter.plugin.platform.PlatformViewFactory; + +public class SimpleViewFactory extends PlatformViewFactory { + final DartExecutor executor; + + public SimpleViewFactory(DartExecutor executor) { + super(null); + this.executor = executor; + } + + @Override + public PlatformView create(Context context, int id, Object params) { + MethodChannel methodChannel = new MethodChannel(executor, "simple_view/" + id); + return new SimplePlatformView(context, methodChannel); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/TouchPipe.java b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/TouchPipe.java new file mode 100644 index 0000000000000000000000000000000000000000..6ff06ab193fdd99eb63857575ca561ea6b12fc3a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/app/src/main/java/io/flutter/integration/androidviews/TouchPipe.java @@ -0,0 +1,45 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.integration.platformviews; + +import android.annotation.TargetApi; +import android.os.Build; +import android.view.MotionEvent; +import android.view.View; + +import io.flutter.plugin.common.MethodChannel; + +@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) +class TouchPipe implements View.OnTouchListener { + private final MethodChannel mMethodChannel; + private final View mView; + + private boolean mEnabled; + + TouchPipe(MethodChannel methodChannel, View view) { + mMethodChannel = methodChannel; + mView = view; + } + + public void enable() { + if (mEnabled) + return; + mEnabled = true; + mView.setOnTouchListener(this); + } + + public void disable() { + if (!mEnabled) + return; + mEnabled = false; + mView.setOnTouchListener(null); + } + + @Override + public boolean onTouch(View v, MotionEvent event) { + mMethodChannel.invokeMethod("onTouch", MotionEventCodec.encode(event)); + return false; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..fa845f94be424f1a6e062eaaa5a9e999dc70a671 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-app.lockfile @@ -0,0 +1,122 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath +androidx.annotation:annotation:1.7.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider.lockfile b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..ed5333598b85a0a1e8b1f089abdf10e52433e720 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider.lockfile @@ -0,0 +1,114 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta03=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta03=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.12=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +empty=androidApis,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider_android.lockfile b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..f9308a145d2c8c2e99cf3b5b844c23dfe5271da4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/project-path_provider_android.lockfile @@ -0,0 +1,45 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/android_platform_view.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/android_platform_view.dart new file mode 100644 index 0000000000000000000000000000000000000000..e341cdde5597bc7eb13d781d8b3f3b120accaa9e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/android_platform_view.dart @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; + +MethodChannel channel = const MethodChannel('android_views_integration'); + +class AndroidPlatformView extends StatelessWidget { + /// Creates a platform view for Android, which is rendered as a + /// native view. + /// `viewType` identifies the type of Android view to create. + const AndroidPlatformView({ + super.key, + this.onPlatformViewCreated, + this.useHybridComposition = false, + required this.viewType, + }); + + /// The unique identifier for the view type to be embedded by this widget. + /// + /// A PlatformViewFactory for this type must have been registered. + final String viewType; + + /// Callback to invoke after the platform view has been created. + /// + /// May be null. + final PlatformViewCreatedCallback? onPlatformViewCreated; + + // Use hybrid composition. + final bool useHybridComposition; + + @override + Widget build(BuildContext context) { + return PlatformViewLink( + viewType: viewType, + surfaceFactory: + (BuildContext context, PlatformViewController controller) { + return AndroidViewSurface( + controller: controller as AndroidViewController, + gestureRecognizers: const >{}, + hitTestBehavior: PlatformViewHitTestBehavior.opaque, + ); + }, + onCreatePlatformView: (PlatformViewCreationParams params) { + print('useHybridComposition=$useHybridComposition'); + late AndroidViewController controller; + if (useHybridComposition) { + controller = PlatformViewsService.initExpensiveAndroidView( + id: params.id, + viewType: params.viewType, + layoutDirection: TextDirection.ltr, + ); + } else { + controller = PlatformViewsService.initSurfaceAndroidView( + id: params.id, + viewType: params.viewType, + layoutDirection: TextDirection.ltr, + ); + } + if (onPlatformViewCreated != null) { + controller.addOnPlatformViewCreatedListener(onPlatformViewCreated!); + } + return controller + ..addOnPlatformViewCreatedListener(params.onPlatformViewCreated) + ..create(); + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/future_data_handler.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/future_data_handler.dart new file mode 100644 index 0000000000000000000000000000000000000000..612bd110ba48aafcf7f104790ed07ba365753b34 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/future_data_handler.dart @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_driver/driver_extension.dart'; + +typedef DriverHandler = Future Function(); + +/// Wraps a flutter driver [DataHandler] with one that waits until a delegate is set. +/// +/// This allows the driver test to call [FlutterDriver.requestData] before the handler was +/// set by the app in which case the requestData call will only complete once the app is ready +/// for it. +class FutureDataHandler { + final Map> _handlers = >{}; + + /// Registers a lazy handler that will be invoked on the next message from the driver. + Completer registerHandler(String key) { + _handlers[key] = Completer(); + return _handlers[key]!; + } + + Future handleMessage(String? message) async { + if (_handlers[message] == null) { + return 'Unsupported driver message: $message.\n' + 'Supported messages are: ${_handlers.keys}.'; + } + final DriverHandler handler = await _handlers[message]!.future; + return handler(); + } +} + +FutureDataHandler driverDataHandler = FutureDataHandler(); diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..2009c8e97f94b2db6dbb9fe5c65a0aa8cc969223 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/main.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +import 'future_data_handler.dart'; +import 'motion_events_page.dart'; +import 'nested_view_event_page.dart'; +import 'page.dart'; + +final List _allPages = [ + const MotionEventsPage(), + const NestedViewEventPage(), +]; + +void main() { + enableFlutterDriverExtension(handler: driverDataHandler.handleMessage); + runApp(const MaterialApp(home: Home())); +} + +class Home extends StatelessWidget { + const Home({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: ListView( + children: _allPages.map((PageWidget p) => _buildPageListTile(context, p)).toList(), + ), + ); + } + + Widget _buildPageListTile(BuildContext context, PageWidget page) { + return ListTile( + title: Text(page.title), + key: page.tileKey, + onTap: () { _pushPage(context, page); }, + ); + } + + void _pushPage(BuildContext context, PageWidget page) { + Navigator.of(context).push(MaterialPageRoute( + builder: (_) => Scaffold( + body: page, + ))); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_event_diff.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_event_diff.dart new file mode 100644 index 0000000000000000000000000000000000000000..c2879e4a48c19696dfd3cf3796f4aad11785dcb1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_event_diff.dart @@ -0,0 +1,169 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:collection/collection.dart'; + +// Android MotionEvent actions for which a pointer index is encoded in the +// unmasked action code. +const List kPointerActions = [ + 0, // DOWN + 1, // UP + 5, // POINTER_DOWN + 6, // POINTER_UP +]; + +const double kDoubleErrorMargin = 1e-4; + +String diffMotionEvents( + Map originalEvent, + Map synthesizedEvent, +) { + final StringBuffer diff = StringBuffer(); + + diffMaps(originalEvent, synthesizedEvent, diff, excludeKeys: const [ + 'pointerProperties', // Compared separately. + 'pointerCoords', // Compared separately. + 'source', // Unused by Flutter. + 'deviceId', // Android documentation says that's an arbitrary number that shouldn't be depended on. + 'action', // Compared separately. + ]); + + diffActions(diff, originalEvent, synthesizedEvent); + diffPointerProperties(diff, originalEvent, synthesizedEvent); + diffPointerCoordsList(diff, originalEvent, synthesizedEvent); + + return diff.toString(); +} + +void diffActions(StringBuffer diffBuffer, Map originalEvent, + Map synthesizedEvent) { + final int synthesizedActionMasked = + getActionMasked(synthesizedEvent['action'] as int); + final int originalActionMasked = getActionMasked(originalEvent['action'] as int); + final String synthesizedActionName = + getActionName(synthesizedActionMasked, synthesizedEvent['action'] as int); + final String originalActionName = + getActionName(originalActionMasked, originalEvent['action'] as int); + + if (synthesizedActionMasked != originalActionMasked) { + diffBuffer.write( + 'action (expected: $originalActionName actual: $synthesizedActionName) '); + } + + if (kPointerActions.contains(originalActionMasked) && + originalActionMasked == synthesizedActionMasked) { + final int originalPointer = getPointerIdx(originalEvent['action'] as int); + final int synthesizedPointer = getPointerIdx(synthesizedEvent['action'] as int); + if (originalPointer != synthesizedPointer) { + diffBuffer.write( + 'pointerIdx (expected: $originalPointer actual: $synthesizedPointer action: $originalActionName '); + } + } +} + +void diffPointerProperties(StringBuffer diffBuffer, + Map originalEvent, Map synthesizedEvent) { + final List> expectedList = + (originalEvent['pointerProperties'] as List).cast>(); + final List> actualList = + (synthesizedEvent['pointerProperties'] as List).cast>(); + + if (expectedList.length != actualList.length) { + diffBuffer.write( + 'pointerProperties (actual length: ${actualList.length}, expected length: ${expectedList.length} '); + return; + } + + for (int i = 0; i < expectedList.length; i++) { + final Map expected = + expectedList[i].cast(); + final Map actual = actualList[i].cast(); + diffMaps(expected, actual, diffBuffer, + messagePrefix: '[pointerProperty $i] '); + } +} + +void diffPointerCoordsList(StringBuffer diffBuffer, + Map originalEvent, Map synthesizedEvent) { + final List> expectedList = + (originalEvent['pointerCoords'] as List).cast>(); + final List> actualList = + (synthesizedEvent['pointerCoords'] as List).cast>(); + + if (expectedList.length != actualList.length) { + diffBuffer.write( + 'pointerCoords (actual length: ${actualList.length}, expected length: ${expectedList.length} '); + return; + } + + for (int i = 0; i < expectedList.length; i++) { + final Map expected = + expectedList[i].cast(); + final Map actual = actualList[i].cast(); + diffPointerCoords(expected, actual, i, diffBuffer); + } +} + +void diffPointerCoords(Map expected, + Map actual, int pointerIdx, StringBuffer diffBuffer) { + diffMaps(expected, actual, diffBuffer, messagePrefix: '[pointerCoord $pointerIdx] '); +} + +void diffMaps( + Map expected, + Map actual, + StringBuffer diffBuffer, { + List excludeKeys = const [], + String messagePrefix = '', +}) { + const IterableEquality eq = IterableEquality(); + if (!eq.equals(expected.keys, actual.keys)) { + diffBuffer.write( + '${messagePrefix}keys (expected: ${expected.keys} actual: ${actual.keys} '); + return; + } + for (final String key in expected.keys) { + if (excludeKeys.contains(key)) { + continue; + } + if (doublesApproximatelyMatch(expected[key], actual[key])) { + continue; + } + + if (expected[key] != actual[key]) { + diffBuffer.write( + '$messagePrefix$key (expected: ${expected[key]} actual: ${actual[key]}) '); + } + } +} + +int getActionMasked(int action) => action & 0xff; + +int getPointerIdx(int action) => (action >> 8) & 0xff; + +String getActionName(int actionMasked, int action) { + const List actionNames = [ + 'DOWN', + 'UP', + 'MOVE', + 'CANCEL', + 'OUTSIDE', + 'POINTER_DOWN', + 'POINTER_UP', + 'HOVER_MOVE', + 'SCROLL', + 'HOVER_ENTER', + 'HOVER_EXIT', + 'BUTTON_PRESS', + 'BUTTON_RELEASE', + ]; + if (actionMasked < actionNames.length) { + return '${actionNames[actionMasked]}($action)'; + } else { + return 'ACTION_$actionMasked'; + } +} + +bool doublesApproximatelyMatch(dynamic a, dynamic b) => + a is double && b is double && (a - b).abs() < kDoubleErrorMargin; diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_events_page.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_events_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..7062d6f6daa9fec496805aad4142500f8f79e208 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/motion_events_page.dart @@ -0,0 +1,291 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:path_provider/path_provider.dart'; + +import 'android_platform_view.dart'; +import 'future_data_handler.dart'; +import 'motion_event_diff.dart'; +import 'page.dart'; + +const String kEventsFileName = 'touchEvents'; + +class MotionEventsPage extends PageWidget { + const MotionEventsPage({Key? key}) + : super('Motion Event Tests', const ValueKey('MotionEventsListTile'), key: key); + + @override + Widget build(BuildContext context) { + return const MotionEventsBody(); + } +} + +class MotionEventsBody extends StatefulWidget { + const MotionEventsBody({super.key}); + + @override + State createState() => MotionEventsBodyState(); +} + +class MotionEventsBodyState extends State { + static const int kEventsBufferSize = 1000; + + MethodChannel? viewChannel; + + /// The list of motion events that were passed to the FlutterView. + List> flutterViewEvents = >[]; + + /// The list of motion events that were passed to the embedded view. + List> embeddedViewEvents = >[]; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + SizedBox( + height: 300.0, + child: AndroidPlatformView( + key: const ValueKey('PlatformView'), + viewType: 'simple_view', + onPlatformViewCreated: onPlatformViewCreated, + ), + ), + Expanded( + child: ListView.builder( + itemBuilder: buildEventTile, + itemCount: flutterViewEvents.length, + ), + ), + Row( + children: [ + Expanded( + child: ElevatedButton( + onPressed: listenToFlutterViewEvents, + child: const Text('RECORD'), + ), + ), + Expanded( + child: ElevatedButton( + child: const Text('CLEAR'), + onPressed: () { + setState(() { + flutterViewEvents.clear(); + embeddedViewEvents.clear(); + }); + }, + ), + ), + Expanded( + child: ElevatedButton( + child: const Text('SAVE'), + onPressed: () { + const StandardMessageCodec codec = StandardMessageCodec(); + saveRecordedEvents( + codec.encodeMessage(flutterViewEvents)!, context); + }, + ), + ), + Expanded( + child: ElevatedButton( + key: const ValueKey('play'), + child: const Text('PLAY FILE'), + onPressed: () { playEventsFile(); }, + ), + ), + Expanded( + child: ElevatedButton( + key: const ValueKey('back'), + child: const Text('BACK'), + onPressed: () { Navigator.pop(context); }, + ), + ), + ], + ), + ], + ); + } + + Future playEventsFile() async { + const StandardMessageCodec codec = StandardMessageCodec(); + try { + final ByteData data = await rootBundle.load('packages/assets_for_android_views/assets/touchEvents'); + final List unTypedRecordedEvents = codec.decodeMessage(data) as List; + final List> recordedEvents = unTypedRecordedEvents + .cast>() + .map>((Map e) =>e.cast()) + .toList(); + await viewChannel!.invokeMethod('pipeTouchEvents'); + print('replaying ${recordedEvents.length} motion events'); + for (final Map event in recordedEvents.reversed) { + await channel.invokeMethod('synthesizeEvent', event); + } + + await viewChannel!.invokeMethod('stopTouchEvents'); + + if (flutterViewEvents.length != embeddedViewEvents.length) { + return 'Synthesized ${flutterViewEvents.length} events but the embedded view received ${embeddedViewEvents.length} events'; + } + + final StringBuffer diff = StringBuffer(); + for (int i = 0; i < flutterViewEvents.length; ++i) { + final String currentDiff = diffMotionEvents(flutterViewEvents[i], embeddedViewEvents[i]); + if (currentDiff.isEmpty) { + continue; + } + if (diff.isNotEmpty) { + diff.write(', '); + } + diff.write(currentDiff); + } + return diff.toString(); + } catch (e) { + return e.toString(); + } + } + + @override + void initState() { + super.initState(); + channel.setMethodCallHandler(onMethodChannelCall); + } + + Future saveRecordedEvents(ByteData data, BuildContext context) async { + if (await channel.invokeMethod('getStoragePermission') != true) { + if (context.mounted) { + showMessage(context, 'External storage permissions are required to save events'); + } + return; + } + try { + final Directory outDir = (await getExternalStorageDirectory())!; + // This test only runs on Android so we can assume path separator is '/'. + final File file = File('${outDir.path}/$kEventsFileName'); + await file.writeAsBytes(data.buffer.asUint8List(0, data.lengthInBytes), flush: true); + if (!context.mounted) { + return; + } + showMessage(context, 'Saved original events to ${file.path}'); + } catch (e) { + if (!context.mounted) { + return; + } + showMessage(context, 'Failed saving $e'); + } + } + + void showMessage(BuildContext context, String message) { + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text(message), + duration: const Duration(seconds: 3), + )); + } + + void onPlatformViewCreated(int id) { + viewChannel = MethodChannel('simple_view/$id') + ..setMethodCallHandler(onViewMethodChannelCall); + driverDataHandler.registerHandler('run test').complete(playEventsFile); + } + + void listenToFlutterViewEvents() { + viewChannel!.invokeMethod('pipeTouchEvents'); + Timer(const Duration(seconds: 3), () { + viewChannel!.invokeMethod('stopTouchEvents'); + }); + } + + Future onMethodChannelCall(MethodCall call) { + switch (call.method) { + case 'onTouch': + final Map map = call.arguments as Map; + flutterViewEvents.insert(0, map.cast()); + if (flutterViewEvents.length > kEventsBufferSize) { + flutterViewEvents.removeLast(); + } + setState(() {}); + } + return Future.value(); + } + + Future onViewMethodChannelCall(MethodCall call) { + switch (call.method) { + case 'onTouch': + final Map map = call.arguments as Map; + embeddedViewEvents.insert(0, map.cast()); + if (embeddedViewEvents.length > kEventsBufferSize) { + embeddedViewEvents.removeLast(); + } + setState(() {}); + } + return Future.value(); + } + + Widget buildEventTile(BuildContext context, int index) { + if (embeddedViewEvents.length > index) { + return TouchEventDiff( + flutterViewEvents[index], embeddedViewEvents[index]); + } + return Text( + 'Unmatched event, action: ${flutterViewEvents[index]['action']}'); + } +} + +class TouchEventDiff extends StatelessWidget { + const TouchEventDiff(this.originalEvent, this.synthesizedEvent, {super.key}); + + final Map originalEvent; + final Map synthesizedEvent; + + @override + Widget build(BuildContext context) { + + Color color; + final String diff = diffMotionEvents(originalEvent, synthesizedEvent); + String msg; + final int action = synthesizedEvent['action'] as int; + final String actionName = getActionName(getActionMasked(action), action); + if (diff.isEmpty) { + color = Colors.green; + msg = 'Matched event (action $actionName)'; + } else { + color = Colors.red; + msg = '[$actionName] $diff'; + } + return GestureDetector( + onLongPress: () { + print('expected:'); + prettyPrintEvent(originalEvent); + print('\nactual:'); + prettyPrintEvent(synthesizedEvent); + }, + child: Container( + color: color, + margin: const EdgeInsets.only(bottom: 2.0), + child: Text(msg), + ), + ); + } + + void prettyPrintEvent(Map event) { + final StringBuffer buffer = StringBuffer(); + final int action = event['action'] as int; + final int maskedAction = getActionMasked(action); + final String actionName = getActionName(maskedAction, action); + + buffer.write('$actionName '); + if (maskedAction == 5 || maskedAction == 6) { + buffer.write('pointer: ${getPointerIdx(action)} '); + } + + final List> coords = (event['pointerCoords'] as List).cast>(); + for (int i = 0; i < coords.length; i++) { + buffer.write('p$i x: ${coords[i]['x']} y: ${coords[i]['y']}, pressure: ${coords[i]['pressure']} '); + } + print(buffer); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/nested_view_event_page.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/nested_view_event_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..b58580c40727cb8462ab8e4bbe99ed43b5a0b609 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/nested_view_event_page.dart @@ -0,0 +1,214 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +import 'android_platform_view.dart'; +import 'future_data_handler.dart'; +import 'page.dart'; + +class NestedViewEventPage extends PageWidget { + const NestedViewEventPage({Key? key}) + : super('Nested View Event Tests', const ValueKey('NestedViewEventTile'), key: key); + + @override + Widget build(BuildContext context) => const NestedViewEventBody(); +} + +class NestedViewEventBody extends StatefulWidget { + const NestedViewEventBody({super.key}); + + @override + State createState() => NestedViewEventBodyState(); +} + +enum _LastTestStatus { + pending, + success, + error +} + +class NestedViewEventBodyState extends State { + MethodChannel? viewChannel; + _LastTestStatus _lastTestStatus = _LastTestStatus.pending; + String? lastError; + int? id; + int nestedViewClickCount = 0; + bool showPlatformView = true; + bool useHybridComposition = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Nested view event'), + ), + body: Column( + children: [ + SizedBox( + height: 300, + child: Stack( + alignment: Alignment.topCenter, + children: [ + if (showPlatformView) + AndroidPlatformView( + key: const ValueKey('PlatformView'), + viewType: 'simple_view', + onPlatformViewCreated: onPlatformViewCreated, + useHybridComposition: useHybridComposition, + ), + // The overlapping widget stabilizes the view tree by ensuring + // that there is widget content on top of the platform view. + // Without this widget, we rely on the UI elements down below + // to "incidentally" draw on top of the PlatformView which + // is not a reliable behavior as we eliminate non-visible + // rendering operations throughout the framework and engine. + const Positioned( + top: 50, + child: Text('overlapping widget', + style: TextStyle(color: Colors.yellow), + ), + ), + ], + ), + ), + if (_lastTestStatus != _LastTestStatus.pending) _statusWidget(), + if (viewChannel != null) ... [ + Row( + children: [ + Expanded( + child: ElevatedButton( + key: const ValueKey('ShowAlertDialog'), + onPressed: onShowAlertDialogPressed, + child: const Text('SHOW ALERT DIALOG'), + ), + ), + Expanded( + child: ElevatedButton( + key: const ValueKey('TogglePlatformView'), + onPressed: onTogglePlatformView, + child: const Text('TOGGLE PLATFORM VIEW'), + ), + ), + ], + ), + Row( + children: [ + Expanded( + child: ElevatedButton( + key: const ValueKey('ToggleHybridComposition'), + child: const Text('TOGGLE HC'), + onPressed: () { + setState(() { + useHybridComposition = !useHybridComposition; + }); + }, + ), + ), + Expanded( + child: ElevatedButton( + key: const ValueKey('AddChildView'), + onPressed: onChildViewPressed, + child: const Text('ADD CHILD VIEW'), + ), + ), + Expanded( + child: ElevatedButton( + key: const ValueKey('TapChildView'), + onPressed: onTapChildViewPressed, + child: const Text('TAP CHILD VIEW'), + ), + ), + ], + ), + if (nestedViewClickCount > 0) + Text( + 'Click count: $nestedViewClickCount', + key: const ValueKey('NestedViewClickCount'), + ), + ], + ], + ), + ); + } + + Widget _statusWidget() { + assert(_lastTestStatus != _LastTestStatus.pending); + final String message = _lastTestStatus == _LastTestStatus.success ? 'Success' : lastError!; + return ColoredBox( + color: _lastTestStatus == _LastTestStatus.success ? Colors.green : Colors.red, + child: Text( + message, + key: const ValueKey('Status'), + style: TextStyle( + color: _lastTestStatus == _LastTestStatus.error ? Colors.yellow : null, + ), + ), + ); + } + + Future onShowAlertDialogPressed() async { + if (_lastTestStatus != _LastTestStatus.pending) { + setState(() { + _lastTestStatus = _LastTestStatus.pending; + }); + } + try { + await viewChannel!.invokeMethod('showAndHideAlertDialog'); + setState(() { + _lastTestStatus = _LastTestStatus.success; + }); + } catch (e) { + setState(() { + _lastTestStatus = _LastTestStatus.error; + lastError = '$e'; + }); + } + } + + Future onTogglePlatformView() async { + setState(() { + showPlatformView = !showPlatformView; + }); + } + + Future onChildViewPressed() async { + try { + await viewChannel!.invokeMethod('addChildViewAndWaitForClick'); + setState(() { + nestedViewClickCount++; + }); + } catch (e) { + setState(() { + _lastTestStatus = _LastTestStatus.error; + lastError = '$e'; + }); + } + } + + Future onTapChildViewPressed() async { + await Future.delayed(const Duration(seconds: 1)); + + // Dispatch a tap event on the child view inside the platform view. + // + // Android mutates `MotionEvent` instances, so in this case *do not* dispatch + // new instances as it won't cover the `MotionEventTracker` class in the embedding + // which tracks events. + // + // See the issue this prevents: https://github.com/flutter/flutter/issues/61169 + await Process.run('input', const ['tap', '250', '550']); + } + + void onPlatformViewCreated(int id) { + this.id = id; + setState(() { + viewChannel = MethodChannel('simple_view/$id'); + }); + driverDataHandler.registerHandler('hierarchy') + .complete(() async => (await channel.invokeMethod('getViewHierarchy'))!); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart new file mode 100644 index 0000000000000000000000000000000000000000..1cef05198814499f5a7947eb8a20e14f911c8855 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// The base class of all the testing pages +// +/// A testing page has to override this in order to be put as one of the items in the main page. +abstract class PageWidget extends StatelessWidget { + const PageWidget(this.title, this.tileKey, {super.key}); + + /// The title of the testing page + /// + /// It will be shown on the main page as the text on the link which opens the page. + final String title; + + /// The key of the ListTile that navigates to the page. + /// + /// Used by the integration test to navigate to the corresponding page. + final ValueKey tileKey; +} diff --git a/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/test_driver/main_test.dart b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d4c75ed32afd00f300c3ee4821a5ef71484d2ba4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/hybrid_android_views/test_driver/main_test.dart @@ -0,0 +1,160 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +Future main() async { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() { + driver.close(); + }); + + // Each test below must return back to the home page after finishing. + test('MotionEvent recomposition', () async { + final SerializableFinder motionEventsListTile = find.byValueKey('MotionEventsListTile'); + await driver.tap(motionEventsListTile); + await driver.waitFor(find.byValueKey('PlatformView')); + final String errorMessage = await driver.requestData('run test'); + expect(errorMessage, ''); + final SerializableFinder backButton = find.byValueKey('back'); + await driver.tap(backButton); + }, timeout: Timeout.none); + + group('Nested View Event', () { + setUpAll(() async { + final SerializableFinder wmListTile = + find.byValueKey('NestedViewEventTile'); + await driver.tap(wmListTile); + }); + + tearDownAll(() async { + await driver.waitFor(find.pageBack()); + await driver.tap(find.pageBack()); + }); + + test('AlertDialog from platform view context', () async { + final SerializableFinder showAlertDialog = find.byValueKey('ShowAlertDialog'); + await driver.waitFor(showAlertDialog); + await driver.tap(showAlertDialog); + final String status = await driver.getText(find.byValueKey('Status')); + expect(status, 'Success'); + }, timeout: Timeout.none); + + test('Child view can handle touches', () async { + final SerializableFinder addChildView = find.byValueKey('AddChildView'); + await driver.waitFor(addChildView); + await driver.tap(addChildView); + final SerializableFinder tapChildView = find.byValueKey('TapChildView'); + await driver.tap(tapChildView); + final String nestedViewClickCount = + await driver.getText(find.byValueKey('NestedViewClickCount')); + expect(nestedViewClickCount, 'Click count: 1'); + }, timeout: Timeout.none); + }); + + group('Flutter surface without hybrid composition', () { + setUpAll(() async { + await driver.tap(find.byValueKey('NestedViewEventTile')); + }); + + tearDownAll(() async { + await driver.waitFor(find.pageBack()); + await driver.tap(find.pageBack()); + }); + + test('Uses FlutterSurfaceView when Android view is on the screen', () async { + await driver.waitFor(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Flutter UI + ' |-ViewGroup\n' // Platform View + ' |-ViewGroup\n' + ); + + // Hide platform view. + final SerializableFinder togglePlatformView = find.byValueKey('TogglePlatformView'); + await driver.tap(togglePlatformView); + await driver.waitForAbsent(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Just the Flutter UI + ); + + // Show platform view again. + await driver.tap(togglePlatformView); + await driver.waitFor(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Flutter UI + ' |-ViewGroup\n' // Platform View + ' |-ViewGroup\n' + ); + }, timeout: Timeout.none); + }); + + group('Flutter surface with hybrid composition', () { + setUpAll(() async { + await driver.tap(find.byValueKey('NestedViewEventTile')); + await driver.tap(find.byValueKey('ToggleHybridComposition')); + await driver.tap(find.byValueKey('TogglePlatformView')); + await driver.tap(find.byValueKey('TogglePlatformView')); + }); + + tearDownAll(() async { + await driver.waitFor(find.pageBack()); + await driver.tap(find.pageBack()); + }); + + test('Uses FlutterImageView when Android view is on the screen', () async { + await driver.waitFor(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Flutter UI (hidden) + ' |-FlutterImageView\n' // Flutter UI (background surface) + ' |-ViewGroup\n' // Platform View + ' |-ViewGroup\n' + ' |-FlutterImageView\n' // Flutter UI (overlay surface) + ); + + // Hide platform view. + final SerializableFinder togglePlatformView = find.byValueKey('TogglePlatformView'); + await driver.tap(togglePlatformView); + await driver.waitForAbsent(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Just the Flutter UI + ); + + // Show platform view again. + await driver.tap(togglePlatformView); + await driver.waitFor(find.byValueKey('PlatformView')); + + expect( + await driver.requestData('hierarchy'), + '|-FlutterView\n' + ' |-FlutterSurfaceView\n' // Flutter UI (hidden) + ' |-FlutterImageView\n' // Flutter UI (background surface) + ' |-ViewGroup\n' // Platform View + ' |-ViewGroup\n' + ' |-FlutterImageView\n' // Flutter UI (overlay surface) + ); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/README.md b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/README.md new file mode 100644 index 0000000000000000000000000000000000000000..37c971b1f41d2e3fbb688e12672865754d36f58b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/README.md @@ -0,0 +1,8 @@ +# ios_add2app_life_cycle_flutter + +A new flutter module project. + +## Getting Started + +For help getting started with Flutter, view our online +[documentation](https://flutter.dev/). diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..d2dec8ee443c2287a986e743885226a3d992c17f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart @@ -0,0 +1,124 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() { + // Disconnects semantics listener for testing purposes. + // If the test passes, LifeCycleSpy will rewire the semantics listener back. + SwitchableSemanticsBinding.ensureInitialized(); + assert(!SwitchableSemanticsBinding.instance.semanticsEnabled); + + runApp(const LifeCycleSpy()); +} + +/// A Test widget that spies on app life cycle changes. +/// +/// It will collect the AppLifecycleState sequence during its lifetime, and it +/// will rewire semantics harness if the sequence it receives matches the +/// expected list. +/// +/// Rewiring semantics is a signal to native IOS test that the test has passed. +class LifeCycleSpy extends StatefulWidget { + const LifeCycleSpy({super.key}); + + @override + State createState() => _LifeCycleSpyState(); +} + +class _LifeCycleSpyState extends State with WidgetsBindingObserver { + final List _expectedLifeCycleSequence = [ + AppLifecycleState.detached, + AppLifecycleState.inactive, + AppLifecycleState.resumed, + ]; + List? _actualLifeCycleSequence; + + @override + void initState() { + super.initState(); + WidgetsBinding.instance.addObserver(this); + _actualLifeCycleSequence = [ + ServicesBinding.instance.lifecycleState, + ]; + } + + @override + void dispose() { + WidgetsBinding.instance.removeObserver(this); + super.dispose(); + } + + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + setState(() { + _actualLifeCycleSequence = List.from(_actualLifeCycleSequence!); + _actualLifeCycleSequence?.add(state); + }); + } + + @override + Widget build(BuildContext context) { + if (const ListEquality().equals(_actualLifeCycleSequence, _expectedLifeCycleSequence)) { + // Rewires the semantics harness if test passes. + SwitchableSemanticsBinding.instance.semanticsEnabled = true; + } + return const MaterialApp( + title: 'Flutter View', + home: Text('test'), + ); + } +} + +class SwitchableSemanticsBinding extends WidgetsFlutterBinding { + static SwitchableSemanticsBinding get instance => BindingBase.checkInstance(_instance); + static SwitchableSemanticsBinding? _instance; + + static SwitchableSemanticsBinding ensureInitialized() { + if (_instance == null) { + SwitchableSemanticsBinding(); + } + return SwitchableSemanticsBinding.instance; + } + + VoidCallback? _originalSemanticsListener; + + @override + void initInstances() { + super.initInstances(); + _instance = this; + _updateHandler(); + } + + @override + bool get semanticsEnabled => _semanticsEnabled.value; + final ValueNotifier _semanticsEnabled = ValueNotifier(false); + set semanticsEnabled(bool value) { + _semanticsEnabled.value = value; + _updateHandler(); + } + + void _updateHandler() { + if (_semanticsEnabled.value) { + platformDispatcher.onSemanticsEnabledChanged = _originalSemanticsListener; + _originalSemanticsListener = null; + } else { + _originalSemanticsListener = platformDispatcher.onSemanticsEnabledChanged; + platformDispatcher.onSemanticsEnabledChanged = null; + } + } + + @override + void addSemanticsEnabledListener(VoidCallback listener) { + _semanticsEnabled.addListener(listener); + } + + @override + void removeSemanticsEnabledListener(VoidCallback listener) { + _semanticsEnabled.removeListener(listener); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.lock b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..00c431571a5c28834859140dafc317710af81d84 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.lock @@ -0,0 +1,196 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + url: "https://pub.dev" + source: hosted + version: "1.0.6" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7baae96cfc9d01f452af06de1e7d7f4d8c20d0f2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml @@ -0,0 +1,105 @@ +name: ios_add2app_life_cycle_flutter +description: A new flutter module project. + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# Read more about versioning at semver.org. +# +# This version is used _only_ for the Runner app, which is used if you just do +# a `flutter run` or a `flutter make-host-app-editable`. It has no impact +# on any other native host app that you embed your Flutter project into. +version: 1.0.0+1 + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: 1.0.6 + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + # For information on the generic Dart part of this file, see the + # following page: https://dart.dev/tools/pub/pubspec + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add Flutter specific assets to your application, add an assets section, + # like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add Flutter specific custom fonts to your application, add a fonts + # section here, in this "flutter" section. Each entry in this list should + # have a "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages + + # This section identifies your Flutter project as a module meant for + # embedding in a native host app. These identifiers should _not_ ordinarily + # be changed after generation - they are used to ensure that the tooling can + # maintain consistency when adding or modifying assets and plugins. + # They also do not have any bearing on your native host application's + # identifiers, which may be completely independent or the same as these. + module: + androidPackage: com.example.iosadd2appflutter + iosBundleIdentifier: com.example.iosAdd2appFlutter + +# PUBSPEC CHECKSUM: 58cb diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..7750b22265d5e8a3de74524e515fb79b4c292ea4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.pbxproj @@ -0,0 +1,595 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 0FD78DA73A20ACC9355B27B9 /* libPods-ios_add2appTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 86B9DCFF5941A3BAC28862C3 /* libPods-ios_add2appTests.a */; }; + 24E221BA21A28A0B008ADF09 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 24E221B921A28A0B008ADF09 /* AppDelegate.m */; }; + 24E221C821A28A0C008ADF09 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 24E221C721A28A0C008ADF09 /* main.m */; }; + 24E221DD21A28B23008ADF09 /* FullScreenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 24E221D321A28B23008ADF09 /* FullScreenViewController.m */; }; + 24E221DE21A28B23008ADF09 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 24E221D421A28B23008ADF09 /* MainViewController.m */; }; + 24E221E021A28B23008ADF09 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24E221D721A28B23008ADF09 /* Launch Screen.storyboard */; }; + 24E221E221A28B36008ADF09 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 24E221E121A28B36008ADF09 /* Assets.xcassets */; }; + DB9A200AFEB7AAE22B4E12E4 /* libPods-ios_add2app.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A318514E0307AE0FF0EFC76 /* libPods-ios_add2app.a */; }; + F73B66B8262F6FE1002080A0 /* IntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F73B66B7262F6FE1002080A0 /* IntegrationTests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + F73B66B2262F6F87002080A0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 24E221AD21A28A0B008ADF09 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 24E221B421A28A0B008ADF09; + remoteInfo = ios_add2app; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 1622526A2A969A03715C04EF /* Pods-ios_add2appTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios_add2appTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ios_add2appTests/Pods-ios_add2appTests.release.xcconfig"; sourceTree = ""; }; + 24E221B521A28A0B008ADF09 /* ios_add2app.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ios_add2app.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 24E221B821A28A0B008ADF09 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 24E221B921A28A0B008ADF09 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 24E221C621A28A0C008ADF09 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 24E221C721A28A0C008ADF09 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 24E221CF21A28B22008ADF09 /* FullScreenViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FullScreenViewController.h; sourceTree = ""; }; + 24E221D221A28B23008ADF09 /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = ""; }; + 24E221D321A28B23008ADF09 /* FullScreenViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FullScreenViewController.m; sourceTree = ""; }; + 24E221D421A28B23008ADF09 /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = ""; }; + 24E221D721A28B23008ADF09 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; + 24E221E121A28B36008ADF09 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7A318514E0307AE0FF0EFC76 /* libPods-ios_add2app.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios_add2app.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 86B9DCFF5941A3BAC28862C3 /* libPods-ios_add2appTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios_add2appTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + A18D4CDABD6795975FD6B49F /* Pods-ios_add2app.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios_add2app.release.xcconfig"; path = "Pods/Target Support Files/Pods-ios_add2app/Pods-ios_add2app.release.xcconfig"; sourceTree = ""; }; + CCFA174387D083C931FB85D0 /* Pods-ios_add2app.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios_add2app.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ios_add2app/Pods-ios_add2app.debug.xcconfig"; sourceTree = ""; }; + F0AC448427DBFDC9CC64258E /* Pods-ios_add2appTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios_add2appTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ios_add2appTests/Pods-ios_add2appTests.debug.xcconfig"; sourceTree = ""; }; + F73B66AD262F6F87002080A0 /* ios_add2appTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ios_add2appTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + F73B66B1262F6F87002080A0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F73B66B7262F6FE1002080A0 /* IntegrationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IntegrationTests.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 24E221B221A28A0B008ADF09 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DB9A200AFEB7AAE22B4E12E4 /* libPods-ios_add2app.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F73B66AA262F6F87002080A0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0FD78DA73A20ACC9355B27B9 /* libPods-ios_add2appTests.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 24E221AC21A28A0B008ADF09 = { + isa = PBXGroup; + children = ( + 24E221B721A28A0B008ADF09 /* ios_add2app */, + F73B66AE262F6F87002080A0 /* ios_add2appTests */, + 24E221B621A28A0B008ADF09 /* Products */, + F8E51775C9B1473BB9A1386D /* Pods */, + 8403FDDD872DC11EF3710BB4 /* Frameworks */, + ); + sourceTree = ""; + }; + 24E221B621A28A0B008ADF09 /* Products */ = { + isa = PBXGroup; + children = ( + 24E221B521A28A0B008ADF09 /* ios_add2app.app */, + F73B66AD262F6F87002080A0 /* ios_add2appTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 24E221B721A28A0B008ADF09 /* ios_add2app */ = { + isa = PBXGroup; + children = ( + 24E221E121A28B36008ADF09 /* Assets.xcassets */, + 24E221CF21A28B22008ADF09 /* FullScreenViewController.h */, + 24E221D321A28B23008ADF09 /* FullScreenViewController.m */, + 24E221D721A28B23008ADF09 /* Launch Screen.storyboard */, + 24E221D221A28B23008ADF09 /* MainViewController.h */, + 24E221D421A28B23008ADF09 /* MainViewController.m */, + 24E221B821A28A0B008ADF09 /* AppDelegate.h */, + 24E221B921A28A0B008ADF09 /* AppDelegate.m */, + 24E221C621A28A0C008ADF09 /* Info.plist */, + 24E221C721A28A0C008ADF09 /* main.m */, + ); + path = ios_add2app; + sourceTree = ""; + }; + 8403FDDD872DC11EF3710BB4 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 7A318514E0307AE0FF0EFC76 /* libPods-ios_add2app.a */, + 86B9DCFF5941A3BAC28862C3 /* libPods-ios_add2appTests.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + F73B66AE262F6F87002080A0 /* ios_add2appTests */ = { + isa = PBXGroup; + children = ( + F73B66B7262F6FE1002080A0 /* IntegrationTests.m */, + F73B66B1262F6F87002080A0 /* Info.plist */, + ); + path = ios_add2appTests; + sourceTree = ""; + }; + F8E51775C9B1473BB9A1386D /* Pods */ = { + isa = PBXGroup; + children = ( + CCFA174387D083C931FB85D0 /* Pods-ios_add2app.debug.xcconfig */, + A18D4CDABD6795975FD6B49F /* Pods-ios_add2app.release.xcconfig */, + F0AC448427DBFDC9CC64258E /* Pods-ios_add2appTests.debug.xcconfig */, + 1622526A2A969A03715C04EF /* Pods-ios_add2appTests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 24E221B421A28A0B008ADF09 /* ios_add2app */ = { + isa = PBXNativeTarget; + buildConfigurationList = 24E221CB21A28A0C008ADF09 /* Build configuration list for PBXNativeTarget "ios_add2app" */; + buildPhases = ( + 4375EE880A727341E9C9A57D /* [CP] Check Pods Manifest.lock */, + 76B7AB396D25C19F6CCF750F /* [CP-User] Run Flutter Build ios_add2app_life_cycle_flutter Script */, + 24E221B121A28A0B008ADF09 /* Sources */, + 24E221B221A28A0B008ADF09 /* Frameworks */, + 24E221B321A28A0B008ADF09 /* Resources */, + 7FADF19EC61F97E525982780 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ios_add2app; + productName = ios_add2app; + productReference = 24E221B521A28A0B008ADF09 /* ios_add2app.app */; + productType = "com.apple.product-type.application"; + }; + F73B66AC262F6F87002080A0 /* ios_add2appTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = F73B66B6262F6F87002080A0 /* Build configuration list for PBXNativeTarget "ios_add2appTests" */; + buildPhases = ( + F841B20A4BA845744CC6A838 /* [CP] Check Pods Manifest.lock */, + F73B66A9262F6F87002080A0 /* Sources */, + F73B66AA262F6F87002080A0 /* Frameworks */, + F73B66AB262F6F87002080A0 /* Resources */, + B7873FC60D5B7AA97A1DE937 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + F73B66B3262F6F87002080A0 /* PBXTargetDependency */, + ); + name = ios_add2appTests; + productName = ios_add2appUITests; + productReference = F73B66AD262F6F87002080A0 /* ios_add2appTests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 24E221AD21A28A0B008ADF09 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = Flutter.io; + TargetAttributes = { + 24E221B421A28A0B008ADF09 = { + CreatedOnToolsVersion = 10.0; + }; + F73B66AC262F6F87002080A0 = { + CreatedOnToolsVersion = 12.5; + TestTargetID = 24E221B421A28A0B008ADF09; + }; + }; + }; + buildConfigurationList = 24E221B021A28A0B008ADF09 /* Build configuration list for PBXProject "ios_add2app" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 24E221AC21A28A0B008ADF09; + productRefGroup = 24E221B621A28A0B008ADF09 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 24E221B421A28A0B008ADF09 /* ios_add2app */, + F73B66AC262F6F87002080A0 /* ios_add2appTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 24E221B321A28A0B008ADF09 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 24E221E021A28B23008ADF09 /* Launch Screen.storyboard in Resources */, + 24E221E221A28B36008ADF09 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F73B66AB262F6F87002080A0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 4375EE880A727341E9C9A57D /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-ios_add2app-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 76B7AB396D25C19F6CCF750F /* [CP-User] Run Flutter Build ios_add2app_life_cycle_flutter Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + name = "[CP-User] Run Flutter Build ios_add2app_life_cycle_flutter Script"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\nset -u\nsource \"${SRCROOT}/flutterapp/.ios/Flutter/flutter_export_environment.sh\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build"; + }; + 7FADF19EC61F97E525982780 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ios_add2app/Pods-ios_add2app-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ios_add2app/Pods-ios_add2app-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ios_add2app/Pods-ios_add2app-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + B7873FC60D5B7AA97A1DE937 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ios_add2appTests/Pods-ios_add2appTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ios_add2appTests/Pods-ios_add2appTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ios_add2appTests/Pods-ios_add2appTests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + F841B20A4BA845744CC6A838 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-ios_add2appTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 24E221B121A28A0B008ADF09 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 24E221C821A28A0C008ADF09 /* main.m in Sources */, + 24E221DE21A28B23008ADF09 /* MainViewController.m in Sources */, + 24E221DD21A28B23008ADF09 /* FullScreenViewController.m in Sources */, + 24E221BA21A28A0B008ADF09 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F73B66A9262F6F87002080A0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F73B66B8262F6FE1002080A0 /* IntegrationTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + F73B66B3262F6F87002080A0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 24E221B421A28A0B008ADF09 /* ios_add2app */; + targetProxy = F73B66B2262F6F87002080A0 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 24E221C921A28A0C008ADF09 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_TREAT_WARNINGS_AS_ERRORS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_PEDANTIC = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + WARNING_CFLAGS = "-Wno-gnu"; + WARNING_LDFLAGS = ( + "-Wall", + "-Werror", + ); + }; + name = Debug; + }; + 24E221CA21A28A0C008ADF09 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_TREAT_WARNINGS_AS_ERRORS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_PEDANTIC = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + WARNING_CFLAGS = "-Wno-gnu"; + WARNING_LDFLAGS = ( + "-Wall", + "-Werror", + ); + }; + name = Release; + }; + 24E221CC21A28A0C008ADF09 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = CCFA174387D083C931FB85D0 /* Pods-ios_add2app.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = ios_add2app/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.test.ios-add2app"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 24E221CD21A28A0C008ADF09 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A18D4CDABD6795975FD6B49F /* Pods-ios_add2app.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = ios_add2app/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.test.ios-add2app"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + F73B66B4262F6F87002080A0 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F0AC448427DBFDC9CC64258E /* Pods-ios_add2appTests.debug.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = ios_add2appTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.flutterio.ios-add2appTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ios_add2app; + }; + name = Debug; + }; + F73B66B5262F6F87002080A0 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1622526A2A969A03715C04EF /* Pods-ios_add2appTests.release.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = ios_add2appTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.flutterio.ios-add2appTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ios_add2app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 24E221B021A28A0B008ADF09 /* Build configuration list for PBXProject "ios_add2app" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 24E221C921A28A0C008ADF09 /* Debug */, + 24E221CA21A28A0C008ADF09 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 24E221CB21A28A0C008ADF09 /* Build configuration list for PBXNativeTarget "ios_add2app" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 24E221CC21A28A0C008ADF09 /* Debug */, + 24E221CD21A28A0C008ADF09 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F73B66B6262F6F87002080A0 /* Build configuration list for PBXNativeTarget "ios_add2appTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F73B66B4262F6F87002080A0 /* Debug */, + F73B66B5262F6F87002080A0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 24E221AD21A28A0B008ADF09 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/xcshareddata/xcschemes/ios_add2app.xcscheme b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/xcshareddata/xcschemes/ios_add2app.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..a53caf5ff06ab5fb8b1cd5e4a1b5aa856937823d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcodeproj/xcshareddata/xcschemes/ios_add2app.xcscheme @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..a22b612a0c932121d18c9b533c5905c84340849a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..8721a95982e5c1fac8f25734a58d63f29af40cc9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.h @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GREYHostApplicationDistantObject (AppDelegate) +- (NSNotificationCenter *)notificationCenter; +@end + +@interface AppDelegate : FlutterAppDelegate +@property(nonatomic, strong, readonly) FlutterEngine* engine; +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..beaad64c3538a847942cc39b9b4c35a04eabf19e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/AppDelegate.m @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "MainViewController.h" + +@implementation GREYHostApplicationDistantObject (AppDelegate) + +- (NSNotificationCenter *)notificationCenter { + return [NSNotificationCenter defaultCenter]; +} + +@end + +@interface AppDelegate () + +@property(nonatomic, strong, readwrite) FlutterEngine* engine; + +@end + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + + MainViewController *mainViewController = [[MainViewController alloc] init]; + UINavigationController *navigationController = [[UINavigationController alloc] + initWithRootViewController:mainViewController]; + + navigationController.navigationBar.translucent = NO; + + self.engine = [[FlutterEngine alloc] initWithName:@"test" project:nil]; + [self.engine runWithEntrypoint:nil]; + + self.window.rootViewController = navigationController; + [self.window makeKeyAndVisible]; + + return YES; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..b6a5d3f48e4e0fec02ff52437b182c553efd1c00 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..ca98348b465dd7ff9f3086390c8ac558e3e9112c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.h @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FullScreenViewController : FlutterViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..ec4035ecf7c43190d8523e918fe117b1e21bae11 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/FullScreenViewController.m @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "FullScreenViewController.h" + +@interface FullScreenViewController () + +@end + +@implementation FullScreenViewController + +-(void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + self.title = @"Full Screen Flutter"; + self.navigationController.navigationBarHidden = YES; + self.navigationController.hidesBarsOnSwipe = YES; +} + +-(void)viewWillDisappear:(BOOL)animated { + [super viewWillDisappear:animated]; + self.navigationController.navigationBarHidden = NO; + self.navigationController.hidesBarsOnSwipe = NO; + if (self.isMovingFromParentViewController) { + // If we were doing things that might cause the VC + // to disappear (like using the image_picker plugin) + // we shouldn't do this, but in this case we know we're + // just going back to the navigation controller. + // If we needed Flutter to tell us when we could actually go away, + // we'd need to communicate over a method channel with it. + [self.engine setViewController:nil]; + } +} + +-(BOOL)prefersStatusBarHidden { + return true; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..08cae2a8dc9974b0162924d17e1f1cf3905cae6a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + Launch Screen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Launch Screen.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Launch Screen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..6a6b1b8249f3c8b650555764c597b9f3c9bb90e6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/Launch Screen.storyboard @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..8acf62a0efd94fad6b002c6745fd913689e9874c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface MainViewController : UIViewController + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..f9d4add8178b862880b07042694367c8194c3c78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/MainViewController.m @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "MainViewController.h" + +#import "AppDelegate.h" +#import "FullScreenViewController.h" + +@interface MainViewController () + +@property(nonatomic, strong) UIStackView* stackView; + +@end + + +@implementation MainViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + [self.view setFrame:self.view.window.bounds]; + self.title = @"Flutter iOS Demos"; + self.view.backgroundColor = UIColor.whiteColor; + + self.stackView = [[UIStackView alloc] initWithFrame:self.view.frame]; + self.stackView.axis = UILayoutConstraintAxisVertical; + self.stackView.distribution = UIStackViewDistributionEqualSpacing; + self.stackView.alignment = UIStackViewAlignmentCenter; + self.stackView.autoresizingMask = + UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + self.stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0); + self.stackView.layoutMarginsRelativeArrangement = YES; + [self.view addSubview:_stackView]; + + [self addButton:@"Full Screen (Cold)" action:@selector(showFullScreenCold)]; +} + +- (void)showFullScreenCold { + FlutterEngine *engine = + [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine]; + + FullScreenViewController *flutterViewController = + [[FullScreenViewController alloc] initWithEngine:engine + nibName:nil + bundle:nil]; + [self.navigationController + pushViewController:flutterViewController + animated:NO]; // Animating this is janky because of + // transitions with header on the native side. + // It's especially bad with a cold engine. +} + +- (void)addButton:(NSString *)title action:(SEL)action { + UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; + [button setTitle:title forState:UIControlStateNormal]; + [button addTarget:self + action:action + forControlEvents:UIControlEventTouchUpInside]; + [self.stackView addArrangedSubview:button]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/main.m b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/main.m new file mode 100644 index 0000000000000000000000000000000000000000..88e08ea2ec474421314ccf3e2a8cca6d0731923c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2app/main.m @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..64d65ca495770bdc9600e58687865b73a36bed3a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/IntegrationTests.m b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/IntegrationTests.m new file mode 100644 index 0000000000000000000000000000000000000000..b9bca89355ada0a28a6dfdc8e06c20a45b7a40ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_add2app_life_cycle/ios_add2appTests/IntegrationTests.m @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +#import "AppDelegate.h" +#import "FullScreenViewController.h" + +@interface FlutterTests : XCTestCase +@end + +@implementation FlutterTests + +- (void)setUp { + self.continueAfterFailure = NO; + XCUIApplication *app = [[XCUIApplication alloc] init]; + [app launch]; +} + +- (void)testFullScreenCanPop { + XCTestExpectation *notificationReceived = [self expectationWithDescription:@"Remote semantics notification"]; + NSNotificationCenter *notificationCenter = [[GREYHostApplicationDistantObject sharedInstance] notificationCenter]; + id observer = [notificationCenter addObserverForName:FlutterSemanticsUpdateNotification object:nil queue:nil usingBlock:^(NSNotification *notification) { + XCTAssertTrue([notification.object isKindOfClass:GREY_REMOTE_CLASS_IN_APP(FullScreenViewController)]); + [notificationReceived fulfill]; + }]; + + [[EarlGrey selectElementWithMatcher:grey_keyWindow()] + assertWithMatcher:grey_sufficientlyVisible()]; + [[EarlGrey selectElementWithMatcher:grey_buttonTitle(@"Full Screen (Cold)")] + performAction:grey_tap()]; + + [self waitForExpectationsWithTimeout:30.0 handler:nil]; + [notificationCenter removeObserver:observer]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..ec97fc6f30212d34d53ab17751bcabdfab1891d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..c4855bfe2000b73c8a50783b40073676021cbb68 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..363dd2403825af73fa2168a2651af422f4ebd564 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile @@ -0,0 +1,49 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +target 'watch Extension' do + platform :watchos + use_frameworks! + use_modular_headers! + + pod 'EFQRCode', '6.0' +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..a4ddbd87f8cd4831e6c26fb6ebd0a2a70bb87466 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,1006 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 3E9BA895D09CB79E387C1344 /* Pods_watch_Extension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1055F86985F96260A366C181 /* Pods_watch_Extension.framework */; }; + 49C15B4E243E340B0025F804 /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 49C15B4C243E340B0025F804 /* Interface.storyboard */; }; + 49C15B50243E340E0025F804 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 49C15B4F243E340E0025F804 /* Assets.xcassets */; }; + 49C15B57243E340E0025F804 /* watch Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 49C15B56243E340E0025F804 /* watch Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 49C15B5C243E340E0025F804 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 49C15B5B243E340E0025F804 /* ContentView.swift */; }; + 49C15B5E243E340E0025F804 /* HostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 49C15B5D243E340E0025F804 /* HostingController.swift */; }; + 49C15B60243E340E0025F804 /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 49C15B5F243E340E0025F804 /* ExtensionDelegate.swift */; }; + 49C15B62243E340F0025F804 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 49C15B61243E340F0025F804 /* Assets.xcassets */; }; + 49C15B65243E340F0025F804 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 49C15B64243E340F0025F804 /* Preview Assets.xcassets */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + F070ECA5890D54F6F05C28D1 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 696CA539DDC2E5BAE7BE6E30 /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 49C15B58243E340E0025F804 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 49C15B55243E340E0025F804; + remoteInfo = "watch Extension"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 49C15B6E243E340F0025F804 /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 49C15B57243E340E0025F804 /* watch Extension.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1055F86985F96260A366C181 /* Pods_watch_Extension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_watch_Extension.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 2030A05F5F3BE734A8070E46 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 203CB464AF16CE89225F7813 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AbsPROJECT_NAMEWatch-watch Extension.profile.xcconfig"; path = "Target Support Files/Pods-AbsPROJECT_NAMEWatch-watch Extension/Pods-AbsPROJECT_NAMEWatch-watch Extension.profile.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 49C15B4A243E340B0025F804 /* watch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = watch.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 49C15B4D243E340B0025F804 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; + 49C15B4F243E340E0025F804 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 49C15B51243E340E0025F804 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 49C15B56243E340E0025F804 /* watch Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "watch Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 49C15B5B243E340E0025F804 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 49C15B5D243E340E0025F804 /* HostingController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HostingController.swift; sourceTree = ""; }; + 49C15B5F243E340E0025F804 /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = ""; }; + 49C15B61243E340F0025F804 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 49C15B64243E340F0025F804 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 49C15B66243E340F0025F804 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 696CA539DDC2E5BAE7BE6E30 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 71E8E97FA3A197DCEB51D55C /* Pods-watch Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-watch Extension.release.xcconfig"; path = "Target Support Files/Pods-watch Extension/Pods-watch Extension.release.xcconfig"; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 8AA421E0363D82BA724B0CDC /* Pods-watch Extension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-watch Extension.profile.xcconfig"; path = "Target Support Files/Pods-watch Extension/Pods-watch Extension.profile.xcconfig"; sourceTree = ""; }; + 900233269AEC1A38F27EEDB8 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 95DB968C9BF258092FCFD9BD /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D715AE6242E1A4DAD04A29F4 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AbsPROJECT_NAMEWatch-watch Extension.release.xcconfig"; path = "Target Support Files/Pods-AbsPROJECT_NAMEWatch-watch Extension/Pods-AbsPROJECT_NAMEWatch-watch Extension.release.xcconfig"; sourceTree = ""; }; + EF52C4C1360C951B0774F008 /* Pods-watch Extension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-watch Extension.debug.xcconfig"; path = "Target Support Files/Pods-watch Extension/Pods-watch Extension.debug.xcconfig"; sourceTree = ""; }; + F27C4D74A989CBB3ADF7C643 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AbsPROJECT_NAMEWatch-watch Extension.debug.xcconfig"; path = "Target Support Files/Pods-AbsPROJECT_NAMEWatch-watch Extension/Pods-AbsPROJECT_NAMEWatch-watch Extension.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 49C15B53243E340E0025F804 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3E9BA895D09CB79E387C1344 /* Pods_watch_Extension.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F070ECA5890D54F6F05C28D1 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D81AEDE8E6DF27AC0FCB71A2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 49C15B4B243E340B0025F804 /* watch */ = { + isa = PBXGroup; + children = ( + 49C15B4C243E340B0025F804 /* Interface.storyboard */, + 49C15B4F243E340E0025F804 /* Assets.xcassets */, + 49C15B51243E340E0025F804 /* Info.plist */, + ); + path = watch; + sourceTree = ""; + }; + 49C15B5A243E340E0025F804 /* watch Extension */ = { + isa = PBXGroup; + children = ( + 49C15B5B243E340E0025F804 /* ContentView.swift */, + 49C15B5D243E340E0025F804 /* HostingController.swift */, + 49C15B5F243E340E0025F804 /* ExtensionDelegate.swift */, + 49C15B61243E340F0025F804 /* Assets.xcassets */, + 49C15B66243E340F0025F804 /* Info.plist */, + 49C15B63243E340F0025F804 /* Preview Content */, + ); + path = "watch Extension"; + sourceTree = ""; + }; + 49C15B63243E340F0025F804 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 49C15B64243E340F0025F804 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 5007DEA4342EE0E73C06EC67 /* Pods */ = { + isa = PBXGroup; + children = ( + F27C4D74A989CBB3ADF7C643 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.debug.xcconfig */, + D715AE6242E1A4DAD04A29F4 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.release.xcconfig */, + 203CB464AF16CE89225F7813 /* Pods-AbsPROJECT_NAMEWatch-watch Extension.profile.xcconfig */, + 2030A05F5F3BE734A8070E46 /* Pods-Runner.debug.xcconfig */, + 900233269AEC1A38F27EEDB8 /* Pods-Runner.release.xcconfig */, + 95DB968C9BF258092FCFD9BD /* Pods-Runner.profile.xcconfig */, + EF52C4C1360C951B0774F008 /* Pods-watch Extension.debug.xcconfig */, + 71E8E97FA3A197DCEB51D55C /* Pods-watch Extension.release.xcconfig */, + 8AA421E0363D82BA724B0CDC /* Pods-watch Extension.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 49C15B4B243E340B0025F804 /* watch */, + 49C15B5A243E340E0025F804 /* watch Extension */, + 97C146EF1CF9000F007C117D /* Products */, + 5007DEA4342EE0E73C06EC67 /* Pods */, + E9CB96A835309D0ACFA18806 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 49C15B4A243E340B0025F804 /* watch.app */, + 49C15B56243E340E0025F804 /* watch Extension.appex */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ); + name = "Supporting Files"; + sourceTree = ""; + }; + E9CB96A835309D0ACFA18806 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 696CA539DDC2E5BAE7BE6E30 /* Pods_Runner.framework */, + 1055F86985F96260A366C181 /* Pods_watch_Extension.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 49C15B49243E340B0025F804 /* watch */ = { + isa = PBXNativeTarget; + buildConfigurationList = 49C15B6F243E340F0025F804 /* Build configuration list for PBXNativeTarget "watch" */; + buildPhases = ( + 49C15B48243E340B0025F804 /* Resources */, + 49C15B6E243E340F0025F804 /* Embed App Extensions */, + D81AEDE8E6DF27AC0FCB71A2 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 49C15B59243E340E0025F804 /* PBXTargetDependency */, + ); + name = watch; + productName = watch; + productReference = 49C15B4A243E340B0025F804 /* watch.app */; + productType = "com.apple.product-type.application.watchapp2"; + }; + 49C15B55243E340E0025F804 /* watch Extension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 49C15B6A243E340F0025F804 /* Build configuration list for PBXNativeTarget "watch Extension" */; + buildPhases = ( + DC0384878DB7754C7CDC3539 /* [CP] Check Pods Manifest.lock */, + 49C15B52243E340E0025F804 /* Sources */, + 49C15B53243E340E0025F804 /* Frameworks */, + 49C15B54243E340E0025F804 /* Resources */, + 62A7C66F38F8BDDF8F85E990 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "watch Extension"; + productName = "watch Extension"; + productReference = 49C15B56243E340E0025F804 /* watch Extension.appex */; + productType = "com.apple.product-type.watchkit2-extension"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + B065CE4C5BB3753A009EB098 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + DF3DAF4426EF33A40B49B448 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1120; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 49C15B49243E340B0025F804 = { + CreatedOnToolsVersion = 11.2.1; + }; + 49C15B55243E340E0025F804 = { + CreatedOnToolsVersion = 11.2.1; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 49C15B49243E340B0025F804 /* watch */, + 49C15B55243E340E0025F804 /* watch Extension */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 49C15B48243E340B0025F804 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C15B50243E340E0025F804 /* Assets.xcassets in Resources */, + 49C15B4E243E340B0025F804 /* Interface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49C15B54243E340E0025F804 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C15B65243E340F0025F804 /* Preview Assets.xcassets in Resources */, + 49C15B62243E340F0025F804 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; + }; + 62A7C66F38F8BDDF8F85E990 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-watch Extension/Pods-watch Extension-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-watch Extension/Pods-watch Extension-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-watch Extension/Pods-watch Extension-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + B065CE4C5BB3753A009EB098 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + DC0384878DB7754C7CDC3539 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-watch Extension-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + DF3DAF4426EF33A40B49B448 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 49C15B52243E340E0025F804 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C15B5E243E340E0025F804 /* HostingController.swift in Sources */, + 49C15B5C243E340E0025F804 /* ContentView.swift in Sources */, + 49C15B60243E340E0025F804 /* ExtensionDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 49C15B59243E340E0025F804 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 49C15B55243E340E0025F804 /* watch Extension */; + targetProxy = 49C15B58243E340E0025F804 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 49C15B4C243E340B0025F804 /* Interface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 49C15B4D243E340B0025F804 /* Base */, + ); + name = Interface.storyboard; + sourceTree = ""; + }; + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + APP_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 49C15B6B243E340F0025F804 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EF52C4C1360C951B0774F008 /* Pods-watch Extension.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"watch Extension/Preview Content\""; + ENABLE_PREVIEWS = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "watch Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Debug; + }; + 49C15B6C243E340F0025F804 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 71E8E97FA3A197DCEB51D55C /* Pods-watch Extension.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"watch Extension/Preview Content\""; + ENABLE_PREVIEWS = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "watch Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Release; + }; + 49C15B6D243E340F0025F804 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8AA421E0363D82BA724B0CDC /* Pods-watch Extension.profile.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"watch Extension/Preview Content\""; + ENABLE_PREVIEWS = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "watch Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Profile; + }; + 49C15B70243E340F0025F804 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + GCC_C_LANGUAGE_STANDARD = gnu11; + IBSC_MODULE = watch_Extension; + INFOPLIST_FILE = watch/Info.plist; + INFOPLIST_KEY_WKCompanionAppBundleIdentifier = io.flutter.extensionTest; + MARKETING_VERSION = 1.0.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Debug; + }; + 49C15B71243E340F0025F804 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + GCC_C_LANGUAGE_STANDARD = gnu11; + IBSC_MODULE = watch_Extension; + INFOPLIST_FILE = watch/Info.plist; + INFOPLIST_KEY_WKCompanionAppBundleIdentifier = io.flutter.extensionTest; + MARKETING_VERSION = 1.0.0; + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Release; + }; + 49C15B72243E340F0025F804 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + GCC_C_LANGUAGE_STANDARD = gnu11; + IBSC_MODULE = watch_Extension; + INFOPLIST_FILE = watch/Info.plist; + INFOPLIST_KEY_WKCompanionAppBundleIdentifier = io.flutter.extensionTest; + MARKETING_VERSION = 1.0.0; + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = ""; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 6.1; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + APP_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + APP_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.extensionTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 49C15B6A243E340F0025F804 /* Build configuration list for PBXNativeTarget "watch Extension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 49C15B6B243E340F0025F804 /* Debug */, + 49C15B6C243E340F0025F804 /* Release */, + 49C15B6D243E340F0025F804 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 49C15B6F243E340F0025F804 /* Build configuration list for PBXNativeTarget "watch" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 49C15B70243E340F0025F804 /* Debug */, + 49C15B71243E340F0025F804 /* Release */, + 49C15B72243E340F0025F804 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..5e31d3d342f3c77134683eb04988a27e3c76fee3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d815fed684a8a58a302828d747941af4fcffaa9a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..d6edc2b2190d8f18da12e11a2bd4f453f19421c2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Flutter Extension Test + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Runner-Bridging-Header.h b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000000000000000000000000000000000000..95b7baf386d06a38be9c775a9e97659baad52dc5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "GeneratedPluginRegistrant.h" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..1571c7e531b72d209928711ae2217a60021535e8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Contents.json @@ -0,0 +1,48 @@ +{ + "assets" : [ + { + "idiom" : "watch", + "filename" : "Circular.imageset", + "role" : "circular" + }, + { + "idiom" : "watch", + "filename" : "Extra Large.imageset", + "role" : "extra-large" + }, + { + "idiom" : "watch", + "filename" : "Graphic Bezel.imageset", + "role" : "graphic-bezel" + }, + { + "idiom" : "watch", + "filename" : "Graphic Circular.imageset", + "role" : "graphic-circular" + }, + { + "idiom" : "watch", + "filename" : "Graphic Corner.imageset", + "role" : "graphic-corner" + }, + { + "idiom" : "watch", + "filename" : "Graphic Large Rectangular.imageset", + "role" : "graphic-large-rectangular" + }, + { + "idiom" : "watch", + "filename" : "Modular.imageset", + "role" : "modular" + }, + { + "idiom" : "watch", + "filename" : "Utilitarian.imageset", + "role" : "utilitarian" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..aefef2914e28a0d2c65db706a027e2f0f45f8eba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ContentView.swift b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ContentView.swift new file mode 100644 index 0000000000000000000000000000000000000000..1f880ac9f6b7e28c4cc8359833d4c488655c3a56 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ContentView.swift @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// +// ContentView.swift +// watch Extension +// +// Created by Georg Wechslberger on 08.04.20. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + Text("Hello, World!") + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ExtensionDelegate.swift b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ExtensionDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..f2e53fa7b4e2c2395867ee6df30debccf03b6c14 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/ExtensionDelegate.swift @@ -0,0 +1,59 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// +// ExtensionDelegate.swift +// watch Extension +// +// Created by Georg Wechslberger on 08.04.20. +// + +import WatchKit + +class ExtensionDelegate: NSObject, WKExtensionDelegate { + + func applicationDidFinishLaunching() { + // Perform any final initialization of your application. + } + + func applicationDidBecomeActive() { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillResignActive() { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, etc. + } + + func handle(_ backgroundTasks: Set) { + // Sent when the system needs to launch the application in the background to process tasks. Tasks arrive in a set, so loop through and process each one. + for task in backgroundTasks { + // Use a switch statement to check the task type + switch task { + case let backgroundTask as WKApplicationRefreshBackgroundTask: + // Be sure to complete the background task once you’re done. + backgroundTask.setTaskCompletedWithSnapshot(false) + case let snapshotTask as WKSnapshotRefreshBackgroundTask: + // Snapshot tasks have a unique completion call, make sure to set your expiration date + snapshotTask.setTaskCompleted(restoredDefaultState: true, estimatedSnapshotExpiration: Date.distantFuture, userInfo: nil) + case let connectivityTask as WKWatchConnectivityRefreshBackgroundTask: + // Be sure to complete the connectivity task once you’re done. + connectivityTask.setTaskCompletedWithSnapshot(false) + case let urlSessionTask as WKURLSessionRefreshBackgroundTask: + // Be sure to complete the URL session task once you’re done. + urlSessionTask.setTaskCompletedWithSnapshot(false) + case let relevantShortcutTask as WKRelevantShortcutRefreshBackgroundTask: + // Be sure to complete the relevant-shortcut task once you're done. + relevantShortcutTask.setTaskCompletedWithSnapshot(false) + case let intentDidRunTask as WKIntentDidRunRefreshBackgroundTask: + // Be sure to complete the intent-did-run task once you're done. + intentDidRunTask.setTaskCompletedWithSnapshot(false) + default: + // make sure to complete unhandled task types + task.setTaskCompletedWithSnapshot(false) + } + } + } + +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift new file mode 100644 index 0000000000000000000000000000000000000000..aa3d624314831bc4bea031fbb5bfcd3685dfbac6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// +// HostingController.swift +// watch Extension +// +// Created by Georg Wechslberger on 08.04.20. +// + +import WatchKit +import Foundation +import SwiftUI + +class HostingController: WKHostingController { + override var body: ContentView { + return ContentView() + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..1aa92a5b21b3b4e8bdf32261dd7c1911dbe7ea9e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + watch Extension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionAttributes + + WKAppBundleIdentifier + $(APP_BUNDLE_IDENTIFIER).watchkitapp + + NSExtensionPointIdentifier + com.apple.watchkit + + WKExtensionDelegateClassName + $(PRODUCT_MODULE_NAME).ExtensionDelegate + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Preview Content/Preview Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..6c0f2b4204b893ebfe54c01f6664a72cf35a23ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,81 @@ +{ + "images" : [ + { + "size" : "24x24", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "38mm" + }, + { + "size" : "27.5x27.5", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "42mm" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "38mm" + }, + { + "size" : "44x44", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "40mm" + }, + { + "size" : "50x50", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "44mm" + }, + { + "size" : "86x86", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "38mm" + }, + { + "size" : "98x98", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "42mm" + }, + { + "size" : "108x108", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "44mm" + }, + { + "idiom" : "watch-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Base.lproj/Interface.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Base.lproj/Interface.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..1fa6c00241548495261c4e050c1a76b660d644d7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Base.lproj/Interface.storyboard @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..a53975e00f539a6f2fec6b8cc75596e48e4012c6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch/Info.plist @@ -0,0 +1,31 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Flutter Extension Test + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + 1 + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + WKWatchKitApp + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..319889e207d1bd4c62b8f812024894540212eda7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart @@ -0,0 +1,117 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + // This is the theme of your application. + // + // Try running your application with "flutter run". You'll see the + // application has a blue toolbar. Then, without quitting the app, try + // changing the primarySwatch below to Colors.green and then invoke + // "hot reload" (press "r" in the console where you ran "flutter run", + // or simply save your changes to "hot reload" in a Flutter IDE). + // Notice that the counter didn't reset back to zero; the application + // is not restarted. + primarySwatch: Colors.blue, + ), + home: const MyHomePage(title: 'Flutter Demo Home Page'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, this.title}); + + // This widget is the home page of your application. It is stateful, meaning + // that it has a State object (defined below) that contains fields that affect + // how it looks. + + // This class is the configuration for the state. It holds the values (in this + // case the title) provided by the parent (in this case the App widget) and + // used by the build method of the State. Fields in a Widget subclass are + // always marked "final". + + final String? title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + int _counter = 0; + + void _incrementCounter() { + setState(() { + // This call to setState tells the Flutter framework that something has + // changed in this State, which causes it to rerun the build method below + // so that the display can reflect the updated values. If we changed + // _counter without calling setState(), then the build method would not be + // called again, and so nothing would appear to happen. + _counter++; + }); + } + + @override + Widget build(BuildContext context) { + // This method is rerun every time setState is called, for instance as done + // by the _incrementCounter method above. + // + // The Flutter framework has been optimized to make rerunning build methods + // fast, so that you can just rebuild anything that needs updating rather + // than having to individually change instances of widgets. + return Scaffold( + appBar: AppBar( + // Here we take the value from the MyHomePage object that was created by + // the App.build method, and use it to set our appbar title. + title: Text(widget.title ?? ''), + ), + body: Center( + // Center is a layout widget. It takes a single child and positions it + // in the middle of the parent. + child: Column( + // Column is also a layout widget. It takes a list of children and + // arranges them vertically. By default, it sizes itself to fit its + // children horizontally, and tries to be as tall as its parent. + // + // Invoke "debug painting" (press "p" in the console, choose the + // "Toggle Debug Paint" action from the Flutter Inspector in Android + // Studio, or the "Toggle Debug Paint" command in Visual Studio Code) + // to see the wireframe for each widget. + // + // Column has various properties to control how it sizes itself and + // how it positions its children. Here we use mainAxisAlignment to + // center the children vertically; the main axis here is the vertical + // axis because Columns are vertical (the cross axis would be + // horizontal). + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text( + 'You have pushed the button this many times:', + ), + Text( + '$_counter', + style: Theme.of(context).textTheme.headlineMedium, + ), + ], + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: _incrementCounter, + tooltip: 'Increment', + child: const Icon(Icons.add), + ), // This trailing comma makes auto-formatting nicer for build methods. + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m new file mode 100644 index 0000000000000000000000000000000000000000..ef27427a59ad126071346bd61930e3b4beae9331 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m @@ -0,0 +1,126 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +@import XCTest; +@import os.log; + +static const CGFloat kStandardTimeOut = 60.0; + +@interface FlutterUITests : XCTestCase +@property (strong) XCUIApplication *app; +@end + +@implementation FlutterUITests + +- (void)setUp { + [super setUp]; + self.continueAfterFailure = NO; + + XCUIApplication *app = [[XCUIApplication alloc] init]; + [app launch]; + self.app = app; +} + +- (void)testFullScreenColdPop { + XCUIApplication *app = self.app; + [self waitForAndTapElement:app.buttons[@"Full Screen (Cold)"]]; + XCTAssertTrue([app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]); + + [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; + XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + + // Back navigation. + [app.buttons[@"POP"] tap]; + XCTAssertTrue([app.navigationBars[@"Flutter iOS Demos Home"] waitForExistenceWithTimeout:kStandardTimeOut]); +} + +- (void)testFullScreenWarm { + XCUIApplication *app = self.app; + + [self waitForAndTapElement:app.buttons[@"Full Screen (Warm)"]]; + BOOL newPageAppeared = [app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]; + if (!newPageAppeared) { + // Sometimes, the element doesn't respond to the tap, it seems an XCUITest race condition where the tap happened + // too soon. Trying to tap the element again. + [self waitForAndTapElement:app.buttons[@"Full Screen (Warm)"]]; + newPageAppeared = [app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]; + } + XCTAssertTrue(newPageAppeared); + + [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; + XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + + // Back navigation. + [app.buttons[@"POP"] tap]; + XCTAssertTrue([app.navigationBars[@"Flutter iOS Demos Home"] waitForExistenceWithTimeout:kStandardTimeOut]); +} + +- (void)testFlutterViewWarm { + XCUIApplication *app = self.app; + + [self waitForAndTapElement:app.buttons[@"Flutter View (Warm)"]]; + BOOL newPageAppeared = [app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]; + if (!newPageAppeared) { + // Sometimes, the element doesn't respond to the tap, it seems an XCUITest race condition where the tap happened + // too soon. Trying to tap the element again. + [self waitForAndTapElement:app.buttons[@"Flutter View (Warm)"]]; + newPageAppeared = [app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]; + if (!newPageAppeared) { + os_log(OS_LOG_DEFAULT, "%@", app.debugDescription); + } + } + XCTAssertTrue(newPageAppeared); + + [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; + XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + + // Back navigation. + [app.buttons[@"POP"] tap]; + XCTAssertTrue([app.navigationBars[@"Flutter iOS Demos Home"] waitForExistenceWithTimeout:kStandardTimeOut]); +} + +- (void)testHybridViewWarm { + XCUIApplication *app = self.app; + + [self waitForAndTapElement:app.buttons[@"Hybrid View (Warm)"]]; + + XCTAssertTrue([app.staticTexts[@"Flutter button tapped 0 times."] waitForExistenceWithTimeout:kStandardTimeOut]); + XCTAssertTrue(app.staticTexts[@"Platform button tapped 0 times."].exists); + + [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; + XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + XCTAssertTrue(app.staticTexts[@"Platform button tapped 0 times."].exists); + + [app.buttons[@"Increment via iOS"] tap]; + XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + XCTAssertTrue(app.staticTexts[@"Platform button tapped 1 time."].exists); + + // Back navigation. + [app.navigationBars[@"Hybrid Flutter/Native"].buttons[@"Flutter iOS Demos Home"] tap]; + XCTAssertTrue([app.navigationBars[@"Flutter iOS Demos Home"] waitForExistenceWithTimeout:kStandardTimeOut]); +} + +- (void)testDualCold { + XCUIApplication *app = self.app; + + [self waitForAndTapElement:app.buttons[@"Dual Flutter View (Cold)"]]; + + // There are two marquees. + XCUIElementQuery *marqueeQuery = [app.staticTexts matchingIdentifier:@"This is Marquee"]; + [self expectationForPredicate:[NSPredicate predicateWithFormat:@"count = 2"] evaluatedWithObject:marqueeQuery handler:nil]; + [self waitForExpectationsWithTimeout:30.0 handler:nil]; + + // Back navigation. + [app.navigationBars[@"Dual Flutter Views"].buttons[@"Flutter iOS Demos Home"] tap]; + XCTAssertTrue([app.navigationBars[@"Flutter iOS Demos Home"] waitForExistenceWithTimeout:kStandardTimeOut]); +} + +- (void)waitForAndTapElement:(XCUIElement *)element { + NSPredicate *hittable = [NSPredicate predicateWithFormat:@"exists == YES AND hittable == YES"]; + [self expectationForPredicate:hittable evaluatedWithObject:element handler:nil]; + [self waitForExpectationsWithTimeout:30.0 handler:nil]; + [element tap]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..64d65ca495770bdc9600e58687865b73a36bed3a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/FlutterUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..506795052295f2d3471f11a5ec0089f28ba977e3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.pbxproj @@ -0,0 +1,635 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 4AF9D63425F74F0694CAB07D /* libPods-Host.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E20960BD8B505D605FE82853 /* libPods-Host.a */; }; + 74F97866215AB9E8005A0F04 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 74F97865215AB9E8005A0F04 /* AppDelegate.m */; }; + 74F9786E215AB9E9005A0F04 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 74F9786D215AB9E9005A0F04 /* Assets.xcassets */; }; + 74F97871215AB9E9005A0F04 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 74F9786F215AB9E9005A0F04 /* LaunchScreen.storyboard */; }; + 74F97874215AB9E9005A0F04 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 74F97873215AB9E9005A0F04 /* main.m */; }; + 7E06ECD9FAEFCA4A0ED04D6E /* libPods-FlutterUITests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 327E8CC22A494E7D7155FB58 /* libPods-FlutterUITests.a */; }; + F7C2661424AC18D00085742D /* DualFlutterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2660E24AC18D00085742D /* DualFlutterViewController.m */; }; + F7C2661524AC18D00085742D /* FullScreenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2660F24AC18D00085742D /* FullScreenViewController.m */; }; + F7C2661624AC18D00085742D /* HybridViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2661124AC18D00085742D /* HybridViewController.m */; }; + F7C2661B24AC18DD0085742D /* NativeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2661824AC18DD0085742D /* NativeViewController.m */; }; + F7C2661C24AC18DD0085742D /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2661A24AC18DD0085742D /* MainViewController.m */; }; + F7C2664624AC1E3A0085742D /* FlutterUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = F7C2664524AC1E3A0085742D /* FlutterUITests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + F7C2664824AC1E3A0085742D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 74F97859215AB9E8005A0F04 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 74F97860215AB9E8005A0F04; + remoteInfo = Host; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 167171877EDE2F421DEC809C /* Pods-FlutterUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FlutterUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FlutterUITests/Pods-FlutterUITests.debug.xcconfig"; sourceTree = ""; }; + 327E8CC22A494E7D7155FB58 /* libPods-FlutterUITests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-FlutterUITests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 41D0C662C99CDA4C35B51C32 /* Pods-Host.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Host.release.xcconfig"; path = "Pods/Target Support Files/Pods-Host/Pods-Host.release.xcconfig"; sourceTree = ""; }; + 74F97861215AB9E8005A0F04 /* Host.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Host.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 74F97864215AB9E8005A0F04 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 74F97865215AB9E8005A0F04 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 74F9786D215AB9E9005A0F04 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 74F97870215AB9E9005A0F04 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 74F97872215AB9E9005A0F04 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 74F97873215AB9E9005A0F04 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 8E6751F293967EE3DFF4178A /* Pods-FlutterUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FlutterUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-FlutterUITests/Pods-FlutterUITests.release.xcconfig"; sourceTree = ""; }; + 91B7D4263BFD246A27391225 /* Pods-Host.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Host.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Host/Pods-Host.debug.xcconfig"; sourceTree = ""; }; + E20960BD8B505D605FE82853 /* libPods-Host.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Host.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + F7C2660E24AC18D00085742D /* DualFlutterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DualFlutterViewController.m; sourceTree = ""; }; + F7C2660F24AC18D00085742D /* FullScreenViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FullScreenViewController.m; sourceTree = ""; }; + F7C2661024AC18D00085742D /* HybridViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HybridViewController.h; sourceTree = ""; }; + F7C2661124AC18D00085742D /* HybridViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HybridViewController.m; sourceTree = ""; }; + F7C2661224AC18D00085742D /* FullScreenViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FullScreenViewController.h; sourceTree = ""; }; + F7C2661324AC18D00085742D /* DualFlutterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DualFlutterViewController.h; sourceTree = ""; }; + F7C2661724AC18DD0085742D /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = ""; }; + F7C2661824AC18DD0085742D /* NativeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NativeViewController.m; sourceTree = ""; }; + F7C2661924AC18DD0085742D /* NativeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeViewController.h; sourceTree = ""; }; + F7C2661A24AC18DD0085742D /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = ""; }; + F7C2664324AC1E3A0085742D /* FlutterUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlutterUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + F7C2664524AC1E3A0085742D /* FlutterUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FlutterUITests.m; sourceTree = ""; }; + F7C2664724AC1E3A0085742D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 74F9785E215AB9E8005A0F04 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4AF9D63425F74F0694CAB07D /* libPods-Host.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7C2664024AC1E3A0085742D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E06ECD9FAEFCA4A0ED04D6E /* libPods-FlutterUITests.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 74F97858215AB9E8005A0F04 = { + isa = PBXGroup; + children = ( + 74F97863215AB9E8005A0F04 /* Host */, + F7C2664424AC1E3A0085742D /* FlutterUITests */, + 74F97862215AB9E8005A0F04 /* Products */, + 74F9788B215AC328005A0F04 /* Frameworks */, + A4A9971F50C4EE357B74B6E0 /* Pods */, + ); + sourceTree = ""; + }; + 74F97862215AB9E8005A0F04 /* Products */ = { + isa = PBXGroup; + children = ( + 74F97861215AB9E8005A0F04 /* Host.app */, + F7C2664324AC1E3A0085742D /* FlutterUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 74F97863215AB9E8005A0F04 /* Host */ = { + isa = PBXGroup; + children = ( + F7C2661724AC18DD0085742D /* MainViewController.h */, + F7C2661A24AC18DD0085742D /* MainViewController.m */, + F7C2661924AC18DD0085742D /* NativeViewController.h */, + F7C2661824AC18DD0085742D /* NativeViewController.m */, + F7C2661324AC18D00085742D /* DualFlutterViewController.h */, + F7C2660E24AC18D00085742D /* DualFlutterViewController.m */, + F7C2661224AC18D00085742D /* FullScreenViewController.h */, + F7C2660F24AC18D00085742D /* FullScreenViewController.m */, + F7C2661024AC18D00085742D /* HybridViewController.h */, + F7C2661124AC18D00085742D /* HybridViewController.m */, + 74F97864215AB9E8005A0F04 /* AppDelegate.h */, + 74F97865215AB9E8005A0F04 /* AppDelegate.m */, + 74F9786D215AB9E9005A0F04 /* Assets.xcassets */, + 74F9786F215AB9E9005A0F04 /* LaunchScreen.storyboard */, + 74F97872215AB9E9005A0F04 /* Info.plist */, + 74F97873215AB9E9005A0F04 /* main.m */, + ); + path = Host; + sourceTree = ""; + }; + 74F9788B215AC328005A0F04 /* Frameworks */ = { + isa = PBXGroup; + children = ( + E20960BD8B505D605FE82853 /* libPods-Host.a */, + 327E8CC22A494E7D7155FB58 /* libPods-FlutterUITests.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + A4A9971F50C4EE357B74B6E0 /* Pods */ = { + isa = PBXGroup; + children = ( + 91B7D4263BFD246A27391225 /* Pods-Host.debug.xcconfig */, + 41D0C662C99CDA4C35B51C32 /* Pods-Host.release.xcconfig */, + 167171877EDE2F421DEC809C /* Pods-FlutterUITests.debug.xcconfig */, + 8E6751F293967EE3DFF4178A /* Pods-FlutterUITests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + F7C2664424AC1E3A0085742D /* FlutterUITests */ = { + isa = PBXGroup; + children = ( + F7C2664524AC1E3A0085742D /* FlutterUITests.m */, + F7C2664724AC1E3A0085742D /* Info.plist */, + ); + path = FlutterUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 74F97860215AB9E8005A0F04 /* Host */ = { + isa = PBXNativeTarget; + buildConfigurationList = 74F97877215AB9E9005A0F04 /* Build configuration list for PBXNativeTarget "Host" */; + buildPhases = ( + DF650341152DB73976A358C2 /* [CP] Check Pods Manifest.lock */, + C954A75BD5C4F1EEA5AFF464 /* [CP-User] Run Flutter Build hello Script */, + 74F9785D215AB9E8005A0F04 /* Sources */, + 74F9785E215AB9E8005A0F04 /* Frameworks */, + 74F9785F215AB9E8005A0F04 /* Resources */, + 83F5A04FAA44C2FFFC4CBFBA /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Host; + productName = Host; + productReference = 74F97861215AB9E8005A0F04 /* Host.app */; + productType = "com.apple.product-type.application"; + }; + F7C2664224AC1E3A0085742D /* FlutterUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = F7C2664A24AC1E3A0085742D /* Build configuration list for PBXNativeTarget "FlutterUITests" */; + buildPhases = ( + 09D119997F3FFD16DBA33278 /* [CP] Check Pods Manifest.lock */, + 5F3CDDFEC2CA4EEE4767777D /* [CP-User] Run Flutter Build hello Script */, + F7C2663F24AC1E3A0085742D /* Sources */, + F7C2664024AC1E3A0085742D /* Frameworks */, + F7C2664124AC1E3A0085742D /* Resources */, + 5EABD4D6B64D840CAF712234 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + F7C2664924AC1E3A0085742D /* PBXTargetDependency */, + ); + name = FlutterUITests; + productName = FlutterUITests; + productReference = F7C2664324AC1E3A0085742D /* FlutterUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 74F97859215AB9E8005A0F04 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = flutter.io; + TargetAttributes = { + 74F97860215AB9E8005A0F04 = { + CreatedOnToolsVersion = 10.0; + }; + F7C2664224AC1E3A0085742D = { + CreatedOnToolsVersion = 12.0; + TestTargetID = 74F97860215AB9E8005A0F04; + }; + }; + }; + buildConfigurationList = 74F9785C215AB9E8005A0F04 /* Build configuration list for PBXProject "Host" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 74F97858215AB9E8005A0F04; + productRefGroup = 74F97862215AB9E8005A0F04 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 74F97860215AB9E8005A0F04 /* Host */, + F7C2664224AC1E3A0085742D /* FlutterUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 74F9785F215AB9E8005A0F04 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74F97871215AB9E9005A0F04 /* LaunchScreen.storyboard in Resources */, + 74F9786E215AB9E9005A0F04 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7C2664124AC1E3A0085742D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 09D119997F3FFD16DBA33278 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-FlutterUITests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 5EABD4D6B64D840CAF712234 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-FlutterUITests/Pods-FlutterUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-FlutterUITests/Pods-FlutterUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlutterUITests/Pods-FlutterUITests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 5F3CDDFEC2CA4EEE4767777D /* [CP-User] Run Flutter Build hello Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/../hello/.metadata", + "${SRCROOT}/../hello/.ios/Flutter/App.framework/App", + "${SRCROOT}/../hello/.ios/Flutter/engine/Flutter.framework/Flutter", + "${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh", + ); + name = "[CP-User] Run Flutter Build hello Script"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh\"\n\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build"; + }; + 83F5A04FAA44C2FFFC4CBFBA /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + C954A75BD5C4F1EEA5AFF464 /* [CP-User] Run Flutter Build hello Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/../hello/.metadata", + "${SRCROOT}/../hello/.ios/Flutter/App.framework/App", + "${SRCROOT}/../hello/.ios/Flutter/engine/Flutter.framework/Flutter", + "${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh", + ); + name = "[CP-User] Run Flutter Build hello Script"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh\"\n\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build"; + }; + DF650341152DB73976A358C2 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Host-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 74F9785D215AB9E8005A0F04 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F7C2661524AC18D00085742D /* FullScreenViewController.m in Sources */, + F7C2661424AC18D00085742D /* DualFlutterViewController.m in Sources */, + F7C2661C24AC18DD0085742D /* MainViewController.m in Sources */, + 74F97874215AB9E9005A0F04 /* main.m in Sources */, + F7C2661624AC18D00085742D /* HybridViewController.m in Sources */, + F7C2661B24AC18DD0085742D /* NativeViewController.m in Sources */, + 74F97866215AB9E8005A0F04 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F7C2663F24AC1E3A0085742D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F7C2664624AC1E3A0085742D /* FlutterUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + F7C2664924AC1E3A0085742D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 74F97860215AB9E8005A0F04 /* Host */; + targetProxy = F7C2664824AC1E3A0085742D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 74F9786F215AB9E9005A0F04 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 74F97870215AB9E9005A0F04 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 74F97875215AB9E9005A0F04 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 74F97876215AB9E9005A0F04 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 74F97878215AB9E9005A0F04 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 91B7D4263BFD246A27391225 /* Pods-Host.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = Host/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.add2app.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 74F97879215AB9E9005A0F04 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 41D0C662C99CDA4C35B51C32 /* Pods-Host.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = Host/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.add2app.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + F7C2664B24AC1E3A0085742D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 167171877EDE2F421DEC809C /* Pods-FlutterUITests.debug.xcconfig */; + buildSettings = { + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = FlutterUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.flutterio.FlutterUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Host; + }; + name = Debug; + }; + F7C2664C24AC1E3A0085742D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8E6751F293967EE3DFF4178A /* Pods-FlutterUITests.release.xcconfig */; + buildSettings = { + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S8QB4VV633; + INFOPLIST_FILE = FlutterUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.flutterio.FlutterUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Host; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 74F9785C215AB9E8005A0F04 /* Build configuration list for PBXProject "Host" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 74F97875215AB9E9005A0F04 /* Debug */, + 74F97876215AB9E9005A0F04 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 74F97877215AB9E9005A0F04 /* Build configuration list for PBXNativeTarget "Host" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 74F97878215AB9E9005A0F04 /* Debug */, + 74F97879215AB9E9005A0F04 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F7C2664A24AC1E3A0085742D /* Build configuration list for PBXNativeTarget "FlutterUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F7C2664B24AC1E3A0085742D /* Debug */, + F7C2664C24AC1E3A0085742D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 74F97859215AB9E8005A0F04 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..8ee5ee9ff60c4c3cefd2f3f910294ca7ffc441c2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/xcshareddata/xcschemes/Host.xcscheme b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/xcshareddata/xcschemes/Host.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..0952a29fc498b108f57380bac8d01ba79e20193e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcodeproj/xcshareddata/xcschemes/Host.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..8e65b678a3f8e19a25134d569caad9183c8b5712 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..3a6c560174200b4fe904d0bcfb78a249553c4f0f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.h @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@property(nonatomic, strong) FlutterEngine* engine; +@property(nonatomic, strong) FlutterBasicMessageChannel* reloadMessageChannel; + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..04fe32982a6ac5131b25d2d799f096f60e6f768a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/AppDelegate.m @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "MainViewController.h" + +@interface AppDelegate () + +@end + +static NSString *_kReloadChannelName = @"reload"; + +@implementation AppDelegate { + MainViewController *_mainViewController; + UINavigationController *_navigationController; + FlutterEngine *_engine; + FlutterBasicMessageChannel *_reloadMessageChannel; +} + +- (FlutterEngine *)engine { + return _engine; +} + +- (FlutterBasicMessageChannel *)reloadMessageChannel { + return _reloadMessageChannel; +} + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + + _mainViewController = [[MainViewController alloc] init]; + _navigationController = [[UINavigationController alloc] + initWithRootViewController:_mainViewController]; + + _navigationController.navigationBar.translucent = NO; + + _engine = [[FlutterEngine alloc] initWithName:@"test" project:nil]; + [_engine runWithEntrypoint:nil]; + + _reloadMessageChannel = [[FlutterBasicMessageChannel alloc] + initWithName:_kReloadChannelName + binaryMessenger:_engine.binaryMessenger + codec:[FlutterStringCodec sharedInstance]]; + + self.window.rootViewController = _navigationController; + [self.window makeKeyAndVisible]; + + return YES; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d8db8d65fd79fd541b2b7eba75c7378af3448f9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..6a6b1b8249f3c8b650555764c597b9f3c9bb90e6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..152313f8653ec1b35adf1c60b37e577e4917bc95 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.h @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface DualFlutterViewController : UIViewController + +@property (readonly, strong, nonatomic) FlutterViewController* topFlutterViewController; +@property (readonly, strong, nonatomic) FlutterViewController* bottomFlutterViewController; + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..8b2ee9411a476933802407757765b31b2257e18b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/DualFlutterViewController.m @@ -0,0 +1,45 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +#import "DualFlutterViewController.h" + +@interface DualFlutterViewController () + +@end + +@implementation DualFlutterViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + self.title = @"Dual Flutter Views"; + self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] + initWithTitle:@"Back" + style:UIBarButtonItemStylePlain + target:nil + action:nil]; + + UIStackView* stackView = [[UIStackView alloc] initWithFrame:self.view.frame]; + stackView.axis = UILayoutConstraintAxisVertical; + stackView.distribution = UIStackViewDistributionFillEqually; + stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0); + stackView.layoutMarginsRelativeArrangement = YES; + [self.view addSubview:stackView]; + + _topFlutterViewController = [[FlutterViewController alloc] init]; + _bottomFlutterViewController= [[FlutterViewController alloc] init]; + + [_topFlutterViewController setInitialRoute:@"marquee_green"]; + [self addChildViewController:_topFlutterViewController]; + [stackView addArrangedSubview:_topFlutterViewController.view]; + [_topFlutterViewController didMoveToParentViewController:self]; + + [_bottomFlutterViewController setInitialRoute:@"marquee_purple"]; + [self addChildViewController:_bottomFlutterViewController]; + [stackView addArrangedSubview:_bottomFlutterViewController.view]; + [_bottomFlutterViewController didMoveToParentViewController:self]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..ca98348b465dd7ff9f3086390c8ac558e3e9112c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.h @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FullScreenViewController : FlutterViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..ec4035ecf7c43190d8523e918fe117b1e21bae11 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/FullScreenViewController.m @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "FullScreenViewController.h" + +@interface FullScreenViewController () + +@end + +@implementation FullScreenViewController + +-(void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + self.title = @"Full Screen Flutter"; + self.navigationController.navigationBarHidden = YES; + self.navigationController.hidesBarsOnSwipe = YES; +} + +-(void)viewWillDisappear:(BOOL)animated { + [super viewWillDisappear:animated]; + self.navigationController.navigationBarHidden = NO; + self.navigationController.hidesBarsOnSwipe = NO; + if (self.isMovingFromParentViewController) { + // If we were doing things that might cause the VC + // to disappear (like using the image_picker plugin) + // we shouldn't do this, but in this case we know we're + // just going back to the navigation controller. + // If we needed Flutter to tell us when we could actually go away, + // we'd need to communicate over a method channel with it. + [self.engine setViewController:nil]; + } +} + +-(BOOL)prefersStatusBarHidden { + return true; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..f0c8ff406f6ea6fa1b1ae01585ff52515679bc0a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.h @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +#import "NativeViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface HybridViewController : UIViewController + +@property (readonly, strong, nonatomic) FlutterViewController* flutterViewController; + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..ca4d5db373f63c15b5cd3529775eead11f6be3ef --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/HybridViewController.m @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +#import "AppDelegate.h" +#import "HybridViewController.h" + +@interface HybridViewController () + +@end + +static NSString *_kChannel = @"increment"; +static NSString *_kPing = @"ping"; + +@implementation HybridViewController { + FlutterBasicMessageChannel *_messageChannel; +} + +- (FlutterEngine *)engine { + return [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine]; +} + +- (FlutterBasicMessageChannel *)reloadMessageChannel { + return [(AppDelegate *)[[UIApplication sharedApplication] delegate] + reloadMessageChannel]; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + self.title = @"Hybrid Flutter/Native"; + UIStackView *stackView = [[UIStackView alloc] initWithFrame:self.view.frame]; + stackView.axis = UILayoutConstraintAxisVertical; + stackView.distribution = UIStackViewDistributionFillEqually; + stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0); + stackView.layoutMarginsRelativeArrangement = YES; + [self.view addSubview:stackView]; + self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] + initWithTitle:@"Back" + style:UIBarButtonItemStylePlain + target:nil + action:nil]; + + NativeViewController *nativeViewController = + [[NativeViewController alloc] initWithDelegate:self]; + [self addChildViewController:nativeViewController]; + [stackView addArrangedSubview:nativeViewController.view]; + [nativeViewController didMoveToParentViewController:self]; + + _flutterViewController = + [[FlutterViewController alloc] initWithEngine:[self engine] + nibName:nil + bundle:nil]; + [[self reloadMessageChannel] sendMessage:@"hybrid"]; + + _messageChannel = [[FlutterBasicMessageChannel alloc] + initWithName:_kChannel + binaryMessenger:_flutterViewController.binaryMessenger + codec:[FlutterStringCodec sharedInstance]]; + [self addChildViewController:_flutterViewController]; + [stackView addArrangedSubview:_flutterViewController.view]; + [_flutterViewController didMoveToParentViewController:self]; + + __weak NativeViewController *weakNativeViewController = nativeViewController; + [_messageChannel setMessageHandler:^(id message, FlutterReply reply) { + [weakNativeViewController didReceiveIncrement]; + reply(@""); + }]; +} + +- (void)didTapIncrementButton { + [_messageChannel sendMessage:_kPing]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..4222ac2dd313f9de9dced11204c033997278577b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..8acf62a0efd94fad6b002c6745fd913689e9874c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface MainViewController : UIViewController + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..f2c1c66096b8c8deddb3f4474b361d06df84e3ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/MainViewController.m @@ -0,0 +1,147 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "MainViewController.h" + +#import "AppDelegate.h" +#import "DualFlutterViewController.h" +#import "FullScreenViewController.h" +#import "HybridViewController.h" +#import "NativeViewController.h" + +@interface MainViewController () + +@property (weak, nonatomic) UIButton* flutterViewWarmButton; + +@end + + +@implementation MainViewController { + UIStackView *_stackView; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + + [self.view setFrame:self.view.window.bounds]; + self.title = @"Flutter iOS Demos Home"; + self.view.backgroundColor = UIColor.whiteColor; + + _stackView = [[UIStackView alloc] initWithFrame:self.view.frame]; + _stackView.axis = UILayoutConstraintAxisVertical; + _stackView.distribution = UIStackViewDistributionEqualSpacing; + _stackView.alignment = UIStackViewAlignmentCenter; + _stackView.autoresizingMask = + UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + _stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0); + _stackView.layoutMarginsRelativeArrangement = YES; + [self.view addSubview:_stackView]; + + [self addButton:@"Native iOS View" action:@selector(showNative)]; + [self addButton:@"Full Screen (Cold)" action:@selector(showFullScreenCold)]; + [self addButton:@"Full Screen (Warm)" action:@selector(showFullScreenWarm)]; + self.flutterViewWarmButton = [self addButton:@"Flutter View (Warm)" action:@selector(showFlutterViewWarm)]; + [self addButton:@"Hybrid View (Warm)" action:@selector(showHybridView)]; + [self addButton:@"Dual Flutter View (Cold)" action:@selector(showDualView)]; +} + +- (FlutterEngine *)engine { + return [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine]; +} + +- (FlutterBasicMessageChannel*)reloadMessageChannel { + return [(AppDelegate *)[[UIApplication sharedApplication] delegate] reloadMessageChannel]; +} + +- (void)showDualView { + DualFlutterViewController *dualViewController = + [[DualFlutterViewController alloc] init]; + [self.navigationController pushViewController:dualViewController + animated:YES]; +} + +- (void)showHybridView { + HybridViewController *hybridViewController = + [[HybridViewController alloc] init]; + [self.navigationController pushViewController:hybridViewController + animated:YES]; +} +- (void)showNative { + NativeViewController *nativeViewController = + [[NativeViewController alloc] init]; + [self.navigationController pushViewController:nativeViewController + animated:YES]; +} + +- (void)showFullScreenCold { + FullScreenViewController *flutterViewController = + [[FullScreenViewController alloc] init]; + [flutterViewController setInitialRoute:@"full"]; + [[self reloadMessageChannel] sendMessage:@"full"]; + [self.navigationController + pushViewController:flutterViewController + animated:NO]; // Animating this is janky because of + // transitions with header on the native side. + // It's especially bad with a cold engine. +} + +- (void)showFullScreenWarm { + [[self engine].navigationChannel invokeMethod:@"setInitialRoute" + arguments:@"full"]; + [[self reloadMessageChannel] sendMessage:@"full"]; + + FullScreenViewController *flutterViewController = + [[FullScreenViewController alloc] initWithEngine:[self engine] + nibName:nil + bundle:nil]; + [self.navigationController + pushViewController:flutterViewController + animated:NO]; // Animating this is problematic. +} + +- (void)showFlutterViewWarm { + self.flutterViewWarmButton.backgroundColor = UIColor.redColor; + FlutterEngine *engine = [self engine]; + FlutterBasicMessageChannel* messageChannel = [self reloadMessageChannel]; + NSAssert(engine != nil, @"Engine is not nil."); + NSAssert(engine.navigationChannel != nil, @"Engine.navigationChannel is not nil."); + NSAssert(messageChannel != nil, @"messageChannel is not nil."); + + [engine.navigationChannel invokeMethod:@"setInitialRoute" + arguments:@"/"]; + [messageChannel sendMessage:@"/"]; + + + FlutterViewController *flutterViewController = + [[FlutterViewController alloc] initWithEngine:[self engine] + nibName:nil + bundle:nil]; + flutterViewController.view.accessibilityLabel = @"flutter view"; + NSAssert(self.navigationController != nil, @"self.navigationController is not nil."); + [self.navigationController pushViewController:flutterViewController + animated:NO]; + + if (self.navigationController.topViewController != flutterViewController) { + // For debugging: + // Some unknown issue happened caused `flutterViewController` not being pushed. + // We try to push an basic UIViewController to see if it would work. + UIViewController *viewController = [[UIViewController alloc] init]; + viewController.view.backgroundColor = UIColor.blueColor; + [self.navigationController pushViewController:viewController + animated:NO]; + NSAssert(self.navigationController.topViewController == viewController, @"self.navigationController.topViewController should be the basic view controller"); + } +} + +- (UIButton *)addButton:(NSString *)title action:(SEL)action { + UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; + [button setTitle:title forState:UIControlStateNormal]; + [button addTarget:self + action:action + forControlEvents:UIControlEventTouchUpInside]; + [_stackView addArrangedSubview:button]; + return button; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.h b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.h new file mode 100644 index 0000000000000000000000000000000000000000..6c98ad623da74e255a42c78ffb6b905f6838c941 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.h @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +@protocol NativeViewControllerDelegate +/// Triggered when the increment button from the NativeViewController is tapped. +-(void)didTapIncrementButton; + +@end + +@interface NativeViewController : UIViewController + +- (instancetype)initWithDelegate:(id)delegate + NS_DESIGNATED_INITIALIZER; + +@property(nonatomic, weak) id delegate; + +-(void)didReceiveIncrement; + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.m new file mode 100644 index 0000000000000000000000000000000000000000..6b29ceb47546abc7ddab735a61eb5ed7af77ebf9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/NativeViewController.m @@ -0,0 +1,144 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "NativeViewController.h" + +@interface NativeViewController () + +@end + +@implementation NativeViewController { + int _counter; + UILabel* _incrementLabel; +} + +- (instancetype)initWithDelegate:(id)delegate { + self = [super initWithNibName:nil bundle:nil]; + if (self) { + self.delegate = delegate; + } + return self; +} + +- (instancetype)initWithCoder:(NSCoder *)aDecoder { + return [self initWithDelegate:nil]; +} + +-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + return [self initWithDelegate:nil]; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.title = @"Native iOS View"; + self.view.backgroundColor = UIColor.lightGrayColor; + self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] + initWithTitle:@"Back" + style:UIBarButtonItemStylePlain + target:nil + action:nil]; + + _incrementLabel = [self addIncrementLabel]; + UIStackView* footer = [self addFooter]; + + _incrementLabel.translatesAutoresizingMaskIntoConstraints = false; + footer.translatesAutoresizingMaskIntoConstraints = false; + UILayoutGuide* marginsGuide = self.view.layoutMarginsGuide; + NSMutableArray* array = [[NSMutableArray alloc] init]; + [array addObject:[_incrementLabel.centerXAnchor + constraintEqualToAnchor:self.view.centerXAnchor]]; + [array addObject:[_incrementLabel.centerYAnchor + constraintEqualToAnchor:self.view.centerYAnchor]]; + [array addObject:[footer.centerXAnchor + constraintEqualToAnchor:self.view.centerXAnchor]]; + [array addObject:[footer.widthAnchor + constraintEqualToAnchor:marginsGuide.widthAnchor]]; + [array addObject:[footer.bottomAnchor + constraintEqualToAnchor:marginsGuide.bottomAnchor]]; + + [NSLayoutConstraint activateConstraints:array]; + [self updateIncrementLabel]; +} + +/// Adds a label to the view that will contain the counter text. +/// +/// - Returns: The new label. +-(UILabel*) addIncrementLabel { + UILabel* incrementLabel = [[UILabel alloc] init]; + incrementLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; + incrementLabel.textColor = UIColor.blackColor; + incrementLabel.accessibilityIdentifier = @"counter_on_iOS"; + [self.view addSubview:incrementLabel]; + return incrementLabel; +} + +/// Adds a horizontal stack to the view, anchored to the bottom. +/// +/// - Returns: The new stack. +-(UIStackView*) addFooter { + UILabel* mainLabel = [self createMainLabel]; + UIButton* incrementButton = [self createIncrementButton]; + UIStackView* stackView = [[UIStackView alloc] initWithFrame:self.view.frame]; + [stackView addArrangedSubview:mainLabel]; + [stackView addArrangedSubview:incrementButton]; + stackView.axis = UILayoutConstraintAxisHorizontal; + stackView.alignment = UIStackViewAlignmentBottom; + [self.view addSubview:stackView]; + return stackView; +} + +/// Creates a label identifying this view. Does not add it to the view. +/// +/// - Returns: The new label. +-(UILabel*) createMainLabel { + UILabel* mainLabel = [[UILabel alloc] init]; + mainLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleTitle1]; + mainLabel.textColor = UIColor.blackColor; + mainLabel.text = @"Native"; + return mainLabel; +} + +/// Creates a button that will increment a counter. Does not add it to the view. +/// +/// - Returns: The new button. +-(UIButton*) createIncrementButton { + UIButton *incrementButton = [UIButton buttonWithType:UIButtonTypeSystem]; + incrementButton.titleLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2]; + [incrementButton setTitle:@"Add" forState:UIControlStateNormal]; + incrementButton.accessibilityLabel = @"Increment via iOS"; + incrementButton.layer.cornerRadius = 15.0; + [incrementButton addTarget:self + action:@selector(handleIncrement:) + forControlEvents:UIControlEventTouchUpInside]; + return incrementButton; +} + +// MARK: - Actions + +/// Action triggered from tapping on the increment button. Triggers a corresponding event in the +/// delegate if one is available, otherwise increments our internal counter. +-(void) handleIncrement:(UIButton*)sender { + if (self.delegate) { + [self.delegate didTapIncrementButton]; + } else { + [self didReceiveIncrement]; + } +} + +/// Updates the increment label text to match the increment counter. +-(void) updateIncrementLabel { + _incrementLabel.text = [NSString + stringWithFormat:@"%@ tapped %d %@.", + self.delegate == nil ? @"Button" : @"Flutter button", + _counter, _counter == 1 ? @"time" : @"times"]; +} + +/// Increments our internal counter and updates the view. +-(void) didReceiveIncrement { + _counter += 1; + [self updateIncrementLabel]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/main.m b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/main.m new file mode 100644 index 0000000000000000000000000000000000000000..88e08ea2ec474421314ccf3e2a8cca6d0731923c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/Host/main.m @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main b/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main new file mode 100644 index 0000000000000000000000000000000000000000..78ea99b18b875bc969c3b91d267a49107a7f2780 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main @@ -0,0 +1,203 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:ui' as ui; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:ffi_package/ffi_package.dart'; + +import 'marquee.dart'; + +/// Route names. (See [main] for more details.) +/// +/// The route names must match those sent by the platform-specific component. +const String greenMarqueeRouteName = 'marquee_green'; +const String purpleMarqueeRouteName = 'marquee_purple'; +const String fullscreenRouteName = 'full'; +const String hybridRouteName = 'hybrid'; + +/// Channel used to let the Flutter app know to reset the app to a specific +/// route. See the [run] method. +/// +/// We shouldn't use the `setInitialRoute` method on the system +/// navigation channel, as that never gets propagated back to Flutter +/// after the initial call. +const String _kReloadChannelName = 'reload'; +const BasicMessageChannel _kReloadChannel = + BasicMessageChannel(_kReloadChannelName, StringCodec()); + +void main() { + // Ensures bindings are initialized before doing anything. + WidgetsFlutterBinding.ensureInitialized(); + // Start listening immediately for messages from the iOS side. ObjC calls + // will be made to let us know when we should be changing the app state. + _kReloadChannel.setMessageHandler(run); + // Start off with whatever the initial route is supposed to be. + run(ui.window.defaultRouteName); +} + +Future run(String? name) async { + // The platform-specific component will call [setInitialRoute] on the Flutter + // view (or view controller for iOS) to set [ui.window.defaultRouteName]. + // We then dispatch based on the route names to show different Flutter + // widgets. + // Since we don't really care about Flutter-side navigation in this app, we're + // not using a regular routes map. + name ??= ''; + switch (name) { + case greenMarqueeRouteName: + runApp(Marquee(color: Colors.green[400])); + break; + case purpleMarqueeRouteName: + runApp(Marquee(color: Colors.purple[400])); + break; + case fullscreenRouteName: + case hybridRouteName: + default: + runApp(FlutterView(initialRoute: name)); + break; + } + return ''; +} + +class FlutterView extends StatelessWidget { + const FlutterView({required this.initialRoute}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter View', + home: MyHomePage(initialRoute: initialRoute), + ); + } + + final String initialRoute; +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({required this.initialRoute}); + + @override + _MyHomePageState createState() => _MyHomePageState(); + + final String initialRoute; + + /// Whether we should display the home page in fullscreen mode. + /// + /// If in full screen mode, we will use an [AppBar] widget to show our own + /// title. + bool get isFullscreen => initialRoute == fullscreenRouteName; + + /// Whether tapping the Flutter button should notify an external source. + /// + /// If false, the button will increments our own internal counter. + bool get hasExternalTarget => initialRoute == hybridRouteName; +} + +class _MyHomePageState extends State { + // The name of the message channel used to communicate with the + // platform-specific component. + // + // This string must match the one used on the platform side. + static const String _channel = 'increment'; + + // The message to send to the platform-specific component when our button + // is tapped. + static const String _pong = 'pong'; + + // Used to pass messages between the platform-specific component and the + // Flutter component. + static const BasicMessageChannel _platform = + BasicMessageChannel(_channel, StringCodec()); + + // An internal count. Normally this represents the number of times that the + // button on the Flutter page has been tapped. + int _counter = 0; + + late int sumResult; + late Future sumAsyncResult; + + @override + void initState() { + super.initState(); + _platform.setMessageHandler(_handlePlatformIncrement); + sumResult = sum(1, 2); + sumAsyncResult = sumAsync(3, 4); + } + + /// Directly increments our internal counter and rebuilds the UI. + void _incrementCounter() { + setState(() { + _counter++; + }); + } + + /// Callback for messages sent by the platform-specific component. + /// + /// Increments our internal counter. + Future _handlePlatformIncrement(String? message) async { + // Normally we'd dispatch based on the value of [message], but in this + // sample, there is only one message that is sent to us. + _incrementCounter(); + return ''; + } + + /// Sends a message to the platform-specific component to increment its + /// counter. + void _sendFlutterIncrement() { + _platform.send(_pong); + } + + @override + Widget build(BuildContext context) { + final String buttonName = + widget.hasExternalTarget ? 'Platform button' : 'Button'; + return Scaffold( + appBar: widget.isFullscreen + ? AppBar(title: const Text('Fullscreen Flutter')) + : null, + body: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Center( + child: Text( + '$buttonName tapped $_counter time${_counter == 1 ? '' : 's'}.', + style: const TextStyle(fontSize: 17.0), + ), + ), + const TextButton( + child: Text('POP'), + onPressed: SystemNavigator.pop, + ), + ], + ), + ), + Container( + padding: const EdgeInsets.only(bottom: 15.0, left: 5.0), + child: Row( + children: const [ + Text('Flutter', style: TextStyle(fontSize: 30.0)), + ], + ), + ), + ], + ), + floatingActionButton: Semantics( + label: 'Increment via Flutter', + child: FloatingActionButton( + onPressed: widget.hasExternalTarget + ? _sendFlutterIncrement + : _incrementCounter, + child: const Icon(Icons.add), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/marquee b/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/marquee new file mode 100644 index 0000000000000000000000000000000000000000..ff33e9f1521d6661f41212222cd684d0f559c1d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/marquee @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/animation.dart'; +import 'package:flutter/services.dart'; + +class _MarqueeText extends AnimatedWidget { + const _MarqueeText({Key? key, required Animation animation}) + : super(key: key, listenable: animation); + + @override + Widget build(BuildContext context) { + final Animation animation = listenable as Animation; + return Container( + margin: EdgeInsets.only(left: animation.value), + child: const Text( + 'This is Marquee', + softWrap: false, + ), + ); + } +} + +class Marquee extends StatefulWidget { + const Marquee({this.color}); + + final Color? color; + + @override + State createState() => MarqueeState(); +} + +class MarqueeState extends State with SingleTickerProviderStateMixin { + late AnimationController controller; + late Animation animation; + + @override + void initState() { + super.initState(); + controller = AnimationController( + duration: const Duration(milliseconds: 2000), + vsync: this, + ); + animation = Tween(begin: 0.0, end: 400.0).animate(controller); + controller.repeat(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Material( + color: widget.color, + child: Directionality( + textDirection: TextDirection.ltr, + child: Column( + children: [ + Align( + child: _MarqueeText(animation: animation), + alignment: Alignment.centerLeft, + ), + const TextButton(child: Text('POP'), onPressed: SystemNavigator.pop), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..13e7fd75a6076610432cdcaf83226c08bf8cce6d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.pbxproj @@ -0,0 +1,448 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 457A8C6F3BD01A7C28D507CD /* libPods-Host.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 56715A205CEC5CEFA6932FF2 /* libPods-Host.a */; }; + F724F2C22329B8CC0012DB29 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F724F2C12329B8CC0012DB29 /* AppDelegate.swift */; }; + F724F2C42329B8CC0012DB29 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F724F2C32329B8CC0012DB29 /* SceneDelegate.swift */; }; + F724F2C62329B8CC0012DB29 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F724F2C52329B8CC0012DB29 /* ViewController.swift */; }; + F724F2C92329B8CC0012DB29 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F724F2C72329B8CC0012DB29 /* Main.storyboard */; }; + F724F2CB2329B8CD0012DB29 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F724F2CA2329B8CD0012DB29 /* Assets.xcassets */; }; + F724F2CE2329B8CD0012DB29 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F724F2CC2329B8CD0012DB29 /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 56715A205CEC5CEFA6932FF2 /* libPods-Host.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Host.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 5EF266650049BC10ECFD8C86 /* Pods-Host.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Host.debug.xcconfig"; path = "Target Support Files/Pods-Host/Pods-Host.debug.xcconfig"; sourceTree = ""; }; + A412A4193ADC80C963762A82 /* Pods-Host.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Host.release.xcconfig"; path = "Target Support Files/Pods-Host/Pods-Host.release.xcconfig"; sourceTree = ""; }; + F724F2BE2329B8CC0012DB29 /* Host.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Host.app; sourceTree = BUILT_PRODUCTS_DIR; }; + F724F2C12329B8CC0012DB29 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + F724F2C32329B8CC0012DB29 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + F724F2C52329B8CC0012DB29 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + F724F2C82329B8CC0012DB29 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + F724F2CA2329B8CD0012DB29 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + F724F2CD2329B8CD0012DB29 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + F724F2CF2329B8CD0012DB29 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + F724F2BB2329B8CC0012DB29 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 457A8C6F3BD01A7C28D507CD /* libPods-Host.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4A17ED70CE5479900A9A99BB /* Frameworks */ = { + isa = PBXGroup; + children = ( + 56715A205CEC5CEFA6932FF2 /* libPods-Host.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 794F1975CCFC17A524ECE744 /* Pods */ = { + isa = PBXGroup; + children = ( + 5EF266650049BC10ECFD8C86 /* Pods-Host.debug.xcconfig */, + A412A4193ADC80C963762A82 /* Pods-Host.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + F724F2B52329B8CC0012DB29 = { + isa = PBXGroup; + children = ( + F724F2C02329B8CC0012DB29 /* Host */, + F724F2BF2329B8CC0012DB29 /* Products */, + 794F1975CCFC17A524ECE744 /* Pods */, + 4A17ED70CE5479900A9A99BB /* Frameworks */, + ); + sourceTree = ""; + }; + F724F2BF2329B8CC0012DB29 /* Products */ = { + isa = PBXGroup; + children = ( + F724F2BE2329B8CC0012DB29 /* Host.app */, + ); + name = Products; + sourceTree = ""; + }; + F724F2C02329B8CC0012DB29 /* Host */ = { + isa = PBXGroup; + children = ( + F724F2C12329B8CC0012DB29 /* AppDelegate.swift */, + F724F2C32329B8CC0012DB29 /* SceneDelegate.swift */, + F724F2C52329B8CC0012DB29 /* ViewController.swift */, + F724F2C72329B8CC0012DB29 /* Main.storyboard */, + F724F2CA2329B8CD0012DB29 /* Assets.xcassets */, + F724F2CC2329B8CD0012DB29 /* LaunchScreen.storyboard */, + F724F2CF2329B8CD0012DB29 /* Info.plist */, + ); + path = Host; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + F724F2BD2329B8CC0012DB29 /* Host */ = { + isa = PBXNativeTarget; + buildConfigurationList = F724F2D22329B8CD0012DB29 /* Build configuration list for PBXNativeTarget "Host" */; + buildPhases = ( + 057F850E20C20171224A8BD8 /* [CP] Check Pods Manifest.lock */, + 5D4384B6DD186AC159B9ACB3 /* [CP-User] Run Flutter Build hello Script */, + F724F2BA2329B8CC0012DB29 /* Sources */, + F724F2BB2329B8CC0012DB29 /* Frameworks */, + F724F2BC2329B8CC0012DB29 /* Resources */, + D7D46336FAE5656C7ADAAD08 /* [CP] Embed Pods Frameworks */, + 96286B727046BA8457A788D0 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Host; + productName = Host; + productReference = F724F2BE2329B8CC0012DB29 /* Host.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + F724F2B62329B8CC0012DB29 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = flutter.io; + TargetAttributes = { + F724F2BD2329B8CC0012DB29 = { + CreatedOnToolsVersion = 11.0; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = F724F2B92329B8CC0012DB29 /* Build configuration list for PBXProject "Host" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = F724F2B52329B8CC0012DB29; + productRefGroup = F724F2BF2329B8CC0012DB29 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + F724F2BD2329B8CC0012DB29 /* Host */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + F724F2BC2329B8CC0012DB29 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F724F2CE2329B8CD0012DB29 /* LaunchScreen.storyboard in Resources */, + F724F2CB2329B8CD0012DB29 /* Assets.xcassets in Resources */, + F724F2C92329B8CC0012DB29 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 057F850E20C20171224A8BD8 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Host-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 5D4384B6DD186AC159B9ACB3 /* [CP-User] Run Flutter Build hello Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/../hello/.metadata", + "${SRCROOT}/../hello/.ios/Flutter/App.framework/App", + "${SRCROOT}/../hello/.ios/Flutter/engine/Flutter.framework/Flutter", + "${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh", + ); + name = "[CP-User] Run Flutter Build hello Script"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\nset -u\nsource \"${SRCROOT}/../hello/.ios/Flutter/flutter_export_environment.sh\"\n\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build\n"; + }; + 96286B727046BA8457A788D0 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + D7D46336FAE5656C7ADAAD08 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Host/Pods-Host-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + F724F2BA2329B8CC0012DB29 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F724F2C62329B8CC0012DB29 /* ViewController.swift in Sources */, + F724F2C22329B8CC0012DB29 /* AppDelegate.swift in Sources */, + F724F2C42329B8CC0012DB29 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + F724F2C72329B8CC0012DB29 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + F724F2C82329B8CC0012DB29 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + F724F2CC2329B8CD0012DB29 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + F724F2CD2329B8CD0012DB29 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + F724F2D02329B8CD0012DB29 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + F724F2D12329B8CD0012DB29 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + F724F2D32329B8CD0012DB29 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5EF266650049BC10ECFD8C86 /* Pods-Host.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = Host/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.add2app.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + F724F2D42329B8CD0012DB29 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A412A4193ADC80C963762A82 /* Pods-Host.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = Host/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.add2app.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + F724F2B92329B8CC0012DB29 /* Build configuration list for PBXProject "Host" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F724F2D02329B8CD0012DB29 /* Debug */, + F724F2D12329B8CD0012DB29 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F724F2D22329B8CD0012DB29 /* Build configuration list for PBXNativeTarget "Host" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F724F2D32329B8CD0012DB29 /* Debug */, + F724F2D42329B8CD0012DB29 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = F724F2B62329B8CC0012DB29 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..8ee5ee9ff60c4c3cefd2f3f910294ca7ffc441c2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..51ec64fcc2d229a8f243704f31e86b7c9c1da42f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d8db8d65fd79fd541b2b7eba75c7378af3448f9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..da4a164c918651cdd1e11dca5cc62c333f097601 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..865e9329f3767a7c1dd66294b8025bf81dee7d2c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..25a763858ecdbea5c897a9fd8fa2225d7223d2ad --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..2a3483c0d2ba679db55e66b185bfd79b44b0cf07 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/Info.plist @@ -0,0 +1,64 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/SceneDelegate.swift b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/SceneDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..917dfb1bcebbea3260fc0f7763c016fdb99abfa1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/SceneDelegate.swift @@ -0,0 +1,8 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/ViewController.swift b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/ViewController.swift new file mode 100644 index 0000000000000000000000000000000000000000..e0b7b2f2c3b5e21a0b896a1b89c10f2f2dfcfe67 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_host_app_swift/Host/ViewController.swift @@ -0,0 +1,32 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit +import Flutter +import FlutterPluginRegistrant + +class ViewController: UIViewController { + var flutterEngine : FlutterEngine?; + + // Boiler-plate add-to-app demo. Not integration tested anywhere. + override func viewDidLoad() { + super.viewDidLoad() + let button = UIButton(type:UIButton.ButtonType.custom) + button.addTarget(self, action: #selector(handleButtonAction), for: .touchUpInside) + button.setTitle("Press me", for: UIControl.State.normal) + button.frame = CGRect(x: 80.0, y: 210.0, width: 160.0, height: 40.0) + button.backgroundColor = UIColor.blue + self.view.addSubview(button) + self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil); + } + + @objc func handleButtonAction() { + if let flutterEngine = flutterEngine as? FlutterEngine { + GeneratedPluginRegistrant.register(with: flutterEngine); + + let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil); + self.present(flutterViewController, animated: false, completion: nil) + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/PlatformViewUITests/PlatformViewUITests.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/PlatformViewUITests/PlatformViewUITests.m new file mode 100644 index 0000000000000000000000000000000000000000..7753c570032433e3bd1346a30207748c4413351f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/PlatformViewUITests/PlatformViewUITests.m @@ -0,0 +1,98 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +@import XCTest; + +static const CGFloat kStandardTimeOut = 60.0; + +@interface XCUIElement(Test) +@property (nonatomic, readonly) BOOL flt_hasKeyboardFocus; +- (void)flt_forceTap; +@end + +@implementation XCUIElement(Test) +- (BOOL)flt_hasKeyboardFocus { + return [[self valueForKey:@"hasKeyboardFocus"] boolValue]; +} + +- (void)flt_forceTap { + if (self.isHittable) { + [self tap]; + } else { + XCUICoordinate *normalized = [self coordinateWithNormalizedOffset:CGVectorMake(0, 0)]; + // The offset is in actual pixels. (1, 1) to make sure tap within the view boundary. + XCUICoordinate *coordinate = [normalized coordinateWithOffset:CGVectorMake(1, 1)]; + [coordinate tap]; + } +} +@end + +@interface PlatformViewUITests : XCTestCase +@property (strong) XCUIApplication *app; +@end + +@implementation PlatformViewUITests + +- (void)setUp { + [super setUp]; + self.continueAfterFailure = NO; + + self.app = [[XCUIApplication alloc] init]; + [self.app launch]; +} + +- (void)tearDown { + [self.app terminate]; + [super tearDown]; +} + +- (void)testPlatformViewFocus { + XCUIElement *entranceButton = self.app.buttons[@"platform view focus test"]; + XCTAssertTrue([entranceButton waitForExistenceWithTimeout:kStandardTimeOut], @"The element tree is %@", self.app.debugDescription); + [entranceButton tap]; + + XCUIElement *platformView = self.app.textFields[@"platform_view[0]"]; + XCTAssertTrue([platformView waitForExistenceWithTimeout:kStandardTimeOut]); + XCUIElement *flutterTextField = self.app.textFields[@"Flutter Text Field"]; + XCTAssertTrue([flutterTextField waitForExistenceWithTimeout:kStandardTimeOut]); + + [flutterTextField tap]; + XCTAssertTrue([self.app.windows.element waitForExistenceWithTimeout:kStandardTimeOut]); + XCTAssertFalse(platformView.flt_hasKeyboardFocus); + XCTAssertTrue(flutterTextField.flt_hasKeyboardFocus); + + // Tapping on platformView should unfocus the previously focused flutterTextField + [platformView tap]; + XCTAssertTrue(platformView.flt_hasKeyboardFocus); + XCTAssertFalse(flutterTextField.flt_hasKeyboardFocus); +} + +- (void)testPlatformViewZOrder { + XCUIElement *entranceButton = self.app.buttons[@"platform view z order test"]; + XCTAssertTrue([entranceButton waitForExistenceWithTimeout:kStandardTimeOut], @"The element tree is %@", self.app.debugDescription); + [entranceButton tap]; + + XCUIElement *showAlertButton = self.app.buttons[@"Show Alert"]; + XCTAssertTrue([showAlertButton waitForExistenceWithTimeout:kStandardTimeOut]); + + [showAlertButton tap]; + + XCUIElement *platformButton = self.app.buttons[@"platform_view[0]"]; + XCTAssertTrue([platformButton waitForExistenceWithTimeout:kStandardTimeOut]); + XCTAssertTrue([platformButton.label isEqualToString:@"Initial Button Title"]); + + // The `app.otherElements` query fails to query `platform_view[1]` (the background), + // because it is covered by a dialog prompt, which removes semantic nodes underneath. + // The workaround is to set a manual delay here (must be longer than the delay used to + // show the background view on the dart side). + [NSThread sleepForTimeInterval:3]; + + for (int i = 1; i <= 5; i++) { + [platformButton flt_forceTap]; + NSString *expectedButtonTitle = [NSString stringWithFormat:@"Button Tapped %d", i]; + XCTAssertTrue([platformButton.label isEqualToString:expectedButtonTitle]); + } +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..3db6bb5f963c398c4f7a1b99a31200d3c535bd52 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,657 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + E0440002299C782300D02513 /* ButtonFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = E0440001299C782300D02513 /* ButtonFactory.m */; }; + E09898DE2853DBE800064317 /* ViewFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = E09898DD2853DBE800064317 /* ViewFactory.m */; }; + E09898E12853DC3C00064317 /* TextFieldFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = E09898E02853DC3C00064317 /* TextFieldFactory.m */; }; + E09898E92853E9F000064317 /* PlatformViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = E09898E82853E9F000064317 /* PlatformViewUITests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + E09898EC2853E9F000064317 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E0440000299C782300D02513 /* ButtonFactory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ButtonFactory.h; sourceTree = ""; }; + E0440001299C782300D02513 /* ButtonFactory.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ButtonFactory.m; sourceTree = ""; }; + E09898DC2853DBE800064317 /* ViewFactory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewFactory.h; sourceTree = ""; }; + E09898DD2853DBE800064317 /* ViewFactory.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewFactory.m; sourceTree = ""; }; + E09898DF2853DC3C00064317 /* TextFieldFactory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TextFieldFactory.h; sourceTree = ""; }; + E09898E02853DC3C00064317 /* TextFieldFactory.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TextFieldFactory.m; sourceTree = ""; }; + E09898E62853E9F000064317 /* PlatformViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PlatformViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + E09898E82853E9F000064317 /* PlatformViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PlatformViewUITests.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E09898E32853E9F000064317 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + E09898E72853E9F000064317 /* PlatformViewUITests */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + E09898E62853E9F000064317 /* PlatformViewUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + E09898DF2853DC3C00064317 /* TextFieldFactory.h */, + E09898E02853DC3C00064317 /* TextFieldFactory.m */, + E0440000299C782300D02513 /* ButtonFactory.h */, + E0440001299C782300D02513 /* ButtonFactory.m */, + E09898DC2853DBE800064317 /* ViewFactory.h */, + E09898DD2853DBE800064317 /* ViewFactory.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + E09898E72853E9F000064317 /* PlatformViewUITests */ = { + isa = PBXGroup; + children = ( + E09898E82853E9F000064317 /* PlatformViewUITests.m */, + ); + path = PlatformViewUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; + E09898E52853E9F000064317 /* PlatformViewUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = E09898EE2853E9F000064317 /* Build configuration list for PBXNativeTarget "PlatformViewUITests" */; + buildPhases = ( + E09898E22853E9F000064317 /* Sources */, + E09898E32853E9F000064317 /* Frameworks */, + E09898E42853E9F000064317 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + E09898ED2853E9F000064317 /* PBXTargetDependency */, + ); + name = PlatformViewUITests; + productName = PlatformViewUITests; + productReference = E09898E62853E9F000064317 /* PlatformViewUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + E09898E52853E9F000064317 = { + CreatedOnToolsVersion = 13.3.1; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + E09898E52853E9F000064317 /* PlatformViewUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E09898E42853E9F000064317 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + E0440002299C782300D02513 /* ButtonFactory.m in Sources */, + E09898E12853DC3C00064317 /* TextFieldFactory.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + E09898DE2853DBE800064317 /* ViewFactory.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E09898E22853E9F000064317 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E09898E92853E9F000064317 /* PlatformViewUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + E09898ED2853E9F000064317 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = E09898EC2853E9F000064317 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.platformviewTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.platformviewTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.platformviewTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + E09898EF2853E9F000064317 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.PlatformViewUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Debug; + }; + E09898F02853E9F000064317 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.PlatformViewUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Release; + }; + E09898F12853E9F000064317 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.platformview.PlatformViewUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Profile; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E09898EE2853E9F000064317 /* Build configuration list for PBXNativeTarget "PlatformViewUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E09898EF2853E9F000064317 /* Debug */, + E09898F02853E9F000064317 /* Release */, + E09898F12853E9F000064317 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..42a1bff3076b769ae8201af5844b2c9088223987 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..1d526a16ed0f1cd0c2409d848bf489b93fefa3b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..7d5bcd37fc850c239f7df54ed38c02bab4ed30d3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..5f773bab664985c6a9a62a7349ea91127a64f436 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/AppDelegate.m @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" +#import "ViewFactory.h" +#import "TextFieldFactory.h" +#import "ButtonFactory.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + id registrar = [self registrarForPlugin:@"flutter"]; + [registrar registerViewFactory:[[ViewFactory alloc] init] withId:@"platform_view"]; + [registrar registerViewFactory:[[TextFieldFactory alloc] init] withId:@"platform_text_field"]; + [registrar registerViewFactory:[[ButtonFactory alloc] init] withId:@"platform_button"]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.h b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.h new file mode 100644 index 0000000000000000000000000000000000000000..fe6b3f76f7c373883f21b77619a6017fcb6b669f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.h @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ButtonFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.m new file mode 100644 index 0000000000000000000000000000000000000000..520a7f702585a80113243c82c0177fc7c353bbc9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ButtonFactory.m @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "ButtonFactory.h" + +@interface PlatformButton: NSObject + +@property (strong, nonatomic) UIButton *button; +@property (assign, nonatomic) int counter; + +@end + +@implementation PlatformButton + +- (instancetype)init +{ + self = [super init]; + if (self) { + _counter = 0; + _button = [[UIButton alloc] init]; + [_button setTitle:@"Initial Button Title" forState:UIControlStateNormal]; + [_button addTarget:self action:@selector(buttonTapped) forControlEvents:UIControlEventTouchUpInside]; + } + return self; +} + +- (UIView *)view { + return self.button; +} + +- (void)buttonTapped { + self.counter += 1; + NSString *title = [NSString stringWithFormat:@"Button Tapped %d", self.counter]; + [self.button setTitle:title forState:UIControlStateNormal]; +} + +@end + +@implementation ButtonFactory + +- (NSObject *)createWithFrame:(CGRect)frame viewIdentifier:(int64_t)viewId arguments:(id)args { + return [[PlatformButton alloc] init]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..9f9045be206d5b374e65347ad7cb483505fb0db4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ios_platform_view_tests + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + io.flutter.embedded_views_preview + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.h b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.h new file mode 100644 index 0000000000000000000000000000000000000000..b4c6775b045299e52df41a30723e8697a1106836 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.h @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TextFieldFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.m new file mode 100644 index 0000000000000000000000000000000000000000..006f5ba83c554450135cd18dee070285f0ed78c3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/TextFieldFactory.m @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "TextFieldFactory.h" + +@interface PlatformTextField: NSObject + +@property (strong, nonatomic) UITextField *textField; + +@end + +@implementation PlatformTextField + +- (instancetype)init +{ + self = [super init]; + if (self) { + _textField = [[UITextField alloc] init]; + _textField.text = @"Platform Text Field"; + } + return self; +} + +- (UIView *)view { + return self.textField; +} + +@end + +@implementation TextFieldFactory + +- (NSObject *)createWithFrame:(CGRect)frame viewIdentifier:(int64_t)viewId arguments:(id)args { + return [[PlatformTextField alloc] init]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.h b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.h new file mode 100644 index 0000000000000000000000000000000000000000..7301eb1ef608cb1260ce5745df29d0585e3146c9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.h @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ViewFactory: NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.m new file mode 100644 index 0000000000000000000000000000000000000000..5ce2f719d0638ce6e860ad8587f7bd73fbb002a3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/ViewFactory.m @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "ViewFactory.h" + +@interface PlatformView: NSObject + +@property (strong, nonatomic) UIView *platformView; + +@end + +@implementation PlatformView + +- (instancetype)init +{ + self = [super init]; + if (self) { + _platformView = [[UIView alloc] init]; + _platformView.backgroundColor = [UIColor blueColor]; + } + return self; +} + +- (UIView *)view { + return self.platformView; +} + +@end + + +@implementation ViewFactory + +- (NSObject *)createWithFrame:(CGRect)frame viewIdentifier:(int64_t)viewId arguments:(id)args { + return [[PlatformView alloc] init]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..736a65aa5e1ab250f8353bfd31c4bfd9ab01339c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..22025f261e863bbb56ef544246569137f72aa150 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart @@ -0,0 +1,233 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +void main() { + // enableFlutterDriverExtension() will disable keyboard, + // which is required for flutter_driver tests + // But breaks the XCUITests + if (const bool.fromEnvironment('ENABLE_DRIVER_EXTENSION')) { + enableFlutterDriverExtension(); + } + runApp(const MyApp()); +} + +/// The main app entrance of the test +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: const MyHomePage(title: 'Flutter Demo Home Page'), + ); + } +} + +/// A page with several buttons in the center. +/// +/// On press the button, a page with platform view should be pushed into the scene. +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, this.title}); + final String? title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title ?? ''), + ), + body: Column(children: [ + TextButton( + key: const ValueKey('platform_view_button'), + child: const Text('show platform view'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const MergeThreadTestPage()), + ); + }, + ), + // Push this button to perform an animation, which ensure the threads are unmerged after the animation. + ElevatedButton( + key: const ValueKey('unmerge_button'), + child: const Text('Tap to unmerge threads'), + onPressed: () {}, + ), + TextButton( + key: const ValueKey('platform_view_focus_test'), + child: const Text('platform view focus test'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const FocusTestPage()), + ); + }, + ), + TextButton( + key: const ValueKey('platform_view_z_order_test'), + child: const Text('platform view z order test'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const ZOrderTestPage()), + ); + }, + ), + ]), + ); + } +} + +/// A page to test thread merge for platform view. +class MergeThreadTestPage extends StatelessWidget { + const MergeThreadTestPage({super.key}); + + static Key button = const ValueKey('plus_button'); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Platform View Thread Merge Tests'), + ), + body: Column( + children: [ + const Expanded( + child: SizedBox( + width: 300, + child: UiKitView(viewType: 'platform_view'), + ), + ), + ElevatedButton( + key: button, + child: const Text('button'), + onPressed: (){}, + ), + ], + ), + ); + } +} + +/// A page to test platform view focus. +class FocusTestPage extends StatefulWidget { + const FocusTestPage({super.key}); + + @override + State createState() => _FocusTestPageState(); +} + +class _FocusTestPageState extends State { + + late TextEditingController _controller; + + @override + void initState() { + super.initState(); + _controller = TextEditingController(); + _controller.text = 'Flutter Text Field'; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Platform View Focus Tests'), + ), + body: Column( + children: [ + const SizedBox( + width: 300, + height: 50, + child: UiKitView(viewType: 'platform_text_field'), + ), + TextField( + controller: _controller, + ), + ], + ), + ); + } +} + +/// A page to test a platform view in an alert dialog prompt is still tappable. +/// See [this issue](https://github.com/flutter/flutter/issues/118366). +class ZOrderTestPage extends StatefulWidget { + const ZOrderTestPage({super.key}); + + @override + State createState() => _ZOrderTestPageState(); +} + +class _ZOrderTestPageState extends State { + bool _showBackground = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Platform view z order test'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Visibility( + visible: _showBackground, + child: const SizedBox( + width: 500, + height: 500, + child: UiKitView( + viewType: 'platform_view', + creationParamsCodec: StandardMessageCodec(), + ), + )), + TextButton( + onPressed: () { + showDialog( + context: context, + builder: (BuildContext context) { + return const SizedBox( + width: 250, + height: 250, + child: UiKitView( + viewType: 'platform_button', + creationParamsCodec: StandardMessageCodec(), + ), + ); + }); + + // XCUITest fails to query the background platform view, + // Since it is covered by the dialog prompt, which removes + // semantic nodes underneath. + // As a workaround, we show the background with a delay. + Future.delayed(const Duration(seconds: 1)).then((void value) { + setState(() { + _showBackground = true; + }); + }); + }, + child: const Text('Show Alert')), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..4cd8fe302257a93b92bd5c8f54c1445c7dffabb0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; + +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('FlutterDriver', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() => driver.close()); + + test('Merge thread to create and remove platform views should not crash', + () async { + // Start pushing in a page with platform view, merge threads. + final SerializableFinder platformViewButton = + find.byValueKey('platform_view_button'); + await driver.waitFor(platformViewButton); + await driver.tap(platformViewButton); + + // Wait for the platform view page to show. + final SerializableFinder plusButton = find.byValueKey('plus_button'); + await driver.waitFor(plusButton); + await driver.waitUntilNoTransientCallbacks(); + + // Tapping an elevated button runs an animation that pumps enough frames to un-merge the threads. + await driver.tap(plusButton); + await driver.waitUntilNoTransientCallbacks(); + + // Remove the page with platform view, merge threads again. + final SerializableFinder backButton = find.pageBack(); + await driver.tap(backButton); + await driver.waitUntilNoTransientCallbacks(); + + final Health driverHealth = await driver.checkHealth(); + expect(driverHealth.status, HealthStatus.ok); + }, timeout: Timeout.none); + + test('Merge thread to create and remove platform views should not crash', + () async { + // Start pushing in a page with platform view, merge threads. + final SerializableFinder platformViewButton = + find.byValueKey('platform_view_button'); + await driver.waitFor(platformViewButton); + await driver.tap(platformViewButton); + await driver.waitUntilNoTransientCallbacks(); + + // Remove the page with platform view, threads are still merged. + final SerializableFinder backButton = find.pageBack(); + await driver.tap(backButton); + await driver.waitUntilNoTransientCallbacks(); + + // The animation of tapping a `ElevatedButton` should pump enough frames to un-merge the thread. + final SerializableFinder unmergeButton = + find.byValueKey('unmerge_button'); + await driver.waitFor(unmergeButton); + await driver.tap(unmergeButton); + await driver.waitUntilNoTransientCallbacks(); + + final Health driverHealth = await driver.checkHealth(); + expect(driverHealth.status, HealthStatus.ok); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/hook/build.dart b/novelforge-project/flutter/dev/integration_tests/link_hook/hook/build.dart new file mode 100644 index 0000000000000000000000000000000000000000..19fb66ccc25c54c851ad964ec94448ddb9656597 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/hook/build.dart @@ -0,0 +1,36 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:logging/logging.dart'; +import 'package:native_assets_cli/native_assets_cli.dart'; +import 'package:native_toolchain_c/native_toolchain_c.dart'; + + +void main(List args) async { + await build(args, (BuildConfig config, BuildOutput output) async { + final String packageName = config.packageName; + final CBuilder cbuilder = CBuilder.library( + name: packageName, + assetName: 'some_asset_name_that_is_not_used', + sources: [ + 'src/$packageName.c', + ], + dartBuildFiles: ['hook/build.dart'], + ); + final BuildOutput outputCatcher = BuildOutput(); + await cbuilder.run( + buildConfig: config, + buildOutput: outputCatcher, + logger: Logger('') + ..level = Level.ALL + ..onRecord.listen((LogRecord record) => print(record.message)), + ); + output.addDependencies(outputCatcher.dependencies); + // Send the asset to hook/link.dart. + output.addAsset( + outputCatcher.assets.single, + linkInPackage: 'link_hook', + ); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/hook/link.dart b/novelforge-project/flutter/dev/integration_tests/link_hook/hook/link.dart new file mode 100644 index 0000000000000000000000000000000000000000..3c37155587f690d7c64d77ce0e200d0cdc714b5f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/hook/link.dart @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:native_assets_cli/native_assets_cli.dart'; + +void main(List args) async { + await link(args, (LinkConfig config, LinkOutput output) async { + final NativeCodeAsset asset = config.assets.single as NativeCodeAsset; + final String packageName = config.packageName; + output.addAsset(NativeCodeAsset( + package: packageName, + // Change the asset id to something that is used. + name: '${packageName}_bindings_generated.dart', + linkMode: asset.linkMode, + os: asset.os, + architecture: asset.architecture, + file: asset.file, + )); + output.addDependency(config.packageRoot.resolve('hook/link.dart')); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook.dart b/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook.dart new file mode 100644 index 0000000000000000000000000000000000000000..8bbe2db2858cd03fbf6986a305bf4656b83a6f3e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook.dart @@ -0,0 +1,8 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'link_hook_bindings_generated.dart' as bindings; + +/// A very short-lived native function. +int difference(int a, int b) => bindings.difference(a, b); diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart b/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart new file mode 100644 index 0000000000000000000000000000000000000000..02a533ca93f53f3b69b6878041f28e50b0533bcf --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// ignore_for_file: always_specify_types +// ignore_for_file: camel_case_types +// ignore_for_file: non_constant_identifier_names + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +import 'dart:ffi' as ffi; + +/// A very short-lived native function. +@ffi.Native() +external int difference( + int a, + int b, +); diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.c b/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.c new file mode 100644 index 0000000000000000000000000000000000000000..d0086495a3b3ab834f7560d398a6de56863e5273 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.c @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "link_hook.h" + +// A very short-lived native function. +// +// For very short-lived functions, it is fine to call them on the main isolate. +// They will block the Dart execution while running the native function, so +// only do this for native functions which are guaranteed to be short-lived. +FFI_PLUGIN_EXPORT intptr_t difference(intptr_t a, intptr_t b) { return a - b; } diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.h b/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.h new file mode 100644 index 0000000000000000000000000000000000000000..569c8f16382b1b4ab69601f3e6e3b456a7e95e33 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/src/link_hook.h @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include +#include +#include + +#if _WIN32 +#include +#else +#include +#include +#endif + +#if _WIN32 +#define FFI_PLUGIN_EXPORT __declspec(dllexport) +#else +#define FFI_PLUGIN_EXPORT +#endif + +FFI_PLUGIN_EXPORT intptr_t difference(intptr_t a, intptr_t b); diff --git a/novelforge-project/flutter/dev/integration_tests/link_hook/test/link_hook_test.dart b/novelforge-project/flutter/dev/integration_tests/link_hook/test/link_hook_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..cf142e73a905206c805f1f465ee10f2cc870b6d9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/link_hook/test/link_hook_test.dart @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:link_hook/link_hook.dart'; +import 'package:test/test.dart'; + +void main() { + test('invoke native function', () { + // Tests are run in debug mode. + expect(difference(24, 18), 24 - 18); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..7a2741f374fc0e2edb960b5f4b86d0f9df9f4e2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +apply plugin: 'com.android.application' + +android { + compileSdk 34 + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + applicationId "io.flutter.addtoapp" + minSdkVersion 19 + targetSdkVersion 33 + versionCode 1 + versionName "1.0" + } + // Test build types. + buildTypes { + staging { + initWith debug + // This is required because the `:flutter` project doesn't define this custom build type. + // Without the fallback, the Android plugin will make Gradle exit with the following error: + // `Unable to find a matching variant of project :flutter` + matchingFallbacks = ['debug'] + } + prod { + initWith release + matchingFallbacks = ['release'] + } + } + // Test flavors. + flavorDimensions "version" + productFlavors { + demo { + dimension "version" + } + } +} + +dependencies { + implementation project(':flutter') +} diff --git a/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..dc7d78d0af753b797ec1e61b4c5a7bfd87322f0e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/java/io/flutter/addtoapp/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/java/io/flutter/addtoapp/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..ec2d5b7c85bc05ac3edb2428ec3b34242b8bcf60 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/java/io/flutter/addtoapp/MainActivity.java @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.addtoapp; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_displayer.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_displayer.dart new file mode 100644 index 0000000000000000000000000000000000000000..fcfe2b121d4da4d648166554676536ec46cd4ccc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_displayer.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +typedef CodeDisplayer = TextSpan Function(BuildContext context); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_style.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_style.dart new file mode 100644 index 0000000000000000000000000000000000000000..8ca8d175b3a7f6f8422978f88ef4861b627f3fd1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/codeviewer/code_style.dart @@ -0,0 +1,44 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class CodeStyle extends InheritedWidget { + const CodeStyle({ + super.key, + this.baseStyle, + this.numberStyle, + this.commentStyle, + this.keywordStyle, + this.stringStyle, + this.punctuationStyle, + this.classStyle, + this.constantStyle, + required super.child, + }); + + final TextStyle? baseStyle; + final TextStyle? numberStyle; + final TextStyle? commentStyle; + final TextStyle? keywordStyle; + final TextStyle? stringStyle; + final TextStyle? punctuationStyle; + final TextStyle? classStyle; + final TextStyle? constantStyle; + + static CodeStyle of(BuildContext context) { + return context.dependOnInheritedWidgetOfExactType()!; + } + + @override + bool updateShouldNotify(CodeStyle oldWidget) => + oldWidget.baseStyle != baseStyle || + oldWidget.numberStyle != numberStyle || + oldWidget.commentStyle != commentStyle || + oldWidget.keywordStyle != keywordStyle || + oldWidget.stringStyle != stringStyle || + oldWidget.punctuationStyle != punctuationStyle || + oldWidget.classStyle != classStyle || + oldWidget.constantStyle != constantStyle; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/constants.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/constants.dart new file mode 100644 index 0000000000000000000000000000000000000000..f9d1e1cde236d7d3ae457ace8783879d2a5c2cd7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/constants.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Only put constants shared between files here. + +import 'dart:typed_data'; + +// Height of the 'Gallery' header +const double galleryHeaderHeight = 64; + +// The font size delta for headline4 font. +const double desktopDisplay1FontDelta = 16; + +// The width of the settingsDesktop. +const double desktopSettingsWidth = 520; + +// Sentinel value for the system text scale factor option. +const double systemTextScaleFactorOption = -1; + +// The splash page animation duration. +const Duration splashPageAnimationDuration = Duration(milliseconds: 300); + +// Half the splash page animation duration. +const Duration halfSplashPageAnimationDuration = Duration(milliseconds: 150); + +// Duration for settings panel to open on mobile. +const Duration settingsPanelMobileAnimationDuration = + Duration(milliseconds: 200); + +// Duration for settings panel to open on desktop. +const Duration settingsPanelDesktopAnimationDuration = + Duration(milliseconds: 600); + +// Duration for home page elements to fade in. +const Duration entranceAnimationDuration = Duration(milliseconds: 200); + +// The desktop top padding for a page's first header (e.g. Gallery, Settings) +const double firstHeaderDesktopTopPadding = 5.0; + +// A transparent image used to avoid loading images when they are not needed. +final Uint8List kTransparentImage = Uint8List.fromList([ + 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, + 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x08, 0x06, + 0x00, 0x00, 0x00, 0x1F, 0x15, 0xC4, 0x89, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4B, + 0x47, 0x44, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0xA0, 0xBD, 0xA7, 0x93, 0x00, + 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0B, 0x13, 0x00, 0x00, + 0x0B, 0x13, 0x01, 0x00, 0x9A, 0x9C, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, + 0x4D, 0x45, 0x07, 0xE6, 0x03, 0x10, 0x17, 0x07, 0x1D, 0x2E, 0x5E, 0x30, 0x9B, + 0x00, 0x00, 0x00, 0x0B, 0x49, 0x44, 0x41, 0x54, 0x08, 0xD7, 0x63, 0x60, 0x00, + 0x02, 0x00, 0x00, 0x05, 0x00, 0x01, 0xE2, 0x26, 0x05, 0x9B, 0x00, 0x00, 0x00, + 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82, +]); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart new file mode 100644 index 0000000000000000000000000000000000000000..c5fcabdbb08f8054a1d0fca34ec2a0fcce4fe88f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart @@ -0,0 +1,1269 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:collection'; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +import '../codeviewer/code_displayer.dart'; +import '../deferred_widget.dart'; +import '../demos/cupertino/cupertino_demos.dart' + deferred as cupertino_demos; +import '../demos/cupertino/demo_types.dart'; +import '../demos/material/material_demo_types.dart'; +import '../demos/material/material_demos.dart' + deferred as material_demos; +import '../demos/reference/colors_demo.dart' + deferred as colors_demo; +import '../demos/reference/motion_demo_container_transition.dart' + deferred as motion_demo_container; +import '../demos/reference/motion_demo_fade_scale_transition.dart'; +import '../demos/reference/motion_demo_fade_through_transition.dart'; +import '../demos/reference/motion_demo_shared_x_axis_transition.dart'; +import '../demos/reference/motion_demo_shared_y_axis_transition.dart'; +import '../demos/reference/motion_demo_shared_z_axis_transition.dart'; +import '../demos/reference/transformations_demo.dart' + deferred as transformations_demo; +import '../demos/reference/typography_demo.dart' + deferred as typography; +import '../gallery_localizations.dart'; +import '../gallery_localizations_en.dart'; +import 'icons.dart'; + +const String _docsBaseUrl = 'https://api.flutter.dev/flutter'; +const String _docsAnimationsUrl = + 'https://pub.dev/documentation/animations/latest/animations'; + +enum GalleryDemoCategory { + study, + material, + cupertino, + other; + + @override + String toString() { + return name.toUpperCase(); + } + + String? displayTitle(GalleryLocalizations localizations) { + return switch (this) { + study => null, + material || cupertino => toString(), + other => localizations.homeCategoryReference, + }; + } +} + +class GalleryDemo { + const GalleryDemo({ + required this.title, + required this.category, + required this.subtitle, + // This parameter is required for studies. + this.studyId, + // Parameters below are required for non-study demos. + this.slug, + this.icon, + this.configurations = const [], + }) : assert(category == GalleryDemoCategory.study || + (slug != null && icon != null)), + assert(slug != null || studyId != null); + + final String title; + final GalleryDemoCategory category; + final String subtitle; + final String? studyId; + final String? slug; + final IconData? icon; + final List configurations; + + String get describe => '${slug ?? studyId}@${category.name}'; +} + +TextSpan noOpCodeDisplayer(BuildContext context) { + return const TextSpan(text: ''); +} + +class GalleryDemoConfiguration { + const GalleryDemoConfiguration({ + required this.title, + required this.description, + required this.documentationUrl, + required this.buildRoute, + this.code = noOpCodeDisplayer, + }); + + final String title; + final String description; + final String documentationUrl; + final WidgetBuilder buildRoute; + final CodeDisplayer code; +} + +/// Awaits all deferred libraries for tests. +Future pumpDeferredLibraries() { + final List> futures = >[ + DeferredWidget.preload(cupertino_demos.loadLibrary), + DeferredWidget.preload(material_demos.loadLibrary), + DeferredWidget.preload(motion_demo_container.loadLibrary), + DeferredWidget.preload(colors_demo.loadLibrary), + DeferredWidget.preload(transformations_demo.loadLibrary), + DeferredWidget.preload(typography.loadLibrary), + ]; + return Future.wait(futures); +} + +class Demos { + static Map asSlugToDemoMap(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return LinkedHashMap.fromIterable( + all(localizations), + // ignore: avoid_dynamic_calls + key: (dynamic demo) => demo.slug as String?, + ); + } + + static List all(GalleryLocalizations localizations) => + studies(localizations).values.toList() + + materialDemos(localizations) + + cupertinoDemos(localizations) + + otherDemos(localizations); + + static List allDescriptions() => + all(GalleryLocalizationsEn()).map((GalleryDemo demo) => demo.describe).toList(); + + static Map studies(GalleryLocalizations localizations) { + return { + 'shrine': GalleryDemo( + title: 'Shrine', + subtitle: localizations.shrineDescription, + category: GalleryDemoCategory.study, + studyId: 'shrine', + ), + 'rally': GalleryDemo( + title: 'Rally', + subtitle: localizations.rallyDescription, + category: GalleryDemoCategory.study, + studyId: 'rally', + ), + 'crane': GalleryDemo( + title: 'Crane', + subtitle: localizations.craneDescription, + category: GalleryDemoCategory.study, + studyId: 'crane', + ), + 'fortnightly': GalleryDemo( + title: 'Fortnightly', + subtitle: localizations.fortnightlyDescription, + category: GalleryDemoCategory.study, + studyId: 'fortnightly', + ), + 'reply': GalleryDemo( + title: 'Reply', + subtitle: localizations.replyDescription, + category: GalleryDemoCategory.study, + studyId: 'reply', + ), + 'starterApp': GalleryDemo( + title: localizations.starterAppTitle, + subtitle: localizations.starterAppDescription, + category: GalleryDemoCategory.study, + studyId: 'starter', + ), + }; + } + + static List materialDemos(GalleryLocalizations localizations) { + final LibraryLoader materialDemosLibrary = material_demos.loadLibrary; + return [ + GalleryDemo( + title: localizations.demoAppBarTitle, + icon: GalleryIcons.appbar, + slug: 'app-bar', + subtitle: localizations.demoAppBarSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoAppBarTitle, + description: localizations.demoAppBarDescription, + documentationUrl: '$_docsBaseUrl/material/AppBar-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.AppBarDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoBannerTitle, + icon: GalleryIcons.listsLeaveBehind, + slug: 'banner', + subtitle: localizations.demoBannerSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoBannerTitle, + description: localizations.demoBannerDescription, + documentationUrl: + '$_docsBaseUrl/material/MaterialBanner-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BannerDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoBottomAppBarTitle, + icon: GalleryIcons.bottomAppBar, + slug: 'bottom-app-bar', + subtitle: localizations.demoBottomAppBarSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoBottomAppBarTitle, + description: localizations.demoBottomAppBarDescription, + documentationUrl: '$_docsBaseUrl/material/BottomAppBar-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomAppBarDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoBottomNavigationTitle, + icon: GalleryIcons.bottomNavigation, + slug: 'bottom-navigation', + subtitle: localizations.demoBottomNavigationSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoBottomNavigationPersistentLabels, + description: localizations.demoBottomNavigationDescription, + documentationUrl: + '$_docsBaseUrl/material/BottomNavigationBar-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomNavigationDemo( + type: BottomNavigationDemoType.withLabels, + restorationId: 'bottom_navigation_labels_demo', + )), + ), + GalleryDemoConfiguration( + title: localizations.demoBottomNavigationSelectedLabel, + description: localizations.demoBottomNavigationDescription, + documentationUrl: + '$_docsBaseUrl/material/BottomNavigationBar-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomNavigationDemo( + type: BottomNavigationDemoType.withoutLabels, + restorationId: 'bottom_navigation_without_labels_demo', + )), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoBottomSheetTitle, + icon: GalleryIcons.bottomSheets, + slug: 'bottom-sheet', + subtitle: localizations.demoBottomSheetSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoBottomSheetPersistentTitle, + description: localizations.demoBottomSheetPersistentDescription, + documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomSheetDemo( + type: BottomSheetDemoType.persistent, + )), + ), + GalleryDemoConfiguration( + title: localizations.demoBottomSheetModalTitle, + description: localizations.demoBottomSheetModalDescription, + documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomSheetDemo( + type: BottomSheetDemoType.modal, + )), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoButtonTitle, + icon: GalleryIcons.genericButtons, + slug: 'button', + subtitle: localizations.demoButtonSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoTextButtonTitle, + description: localizations.demoTextButtonDescription, + documentationUrl: '$_docsBaseUrl/material/TextButton-class.html', + buildRoute: (_) => DeferredWidget(materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.text)), + ), + GalleryDemoConfiguration( + title: localizations.demoElevatedButtonTitle, + description: localizations.demoElevatedButtonDescription, + documentationUrl: + '$_docsBaseUrl/material/ElevatedButton-class.html', + buildRoute: (_) => DeferredWidget(materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.elevated)), + ), + GalleryDemoConfiguration( + title: localizations.demoOutlinedButtonTitle, + description: localizations.demoOutlinedButtonDescription, + documentationUrl: + '$_docsBaseUrl/material/OutlinedButton-class.html', + buildRoute: (_) => DeferredWidget(materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.outlined)), + ), + GalleryDemoConfiguration( + title: localizations.demoToggleButtonTitle, + description: localizations.demoToggleButtonDescription, + documentationUrl: '$_docsBaseUrl/material/ToggleButtons-class.html', + buildRoute: (_) => DeferredWidget(materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.toggle)), + ), + GalleryDemoConfiguration( + title: localizations.demoFloatingButtonTitle, + description: localizations.demoFloatingButtonDescription, + documentationUrl: + '$_docsBaseUrl/material/FloatingActionButton-class.html', + buildRoute: (_) => DeferredWidget(materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.floating)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoCardTitle, + icon: GalleryIcons.cards, + slug: 'card', + subtitle: localizations.demoCardSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCardTitle, + description: localizations.demoCardDescription, + documentationUrl: '$_docsBaseUrl/material/Card-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.CardsDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoChipTitle, + icon: GalleryIcons.chips, + slug: 'chip', + subtitle: localizations.demoChipSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoActionChipTitle, + description: localizations.demoActionChipDescription, + documentationUrl: '$_docsBaseUrl/material/ActionChip-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.action)), + ), + GalleryDemoConfiguration( + title: localizations.demoChoiceChipTitle, + description: localizations.demoChoiceChipDescription, + documentationUrl: '$_docsBaseUrl/material/ChoiceChip-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.choice)), + ), + GalleryDemoConfiguration( + title: localizations.demoFilterChipTitle, + description: localizations.demoFilterChipDescription, + documentationUrl: '$_docsBaseUrl/material/FilterChip-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.filter)), + ), + GalleryDemoConfiguration( + title: localizations.demoInputChipTitle, + description: localizations.demoInputChipDescription, + documentationUrl: '$_docsBaseUrl/material/InputChip-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.input)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoDataTableTitle, + icon: GalleryIcons.dataTable, + slug: 'data-table', + subtitle: localizations.demoDataTableSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoDataTableTitle, + description: localizations.demoDataTableDescription, + documentationUrl: '$_docsBaseUrl/material/DataTable-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DataTableDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoDialogTitle, + icon: GalleryIcons.dialogs, + slug: 'dialog', + subtitle: localizations.demoDialogSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoAlertDialogTitle, + description: localizations.demoAlertDialogDescription, + documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.alert)), + ), + GalleryDemoConfiguration( + title: localizations.demoAlertTitleDialogTitle, + description: localizations.demoAlertDialogDescription, + documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.DialogDemo(type: DialogDemoType.alertTitle)), + ), + GalleryDemoConfiguration( + title: localizations.demoSimpleDialogTitle, + description: localizations.demoSimpleDialogDescription, + documentationUrl: '$_docsBaseUrl/material/SimpleDialog-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.simple)), + ), + GalleryDemoConfiguration( + title: localizations.demoFullscreenDialogTitle, + description: localizations.demoFullscreenDialogDescription, + documentationUrl: + '$_docsBaseUrl/widgets/PageRoute/fullscreenDialog.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.DialogDemo(type: DialogDemoType.fullscreen)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoDividerTitle, + icon: GalleryIcons.divider, + slug: 'divider', + subtitle: localizations.demoDividerSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoDividerTitle, + description: localizations.demoDividerDescription, + documentationUrl: '$_docsBaseUrl/material/Divider-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DividerDemo( + type: DividerDemoType.horizontal)), + ), + GalleryDemoConfiguration( + title: localizations.demoVerticalDividerTitle, + description: localizations.demoDividerDescription, + documentationUrl: + '$_docsBaseUrl/material/VerticalDivider-class.html', + buildRoute: (_) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.DividerDemo(type: DividerDemoType.vertical)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoGridListsTitle, + icon: GalleryIcons.gridOn, + slug: 'grid-lists', + subtitle: localizations.demoGridListsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoGridListsImageOnlyTitle, + description: localizations.demoGridListsDescription, + documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.GridListDemo( + type: GridListDemoType.imageOnly)), + ), + GalleryDemoConfiguration( + title: localizations.demoGridListsHeaderTitle, + description: localizations.demoGridListsDescription, + documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.GridListDemo(type: GridListDemoType.header)), + ), + GalleryDemoConfiguration( + title: localizations.demoGridListsFooterTitle, + description: localizations.demoGridListsDescription, + documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.GridListDemo(type: GridListDemoType.footer)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoListsTitle, + icon: GalleryIcons.listAlt, + slug: 'lists', + subtitle: localizations.demoListsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoOneLineListsTitle, + description: localizations.demoListsDescription, + documentationUrl: '$_docsBaseUrl/material/ListTile-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ListDemo(type: ListDemoType.oneLine)), + ), + GalleryDemoConfiguration( + title: localizations.demoTwoLineListsTitle, + description: localizations.demoListsDescription, + documentationUrl: '$_docsBaseUrl/material/ListTile-class.html', + buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, + () => material_demos.ListDemo(type: ListDemoType.twoLine)), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoMenuTitle, + icon: GalleryIcons.moreVert, + slug: 'menu', + subtitle: localizations.demoMenuSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoContextMenuTitle, + description: localizations.demoMenuDescription, + documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.contextMenu), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoSectionedMenuTitle, + description: localizations.demoMenuDescription, + documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.sectionedMenu), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoChecklistMenuTitle, + description: localizations.demoMenuDescription, + documentationUrl: + '$_docsBaseUrl/material/CheckedPopupMenuItem-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.checklistMenu), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoSimpleMenuTitle, + description: localizations.demoMenuDescription, + documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.simpleMenu), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoNavigationDrawerTitle, + icon: GalleryIcons.menu, + slug: 'nav_drawer', + subtitle: localizations.demoNavigationDrawerSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoNavigationDrawerTitle, + description: localizations.demoNavigationDrawerDescription, + documentationUrl: '$_docsBaseUrl/material/Drawer-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.NavDrawerDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoNavigationRailTitle, + icon: GalleryIcons.navigationRail, + slug: 'nav_rail', + subtitle: localizations.demoNavigationRailSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoNavigationRailTitle, + description: localizations.demoNavigationRailDescription, + documentationUrl: + '$_docsBaseUrl/material/NavigationRail-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.NavRailDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoPickersTitle, + icon: GalleryIcons.event, + slug: 'pickers', + subtitle: localizations.demoPickersSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoDatePickerTitle, + description: localizations.demoDatePickerDescription, + documentationUrl: '$_docsBaseUrl/material/showDatePicker.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.date), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoTimePickerTitle, + description: localizations.demoTimePickerDescription, + documentationUrl: '$_docsBaseUrl/material/showTimePicker.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.time), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoDateRangePickerTitle, + description: localizations.demoDateRangePickerDescription, + documentationUrl: '$_docsBaseUrl/material/showDateRangePicker.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.range), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoProgressIndicatorTitle, + icon: GalleryIcons.progressActivity, + slug: 'progress-indicator', + subtitle: localizations.demoProgressIndicatorSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCircularProgressIndicatorTitle, + description: localizations.demoCircularProgressIndicatorDescription, + documentationUrl: + '$_docsBaseUrl/material/CircularProgressIndicator-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ProgressIndicatorDemo( + type: ProgressIndicatorDemoType.circular, + ), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoLinearProgressIndicatorTitle, + description: localizations.demoLinearProgressIndicatorDescription, + documentationUrl: + '$_docsBaseUrl/material/LinearProgressIndicator-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ProgressIndicatorDemo( + type: ProgressIndicatorDemoType.linear, + ), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoSelectionControlsTitle, + icon: GalleryIcons.checkBox, + slug: 'selection-controls', + subtitle: localizations.demoSelectionControlsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoSelectionControlsCheckboxTitle, + description: localizations.demoSelectionControlsCheckboxDescription, + documentationUrl: '$_docsBaseUrl/material/Checkbox-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo( + type: SelectionControlsDemoType.checkbox, + ), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoSelectionControlsRadioTitle, + description: localizations.demoSelectionControlsRadioDescription, + documentationUrl: '$_docsBaseUrl/material/Radio-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo( + type: SelectionControlsDemoType.radio, + ), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoSelectionControlsSwitchTitle, + description: localizations.demoSelectionControlsSwitchDescription, + documentationUrl: '$_docsBaseUrl/material/Switch-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo( + type: SelectionControlsDemoType.switches, + ), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoSlidersTitle, + icon: GalleryIcons.sliders, + slug: 'sliders', + subtitle: localizations.demoSlidersSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoSlidersTitle, + description: localizations.demoSlidersDescription, + documentationUrl: '$_docsBaseUrl/material/Slider-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo(type: SlidersDemoType.sliders), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoRangeSlidersTitle, + description: localizations.demoRangeSlidersDescription, + documentationUrl: '$_docsBaseUrl/material/RangeSlider-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo( + type: SlidersDemoType.rangeSliders), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoCustomSlidersTitle, + description: localizations.demoCustomSlidersDescription, + documentationUrl: '$_docsBaseUrl/material/SliderTheme-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo( + type: SlidersDemoType.customSliders), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoSnackbarsTitle, + icon: GalleryIcons.snackbar, + slug: 'snackbars', + subtitle: localizations.demoSnackbarsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoSnackbarsTitle, + description: localizations.demoSnackbarsDescription, + documentationUrl: '$_docsBaseUrl/material/SnackBar-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SnackbarsDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoTabsTitle, + icon: GalleryIcons.tabs, + slug: 'tabs', + subtitle: localizations.demoTabsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoTabsScrollingTitle, + description: localizations.demoTabsDescription, + documentationUrl: '$_docsBaseUrl/material/TabBar-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TabsDemo(type: TabsDemoType.scrollable), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoTabsNonScrollingTitle, + description: localizations.demoTabsDescription, + documentationUrl: '$_docsBaseUrl/material/TabBar-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TabsDemo(type: TabsDemoType.nonScrollable), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoTextFieldTitle, + icon: GalleryIcons.textFieldsAlt, + slug: 'text-field', + subtitle: localizations.demoTextFieldSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoTextFieldTitle, + description: localizations.demoTextFieldDescription, + documentationUrl: '$_docsBaseUrl/material/TextField-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TextFieldDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + GalleryDemo( + title: localizations.demoTooltipTitle, + icon: GalleryIcons.tooltip, + slug: 'tooltip', + subtitle: localizations.demoTooltipSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoTooltipTitle, + description: localizations.demoTooltipDescription, + documentationUrl: '$_docsBaseUrl/material/Tooltip-class.html', + buildRoute: (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TooltipDemo(), + ), + ), + ], + category: GalleryDemoCategory.material, + ), + ]; + } + + static List cupertinoDemos(GalleryLocalizations localizations) { + final LibraryLoader cupertinoLoader = cupertino_demos.loadLibrary; + return [ + GalleryDemo( + title: localizations.demoCupertinoActivityIndicatorTitle, + icon: GalleryIcons.cupertinoProgress, + slug: 'cupertino-activity-indicator', + subtitle: localizations.demoCupertinoActivityIndicatorSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoActivityIndicatorTitle, + description: + localizations.demoCupertinoActivityIndicatorDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoActivityIndicator-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoProgressIndicatorDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoAlertsTitle, + icon: GalleryIcons.dialogs, + slug: 'cupertino-alerts', + subtitle: localizations.demoCupertinoAlertsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoAlertTitle, + description: localizations.demoCupertinoAlertDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo( + type: AlertDemoType.alert)), + ), + GalleryDemoConfiguration( + title: localizations.demoCupertinoAlertWithTitleTitle, + description: localizations.demoCupertinoAlertDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo( + type: AlertDemoType.alertTitle)), + ), + GalleryDemoConfiguration( + title: localizations.demoCupertinoAlertButtonsTitle, + description: localizations.demoCupertinoAlertDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo( + type: AlertDemoType.alertButtons)), + ), + GalleryDemoConfiguration( + title: localizations.demoCupertinoAlertButtonsOnlyTitle, + description: localizations.demoCupertinoAlertDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo( + type: AlertDemoType.alertButtonsOnly)), + ), + GalleryDemoConfiguration( + title: localizations.demoCupertinoActionSheetTitle, + description: localizations.demoCupertinoActionSheetDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoActionSheet-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo( + type: AlertDemoType.actionSheet)), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoButtonsTitle, + icon: GalleryIcons.genericButtons, + slug: 'cupertino-buttons', + subtitle: localizations.demoCupertinoButtonsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoButtonsTitle, + description: localizations.demoCupertinoButtonsDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoButton-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoButtonDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoContextMenuTitle, + icon: GalleryIcons.moreVert, + slug: 'cupertino-context-menu', + subtitle: localizations.demoCupertinoContextMenuSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoContextMenuTitle, + description: localizations.demoCupertinoContextMenuDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoContextMenu-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoContextMenuDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoNavigationBarTitle, + icon: GalleryIcons.bottomSheetPersistent, + slug: 'cupertino-navigation-bar', + subtitle: localizations.demoCupertinoNavigationBarSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoNavigationBarTitle, + description: localizations.demoCupertinoNavigationBarDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoNavigationBar-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoNavigationBarDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoPickerTitle, + icon: GalleryIcons.listAlt, + slug: 'cupertino-picker', + subtitle: localizations.demoCupertinoPickerSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoPickerTitle, + description: localizations.demoCupertinoPickerDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoDatePicker-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + // ignore: prefer_const_constructors + () => cupertino_demos.CupertinoPickerDemo()), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoScrollbarTitle, + icon: GalleryIcons.listAlt, + slug: 'cupertino-scrollbar', + subtitle: localizations.demoCupertinoScrollbarSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoScrollbarTitle, + description: localizations.demoCupertinoScrollbarDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoScrollbar-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + // ignore: prefer_const_constructors + () => cupertino_demos.CupertinoScrollbarDemo()), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoSegmentedControlTitle, + icon: GalleryIcons.tabs, + slug: 'cupertino-segmented-control', + subtitle: localizations.demoCupertinoSegmentedControlSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoSegmentedControlTitle, + description: localizations.demoCupertinoSegmentedControlDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoSegmentedControl-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSegmentedControlDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoSliderTitle, + icon: GalleryIcons.sliders, + slug: 'cupertino-slider', + subtitle: localizations.demoCupertinoSliderSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoSliderTitle, + description: localizations.demoCupertinoSliderDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoSlider-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSliderDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoSelectionControlsSwitchTitle, + icon: GalleryIcons.cupertinoSwitch, + slug: 'cupertino-switch', + subtitle: localizations.demoCupertinoSwitchSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoSelectionControlsSwitchTitle, + description: localizations.demoCupertinoSwitchDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoSwitch-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSwitchDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoTabBarTitle, + icon: GalleryIcons.bottomNavigation, + slug: 'cupertino-tab-bar', + subtitle: localizations.demoCupertinoTabBarSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoTabBarTitle, + description: localizations.demoCupertinoTabBarDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoTabBar-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoTabBarDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoTextFieldTitle, + icon: GalleryIcons.textFieldsAlt, + slug: 'cupertino-text-field', + subtitle: localizations.demoCupertinoTextFieldSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoTextFieldTitle, + description: localizations.demoCupertinoTextFieldDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoTextField-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoTextFieldDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + GalleryDemo( + title: localizations.demoCupertinoSearchTextFieldTitle, + icon: GalleryIcons.search, + slug: 'cupertino-search-text-field', + subtitle: localizations.demoCupertinoSearchTextFieldSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoSearchTextFieldTitle, + description: localizations.demoCupertinoSearchTextFieldDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSearchTextFieldDemo(), + ), + ), + ], + category: GalleryDemoCategory.cupertino, + ), + ]; + } + + static List otherDemos(GalleryLocalizations localizations) { + return [ + GalleryDemo( + title: localizations.demoMotionTitle, + icon: GalleryIcons.animation, + slug: 'motion', + subtitle: localizations.demoMotionSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoContainerTransformTitle, + description: localizations.demoContainerTransformDescription, + documentationUrl: '$_docsAnimationsUrl/OpenContainer-class.html', + buildRoute: (_) => DeferredWidget( + motion_demo_container.loadLibrary, + () => motion_demo_container.OpenContainerTransformDemo(), + ), + ), + GalleryDemoConfiguration( + title: localizations.demoSharedXAxisTitle, + description: localizations.demoSharedAxisDescription, + documentationUrl: + '$_docsAnimationsUrl/SharedAxisTransition-class.html', + buildRoute: (_) => const SharedXAxisTransitionDemo(), + ), + GalleryDemoConfiguration( + title: localizations.demoSharedYAxisTitle, + description: localizations.demoSharedAxisDescription, + documentationUrl: + '$_docsAnimationsUrl/SharedAxisTransition-class.html', + buildRoute: (_) => const SharedYAxisTransitionDemo(), + ), + GalleryDemoConfiguration( + title: localizations.demoSharedZAxisTitle, + description: localizations.demoSharedAxisDescription, + documentationUrl: + '$_docsAnimationsUrl/SharedAxisTransition-class.html', + buildRoute: (_) => const SharedZAxisTransitionDemo(), + ), + GalleryDemoConfiguration( + title: localizations.demoFadeThroughTitle, + description: localizations.demoFadeThroughDescription, + documentationUrl: + '$_docsAnimationsUrl/FadeThroughTransition-class.html', + buildRoute: (_) => const FadeThroughTransitionDemo(), + ), + GalleryDemoConfiguration( + title: localizations.demoFadeScaleTitle, + description: localizations.demoFadeScaleDescription, + documentationUrl: + '$_docsAnimationsUrl/FadeScaleTransition-class.html', + buildRoute: (_) => const FadeScaleTransitionDemo(), + ), + ], + category: GalleryDemoCategory.other, + ), + GalleryDemo( + title: localizations.demoColorsTitle, + icon: GalleryIcons.colors, + slug: 'colors', + subtitle: localizations.demoColorsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoColorsTitle, + description: localizations.demoColorsDescription, + documentationUrl: '$_docsBaseUrl/material/MaterialColor-class.html', + buildRoute: (_) => DeferredWidget( + colors_demo.loadLibrary, + () => colors_demo.ColorsDemo(), + ), + ), + ], + category: GalleryDemoCategory.other, + ), + GalleryDemo( + title: localizations.demoTypographyTitle, + icon: GalleryIcons.customTypography, + slug: 'typography', + subtitle: localizations.demoTypographySubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoTypographyTitle, + description: localizations.demoTypographyDescription, + documentationUrl: '$_docsBaseUrl/material/TextTheme-class.html', + buildRoute: (_) => DeferredWidget( + typography.loadLibrary, + () => typography.TypographyDemo(), + ), + ), + ], + category: GalleryDemoCategory.other, + ), + GalleryDemo( + title: localizations.demo2dTransformationsTitle, + icon: GalleryIcons.gridOn, + slug: '2d-transformations', + subtitle: localizations.demo2dTransformationsSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demo2dTransformationsTitle, + description: localizations.demo2dTransformationsDescription, + documentationUrl: + '$_docsBaseUrl/widgets/GestureDetector-class.html', + buildRoute: (_) => DeferredWidget( + transformations_demo.loadLibrary, + () => transformations_demo.TransformationsDemo(), + ), + ), + ], + category: GalleryDemoCategory.other, + ), + ]; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart new file mode 100644 index 0000000000000000000000000000000000000000..46ddf22af8dd4d5e16d2c38dc45ddd289708b354 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart @@ -0,0 +1,275 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart' show timeDilation; +import 'package:flutter/services.dart' show SystemUiOverlayStyle; +import '../constants.dart'; + +enum CustomTextDirection { + localeBased, + ltr, + rtl, +} + +// See http://en.wikipedia.org/wiki/Right-to-left +const List rtlLanguages = [ + 'ar', // Arabic + 'fa', // Farsi + 'he', // Hebrew + 'ps', // Pashto + 'ur', // Urdu +]; + +// Fake locale to represent the system Locale option. +const Locale systemLocaleOption = Locale('system'); + +Locale? _deviceLocale; + +Locale? get deviceLocale => _deviceLocale; + +set deviceLocale(Locale? locale) { + _deviceLocale ??= locale; +} + +@immutable +class GalleryOptions { + const GalleryOptions({ + required this.themeMode, + required double? textScaleFactor, + required this.customTextDirection, + required Locale? locale, + required this.timeDilation, + required this.platform, + required this.isTestMode, + }) : _textScaleFactor = textScaleFactor ?? 1.0, + _locale = locale; + + final ThemeMode themeMode; + final double _textScaleFactor; + final CustomTextDirection customTextDirection; + final Locale? _locale; + final double timeDilation; + final TargetPlatform? platform; + final bool isTestMode; // True for integration tests. + + // We use a sentinel value to indicate the system text scale option. By + // default, return the actual text scale factor, otherwise return the + // sentinel value. + double textScaleFactor(BuildContext context, {bool useSentinel = false}) { + if (_textScaleFactor == systemTextScaleFactorOption) { + return useSentinel + ? systemTextScaleFactorOption + // ignore: deprecated_member_use + : MediaQuery.of(context).textScaleFactor; + } else { + return _textScaleFactor; + } + } + + Locale? get locale => _locale ?? deviceLocale; + + /// Returns a text direction based on the [CustomTextDirection] setting. + /// If it is based on locale and the locale cannot be determined, returns + /// null. + TextDirection? resolvedTextDirection() { + switch (customTextDirection) { + case CustomTextDirection.localeBased: + final String? language = locale?.languageCode.toLowerCase(); + if (language == null) { + return null; + } + return rtlLanguages.contains(language) + ? TextDirection.rtl + : TextDirection.ltr; + case CustomTextDirection.rtl: + return TextDirection.rtl; + case CustomTextDirection.ltr: + return TextDirection.ltr; + } + } + + /// Returns a [SystemUiOverlayStyle] based on the [ThemeMode] setting. + /// In other words, if the theme is dark, returns light; if the theme is + /// light, returns dark. + SystemUiOverlayStyle resolvedSystemUiOverlayStyle() { + final Brightness brightness = switch (themeMode) { + ThemeMode.light => Brightness.light, + ThemeMode.dark => Brightness.dark, + ThemeMode.system => WidgetsBinding.instance.platformDispatcher.platformBrightness, + }; + return switch (brightness) { + Brightness.light => SystemUiOverlayStyle.dark, + Brightness.dark => SystemUiOverlayStyle.light, + }; + } + + GalleryOptions copyWith({ + ThemeMode? themeMode, + double? textScaleFactor, + CustomTextDirection? customTextDirection, + Locale? locale, + double? timeDilation, + TargetPlatform? platform, + bool? isTestMode, + }) { + return GalleryOptions( + themeMode: themeMode ?? this.themeMode, + textScaleFactor: textScaleFactor ?? _textScaleFactor, + customTextDirection: customTextDirection ?? this.customTextDirection, + locale: locale ?? this.locale, + timeDilation: timeDilation ?? this.timeDilation, + platform: platform ?? this.platform, + isTestMode: isTestMode ?? this.isTestMode, + ); + } + + @override + bool operator ==(Object other) => + other is GalleryOptions && + themeMode == other.themeMode && + _textScaleFactor == other._textScaleFactor && + customTextDirection == other.customTextDirection && + locale == other.locale && + timeDilation == other.timeDilation && + platform == other.platform && + isTestMode == other.isTestMode; + + @override + int get hashCode => Object.hash( + themeMode, + _textScaleFactor, + customTextDirection, + locale, + timeDilation, + platform, + isTestMode, + ); + + static GalleryOptions of(BuildContext context) { + final _ModelBindingScope scope = + context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>()!; + return scope.modelBindingState.currentModel; + } + + static void update(BuildContext context, GalleryOptions newModel) { + final _ModelBindingScope scope = + context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>()!; + scope.modelBindingState.updateModel(newModel); + } +} + +// Applies text GalleryOptions to a widget +class ApplyTextOptions extends StatelessWidget { + const ApplyTextOptions({ + super.key, + required this.child, + }); + + final Widget child; + + @override + Widget build(BuildContext context) { + final GalleryOptions options = GalleryOptions.of(context); + final TextDirection? textDirection = options.resolvedTextDirection(); + final double textScaleFactor = options.textScaleFactor(context); + + final Widget widget = MediaQuery( + data: MediaQuery.of(context).copyWith( + // ignore: deprecated_member_use + textScaleFactor: textScaleFactor, + ), + child: child, + ); + return textDirection == null + ? widget + : Directionality( + textDirection: textDirection, + child: widget, + ); + } +} + +// Everything below is boilerplate except code relating to time dilation. +// See https://medium.com/flutter/managing-flutter-application-state-with-inheritedwidgets-1140452befe1 + +class _ModelBindingScope extends InheritedWidget { + const _ModelBindingScope({ + required this.modelBindingState, + required super.child, + }); + + final _ModelBindingState modelBindingState; + + @override + bool updateShouldNotify(_ModelBindingScope oldWidget) => true; +} + +class ModelBinding extends StatefulWidget { + const ModelBinding({ + super.key, + required this.initialModel, + required this.child, + }); + + final GalleryOptions initialModel; + final Widget child; + + @override + State createState() => _ModelBindingState(); +} + +class _ModelBindingState extends State { + late GalleryOptions currentModel; + Timer? _timeDilationTimer; + + @override + void initState() { + super.initState(); + currentModel = widget.initialModel; + } + + @override + void dispose() { + _timeDilationTimer?.cancel(); + _timeDilationTimer = null; + super.dispose(); + } + + void handleTimeDilation(GalleryOptions newModel) { + if (currentModel.timeDilation != newModel.timeDilation) { + _timeDilationTimer?.cancel(); + _timeDilationTimer = null; + if (newModel.timeDilation > 1) { + // We delay the time dilation change long enough that the user can see + // that UI has started reacting and then we slam on the brakes so that + // they see that the time is in fact now dilated. + _timeDilationTimer = Timer(const Duration(milliseconds: 150), () { + timeDilation = newModel.timeDilation; + }); + } else { + timeDilation = newModel.timeDilation; + } + } + } + + void updateModel(GalleryOptions newModel) { + if (newModel != currentModel) { + handleTimeDilation(newModel); + setState(() { + currentModel = newModel; + }); + } + } + + @override + Widget build(BuildContext context) { + return _ModelBindingScope( + modelBindingState: this, + child: widget.child, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart new file mode 100644 index 0000000000000000000000000000000000000000..970501f496f1be62f2eca19d609b2792fe0f7357 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart @@ -0,0 +1,174 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class GalleryIcons { + GalleryIcons._(); + + static const IconData tooltip = IconData( + 0xe900, + fontFamily: 'GalleryIcons', + ); + static const IconData textFieldsAlt = IconData( + 0xe901, + fontFamily: 'GalleryIcons', + ); + static const IconData tabs = IconData( + 0xe902, + fontFamily: 'GalleryIcons', + ); + static const IconData switches = IconData( + 0xe903, + fontFamily: 'GalleryIcons', + ); + static const IconData sliders = IconData( + 0xe904, + fontFamily: 'GalleryIcons', + ); + static const IconData shrine = IconData( + 0xe905, + fontFamily: 'GalleryIcons', + ); + static const IconData sentimentVerySatisfied = IconData( + 0xe906, + fontFamily: 'GalleryIcons', + ); + static const IconData refresh = IconData( + 0xe907, + fontFamily: 'GalleryIcons', + ); + static const IconData progressActivity = IconData( + 0xe908, + fontFamily: 'GalleryIcons', + ); + static const IconData phoneIphone = IconData( + 0xe909, + fontFamily: 'GalleryIcons', + ); + static const IconData pageControl = IconData( + 0xe90a, + fontFamily: 'GalleryIcons', + ); + static const IconData moreVert = IconData( + 0xe90b, + fontFamily: 'GalleryIcons', + ); + static const IconData menu = IconData( + 0xe90c, + fontFamily: 'GalleryIcons', + ); + static const IconData listAlt = IconData( + 0xe90d, + fontFamily: 'GalleryIcons', + ); + static const IconData gridOn = IconData( + 0xe90e, + fontFamily: 'GalleryIcons', + ); + static const IconData expandAll = IconData( + 0xe90f, + fontFamily: 'GalleryIcons', + ); + static const IconData event = IconData( + 0xe910, + fontFamily: 'GalleryIcons', + ); + static const IconData driveVideo = IconData( + 0xe911, + fontFamily: 'GalleryIcons', + ); + static const IconData dialogs = IconData( + 0xe912, + fontFamily: 'GalleryIcons', + ); + static const IconData dataTable = IconData( + 0xe913, + fontFamily: 'GalleryIcons', + ); + static const IconData customTypography = IconData( + 0xe914, + fontFamily: 'GalleryIcons', + ); + static const IconData colors = IconData( + 0xe915, + fontFamily: 'GalleryIcons', + ); + static const IconData chips = IconData( + 0xe916, + fontFamily: 'GalleryIcons', + ); + static const IconData checkBox = IconData( + 0xe917, + fontFamily: 'GalleryIcons', + ); + static const IconData cards = IconData( + 0xe918, + fontFamily: 'GalleryIcons', + ); + static const IconData buttons = IconData( + 0xe919, + fontFamily: 'GalleryIcons', + ); + static const IconData bottomSheets = IconData( + 0xe91a, + fontFamily: 'GalleryIcons', + ); + static const IconData bottomNavigation = IconData( + 0xe91b, + fontFamily: 'GalleryIcons', + ); + static const IconData animation = IconData( + 0xe91c, + fontFamily: 'GalleryIcons', + ); + static const IconData accountBox = IconData( + 0xe91d, + fontFamily: 'GalleryIcons', + ); + static const IconData snackbar = IconData( + 0xe91e, + fontFamily: 'GalleryIcons', + ); + static const IconData categoryMdc = IconData( + 0xe91f, + fontFamily: 'GalleryIcons', + ); + static const IconData cupertinoProgress = IconData( + 0xe920, + fontFamily: 'GalleryIcons', + ); + static const IconData cupertinoPullToRefresh = IconData( + 0xe921, + fontFamily: 'GalleryIcons', + ); + static const IconData cupertinoSwitch = IconData( + 0xe922, + fontFamily: 'GalleryIcons', + ); + static const IconData genericButtons = IconData( + 0xe923, + fontFamily: 'GalleryIcons', + ); + static const IconData backdrop = IconData( + 0xe924, + fontFamily: 'GalleryIcons', + ); + static const IconData bottomAppBar = IconData( + 0xe925, + fontFamily: 'GalleryIcons', + ); + static const IconData bottomSheetPersistent = IconData( + 0xe926, + fontFamily: 'GalleryIcons', + ); + static const IconData listsLeaveBehind = IconData( + 0xe927, + fontFamily: 'GalleryIcons', + ); + static const IconData navigationRail = Icons.vertical_split; + static const IconData appbar = Icons.web_asset; + static const IconData divider = Icons.credit_card; + static const IconData search = Icons.search; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart new file mode 100644 index 0000000000000000000000000000000000000000..bcbff0eaa08c1741bd7611acd420466e8cf96135 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart @@ -0,0 +1,120 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'package:flutter/material.dart'; + +typedef LibraryLoader = Future Function(); +typedef DeferredWidgetBuilder = Widget Function(); + +/// Wraps the child inside a deferred module loader. +/// +/// The child is created and a single instance of the Widget is maintained in +/// state as long as closure to create widget stays the same. +/// +class DeferredWidget extends StatefulWidget { + DeferredWidget( + this.libraryLoader, + this.createWidget, { + super.key, + Widget? placeholder, + }) : placeholder = placeholder ?? Container(); + + final LibraryLoader libraryLoader; + final DeferredWidgetBuilder createWidget; + final Widget placeholder; + static final Map> _moduleLoaders = >{}; + static final Set _loadedModules = {}; + + static Future preload(LibraryLoader loader) { + if (!_moduleLoaders.containsKey(loader)) { + _moduleLoaders[loader] = loader().then((dynamic _) { + _loadedModules.add(loader); + }); + } + return _moduleLoaders[loader]!; + } + + @override + State createState() => _DeferredWidgetState(); +} + +class _DeferredWidgetState extends State { + _DeferredWidgetState(); + + Widget? _loadedChild; + DeferredWidgetBuilder? _loadedCreator; + + @override + void initState() { + /// If module was already loaded immediately create widget instead of + /// waiting for future or zone turn. + if (DeferredWidget._loadedModules.contains(widget.libraryLoader)) { + _onLibraryLoaded(); + } else { + DeferredWidget.preload(widget.libraryLoader) + .then((dynamic _) => _onLibraryLoaded()); + } + super.initState(); + } + + void _onLibraryLoaded() { + setState(() { + _loadedCreator = widget.createWidget; + _loadedChild = _loadedCreator!(); + }); + } + + @override + Widget build(BuildContext context) { + /// If closure to create widget changed, create new instance, otherwise + /// treat as const Widget. + if (_loadedCreator != widget.createWidget && _loadedCreator != null) { + _loadedCreator = widget.createWidget; + _loadedChild = _loadedCreator!(); + } + return _loadedChild ?? widget.placeholder; + } +} + +/// Displays a progress indicator and text description explaining that +/// the widget is a deferred component and is currently being installed. +class DeferredLoadingPlaceholder extends StatelessWidget { + const DeferredLoadingPlaceholder({ + super.key, + this.name = 'This widget', + }); + + final String name; + + @override + Widget build(BuildContext context) { + return Center( + child: Container( + decoration: BoxDecoration( + color: Colors.grey[700], + border: Border.all( + width: 20, + color: Colors.grey[700]!, + ), + borderRadius: const BorderRadius.all(Radius.circular(10))), + width: 250, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('$name is installing.', + style: Theme.of(context).textTheme.headlineMedium), + Container(height: 10), + Text( + '$name is a deferred component which are downloaded and installed at runtime.', + style: Theme.of(context).textTheme.bodyLarge), + Container(height: 20), + const Center(child: CircularProgressIndicator()), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..db8bdd9912070fac244c869c098848a888cb463b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart @@ -0,0 +1,29 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoActivityIndicatorDemo + +class CupertinoProgressIndicatorDemo extends StatelessWidget { + const CupertinoProgressIndicatorDemo({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text( + GalleryLocalizations.of(context)!.demoCupertinoActivityIndicatorTitle, + ), + ), + child: const Center( + child: CupertinoActivityIndicator(), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..76ef67faf74954eb86dcec74e960a51053b08d80 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart @@ -0,0 +1,416 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import 'demo_types.dart'; + +// BEGIN cupertinoAlertDemo + +class CupertinoAlertDemo extends StatefulWidget { + const CupertinoAlertDemo({ + super.key, + required this.type, + }); + + final AlertDemoType type; + + @override + State createState() => _CupertinoAlertDemoState(); +} + +class _CupertinoAlertDemoState extends State + with RestorationMixin { + RestorableStringN lastSelectedValue = RestorableStringN(null); + late RestorableRouteFuture _alertDialogRoute; + late RestorableRouteFuture _alertWithTitleDialogRoute; + late RestorableRouteFuture _alertWithButtonsDialogRoute; + late RestorableRouteFuture _alertWithButtonsOnlyDialogRoute; + late RestorableRouteFuture _modalPopupRoute; + + @override + String get restorationId => 'cupertino_alert_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration( + lastSelectedValue, + 'last_selected_value', + ); + registerForRestoration( + _alertDialogRoute, + 'alert_demo_dialog_route', + ); + registerForRestoration( + _alertWithTitleDialogRoute, + 'alert_with_title_press_demo_dialog_route', + ); + registerForRestoration( + _alertWithButtonsDialogRoute, + 'alert_with_title_press_demo_dialog_route', + ); + registerForRestoration( + _alertWithButtonsOnlyDialogRoute, + 'alert_with_title_press_demo_dialog_route', + ); + registerForRestoration( + _modalPopupRoute, + 'modal_popup_route', + ); + } + + void _setSelectedValue(String value) { + setState(() { + lastSelectedValue.value = value; + }); + } + + @override + void initState() { + super.initState(); + _alertDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertDemoDialog); + }, + onComplete: _setSelectedValue, + ); + _alertWithTitleDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertWithTitleDialog); + }, + onComplete: _setSelectedValue, + ); + _alertWithButtonsDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertWithButtonsDialog); + }, + onComplete: _setSelectedValue, + ); + _alertWithButtonsOnlyDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertWithButtonsOnlyDialog); + }, + onComplete: _setSelectedValue, + ); + _modalPopupRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_modalRoute); + }, + onComplete: _setSelectedValue, + ); + } + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (widget.type) { + AlertDemoType.alert => localizations.demoCupertinoAlertTitle, + AlertDemoType.alertTitle => localizations.demoCupertinoAlertWithTitleTitle, + AlertDemoType.alertButtons => localizations.demoCupertinoAlertButtonsTitle, + AlertDemoType.alertButtonsOnly => localizations.demoCupertinoAlertButtonsOnlyTitle, + AlertDemoType.actionSheet => localizations.demoCupertinoActionSheetTitle, + }; + } + + static Route _alertDemoDialog( + BuildContext context, + Object? arguments, + ) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoDialogRoute( + context: context, + builder: (BuildContext context) => ApplyTextOptions( + child: CupertinoAlertDialog( + title: Text(localizations.dialogDiscardTitle), + actions: [ + CupertinoDialogAction( + isDestructiveAction: true, + onPressed: () { + Navigator.of( + context, + ).pop(localizations.cupertinoAlertDiscard); + }, + child: Text( + localizations.cupertinoAlertDiscard, + ), + ), + CupertinoDialogAction( + isDefaultAction: true, + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertCancel, + ), + child: Text( + localizations.cupertinoAlertCancel, + ), + ), + ], + ), + ), + ); + } + + static Route _alertWithTitleDialog( + BuildContext context, + Object? arguments, + ) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoDialogRoute( + context: context, + builder: (BuildContext context) => ApplyTextOptions( + child: CupertinoAlertDialog( + title: Text( + localizations.cupertinoAlertLocationTitle, + ), + content: Text( + localizations.cupertinoAlertLocationDescription, + ), + actions: [ + CupertinoDialogAction( + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertDontAllow, + ), + child: Text( + localizations.cupertinoAlertDontAllow, + ), + ), + CupertinoDialogAction( + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertAllow, + ), + child: Text( + localizations.cupertinoAlertAllow, + ), + ), + ], + ), + ), + ); + } + + static Route _alertWithButtonsDialog( + BuildContext context, + Object? arguments, + ) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoDialogRoute( + context: context, + builder: (BuildContext context) => ApplyTextOptions( + child: CupertinoDessertDialog( + title: Text( + localizations.cupertinoAlertFavoriteDessert, + ), + content: Text( + localizations.cupertinoAlertDessertDescription, + ), + ), + ), + ); + } + + static Route _alertWithButtonsOnlyDialog( + BuildContext context, + Object? arguments, + ) { + return CupertinoDialogRoute( + context: context, + builder: (BuildContext context) => const ApplyTextOptions( + child: CupertinoDessertDialog(), + ), + ); + } + + static Route _modalRoute( + BuildContext context, + Object? arguments, + ) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoModalPopupRoute( + builder: (BuildContext context) => ApplyTextOptions( + child: CupertinoActionSheet( + title: Text( + localizations.cupertinoAlertFavoriteDessert, + ), + message: Text( + localizations.cupertinoAlertDessertDescription, + ), + actions: [ + CupertinoActionSheetAction( + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertCheesecake, + ), + child: Text( + localizations.cupertinoAlertCheesecake, + ), + ), + CupertinoActionSheetAction( + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertTiramisu, + ), + child: Text( + localizations.cupertinoAlertTiramisu, + ), + ), + CupertinoActionSheetAction( + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertApplePie, + ), + child: Text( + localizations.cupertinoAlertApplePie, + ), + ), + ], + cancelButton: CupertinoActionSheetAction( + isDefaultAction: true, + onPressed: () => Navigator.of( + context, + ).pop( + localizations.cupertinoAlertCancel, + ), + child: Text( + localizations.cupertinoAlertCancel, + ), + ), + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(_title(context)), + ), + child: Builder( + builder: (BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final Widget showAlertButton = CupertinoButton.filled( + onPressed: () => switch (widget.type) { + AlertDemoType.alert => _alertDialogRoute, + AlertDemoType.alertTitle => _alertWithTitleDialogRoute, + AlertDemoType.alertButtons => _alertWithButtonsDialogRoute, + AlertDemoType.alertButtonsOnly => _alertWithButtonsOnlyDialogRoute, + AlertDemoType.actionSheet => _modalPopupRoute, + }.present(), + child: Text(localizations.cupertinoShowAlert), + ); + + return Column( + children: [ + Expanded(child: Center(child: showAlertButton)), + if (lastSelectedValue.value != null) + Padding( + padding: const EdgeInsets.all(16), + child: Text( + localizations.dialogSelectedOption(lastSelectedValue.value!), + style: CupertinoTheme.of(context).textTheme.textStyle, + textAlign: TextAlign.center, + ), + ), + ], + ); + }, + ), + ); + } +} + +class CupertinoDessertDialog extends StatelessWidget { + const CupertinoDessertDialog({ + super.key, + this.title, + this.content, + }); + + final Widget? title; + final Widget? content; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoAlertDialog( + title: title, + content: content, + actions: [ + CupertinoDialogAction( + onPressed: () { + Navigator.of( + context, + ).pop( + localizations.cupertinoAlertCheesecake, + ); + }, + child: Text( + localizations.cupertinoAlertCheesecake, + ), + ), + CupertinoDialogAction( + onPressed: () { + Navigator.of( + context, + ).pop( + localizations.cupertinoAlertTiramisu, + ); + }, + child: Text( + localizations.cupertinoAlertTiramisu, + ), + ), + CupertinoDialogAction( + onPressed: () { + Navigator.of( + context, + ).pop( + localizations.cupertinoAlertApplePie, + ); + }, + child: Text( + localizations.cupertinoAlertApplePie, + ), + ), + CupertinoDialogAction( + onPressed: () { + Navigator.of( + context, + ).pop( + localizations.cupertinoAlertChocolateBrownie, + ); + }, + child: Text( + localizations.cupertinoAlertChocolateBrownie, + ), + ), + CupertinoDialogAction( + isDestructiveAction: true, + onPressed: () { + Navigator.of( + context, + ).pop( + localizations.cupertinoAlertCancel, + ); + }, + child: Text( + localizations.cupertinoAlertCancel, + ), + ), + ], + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..971f3bc6aab4bc280a355a7d1ce50fe210e14856 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoButtonDemo + +class CupertinoButtonDemo extends StatelessWidget { + const CupertinoButtonDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoButtonsTitle), + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + CupertinoButton( + onPressed: () {}, + child: Text( + localizations.cupertinoButton, + ), + ), + const SizedBox(height: 16), + CupertinoButton.filled( + onPressed: () {}, + child: Text( + localizations.cupertinoButtonWithBackground, + ), + ), + const SizedBox(height: 30), + // Disabled buttons + CupertinoButton( + onPressed: null, + child: Text( + localizations.cupertinoButton, + ), + ), + const SizedBox(height: 16), + CupertinoButton.filled( + onPressed: null, + child: Text( + localizations.cupertinoButtonWithBackground, + ), + ), + ], + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..34a70f65699c9ac1569563cd7483806b3c2c9f64 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart @@ -0,0 +1,71 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoContextMenuDemo + +class CupertinoContextMenuDemo extends StatelessWidget { + const CupertinoContextMenuDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations galleryLocalizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text( + galleryLocalizations.demoCupertinoContextMenuTitle, + ), + ), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Center( + child: SizedBox( + width: 100, + height: 100, + child: CupertinoContextMenu( + actions: [ + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + child: Text( + galleryLocalizations.demoCupertinoContextMenuActionOne, + ), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + child: Text( + galleryLocalizations.demoCupertinoContextMenuActionTwo, + ), + ), + ], + child: const FlutterLogo(size: 250), + ), + ), + ), + const SizedBox(height: 20), + Padding( + padding: const EdgeInsets.all(30), + child: Text( + galleryLocalizations.demoCupertinoContextMenuActionText, + textAlign: TextAlign.center, + style: const TextStyle( + color: Colors.black, + ), + ), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_demos.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_demos.dart new file mode 100644 index 0000000000000000000000000000000000000000..c365a421e1f4d38bfe244b6800ea7b9e4009779f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_demos.dart @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'package:gallery/demos/cupertino/cupertino_activity_indicator_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_alert_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_button_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_context_menu_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_navigation_bar_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_picker_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_scrollbar_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_search_text_field_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_segmented_control_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_slider_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_switch_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_tab_bar_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_text_field_demo.dart'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..073c1f5d876a7a1d190e60417cb40ba5966f302b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart @@ -0,0 +1,112 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoNavigationBarDemo + +class CupertinoNavigationBarDemo extends StatelessWidget { + const CupertinoNavigationBarDemo({super.key}); + + static const String homeRoute = '/home'; + static const String secondPageRoute = '/home/item'; + + @override + Widget build(BuildContext context) { + return Navigator( + restorationScopeId: 'navigator', + initialRoute: CupertinoNavigationBarDemo.homeRoute, + onGenerateRoute: (RouteSettings settings) { + switch (settings.name) { + case CupertinoNavigationBarDemo.homeRoute: + return _NoAnimationCupertinoPageRoute( + title: GalleryLocalizations.of(context)! + .demoCupertinoNavigationBarTitle, + settings: settings, + builder: (BuildContext context) => _FirstPage(), + ); + case CupertinoNavigationBarDemo.secondPageRoute: + final Map arguments = settings.arguments! as Map; + final String? title = arguments['pageTitle'] as String?; + return CupertinoPageRoute( + title: title, + settings: settings, + builder: (BuildContext context) => _SecondPage(), + ); + } + return null; + }, + ); + } +} + +class _FirstPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: CustomScrollView( + slivers: [ + const CupertinoSliverNavigationBar( + automaticallyImplyLeading: false, + ), + SliverPadding( + padding: + MediaQuery.of(context).removePadding(removeTop: true).padding, + sliver: SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + final String title = GalleryLocalizations.of(context)! + .starterAppDrawerItem(index + 1); + return ListTile( + onTap: () { + Navigator.of(context).restorablePushNamed( + CupertinoNavigationBarDemo.secondPageRoute, + arguments: {'pageTitle': title}, + ); + }, + title: Text(title), + ); + }, + childCount: 20, + ), + ), + ), + ], + ), + ); + } +} + +class _SecondPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar(), + child: Container(), + ); + } +} + +/// A CupertinoPageRoute without any transition animations. +class _NoAnimationCupertinoPageRoute extends CupertinoPageRoute { + _NoAnimationCupertinoPageRoute({ + required super.builder, + super.settings, + super.title, + }); + + @override + Widget buildTransitions( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { + return child; + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..d71c539b228f178d66af42225204f8137c57f8de --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart @@ -0,0 +1,322 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:intl/intl.dart'; + +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoPickersDemo + +class CupertinoPickerDemo extends StatefulWidget { + const CupertinoPickerDemo({super.key}); + + @override + State createState() => _CupertinoPickerDemoState(); +} + +class _CupertinoPickerDemoState extends State { + Duration timer = Duration.zero; + + // Value that is shown in the date picker in date mode. + DateTime date = DateTime.now(); + + // Value that is shown in the date picker in time mode. + DateTime time = DateTime.now(); + + // Value that is shown in the date picker in dateAndTime mode. + DateTime dateTime = DateTime.now(); + + int _selectedWeekday = 0; + + static List getDaysOfWeek([String? locale]) { + final DateTime now = DateTime.now(); + final DateTime firstDayOfWeek = now.subtract(Duration(days: now.weekday - 1)); + return List.generate(7, (int index) => index) + .map((int value) => DateFormat(DateFormat.WEEKDAY, locale) + .format(firstDayOfWeek.add(Duration(days: value)))) + .toList(); + } + + void _showDemoPicker({ + required BuildContext context, + required Widget child, + }) { + final CupertinoThemeData themeData = CupertinoTheme.of(context); + final CupertinoTheme dialogBody = CupertinoTheme( + data: themeData, + child: child, + ); + + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => dialogBody, + ); + } + + Widget _buildDatePicker(BuildContext context) { + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _showDemoPicker( + context: context, + child: _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: + CupertinoColors.systemBackground.resolveFrom(context), + mode: CupertinoDatePickerMode.date, + initialDateTime: date, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => date = newDateTime); + }, + ), + ), + ); + }, + child: _Menu( + children: [ + Text(GalleryLocalizations.of(context)!.demoCupertinoPickerDate), + Text( + DateFormat.yMMMMd().format(date), + style: const TextStyle(color: CupertinoColors.inactiveGray), + ), + ], + ), + ), + ); + } + + Widget _buildTimePicker(BuildContext context) { + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _showDemoPicker( + context: context, + child: _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: + CupertinoColors.systemBackground.resolveFrom(context), + mode: CupertinoDatePickerMode.time, + initialDateTime: time, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => time = newDateTime); + }, + ), + ), + ); + }, + child: _Menu( + children: [ + Text(GalleryLocalizations.of(context)!.demoCupertinoPickerTime), + Text( + DateFormat.jm().format(time), + style: const TextStyle(color: CupertinoColors.inactiveGray), + ), + ], + ), + ), + ); + } + + Widget _buildDateAndTimePicker(BuildContext context) { + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _showDemoPicker( + context: context, + child: _BottomPicker( + child: CupertinoDatePicker( + backgroundColor: + CupertinoColors.systemBackground.resolveFrom(context), + initialDateTime: dateTime, + onDateTimeChanged: (DateTime newDateTime) { + setState(() => dateTime = newDateTime); + }, + ), + ), + ); + }, + child: _Menu( + children: [ + Text(GalleryLocalizations.of(context)!.demoCupertinoPickerDateTime), + Flexible( + child: Text( + DateFormat.yMMMd().add_jm().format(dateTime), + style: const TextStyle(color: CupertinoColors.inactiveGray), + ), + ), + ], + ), + ), + ); + } + + Widget _buildCountdownTimerPicker(BuildContext context) { + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _showDemoPicker( + context: context, + child: _BottomPicker( + child: CupertinoTimerPicker( + backgroundColor: + CupertinoColors.systemBackground.resolveFrom(context), + initialTimerDuration: timer, + onTimerDurationChanged: (Duration newTimer) { + setState(() => timer = newTimer); + }, + ), + ), + ); + }, + child: _Menu( + children: [ + Text(GalleryLocalizations.of(context)!.demoCupertinoPickerTimer), + Text( + '${timer.inHours}:' + '${(timer.inMinutes % 60).toString().padLeft(2, '0')}:' + '${(timer.inSeconds % 60).toString().padLeft(2, '0')}', + style: const TextStyle(color: CupertinoColors.inactiveGray), + ), + ], + ), + ), + ); + } + + Widget _buildPicker(BuildContext context) { + final String? locale = GalleryLocalizations.of(context)?.localeName; + final List daysOfWeek = getDaysOfWeek(locale); + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _showDemoPicker( + context: context, + child: _BottomPicker( + child: CupertinoPicker( + backgroundColor: + CupertinoColors.systemBackground.resolveFrom(context), + itemExtent: 32.0, + magnification: 1.22, + squeeze: 1.2, + useMagnifier: true, + // This is called when selected item is changed. + onSelectedItemChanged: (int selectedItem) { + setState(() { + _selectedWeekday = selectedItem; + }); + }, + children: List.generate(daysOfWeek.length, (int index) { + return Center( + child: Text( + daysOfWeek[index], + ), + ); + }), + ), + ), + ); + }, + child: _Menu( + children: [ + Text(GalleryLocalizations.of(context)!.demoCupertinoPicker), + Text( + daysOfWeek[_selectedWeekday], + style: const TextStyle(color: CupertinoColors.inactiveGray), + ), + ], + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: + Text(GalleryLocalizations.of(context)!.demoCupertinoPickerTitle), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: ListView( + children: [ + const SizedBox(height: 32), + _buildDatePicker(context), + _buildTimePicker(context), + _buildDateAndTimePicker(context), + _buildCountdownTimerPicker(context), + _buildPicker(context), + ], + ), + ), + ); + } +} + +class _BottomPicker extends StatelessWidget { + const _BottomPicker({required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) { + return Container( + height: 216, + padding: const EdgeInsets.only(top: 6), + margin: EdgeInsets.only( + bottom: MediaQuery.of(context).viewInsets.bottom, + ), + color: CupertinoColors.systemBackground.resolveFrom(context), + child: DefaultTextStyle( + style: TextStyle( + color: CupertinoColors.label.resolveFrom(context), + fontSize: 22, + ), + child: GestureDetector( + // Blocks taps from propagating to the modal sheet and popping. + onTap: () {}, + child: SafeArea( + top: false, + child: child, + ), + ), + ), + ); + } +} + +class _Menu extends StatelessWidget { + const _Menu({required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return Container( + decoration: const BoxDecoration( + border: Border( + top: BorderSide(color: CupertinoColors.inactiveGray, width: 0), + bottom: BorderSide(color: CupertinoColors.inactiveGray, width: 0), + ), + ), + height: 44, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: children, + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..53f0e4318148f1d9159ffd8e01f9b2564d3b1bcd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoScrollbarDemo + +class CupertinoScrollbarDemo extends StatelessWidget { + const CupertinoScrollbarDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoScrollbarTitle), + ), + child: CupertinoScrollbar( + thickness: 6.0, + thicknessWhileDragging: 10.0, + radius: const Radius.circular(34.0), + radiusWhileDragging: Radius.zero, + child: ListView.builder( + itemCount: 120, + itemBuilder: (BuildContext context, int index) { + return Center( + child: Text('item $index', + style: CupertinoTheme.of(context).textTheme.textStyle), + ); + }, + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..800af1668d5bb02fa563371eb5006349e56de34b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -0,0 +1,103 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoSearchTextFieldDemo + +class CupertinoSearchTextFieldDemo extends StatefulWidget { + const CupertinoSearchTextFieldDemo({super.key}); + + @override + State createState() => + _CupertinoSearchTextFieldDemoState(); +} + +class _CupertinoSearchTextFieldDemoState + extends State { + final List platforms = [ + 'Android', + 'iOS', + 'Windows', + 'Linux', + 'MacOS', + 'Web' + ]; + + final TextEditingController _queryTextController = TextEditingController(); + String _searchPlatform = ''; + List filteredPlatforms = []; + + @override + void initState() { + super.initState(); + filteredPlatforms = platforms; + _queryTextController.addListener(() { + if (_queryTextController.text.isEmpty) { + setState(() { + _searchPlatform = ''; + filteredPlatforms = platforms; + }); + } else { + setState(() { + _searchPlatform = _queryTextController.text; + }); + } + }); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoSearchTextFieldTitle), + ), + child: SafeArea( + child: Column( + children: [ + CupertinoSearchTextField( + controller: _queryTextController, + restorationId: 'search_text_field', + padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 12), + decoration: const BoxDecoration( + border: Border( + bottom: BorderSide( + width: 0, + color: CupertinoColors.inactiveGray, + ), + ), + ), + placeholder: + localizations.demoCupertinoSearchTextFieldPlaceholder, + ), + _buildPlatformList(), + ], + ), + ), + ); + } + + Widget _buildPlatformList() { + if (_searchPlatform.isNotEmpty) { + final String search = _searchPlatform.toLowerCase(); + filteredPlatforms = [ + for (final String platform in filteredPlatforms) + if (platform.toLowerCase().contains(search)) platform + ]; + } + return ListView.builder( + itemCount: filteredPlatforms.length, + shrinkWrap: true, + itemBuilder: (BuildContext context, int index) { + return ListTile(title: Text(filteredPlatforms[index])); + }, + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..51ad30db4a8eefe4ee7298f3d401cdb5cff7c678 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart @@ -0,0 +1,96 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoSegmentedControlDemo + +class CupertinoSegmentedControlDemo extends StatefulWidget { + const CupertinoSegmentedControlDemo({super.key}); + + @override + State createState() => + _CupertinoSegmentedControlDemoState(); +} + +class _CupertinoSegmentedControlDemoState + extends State with RestorationMixin { + RestorableInt currentSegment = RestorableInt(0); + + @override + String get restorationId => 'cupertino_segmented_control'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(currentSegment, 'current_segment'); + } + + void onValueChanged(int? newValue) { + setState(() { + currentSegment.value = newValue!; + }); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + const double segmentedControlMaxWidth = 500.0; + final Map children = { + 0: Text(localizations.colorsIndigo), + 1: Text(localizations.colorsTeal), + 2: Text(localizations.colorsCyan), + }; + + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text( + localizations.demoCupertinoSegmentedControlTitle, + ), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context) + .textTheme + .textStyle + .copyWith(fontSize: 13), + child: SafeArea( + child: ListView( + children: [ + const SizedBox(height: 16), + SizedBox( + width: segmentedControlMaxWidth, + child: CupertinoSegmentedControl( + children: children, + onValueChanged: onValueChanged, + groupValue: currentSegment.value, + ), + ), + SizedBox( + width: segmentedControlMaxWidth, + child: Padding( + padding: const EdgeInsets.all(16), + child: CupertinoSlidingSegmentedControl( + children: children, + onValueChanged: onValueChanged, + groupValue: currentSegment.value, + ), + ), + ), + Container( + padding: const EdgeInsets.all(16), + height: 300, + alignment: Alignment.center, + child: children[currentSegment.value], + ), + ], + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..dff7312aded9ddf5534bf35644d7e02d31ef6cf7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart @@ -0,0 +1,110 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoSliderDemo + +class CupertinoSliderDemo extends StatefulWidget { + const CupertinoSliderDemo({super.key}); + + @override + State createState() => _CupertinoSliderDemoState(); +} + +class _CupertinoSliderDemoState extends State + with RestorationMixin { + final RestorableDouble _value = RestorableDouble(25.0); + final RestorableDouble _discreteValue = RestorableDouble(20.0); + + @override + String get restorationId => 'cupertino_slider_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_value, 'value'); + registerForRestoration(_discreteValue, 'discrete_value'); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoSliderTitle), + ), + child: DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: Center( + child: Wrap( + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const SizedBox(height: 32), + CupertinoSlider( + value: _value.value, + max: 100.0, + onChanged: (double value) { + setState(() { + _value.value = value; + }); + }, + ), + CupertinoSlider( + value: _value.value, + max: 100.0, + onChanged: null, + ), + MergeSemantics( + child: Text( + localizations.demoCupertinoSliderContinuous( + _value.value.toStringAsFixed(1), + ), + ), + ), + ], + ), + // Disabled sliders + // TODO(guidezpl): See https://github.com/flutter/flutter/issues/106691 + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const SizedBox(height: 32), + CupertinoSlider( + value: _discreteValue.value, + max: 100.0, + divisions: 5, + onChanged: (double value) { + setState(() { + _discreteValue.value = value; + }); + }, + ), + CupertinoSlider( + value: _discreteValue.value, + max: 100.0, + divisions: 5, + onChanged: null, + ), + MergeSemantics( + child: Text( + localizations.demoCupertinoSliderDiscrete( + _discreteValue.value.toStringAsFixed(1), + ), + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..1ed3b250035cba791fa53bab8597179be1eabc8c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoSwitchDemo + +class CupertinoSwitchDemo extends StatefulWidget { + const CupertinoSwitchDemo({super.key}); + + @override + State createState() => _CupertinoSwitchDemoState(); +} + +class _CupertinoSwitchDemoState extends State + with RestorationMixin { + final RestorableBool _switchValueA = RestorableBool(false); + final RestorableBool _switchValueB = RestorableBool(true); + + @override + String get restorationId => 'cupertino_switch_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_switchValueA, 'switch_valueA'); + registerForRestoration(_switchValueB, 'switch_valueB'); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text( + localizations.demoSelectionControlsSwitchTitle, + ), + ), + child: Center( + child: Semantics( + container: true, + label: localizations.demoSelectionControlsSwitchTitle, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + CupertinoSwitch( + value: _switchValueA.value, + onChanged: (bool value) { + setState(() { + _switchValueA.value = value; + }); + }, + ), + CupertinoSwitch( + value: _switchValueB.value, + onChanged: (bool value) { + setState(() { + _switchValueB.value = value; + }); + }, + ), + ], + ), + // Disabled switches + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + CupertinoSwitch( + value: _switchValueA.value, + onChanged: null, + ), + CupertinoSwitch( + value: _switchValueB.value, + onChanged: null, + ), + ], + ), + ], + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..3aa4b709828772c3d6ee89723049e9addecd8013 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart @@ -0,0 +1,92 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoNavigationDemo + +class _TabInfo { + const _TabInfo(this.title, this.icon); + + final String title; + final IconData icon; +} + +class CupertinoTabBarDemo extends StatelessWidget { + const CupertinoTabBarDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final List<_TabInfo> tabInfo = <_TabInfo>[ + _TabInfo( + localizations.cupertinoTabBarHomeTab, + CupertinoIcons.home, + ), + _TabInfo( + localizations.cupertinoTabBarChatTab, + CupertinoIcons.conversation_bubble, + ), + _TabInfo( + localizations.cupertinoTabBarProfileTab, + CupertinoIcons.profile_circled, + ), + ]; + + return DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, + child: CupertinoTabScaffold( + restorationId: 'cupertino_tab_scaffold', + tabBar: CupertinoTabBar( + items: [ + for (final _TabInfo tabInfo in tabInfo) + BottomNavigationBarItem( + label: tabInfo.title, + icon: Icon(tabInfo.icon), + ), + ], + ), + tabBuilder: (BuildContext context, int index) { + return CupertinoTabView( + restorationScopeId: 'cupertino_tab_view_$index', + builder: (BuildContext context) => _CupertinoDemoTab( + title: tabInfo[index].title, + icon: tabInfo[index].icon, + ), + defaultTitle: tabInfo[index].title, + ); + }, + ), + ); + } +} + +class _CupertinoDemoTab extends StatelessWidget { + const _CupertinoDemoTab({ + required this.title, + required this.icon, + }); + + final String title; + final IconData icon; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar(), + backgroundColor: CupertinoColors.systemBackground, + child: Center( + child: Icon( + icon, + semanticLabel: title, + size: 100, + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..7cf19ce337fc2adb725a5f5aa9e29cb77a6cbc72 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart @@ -0,0 +1,88 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN cupertinoTextFieldDemo + +class CupertinoTextFieldDemo extends StatelessWidget { + const CupertinoTextFieldDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoTextFieldTitle), + ), + child: SafeArea( + child: ListView( + restorationId: 'text_field_demo_list_view', + padding: const EdgeInsets.all(16), + children: [ + Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: CupertinoTextField( + textInputAction: TextInputAction.next, + restorationId: 'email_address_text_field', + placeholder: localizations.demoTextFieldEmail, + keyboardType: TextInputType.emailAddress, + clearButtonMode: OverlayVisibilityMode.editing, + autocorrect: false, + ), + ), + Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: CupertinoTextField( + textInputAction: TextInputAction.next, + restorationId: 'login_password_text_field', + placeholder: localizations.rallyLoginPassword, + clearButtonMode: OverlayVisibilityMode.editing, + obscureText: true, + autocorrect: false, + ), + ), + // Disabled text field + Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: CupertinoTextField( + enabled: false, + textInputAction: TextInputAction.next, + restorationId: 'login_password_text_field_disabled', + placeholder: localizations.rallyLoginPassword, + clearButtonMode: OverlayVisibilityMode.editing, + obscureText: true, + autocorrect: false, + ), + ), + CupertinoTextField( + textInputAction: TextInputAction.done, + restorationId: 'pin_number_text_field', + prefix: const Icon( + CupertinoIcons.padlock_solid, + size: 28, + ), + padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 12), + clearButtonMode: OverlayVisibilityMode.editing, + keyboardType: TextInputType.number, + decoration: const BoxDecoration( + border: Border( + bottom: BorderSide( + width: 0, + color: CupertinoColors.inactiveGray, + ), + ), + ), + placeholder: localizations.demoCupertinoTextFieldPIN, + ), + ], + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart new file mode 100644 index 0000000000000000000000000000000000000000..04e345e2c9daa8f30c0853bc205985001a6de2f8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +enum AlertDemoType { + alert, + alertTitle, + alertButtons, + alertButtonsOnly, + actionSheet, +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..8d83f7f83c330a0265a81a1eb4f59f83da0640b1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN appbarDemo + +class AppBarDemo extends StatelessWidget { + const AppBarDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localization = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + leading: IconButton( + tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, + icon: const Icon(Icons.menu), + onPressed: () {}, + ), + title: Text( + localization.demoAppBarTitle, + ), + actions: [ + IconButton( + tooltip: localization.starterAppTooltipFavorite, + icon: const Icon( + Icons.favorite, + ), + onPressed: () {}, + ), + IconButton( + tooltip: localization.starterAppTooltipSearch, + icon: const Icon( + Icons.search, + ), + onPressed: () {}, + ), + PopupMenuButton( + itemBuilder: (BuildContext context) { + return >[ + PopupMenuItem( + child: Text( + localization.demoNavigationRailFirst, + ), + ), + PopupMenuItem( + child: Text( + localization.demoNavigationRailSecond, + ), + ), + PopupMenuItem( + child: Text( + localization.demoNavigationRailThird, + ), + ), + ]; + }, + ) + ], + ), + body: Center( + child: Text( + localization.cupertinoTabBarHomeTab, + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..fb614ba18768d4354c30607f8aa05489a20c0c26 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart @@ -0,0 +1,143 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN bannerDemo + +enum BannerDemoAction { + reset, + showMultipleActions, + showLeading, +} + +class BannerDemo extends StatefulWidget { + const BannerDemo({super.key}); + + @override + State createState() => _BannerDemoState(); +} + +class _BannerDemoState extends State with RestorationMixin { + static const int _itemCount = 20; + + @override + String get restorationId => 'banner_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_displayBanner, 'display_banner'); + registerForRestoration(_showMultipleActions, 'show_multiple_actions'); + registerForRestoration(_showLeading, 'show_leading'); + } + + final RestorableBool _displayBanner = RestorableBool(true); + final RestorableBool _showMultipleActions = RestorableBool(true); + final RestorableBool _showLeading = RestorableBool(true); + + @override + void dispose() { + _displayBanner.dispose(); + _showMultipleActions.dispose(); + _showLeading.dispose(); + super.dispose(); + } + + void handleDemoAction(BannerDemoAction action) { + setState(() { + switch (action) { + case BannerDemoAction.reset: + _displayBanner.value = true; + _showMultipleActions.value = true; + _showLeading.value = true; + case BannerDemoAction.showMultipleActions: + _showMultipleActions.value = !_showMultipleActions.value; + case BannerDemoAction.showLeading: + _showLeading.value = !_showLeading.value; + } + }); + } + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final MaterialBanner banner = MaterialBanner( + content: Text(localizations.bannerDemoText), + leading: _showLeading.value + ? CircleAvatar( + backgroundColor: colorScheme.primary, + child: Icon(Icons.access_alarm, color: colorScheme.onPrimary), + ) + : null, + actions: [ + TextButton( + onPressed: () { + setState(() { + _displayBanner.value = false; + }); + }, + child: Text(localizations.signIn), + ), + if (_showMultipleActions.value) + TextButton( + onPressed: () { + setState(() { + _displayBanner.value = false; + }); + }, + child: Text(localizations.dismiss), + ), + ], + backgroundColor: colorScheme.background, + ); + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoBannerTitle), + actions: [ + PopupMenuButton( + onSelected: handleDemoAction, + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: BannerDemoAction.reset, + child: Text(localizations.bannerDemoResetText), + ), + const PopupMenuDivider(), + CheckedPopupMenuItem( + value: BannerDemoAction.showMultipleActions, + checked: _showMultipleActions.value, + child: Text(localizations.bannerDemoMultipleText), + ), + CheckedPopupMenuItem( + value: BannerDemoAction.showLeading, + checked: _showLeading.value, + child: Text(localizations.bannerDemoLeadingText), + ), + ], + ), + ], + ), + body: ListView.builder( + restorationId: 'banner_demo_list_view', + itemCount: _displayBanner.value ? _itemCount + 1 : _itemCount, + itemBuilder: (BuildContext context, int index) { + if (index == 0 && _displayBanner.value) { + return banner; + } + return ListTile( + title: Text( + localizations.starterAppDrawerItem( + _displayBanner.value ? index : index + 1), + ), + ); + }, + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..e6ec26e7a5844cda7abc3fd03afe7ee78720ebdc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart @@ -0,0 +1,201 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN bottomAppBarDemo + +class BottomAppBarDemo extends StatefulWidget { + const BottomAppBarDemo({super.key}); + + @override + State createState() => _BottomAppBarDemoState(); +} + +class _BottomAppBarDemoState extends State + with RestorationMixin { + final RestorableBool _showFab = RestorableBool(true); + final RestorableBool _showNotch = RestorableBool(true); + final RestorableInt _currentFabLocation = RestorableInt(0); + + @override + String get restorationId => 'bottom_app_bar_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_showFab, 'show_fab'); + registerForRestoration(_showNotch, 'show_notch'); + registerForRestoration(_currentFabLocation, 'fab_location'); + } + + @override + void dispose() { + _showFab.dispose(); + _showNotch.dispose(); + _currentFabLocation.dispose(); + super.dispose(); + } + + // Since FloatingActionButtonLocation is not an enum, the index of the + // selected FloatingActionButtonLocation is used for state restoration. + static const List _fabLocations = [ + FloatingActionButtonLocation.endDocked, + FloatingActionButtonLocation.centerDocked, + FloatingActionButtonLocation.endFloat, + FloatingActionButtonLocation.centerFloat, + ]; + + void _onShowNotchChanged(bool value) { + setState(() { + _showNotch.value = value; + }); + } + + void _onShowFabChanged(bool value) { + setState(() { + _showFab.value = value; + }); + } + + void _onFabLocationChanged(int? value) { + setState(() { + _currentFabLocation.value = value!; + }); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoBottomAppBarTitle), + ), + body: ListView( + padding: const EdgeInsets.only(bottom: 88), + children: [ + SwitchListTile( + title: Text( + localizations.demoFloatingButtonTitle, + ), + value: _showFab.value, + onChanged: _onShowFabChanged, + ), + SwitchListTile( + title: Text(localizations.bottomAppBarNotch), + value: _showNotch.value, + onChanged: _onShowNotchChanged, + ), + Padding( + padding: const EdgeInsets.all(16), + child: Text(localizations.bottomAppBarPosition), + ), + RadioListTile( + title: Text( + localizations.bottomAppBarPositionDockedEnd, + ), + value: 0, + groupValue: _currentFabLocation.value, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: Text( + localizations.bottomAppBarPositionDockedCenter, + ), + value: 1, + groupValue: _currentFabLocation.value, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: Text( + localizations.bottomAppBarPositionFloatingEnd, + ), + value: 2, + groupValue: _currentFabLocation.value, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: Text( + localizations.bottomAppBarPositionFloatingCenter, + ), + value: 3, + groupValue: _currentFabLocation.value, + onChanged: _onFabLocationChanged, + ), + ], + ), + floatingActionButton: _showFab.value + ? Semantics( + container: true, + sortKey: const OrdinalSortKey(0), + child: FloatingActionButton( + onPressed: () {}, + tooltip: localizations.buttonTextCreate, + child: const Icon(Icons.add), + ), + ) + : null, + floatingActionButtonLocation: _fabLocations[_currentFabLocation.value], + bottomNavigationBar: _DemoBottomAppBar( + fabLocation: _fabLocations[_currentFabLocation.value], + shape: _showNotch.value ? const CircularNotchedRectangle() : null, + ), + ); + } +} + +class _DemoBottomAppBar extends StatelessWidget { + const _DemoBottomAppBar({ + required this.fabLocation, + this.shape, + }); + + final FloatingActionButtonLocation fabLocation; + final NotchedShape? shape; + + static final List centerLocations = [ + FloatingActionButtonLocation.centerDocked, + FloatingActionButtonLocation.centerFloat, + ]; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Semantics( + sortKey: const OrdinalSortKey(1), + container: true, + label: localizations.bottomAppBar, + child: BottomAppBar( + shape: shape, + child: IconTheme( + data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary), + child: Row( + children: [ + IconButton( + tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, + icon: const Icon(Icons.menu), + onPressed: () {}, + ), + if (centerLocations.contains(fabLocation)) const Spacer(), + IconButton( + tooltip: localizations.starterAppTooltipSearch, + icon: const Icon(Icons.search), + onPressed: () {}, + ), + IconButton( + tooltip: localizations.starterAppTooltipFavorite, + icon: const Icon(Icons.favorite), + onPressed: () {}, + ) + ], + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..3f272d4e71b93e3cf66f022fb6821329f4142122 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart @@ -0,0 +1,179 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN bottomNavigationDemo + +class BottomNavigationDemo extends StatefulWidget { + const BottomNavigationDemo({ + super.key, + required this.restorationId, + required this.type, + }); + + final String restorationId; + final BottomNavigationDemoType type; + + @override + State createState() => _BottomNavigationDemoState(); +} + +class _BottomNavigationDemoState extends State + with RestorationMixin { + final RestorableInt _currentIndex = RestorableInt(0); + + @override + String get restorationId => widget.restorationId; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_currentIndex, 'bottom_navigation_tab_index'); + } + + @override + void dispose() { + _currentIndex.dispose(); + super.dispose(); + } + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + switch (widget.type) { + case BottomNavigationDemoType.withLabels: + return localizations.demoBottomNavigationPersistentLabels; + case BottomNavigationDemoType.withoutLabels: + return localizations.demoBottomNavigationSelectedLabel; + } + } + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final TextTheme textTheme = Theme.of(context).textTheme; + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + List bottomNavigationBarItems = [ + BottomNavigationBarItem( + icon: const Icon(Icons.add_comment), + label: localizations.bottomNavigationCommentsTab, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.calendar_today), + label: localizations.bottomNavigationCalendarTab, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.account_circle), + label: localizations.bottomNavigationAccountTab, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.alarm_on), + label: localizations.bottomNavigationAlarmTab, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.camera_enhance), + label: localizations.bottomNavigationCameraTab, + ), + ]; + + if (widget.type == BottomNavigationDemoType.withLabels) { + bottomNavigationBarItems = bottomNavigationBarItems.sublist( + 0, bottomNavigationBarItems.length - 2); + _currentIndex.value = _currentIndex.value + .clamp(0, bottomNavigationBarItems.length - 1) + ; + } + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: Center( + child: PageTransitionSwitcher( + transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + return FadeThroughTransition( + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + child: _NavigationDestinationView( + // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. + key: UniqueKey(), + item: bottomNavigationBarItems[_currentIndex.value], + ), + ), + ), + bottomNavigationBar: BottomNavigationBar( + showUnselectedLabels: + widget.type == BottomNavigationDemoType.withLabels, + items: bottomNavigationBarItems, + currentIndex: _currentIndex.value, + type: BottomNavigationBarType.fixed, + selectedFontSize: textTheme.bodySmall!.fontSize!, + unselectedFontSize: textTheme.bodySmall!.fontSize!, + onTap: (int index) { + setState(() { + _currentIndex.value = index; + }); + }, + selectedItemColor: colorScheme.onPrimary, + unselectedItemColor: colorScheme.onPrimary.withOpacity(0.38), + backgroundColor: colorScheme.primary, + ), + ); + } +} + +class _NavigationDestinationView extends StatelessWidget { + const _NavigationDestinationView({ + super.key, + required this.item, + }); + + final BottomNavigationBarItem item; + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + ExcludeSemantics( + child: Center( + child: Padding( + padding: const EdgeInsets.all(16), + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: Image.asset( + 'assets/demos/bottom_navigation_background.png', + package: 'flutter_gallery_assets', + ), + ), + ), + ), + ), + Center( + child: IconTheme( + data: const IconThemeData( + color: Colors.white, + size: 80, + ), + child: Semantics( + label: GalleryLocalizations.of(context)! + .bottomNavigationContentPlaceholder( + item.label!, + ), + child: item.icon, + ), + ), + ), + ], + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..723cd0ee9c5715f3bed1eac893f1f88a2d77664b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart @@ -0,0 +1,185 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class BottomSheetDemo extends StatelessWidget { + const BottomSheetDemo({ + super.key, + required this.type, + }); + + final BottomSheetDemoType type; + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (type) { + BottomSheetDemoType.persistent => localizations.demoBottomSheetPersistentTitle, + BottomSheetDemoType.modal => localizations.demoBottomSheetModalTitle, + }; + } + + Widget _bottomSheetDemo(BuildContext context) { + return switch (type) { + BottomSheetDemoType.persistent => _PersistentBottomSheetDemo(), + BottomSheetDemoType.modal => _ModalBottomSheetDemo(), + }; + } + + @override + Widget build(BuildContext context) { + // We wrap the demo in a [Navigator] to make sure that the modal bottom + // sheets gets dismissed when changing demo. + return Navigator( + // Adding [ValueKey] to make sure that the widget gets rebuilt when + // changing type. + key: ValueKey(type), + onGenerateRoute: (RouteSettings settings) { + return MaterialPageRoute( + builder: (BuildContext context) => Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + floatingActionButton: FloatingActionButton( + onPressed: () {}, + backgroundColor: Theme.of(context).colorScheme.secondary, + child: Icon( + Icons.add, + semanticLabel: + GalleryLocalizations.of(context)!.demoBottomSheetAddLabel, + ), + ), + body: _bottomSheetDemo(context), + ), + ); + }, + ); + } +} + +// BEGIN bottomSheetDemoModal#1 bottomSheetDemoPersistent#1 + +class _BottomSheetContent extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return SizedBox( + height: 300, + child: Column( + children: [ + SizedBox( + height: 70, + child: Center( + child: Text( + localizations.demoBottomSheetHeader, + textAlign: TextAlign.center, + ), + ), + ), + const Divider(thickness: 1), + Expanded( + child: ListView.builder( + itemCount: 21, + itemBuilder: (BuildContext context, int index) { + return ListTile( + title: Text(localizations.demoBottomSheetItem(index)), + ); + }, + ), + ), + ], + ), + ); + } +} + +// END bottomSheetDemoModal#1 bottomSheetDemoPersistent#1 + +// BEGIN bottomSheetDemoModal#2 + +class _ModalBottomSheetDemo extends StatelessWidget { + void _showModalBottomSheet(BuildContext context) { + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return _BottomSheetContent(); + }, + ); + } + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + onPressed: () { + _showModalBottomSheet(context); + }, + child: + Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), + ), + ); + } +} + +// END + +// BEGIN bottomSheetDemoPersistent#2 + +class _PersistentBottomSheetDemo extends StatefulWidget { + @override + _PersistentBottomSheetDemoState createState() => + _PersistentBottomSheetDemoState(); +} + +class _PersistentBottomSheetDemoState + extends State<_PersistentBottomSheetDemo> { + VoidCallback? _showBottomSheetCallback; + + @override + void initState() { + super.initState(); + _showBottomSheetCallback = _showPersistentBottomSheet; + } + + void _showPersistentBottomSheet() { + setState(() { + // Disable the show bottom sheet button. + _showBottomSheetCallback = null; + }); + + Scaffold.of(context) + .showBottomSheet( + (BuildContext context) { + return _BottomSheetContent(); + }, + elevation: 25, + ) + .closed + .whenComplete(() { + if (mounted) { + setState(() { + // Re-enable the bottom sheet button. + _showBottomSheetCallback = _showPersistentBottomSheet; + }); + } + }); + } + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + onPressed: _showBottomSheetCallback, + child: + Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..af05b1bc61071b95212c1491013f1c79a672c26a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart @@ -0,0 +1,284 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class ButtonDemo extends StatelessWidget { + const ButtonDemo({super.key, required this.type}); + + final ButtonDemoType type; + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (type) { + ButtonDemoType.text => localizations.demoTextButtonTitle, + ButtonDemoType.elevated => localizations.demoElevatedButtonTitle, + ButtonDemoType.outlined => localizations.demoOutlinedButtonTitle, + ButtonDemoType.toggle => localizations.demoToggleButtonTitle, + ButtonDemoType.floating => localizations.demoFloatingButtonTitle, + }; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: switch (type) { + ButtonDemoType.text => _TextButtonDemo(), + ButtonDemoType.elevated => _ElevatedButtonDemo(), + ButtonDemoType.outlined => _OutlinedButtonDemo(), + ButtonDemoType.toggle => _ToggleButtonsDemo(), + ButtonDemoType.floating => _FloatingActionButtonDemo(), + }, + ); + } +} + +// BEGIN buttonDemoText + +class _TextButtonDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextButton( + onPressed: () {}, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + TextButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: () {}, + ), + ], + ), + const SizedBox(height: 12), + // Disabled buttons + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextButton( + onPressed: null, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + TextButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: null, + ), + ], + ), + ], + ); + } +} + +// END + +// BEGIN buttonDemoElevated + +class _ElevatedButtonDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: () {}, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + ElevatedButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: () {}, + ), + ], + ), + const SizedBox(height: 12), + // Disabled buttons + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: null, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + ElevatedButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: null, + ), + ], + ), + ], + ); + } +} + +// END + +// BEGIN buttonDemoOutlined + +class _OutlinedButtonDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + OutlinedButton( + onPressed: () {}, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + OutlinedButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: () {}, + ), + ], + ), + const SizedBox(height: 12), + // Disabled buttons + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + OutlinedButton( + onPressed: null, + child: Text(localizations.buttonText), + ), + const SizedBox(width: 12), + OutlinedButton.icon( + icon: const Icon(Icons.add, size: 18), + label: Text(localizations.buttonText), + onPressed: null, + ), + ], + ), + ], + ); + } +} + +// END + +// BEGIN buttonDemoToggle + +class _ToggleButtonsDemo extends StatefulWidget { + @override + _ToggleButtonsDemoState createState() => _ToggleButtonsDemoState(); +} + +class _ToggleButtonsDemoState extends State<_ToggleButtonsDemo> + with RestorationMixin { + final List isSelected = [ + RestorableBool(false), + RestorableBool(true), + RestorableBool(false), + ]; + + @override + String get restorationId => 'toggle_button_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(isSelected[0], 'first_item'); + registerForRestoration(isSelected[1], 'second_item'); + registerForRestoration(isSelected[2], 'third_item'); + } + + @override + void dispose() { + for (final RestorableBool restorableBool in isSelected) { + restorableBool.dispose(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ToggleButtons( + onPressed: (int index) { + setState(() { + isSelected[index].value = !isSelected[index].value; + }); + }, + isSelected: isSelected.map((RestorableBool element) => element.value).toList(), + children: const [ + Icon(Icons.format_bold), + Icon(Icons.format_italic), + Icon(Icons.format_underline), + ], + ), + const SizedBox(height: 12), + // Disabled toggle buttons + ToggleButtons( + isSelected: isSelected.map((RestorableBool element) => element.value).toList(), + children: const [ + Icon(Icons.format_bold), + Icon(Icons.format_italic), + Icon(Icons.format_underline), + ], + ), + ], + ), + ); + } +} + +// END + +// BEGIN buttonDemoFloating + +class _FloatingActionButtonDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Center( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + FloatingActionButton( + onPressed: () {}, + tooltip: localizations.buttonTextCreate, + child: const Icon(Icons.add), + ), + const SizedBox(width: 12), + FloatingActionButton.extended( + icon: const Icon(Icons.add), + label: Text(localizations.buttonTextCreate), + onPressed: () {}, + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..49714bbfb2565ead01e72b5e3aabdeed199c93d6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart @@ -0,0 +1,436 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; + +// BEGIN cardsDemo + +enum CardType { + standard, + tappable, + selectable, +} + +class TravelDestination { + const TravelDestination({ + required this.assetName, + required this.assetPackage, + required this.title, + required this.description, + required this.city, + required this.location, + this.cardType = CardType.standard, + }); + + final String assetName; + final String assetPackage; + final String title; + final String description; + final String city; + final String location; + final CardType cardType; +} + +List destinations(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return [ + TravelDestination( + assetName: 'places/india_thanjavur_market.png', + assetPackage: _kGalleryAssetsPackage, + title: localizations.cardsDemoTravelDestinationTitle1, + description: localizations.cardsDemoTravelDestinationDescription1, + city: localizations.cardsDemoTravelDestinationCity1, + location: localizations.cardsDemoTravelDestinationLocation1, + ), + TravelDestination( + assetName: 'places/india_chettinad_silk_maker.png', + assetPackage: _kGalleryAssetsPackage, + title: localizations.cardsDemoTravelDestinationTitle2, + description: localizations.cardsDemoTravelDestinationDescription2, + city: localizations.cardsDemoTravelDestinationCity2, + location: localizations.cardsDemoTravelDestinationLocation2, + cardType: CardType.tappable, + ), + TravelDestination( + assetName: 'places/india_tanjore_thanjavur_temple.png', + assetPackage: _kGalleryAssetsPackage, + title: localizations.cardsDemoTravelDestinationTitle3, + description: localizations.cardsDemoTravelDestinationDescription3, + city: localizations.cardsDemoTravelDestinationCity1, + location: localizations.cardsDemoTravelDestinationLocation1, + cardType: CardType.selectable, + ), + ]; +} + +class TravelDestinationItem extends StatelessWidget { + const TravelDestinationItem( + {super.key, required this.destination, this.shape}); + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 360.0; + final TravelDestination destination; + final ShapeBorder? shape; + + @override + Widget build(BuildContext context) { + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8), + child: Column( + children: [ + SectionTitle( + title: GalleryLocalizations.of(context)! + .settingsTextScalingNormal), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: shape, + child: Semantics( + label: destination.title, + child: TravelDestinationContent(destination: destination), + ), + ), + ), + ], + ), + ), + ); + } +} + +class TappableTravelDestinationItem extends StatelessWidget { + const TappableTravelDestinationItem({ + super.key, + required this.destination, + this.shape, + }); + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 298.0; + final TravelDestination destination; + final ShapeBorder? shape; + + @override + Widget build(BuildContext context) { + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8), + child: Column( + children: [ + SectionTitle( + title: GalleryLocalizations.of(context)!.cardsDemoTappable), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children (including the ink splash) are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: shape, + child: InkWell( + onTap: () {}, + // Generally, material cards use onSurface with 12% opacity for the pressed state. + splashColor: + Theme.of(context).colorScheme.onSurface.withOpacity(0.12), + // Generally, material cards do not have a highlight overlay. + highlightColor: Colors.transparent, + child: Semantics( + label: destination.title, + child: TravelDestinationContent(destination: destination), + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +class SelectableTravelDestinationItem extends StatelessWidget { + const SelectableTravelDestinationItem({ + super.key, + required this.destination, + required this.isSelected, + required this.onSelected, + this.shape, + }); + + final TravelDestination destination; + final ShapeBorder? shape; + final bool isSelected; + final VoidCallback onSelected; + + // This height will allow for all the Card's content to fit comfortably within the card. + static const double height = 298.0; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final String selectedStatus = isSelected + ? GalleryLocalizations.of(context)!.selected + : GalleryLocalizations.of(context)!.notSelected; + + return SafeArea( + top: false, + bottom: false, + child: Padding( + padding: const EdgeInsets.all(8), + child: Column( + children: [ + SectionTitle(title: GalleryLocalizations.of(context)!.selectable), + SizedBox( + height: height, + child: Card( + // This ensures that the Card's children (including the ink splash) are clipped correctly. + clipBehavior: Clip.antiAlias, + shape: shape, + child: InkWell( + onLongPress: () { + onSelected(); + }, + // Generally, material cards use onSurface with 12% opacity for the pressed state. + splashColor: colorScheme.onSurface.withOpacity(0.12), + // Generally, material cards do not have a highlight overlay. + highlightColor: Colors.transparent, + child: Stack( + children: [ + Container( + color: isSelected + // Generally, material cards use primary with 8% opacity for the selected state. + // See: https://material.io/design/interaction/states.html#anatomy + ? colorScheme.primary.withOpacity(0.08) + : Colors.transparent, + ), + Semantics( + label: '${destination.title}, $selectedStatus', + onLongPressHint: isSelected + ? GalleryLocalizations.of(context)!.deselect + : GalleryLocalizations.of(context)!.select, + child: + TravelDestinationContent(destination: destination), + ), + Align( + alignment: Alignment.topRight, + child: Padding( + padding: const EdgeInsets.all(8), + child: Icon( + Icons.check_circle, + color: isSelected + ? colorScheme.primary + : Colors.transparent, + ), + ), + ), + ], + ), + //), + ), + ), + ), + ], + ), + ), + ); + } +} + +class SectionTitle extends StatelessWidget { + const SectionTitle({ + super.key, + required this.title, + }); + + final String title; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.fromLTRB(4, 4, 4, 12), + child: Align( + alignment: Alignment.centerLeft, + child: Text(title, style: Theme.of(context).textTheme.titleMedium), + ), + ); + } +} + +class TravelDestinationContent extends StatelessWidget { + const TravelDestinationContent({super.key, required this.destination}); + + final TravelDestination destination; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle titleStyle = theme.textTheme.headlineSmall!.copyWith( + color: Colors.white, + ); + final TextStyle descriptionStyle = theme.textTheme.titleMedium!; + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + height: 184, + child: Stack( + children: [ + Positioned.fill( + // In order to have the ink splash appear above the image, you + // must use Ink.image. This allows the image to be painted as + // part of the Material and display ink effects above it. Using + // a standard Image will obscure the ink splash. + child: Ink.image( + image: AssetImage( + destination.assetName, + package: destination.assetPackage, + ), + fit: BoxFit.cover, + child: Container(), + ), + ), + Positioned( + bottom: 16, + left: 16, + right: 16, + child: FittedBox( + fit: BoxFit.scaleDown, + alignment: Alignment.centerLeft, + child: Semantics( + container: true, + header: true, + child: Text( + destination.title, + style: titleStyle, + ), + ), + ), + ), + ], + ), + ), + // Description and share/explore buttons. + Semantics( + container: true, + child: Padding( + padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), + child: DefaultTextStyle( + softWrap: false, + overflow: TextOverflow.ellipsis, + style: descriptionStyle, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // This array contains the three line description on each card + // demo. + Padding( + padding: const EdgeInsets.only(bottom: 8), + child: Text( + destination.description, + style: descriptionStyle.copyWith(color: Colors.black54), + ), + ), + Text(destination.city), + Text(destination.location), + ], + ), + ), + ), + ), + if (destination.cardType == CardType.standard) + // share, explore buttons + Padding( + padding: const EdgeInsets.all(8), + child: OverflowBar( + alignment: MainAxisAlignment.start, + spacing: 8, + children: [ + TextButton( + onPressed: () {}, + child: Text(localizations.demoMenuShare, + semanticsLabel: localizations + .cardsDemoShareSemantics(destination.title)), + ), + TextButton( + onPressed: () {}, + child: Text(localizations.cardsDemoExplore, + semanticsLabel: localizations + .cardsDemoExploreSemantics(destination.title)), + ), + ], + ), + ), + ], + ); + } +} + +class CardsDemo extends StatefulWidget { + const CardsDemo({super.key}); + + @override + State createState() => _CardsDemoState(); +} + +class _CardsDemoState extends State with RestorationMixin { + final RestorableBool _isSelected = RestorableBool(false); + + @override + String get restorationId => 'cards_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_isSelected, 'is_selected'); + } + + @override + void dispose() { + _isSelected.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(GalleryLocalizations.of(context)!.demoCardTitle), + ), + body: Scrollbar( + child: ListView( + restorationId: 'cards_demo_list_view', + padding: const EdgeInsets.only(top: 8, left: 8, right: 8), + children: [ + for (final TravelDestination destination in destinations(context)) + Container( + margin: const EdgeInsets.only(bottom: 8), + child: switch (destination.cardType) { + CardType.standard => TravelDestinationItem(destination: destination), + CardType.tappable => TappableTravelDestinationItem(destination: destination), + CardType.selectable => SelectableTravelDestinationItem( + destination: destination, + isSelected: _isSelected.value, + onSelected: () => setState(() { _isSelected.value = !_isSelected.value; }), + ), + }, + ), + ], + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..86a277a452ef0b251f00d273f34e95c4c39d2076 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart @@ -0,0 +1,295 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class ChipDemo extends StatelessWidget { + const ChipDemo({ + super.key, + required this.type, + }); + + final ChipDemoType type; + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (type) { + ChipDemoType.action => localizations.demoActionChipTitle, + ChipDemoType.choice => localizations.demoChoiceChipTitle, + ChipDemoType.filter => localizations.demoFilterChipTitle, + ChipDemoType.input => localizations.demoInputChipTitle, + }; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: switch (type) { + ChipDemoType.action => _ActionChipDemo(), + ChipDemoType.choice => _ChoiceChipDemo(), + ChipDemoType.filter => _FilterChipDemo(), + ChipDemoType.input => _InputChipDemo(), + }, + ); + } +} + +// BEGIN chipDemoAction + +class _ActionChipDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Center( + child: ActionChip( + onPressed: () {}, + avatar: const Icon( + Icons.brightness_5, + color: Colors.black54, + ), + label: Text(GalleryLocalizations.of(context)!.chipTurnOnLights), + ), + ); + } +} + +// END + +// BEGIN chipDemoChoice + +class _ChoiceChipDemo extends StatefulWidget { + @override + _ChoiceChipDemoState createState() => _ChoiceChipDemoState(); +} + +class _ChoiceChipDemoState extends State<_ChoiceChipDemo> + with RestorationMixin { + final RestorableIntN _indexSelected = RestorableIntN(null); + + @override + String get restorationId => 'choice_chip_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_indexSelected, 'choice_chip'); + } + + @override + void dispose() { + _indexSelected.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Wrap( + children: [ + ChoiceChip( + label: Text(localizations.chipSmall), + selected: _indexSelected.value == 0, + onSelected: (bool value) { + setState(() { + _indexSelected.value = value ? 0 : -1; + }); + }, + ), + const SizedBox(width: 8), + ChoiceChip( + label: Text(localizations.chipMedium), + selected: _indexSelected.value == 1, + onSelected: (bool value) { + setState(() { + _indexSelected.value = value ? 1 : -1; + }); + }, + ), + const SizedBox(width: 8), + ChoiceChip( + label: Text(localizations.chipLarge), + selected: _indexSelected.value == 2, + onSelected: (bool value) { + setState(() { + _indexSelected.value = value ? 2 : -1; + }); + }, + ), + ], + ), + const SizedBox(height: 12), + // Disabled chips + Wrap( + children: [ + ChoiceChip( + label: Text(localizations.chipSmall), + selected: _indexSelected.value == 0, + ), + const SizedBox(width: 8), + ChoiceChip( + label: Text(localizations.chipMedium), + selected: _indexSelected.value == 1, + ), + const SizedBox(width: 8), + ChoiceChip( + label: Text(localizations.chipLarge), + selected: _indexSelected.value == 2, + ), + ], + ), + ], + ), + ); + } +} + +// END + +// BEGIN chipDemoFilter + +class _FilterChipDemo extends StatefulWidget { + @override + _FilterChipDemoState createState() => _FilterChipDemoState(); +} + +class _FilterChipDemoState extends State<_FilterChipDemo> + with RestorationMixin { + final RestorableBool isSelectedElevator = RestorableBool(false); + final RestorableBool isSelectedWasher = RestorableBool(false); + final RestorableBool isSelectedFireplace = RestorableBool(false); + + @override + String get restorationId => 'filter_chip_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(isSelectedElevator, 'selected_elevator'); + registerForRestoration(isSelectedWasher, 'selected_washer'); + registerForRestoration(isSelectedFireplace, 'selected_fireplace'); + } + + @override + void dispose() { + isSelectedElevator.dispose(); + isSelectedWasher.dispose(); + isSelectedFireplace.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Wrap( + spacing: 8.0, + children: [ + FilterChip( + label: Text(localizations.chipElevator), + selected: isSelectedElevator.value, + onSelected: (bool value) { + setState(() { + isSelectedElevator.value = !isSelectedElevator.value; + }); + }, + ), + FilterChip( + label: Text(localizations.chipWasher), + selected: isSelectedWasher.value, + onSelected: (bool value) { + setState(() { + isSelectedWasher.value = !isSelectedWasher.value; + }); + }, + ), + FilterChip( + label: Text(localizations.chipFireplace), + selected: isSelectedFireplace.value, + onSelected: (bool value) { + setState(() { + isSelectedFireplace.value = !isSelectedFireplace.value; + }); + }, + ), + ], + ), + const SizedBox(height: 12), + // Disabled chips + Wrap( + spacing: 8.0, + children: [ + FilterChip( + label: Text(localizations.chipElevator), + selected: isSelectedElevator.value, + onSelected: null, + ), + FilterChip( + label: Text(localizations.chipWasher), + selected: isSelectedWasher.value, + onSelected: null, + ), + FilterChip( + label: Text(localizations.chipFireplace), + selected: isSelectedFireplace.value, + onSelected: null, + ), + ], + ), + ], + ), + ); + } +} + +// END + +// BEGIN chipDemoInput + +class _InputChipDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + InputChip( + onPressed: () {}, + onDeleted: () {}, + avatar: const Icon( + Icons.directions_bike, + size: 20, + color: Colors.black54, + ), + deleteIconColor: Colors.black54, + label: Text(GalleryLocalizations.of(context)!.chipBiking), + ), + const SizedBox(height: 12), + // Disabled chip + InputChip( + avatar: const Icon( + Icons.directions_bike, + size: 20, + color: Colors.black54, + ), + deleteIconColor: Colors.black54, + label: Text(GalleryLocalizations.of(context)!.chipBiking), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..ad4c46e6de30e4bcd0ac3f32097ea761aea3384e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart @@ -0,0 +1,676 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN dataTableDemo + +class DataTableDemo extends StatefulWidget { + const DataTableDemo({super.key}); + + @override + State createState() => _DataTableDemoState(); +} + +class _RestorableDessertSelections extends RestorableProperty> { + Set _dessertSelections = {}; + + /// Returns whether or not a dessert row is selected by index. + bool isSelected(int index) => _dessertSelections.contains(index); + + /// Takes a list of [_Dessert]s and saves the row indices of selected rows + /// into a [Set]. + void setDessertSelections(List<_Dessert> desserts) { + _dessertSelections = { + for (final (int i, _Dessert dessert) in desserts.indexed) + if (dessert.selected) i, + }; + notifyListeners(); + } + + @override + Set createDefaultValue() => _dessertSelections; + + @override + Set fromPrimitives(Object? data) { + final List selectedItemIndices = data! as List; + _dessertSelections = { + ...selectedItemIndices.map((dynamic id) => id as int), + }; + return _dessertSelections; + } + + @override + void initWithValue(Set value) { + _dessertSelections = value; + } + + @override + Object toPrimitives() => _dessertSelections.toList(); +} + +class _DataTableDemoState extends State with RestorationMixin { + final _RestorableDessertSelections _dessertSelections = + _RestorableDessertSelections(); + final RestorableInt _rowIndex = RestorableInt(0); + final RestorableInt _rowsPerPage = + RestorableInt(PaginatedDataTable.defaultRowsPerPage); + final RestorableBool _sortAscending = RestorableBool(true); + final RestorableIntN _sortColumnIndex = RestorableIntN(null); + _DessertDataSource? _dessertsDataSource; + + @override + String get restorationId => 'data_table_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_dessertSelections, 'selected_row_indices'); + registerForRestoration(_rowIndex, 'current_row_index'); + registerForRestoration(_rowsPerPage, 'rows_per_page'); + registerForRestoration(_sortAscending, 'sort_ascending'); + registerForRestoration(_sortColumnIndex, 'sort_column_index'); + + _dessertsDataSource ??= _DessertDataSource(context); + switch (_sortColumnIndex.value) { + case 0: + _dessertsDataSource!._sort((_Dessert d) => d.name, _sortAscending.value); + case 1: + _dessertsDataSource! + ._sort((_Dessert d) => d.calories, _sortAscending.value); + case 2: + _dessertsDataSource!._sort((_Dessert d) => d.fat, _sortAscending.value); + case 3: + _dessertsDataSource!._sort((_Dessert d) => d.carbs, _sortAscending.value); + case 4: + _dessertsDataSource!._sort((_Dessert d) => d.protein, _sortAscending.value); + case 5: + _dessertsDataSource!._sort((_Dessert d) => d.sodium, _sortAscending.value); + case 6: + _dessertsDataSource!._sort((_Dessert d) => d.calcium, _sortAscending.value); + case 7: + _dessertsDataSource!._sort((_Dessert d) => d.iron, _sortAscending.value); + } + _dessertsDataSource!.updateSelectedDesserts(_dessertSelections); + _dessertsDataSource!.addListener(_updateSelectedDessertRowListener); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _dessertsDataSource ??= _DessertDataSource(context); + _dessertsDataSource!.addListener(_updateSelectedDessertRowListener); + } + + void _updateSelectedDessertRowListener() { + _dessertSelections.setDessertSelections(_dessertsDataSource!._desserts); + } + + void _sort( + Comparable Function(_Dessert d) getField, + int columnIndex, + bool ascending, + ) { + _dessertsDataSource!._sort(getField, ascending); + setState(() { + _sortColumnIndex.value = columnIndex; + _sortAscending.value = ascending; + }); + } + + @override + void dispose() { + _rowsPerPage.dispose(); + _sortColumnIndex.dispose(); + _sortAscending.dispose(); + _dessertsDataSource!.removeListener(_updateSelectedDessertRowListener); + _dessertsDataSource!.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoDataTableTitle), + ), + body: Scrollbar( + child: ListView( + restorationId: 'data_table_list_view', + padding: const EdgeInsets.all(16), + children: [ + PaginatedDataTable( + header: Text(localizations.dataTableHeader), + rowsPerPage: _rowsPerPage.value, + onRowsPerPageChanged: (int? value) { + setState(() { + _rowsPerPage.value = value!; + }); + }, + initialFirstRowIndex: _rowIndex.value, + onPageChanged: (int rowIndex) { + setState(() { + _rowIndex.value = rowIndex; + }); + }, + sortColumnIndex: _sortColumnIndex.value, + sortAscending: _sortAscending.value, + onSelectAll: _dessertsDataSource!._selectAll, + columns: [ + DataColumn( + label: Text(localizations.dataTableColumnDessert), + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.name, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnCalories), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.calories, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnFat), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.fat, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnCarbs), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.carbs, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnProtein), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.protein, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnSodium), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.sodium, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnCalcium), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.calcium, columnIndex, ascending), + ), + DataColumn( + label: Text(localizations.dataTableColumnIron), + numeric: true, + onSort: (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.iron, columnIndex, ascending), + ), + ], + source: _dessertsDataSource!, + ), + ], + ), + ), + ); + } +} + +class _Dessert { + _Dessert( + this.name, + this.calories, + this.fat, + this.carbs, + this.protein, + this.sodium, + this.calcium, + this.iron, + ); + + final String name; + final int calories; + final double fat; + final int carbs; + final double protein; + final int sodium; + final int calcium; + final int iron; + bool selected = false; +} + +class _DessertDataSource extends DataTableSource { + _DessertDataSource(this.context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + _desserts = <_Dessert>[ + _Dessert( + localizations.dataTableRowFrozenYogurt, + 159, + 6.0, + 24, + 4.0, + 87, + 14, + 1, + ), + _Dessert( + localizations.dataTableRowIceCreamSandwich, + 237, + 9.0, + 37, + 4.3, + 129, + 8, + 1, + ), + _Dessert( + localizations.dataTableRowEclair, + 262, + 16.0, + 24, + 6.0, + 337, + 6, + 7, + ), + _Dessert( + localizations.dataTableRowCupcake, + 305, + 3.7, + 67, + 4.3, + 413, + 3, + 8, + ), + _Dessert( + localizations.dataTableRowGingerbread, + 356, + 16.0, + 49, + 3.9, + 327, + 7, + 16, + ), + _Dessert( + localizations.dataTableRowJellyBean, + 375, + 0.0, + 94, + 0.0, + 50, + 0, + 0, + ), + _Dessert( + localizations.dataTableRowLollipop, + 392, + 0.2, + 98, + 0.0, + 38, + 0, + 2, + ), + _Dessert( + localizations.dataTableRowHoneycomb, + 408, + 3.2, + 87, + 6.5, + 562, + 0, + 45, + ), + _Dessert( + localizations.dataTableRowDonut, + 452, + 25.0, + 51, + 4.9, + 326, + 2, + 22, + ), + _Dessert( + localizations.dataTableRowApplePie, + 518, + 26.0, + 65, + 7.0, + 54, + 12, + 6, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowFrozenYogurt, + ), + 168, + 6.0, + 26, + 4.0, + 87, + 14, + 1, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowIceCreamSandwich, + ), + 246, + 9.0, + 39, + 4.3, + 129, + 8, + 1, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowEclair, + ), + 271, + 16.0, + 26, + 6.0, + 337, + 6, + 7, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowCupcake, + ), + 314, + 3.7, + 69, + 4.3, + 413, + 3, + 8, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowGingerbread, + ), + 345, + 16.0, + 51, + 3.9, + 327, + 7, + 16, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowJellyBean, + ), + 364, + 0.0, + 96, + 0.0, + 50, + 0, + 0, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowLollipop, + ), + 401, + 0.2, + 100, + 0.0, + 38, + 0, + 2, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowHoneycomb, + ), + 417, + 3.2, + 89, + 6.5, + 562, + 0, + 45, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowDonut, + ), + 461, + 25.0, + 53, + 4.9, + 326, + 2, + 22, + ), + _Dessert( + localizations.dataTableRowWithSugar( + localizations.dataTableRowApplePie, + ), + 527, + 26.0, + 67, + 7.0, + 54, + 12, + 6, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowFrozenYogurt, + ), + 223, + 6.0, + 36, + 4.0, + 87, + 14, + 1, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowIceCreamSandwich, + ), + 301, + 9.0, + 49, + 4.3, + 129, + 8, + 1, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowEclair, + ), + 326, + 16.0, + 36, + 6.0, + 337, + 6, + 7, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowCupcake, + ), + 369, + 3.7, + 79, + 4.3, + 413, + 3, + 8, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowGingerbread, + ), + 420, + 16.0, + 61, + 3.9, + 327, + 7, + 16, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowJellyBean, + ), + 439, + 0.0, + 106, + 0.0, + 50, + 0, + 0, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowLollipop, + ), + 456, + 0.2, + 110, + 0.0, + 38, + 0, + 2, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowHoneycomb, + ), + 472, + 3.2, + 99, + 6.5, + 562, + 0, + 45, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowDonut, + ), + 516, + 25.0, + 63, + 4.9, + 326, + 2, + 22, + ), + _Dessert( + localizations.dataTableRowWithHoney( + localizations.dataTableRowApplePie, + ), + 582, + 26.0, + 77, + 7.0, + 54, + 12, + 6, + ), + ]; + } + + final BuildContext context; + late List<_Dessert> _desserts; + + void _sort(Comparable Function(_Dessert d) getField, bool ascending) { + _desserts.sort((_Dessert a, _Dessert b) { + final Comparable aValue = getField(a); + final Comparable bValue = getField(b); + return ascending + ? Comparable.compare(aValue, bValue) + : Comparable.compare(bValue, aValue); + }); + notifyListeners(); + } + + int _selectedCount = 0; + + void updateSelectedDesserts(_RestorableDessertSelections selectedRows) { + _selectedCount = 0; + for (int i = 0; i < _desserts.length; i += 1) { + final _Dessert dessert = _desserts[i]; + if (selectedRows.isSelected(i)) { + dessert.selected = true; + _selectedCount += 1; + } else { + dessert.selected = false; + } + } + notifyListeners(); + } + + @override + DataRow? getRow(int index) { + final NumberFormat format = NumberFormat.decimalPercentPattern( + locale: GalleryOptions.of(context).locale.toString(), + decimalDigits: 0, + ); + assert(index >= 0); + if (index >= _desserts.length) { + return null; + } + final _Dessert dessert = _desserts[index]; + return DataRow.byIndex( + index: index, + selected: dessert.selected, + onSelectChanged: (bool? value) { + if (dessert.selected != value) { + _selectedCount += value! ? 1 : -1; + assert(_selectedCount >= 0); + dessert.selected = value; + notifyListeners(); + } + }, + cells: [ + DataCell(Text(dessert.name)), + DataCell(Text('${dessert.calories}')), + DataCell(Text(dessert.fat.toStringAsFixed(1))), + DataCell(Text('${dessert.carbs}')), + DataCell(Text(dessert.protein.toStringAsFixed(1))), + DataCell(Text('${dessert.sodium}')), + DataCell(Text(format.format(dessert.calcium / 100))), + DataCell(Text(format.format(dessert.iron / 100))), + ], + ); + } + + @override + int get rowCount => _desserts.length; + + @override + bool get isRowCountApproximate => false; + + @override + int get selectedRowCount => _selectedCount; + + void _selectAll(bool? checked) { + for (final _Dessert dessert in _desserts) { + dessert.selected = checked ?? false; + } + _selectedCount = checked! ? _desserts.length : 0; + notifyListeners(); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..19a3cdc17aea88784e55076c9a873fd224e18051 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart @@ -0,0 +1,340 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN dialogDemo + +class DialogDemo extends StatefulWidget { + const DialogDemo({super.key, required this.type}); + + final DialogDemoType type; + + @override + State createState() => _DialogDemoState(); +} + +class _DialogDemoState extends State with RestorationMixin { + late RestorableRouteFuture _alertDialogRoute; + late RestorableRouteFuture _alertDialogWithTitleRoute; + late RestorableRouteFuture _simpleDialogRoute; + + @override + String get restorationId => 'dialog_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration( + _alertDialogRoute, + 'alert_demo_dialog_route', + ); + registerForRestoration( + _alertDialogWithTitleRoute, + 'alert_demo_with_title_dialog_route', + ); + registerForRestoration( + _simpleDialogRoute, + 'simple_dialog_route', + ); + } + + // Displays the popped String value in a SnackBar. + void _showInSnackBar(String value) { + // The value passed to Navigator.pop() or null. + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text( + GalleryLocalizations.of(context)!.dialogSelectedOption(value), + ), + ), + ); + } + + @override + void initState() { + super.initState(); + _alertDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertDialogDemoRoute); + }, + onComplete: _showInSnackBar, + ); + _alertDialogWithTitleRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_alertDialogWithTitleDemoRoute); + }, + onComplete: _showInSnackBar, + ); + _simpleDialogRoute = RestorableRouteFuture( + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_simpleDialogDemoRoute); + }, + onComplete: _showInSnackBar, + ); + } + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (widget.type) { + DialogDemoType.alert => localizations.demoAlertDialogTitle, + DialogDemoType.alertTitle => localizations.demoAlertTitleDialogTitle, + DialogDemoType.simple => localizations.demoSimpleDialogTitle, + DialogDemoType.fullscreen => localizations.demoFullscreenDialogTitle, + }; + } + + static Route _alertDialogDemoRoute( + BuildContext context, + Object? arguments, + ) { + final ThemeData theme = Theme.of(context); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium! + .copyWith(color: theme.textTheme.bodySmall!.color); + + return DialogRoute( + context: context, + builder: (BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return ApplyTextOptions( + child: AlertDialog( + content: Text( + localizations.dialogDiscardTitle, + style: dialogTextStyle, + ), + actions: [ + _DialogButton(text: localizations.dialogCancel), + _DialogButton(text: localizations.dialogDiscard), + ], + )); + }, + ); + } + + static Route _alertDialogWithTitleDemoRoute( + BuildContext context, + Object? arguments, + ) { + final ThemeData theme = Theme.of(context); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium! + .copyWith(color: theme.textTheme.bodySmall!.color); + + return DialogRoute( + context: context, + builder: (BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return ApplyTextOptions( + child: AlertDialog( + title: Text(localizations.dialogLocationTitle), + content: Text( + localizations.dialogLocationDescription, + style: dialogTextStyle, + ), + actions: [ + _DialogButton(text: localizations.dialogDisagree), + _DialogButton(text: localizations.dialogAgree), + ], + ), + ); + }, + ); + } + + static Route _simpleDialogDemoRoute( + BuildContext context, + Object? arguments, + ) { + final ThemeData theme = Theme.of(context); + + return DialogRoute( + context: context, + builder: (BuildContext context) => ApplyTextOptions( + child: SimpleDialog( + title: Text(GalleryLocalizations.of(context)!.dialogSetBackup), + children: [ + _DialogDemoItem( + icon: Icons.account_circle, + color: theme.colorScheme.primary, + text: 'username@gmail.com', + ), + _DialogDemoItem( + icon: Icons.account_circle, + color: theme.colorScheme.secondary, + text: 'user02@gmail.com', + ), + _DialogDemoItem( + icon: Icons.add_circle, + text: GalleryLocalizations.of(context)!.dialogAddAccount, + color: theme.disabledColor, + ), + ], + ), + ), + ); + } + + static Route _fullscreenDialogRoute( + BuildContext context, + Object? arguments, + ) { + return MaterialPageRoute( + builder: (BuildContext context) => _FullScreenDialogDemo(), + fullscreenDialog: true, + ); + } + + @override + Widget build(BuildContext context) { + return Navigator( + // Adding [ValueKey] to make sure that the widget gets rebuilt when + // changing type. + key: ValueKey(widget.type), + restorationScopeId: 'navigator', + onGenerateRoute: (RouteSettings settings) { + return _NoAnimationMaterialPageRoute( + settings: settings, + builder: (BuildContext context) => Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: Center( + child: ElevatedButton( + onPressed: () { + switch (widget.type) { + case DialogDemoType.alert: + _alertDialogRoute.present(); + case DialogDemoType.alertTitle: + _alertDialogWithTitleRoute.present(); + case DialogDemoType.simple: + _simpleDialogRoute.present(); + case DialogDemoType.fullscreen: + Navigator.restorablePush( + context, _fullscreenDialogRoute); + } + }, + child: Text(GalleryLocalizations.of(context)!.dialogShow), + ), + ), + ), + ); + }, + ); + } +} + +/// A MaterialPageRoute without any transition animations. +class _NoAnimationMaterialPageRoute extends MaterialPageRoute { + _NoAnimationMaterialPageRoute({ + required super.builder, + super.settings, + super.maintainState, + super.fullscreenDialog, + }); + + @override + Widget buildTransitions( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { + return child; + } +} + +class _DialogButton extends StatelessWidget { + const _DialogButton({required this.text}); + + final String text; + + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () { + Navigator.of(context).pop(text); + }, + child: Text(text), + ); + } +} + +class _DialogDemoItem extends StatelessWidget { + const _DialogDemoItem({ + this.icon, + this.color, + required this.text, + }); + + final IconData? icon; + final Color? color; + final String text; + + @override + Widget build(BuildContext context) { + return SimpleDialogOption( + onPressed: () { + Navigator.of(context).pop(text); + }, + child: Row( + children: [ + Icon(icon, size: 36, color: color), + Flexible( + child: Padding( + padding: const EdgeInsetsDirectional.only(start: 16), + child: Text(text), + ), + ), + ], + ), + ); + } +} + +class _FullScreenDialogDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + // Remove the MediaQuery padding because the demo is rendered inside of a + // different page that already accounts for this padding. + return MediaQuery.removePadding( + context: context, + removeTop: true, + removeBottom: true, + child: ApplyTextOptions( + child: Scaffold( + appBar: AppBar( + title: Text(localizations.dialogFullscreenTitle), + actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: Text( + localizations.dialogFullscreenSave, + style: theme.textTheme.bodyMedium!.copyWith( + color: theme.colorScheme.onPrimary, + ), + ), + ), + ], + ), + body: Center( + child: Text( + localizations.dialogFullscreenDescription, + ), + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..b078cda22aa38bd7d650ec5a7fa8dfc84dfc6ea2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart @@ -0,0 +1,113 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class DividerDemo extends StatelessWidget { + const DividerDemo({super.key, required this.type}); + + final DividerDemoType type; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text( + switch (type) { + DividerDemoType.horizontal => localizations.demoDividerTitle, + DividerDemoType.vertical => localizations.demoVerticalDividerTitle, + }, + ), + ), + body: switch (type) { + DividerDemoType.horizontal => _HorizontalDividerDemo(), + DividerDemoType.vertical => _VerticalDividerDemo(), + }, + ); + } +} + +// BEGIN dividerDemo + +class _HorizontalDividerDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(10), + child: Column( + children: [ + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepPurpleAccent, + ), + ), + ), + const Divider( + color: Colors.grey, + height: 20, + thickness: 1, + indent: 20, + endIndent: 0, + ), + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepOrangeAccent, + ), + ), + ), + ], + ), + ); + } +} + +// END + +// BEGIN verticalDividerDemo + +class _VerticalDividerDemo extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(10), + child: Row( + children: [ + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepPurpleAccent, + ), + ), + ), + const VerticalDivider( + color: Colors.grey, + thickness: 1, + indent: 20, + endIndent: 0, + width: 20, + ), + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepOrangeAccent, + ), + ), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..81951e79b591eed9790e5b4bb6a01f5a0a25c609 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart @@ -0,0 +1,196 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN gridListsDemo + +class GridListDemo extends StatelessWidget { + const GridListDemo({super.key, required this.type}); + + final GridListDemoType type; + + List<_Photo> _photos(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return <_Photo>[ + _Photo( + assetName: 'places/india_chennai_flower_market.png', + title: localizations.placeChennai, + subtitle: localizations.placeFlowerMarket, + ), + _Photo( + assetName: 'places/india_tanjore_bronze_works.png', + title: localizations.placeTanjore, + subtitle: localizations.placeBronzeWorks, + ), + _Photo( + assetName: 'places/india_tanjore_market_merchant.png', + title: localizations.placeTanjore, + subtitle: localizations.placeMarket, + ), + _Photo( + assetName: 'places/india_tanjore_thanjavur_temple.png', + title: localizations.placeTanjore, + subtitle: localizations.placeThanjavurTemple, + ), + _Photo( + assetName: 'places/india_tanjore_thanjavur_temple_carvings.png', + title: localizations.placeTanjore, + subtitle: localizations.placeThanjavurTemple, + ), + _Photo( + assetName: 'places/india_pondicherry_salt_farm.png', + title: localizations.placePondicherry, + subtitle: localizations.placeSaltFarm, + ), + _Photo( + assetName: 'places/india_chennai_highway.png', + title: localizations.placeChennai, + subtitle: localizations.placeScooters, + ), + _Photo( + assetName: 'places/india_chettinad_silk_maker.png', + title: localizations.placeChettinad, + subtitle: localizations.placeSilkMaker, + ), + _Photo( + assetName: 'places/india_chettinad_produce.png', + title: localizations.placeChettinad, + subtitle: localizations.placeLunchPrep, + ), + _Photo( + assetName: 'places/india_tanjore_market_technology.png', + title: localizations.placeTanjore, + subtitle: localizations.placeMarket, + ), + _Photo( + assetName: 'places/india_pondicherry_beach.png', + title: localizations.placePondicherry, + subtitle: localizations.placeBeach, + ), + _Photo( + assetName: 'places/india_pondicherry_fisherman.png', + title: localizations.placePondicherry, + subtitle: localizations.placeFisherman, + ), + ]; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(GalleryLocalizations.of(context)!.demoGridListsTitle), + ), + body: GridView.count( + restorationId: 'grid_view_demo_grid_offset', + crossAxisCount: 2, + mainAxisSpacing: 8, + crossAxisSpacing: 8, + padding: const EdgeInsets.all(8), + children: _photos(context).map((_Photo photo) { + return _GridDemoPhotoItem( + photo: photo, + tileStyle: type, + ); + }).toList(), + ), + ); + } +} + +class _Photo { + _Photo({ + required this.assetName, + required this.title, + required this.subtitle, + }); + + final String assetName; + final String title; + final String subtitle; +} + +/// Allow the text size to shrink to fit in the space +class _GridTitleText extends StatelessWidget { + const _GridTitleText(this.text); + + final String text; + + @override + Widget build(BuildContext context) { + return FittedBox( + fit: BoxFit.scaleDown, + alignment: AlignmentDirectional.centerStart, + child: Text(text), + ); + } +} + +class _GridDemoPhotoItem extends StatelessWidget { + const _GridDemoPhotoItem({ + required this.photo, + required this.tileStyle, + }); + + final _Photo photo; + final GridListDemoType tileStyle; + + @override + Widget build(BuildContext context) { + final Widget image = Semantics( + label: '${photo.title} ${photo.subtitle}', + child: Material( + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), + clipBehavior: Clip.antiAlias, + child: Image.asset( + photo.assetName, + package: 'flutter_gallery_assets', + fit: BoxFit.cover, + ), + ), + ); + + switch (tileStyle) { + case GridListDemoType.imageOnly: + return image; + case GridListDemoType.header: + return GridTile( + header: Material( + color: Colors.transparent, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.vertical(top: Radius.circular(4)), + ), + clipBehavior: Clip.antiAlias, + child: GridTileBar( + title: _GridTitleText(photo.title), + backgroundColor: Colors.black45, + ), + ), + child: image, + ); + case GridListDemoType.footer: + return GridTile( + footer: Material( + color: Colors.transparent, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.vertical(bottom: Radius.circular(4)), + ), + clipBehavior: Clip.antiAlias, + child: GridTileBar( + backgroundColor: Colors.black45, + title: _GridTitleText(photo.title), + subtitle: _GridTitleText(photo.subtitle), + ), + ), + child: image, + ); + } + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..04c2b25f106ee219837550c88bd8f057b4be6199 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN listDemo + +class ListDemo extends StatelessWidget { + const ListDemo({super.key, required this.type}); + + final ListDemoType type; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoListsTitle), + ), + body: Scrollbar( + child: ListView( + restorationId: 'list_demo_list_view', + padding: const EdgeInsets.symmetric(vertical: 8), + children: [ + for (int index = 1; index < 21; index++) + ListTile( + leading: ExcludeSemantics( + child: CircleAvatar(child: Text('$index')), + ), + title: Text( + localizations.demoBottomSheetItem(index), + ), + subtitle: type == ListDemoType.twoLine + ? Text(localizations.demoListsSecondary) + : null, + ), + ], + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart new file mode 100644 index 0000000000000000000000000000000000000000..dbe3449931240d99c5fac48f865279e558be1552 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +enum BottomNavigationDemoType { + withLabels, + withoutLabels, +} + +enum BottomSheetDemoType { + persistent, + modal, +} + +enum ButtonDemoType { + text, + elevated, + outlined, + toggle, + floating, +} + +enum ChipDemoType { + action, + choice, + filter, + input, +} + +enum DialogDemoType { + alert, + alertTitle, + simple, + fullscreen, +} + +enum GridListDemoType { + imageOnly, + header, + footer, +} + +enum ListDemoType { + oneLine, + twoLine, +} + +enum MenuDemoType { + contextMenu, + sectionedMenu, + simpleMenu, + checklistMenu, +} + +enum PickerDemoType { + date, + time, + range, +} + +enum ProgressIndicatorDemoType { + circular, + linear, +} + +enum SelectionControlsDemoType { + checkbox, + radio, + switches, +} + +enum SlidersDemoType { + sliders, + rangeSliders, + customSliders, +} + +enum TabsDemoType { + scrollable, + nonScrollable, +} + +enum DividerDemoType { + horizontal, + vertical, +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demos.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demos.dart new file mode 100644 index 0000000000000000000000000000000000000000..bb73a82ffc839fa63a79b49e56d374a73b38ea35 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demos.dart @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'package:gallery/demos/material/app_bar_demo.dart'; +export 'package:gallery/demos/material/banner_demo.dart'; +export 'package:gallery/demos/material/bottom_app_bar_demo.dart'; +export 'package:gallery/demos/material/bottom_navigation_demo.dart'; +export 'package:gallery/demos/material/bottom_sheet_demo.dart'; +export 'package:gallery/demos/material/button_demo.dart'; +export 'package:gallery/demos/material/cards_demo.dart'; +export 'package:gallery/demos/material/chip_demo.dart'; +export 'package:gallery/demos/material/data_table_demo.dart'; +export 'package:gallery/demos/material/dialog_demo.dart'; +export 'package:gallery/demos/material/divider_demo.dart'; +export 'package:gallery/demos/material/grid_list_demo.dart'; +export 'package:gallery/demos/material/list_demo.dart'; +export 'package:gallery/demos/material/menu_demo.dart'; +export 'package:gallery/demos/material/navigation_drawer.dart'; +export 'package:gallery/demos/material/navigation_rail_demo.dart'; +export 'package:gallery/demos/material/picker_demo.dart'; +export 'package:gallery/demos/material/progress_indicator_demo.dart'; +export 'package:gallery/demos/material/selection_controls_demo.dart'; +export 'package:gallery/demos/material/sliders_demo.dart'; +export 'package:gallery/demos/material/snackbar_demo.dart'; +export 'package:gallery/demos/material/tabs_demo.dart'; +export 'package:gallery/demos/material/text_field_demo.dart'; +export 'package:gallery/demos/material/tooltip_demo.dart'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..56d44f09427f355b5d6ed32a066c13a2f6352c8a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart @@ -0,0 +1,416 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +enum SimpleValue { + one, + two, + three, +} + +enum CheckedValue { + one, + two, + three, + four, +} + +class MenuDemo extends StatefulWidget { + const MenuDemo({super.key, required this.type}); + + final MenuDemoType type; + + @override + State createState() => _MenuDemoState(); +} + +class _MenuDemoState extends State { + void showInSnackBar(String value) { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text(value), + )); + } + + @override + Widget build(BuildContext context) { + Widget demo; + switch (widget.type) { + case MenuDemoType.contextMenu: + demo = _ContextMenuDemo(showInSnackBar: showInSnackBar); + case MenuDemoType.sectionedMenu: + demo = _SectionedMenuDemo(showInSnackBar: showInSnackBar); + case MenuDemoType.simpleMenu: + demo = _SimpleMenuDemo(showInSnackBar: showInSnackBar); + case MenuDemoType.checklistMenu: + demo = _ChecklistMenuDemo(showInSnackBar: showInSnackBar); + } + + return Scaffold( + appBar: AppBar( + title: Text(GalleryLocalizations.of(context)!.demoMenuTitle), + automaticallyImplyLeading: false, + ), + body: Padding( + padding: const EdgeInsets.symmetric(horizontal: 20), + child: Center( + child: demo, + ), + ), + ); + } +} + +// BEGIN menuDemoContext + +// Pressing the PopupMenuButton on the right of this item shows +// a simple menu with one disabled item. Typically the contents +// of this "contextual menu" would reflect the app's state. +class _ContextMenuDemo extends StatelessWidget { + const _ContextMenuDemo({required this.showInSnackBar}); + + final void Function(String value) showInSnackBar; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return ListTile( + title: Text(localizations.demoMenuAnItemWithAContextMenuButton), + trailing: PopupMenuButton( + padding: EdgeInsets.zero, + onSelected: (String value) => showInSnackBar( + localizations.demoMenuSelected(value), + ), + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: localizations.demoMenuContextMenuItemOne, + child: Text( + localizations.demoMenuContextMenuItemOne, + ), + ), + PopupMenuItem( + enabled: false, + child: Text( + localizations.demoMenuADisabledMenuItem, + ), + ), + PopupMenuItem( + value: localizations.demoMenuContextMenuItemThree, + child: Text( + localizations.demoMenuContextMenuItemThree, + ), + ), + ], + ), + ); + } +} + +// END + +// BEGIN menuDemoSectioned + +// Pressing the PopupMenuButton on the right of this item shows +// a menu whose items have text labels and icons and a divider +// That separates the first three items from the last one. +class _SectionedMenuDemo extends StatelessWidget { + const _SectionedMenuDemo({required this.showInSnackBar}); + + final void Function(String value) showInSnackBar; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return ListTile( + title: Text(localizations.demoMenuAnItemWithASectionedMenu), + trailing: PopupMenuButton( + padding: EdgeInsets.zero, + onSelected: (String value) => + showInSnackBar(localizations.demoMenuSelected(value)), + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: localizations.demoMenuPreview, + child: ListTile( + leading: const Icon(Icons.visibility), + title: Text( + localizations.demoMenuPreview, + ), + ), + ), + PopupMenuItem( + value: localizations.demoMenuShare, + child: ListTile( + leading: const Icon(Icons.person_add), + title: Text( + localizations.demoMenuShare, + ), + ), + ), + PopupMenuItem( + value: localizations.demoMenuGetLink, + child: ListTile( + leading: const Icon(Icons.link), + title: Text( + localizations.demoMenuGetLink, + ), + ), + ), + const PopupMenuDivider(), + PopupMenuItem( + value: localizations.demoMenuRemove, + child: ListTile( + leading: const Icon(Icons.delete), + title: Text( + localizations.demoMenuRemove, + ), + ), + ), + ], + ), + ); + } +} + +// END + +// BEGIN menuDemoSimple + +// This entire list item is a PopupMenuButton. Tapping anywhere shows +// a menu whose current value is highlighted and aligned over the +// list item's center line. +class _SimpleMenuDemo extends StatefulWidget { + const _SimpleMenuDemo({required this.showInSnackBar}); + + final void Function(String value) showInSnackBar; + + @override + _SimpleMenuDemoState createState() => _SimpleMenuDemoState(); +} + +class _SimpleMenuDemoState extends State<_SimpleMenuDemo> { + late SimpleValue _simpleValue; + + void showAndSetMenuSelection(BuildContext context, SimpleValue value) { + setState(() { + _simpleValue = value; + }); + widget.showInSnackBar( + GalleryLocalizations.of(context)! + .demoMenuSelected(simpleValueToString(context, value)), + ); + } + + String simpleValueToString(BuildContext context, SimpleValue value) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return { + SimpleValue.one: localizations.demoMenuItemValueOne, + SimpleValue.two: localizations.demoMenuItemValueTwo, + SimpleValue.three: localizations.demoMenuItemValueThree, + }[value]!; + } + + @override + void initState() { + super.initState(); + _simpleValue = SimpleValue.two; + } + + @override + Widget build(BuildContext context) { + return PopupMenuButton( + padding: EdgeInsets.zero, + initialValue: _simpleValue, + onSelected: (SimpleValue value) => showAndSetMenuSelection(context, value), + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: SimpleValue.one, + child: Text(simpleValueToString( + context, + SimpleValue.one, + )), + ), + PopupMenuItem( + value: SimpleValue.two, + child: Text(simpleValueToString( + context, + SimpleValue.two, + )), + ), + PopupMenuItem( + value: SimpleValue.three, + child: Text(simpleValueToString( + context, + SimpleValue.three, + )), + ), + ], + child: ListTile( + title: Text( + GalleryLocalizations.of(context)!.demoMenuAnItemWithASimpleMenu), + subtitle: Text(simpleValueToString(context, _simpleValue)), + ), + ); + } +} + +// END + +// BEGIN menuDemoChecklist + +// Pressing the PopupMenuButton on the right of this item shows a menu +// whose items have checked icons that reflect this app's state. +class _ChecklistMenuDemo extends StatefulWidget { + const _ChecklistMenuDemo({required this.showInSnackBar}); + + final void Function(String value) showInSnackBar; + + @override + _ChecklistMenuDemoState createState() => _ChecklistMenuDemoState(); +} + +class _RestorableCheckedValues extends RestorableProperty> { + Set _checked = {}; + + void check(CheckedValue value) { + _checked.add(value); + notifyListeners(); + } + + void uncheck(CheckedValue value) { + _checked.remove(value); + notifyListeners(); + } + + bool isChecked(CheckedValue value) => _checked.contains(value); + + Iterable checkedValuesToString(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return _checked.map((CheckedValue value) { + return { + CheckedValue.one: localizations.demoMenuOne, + CheckedValue.two: localizations.demoMenuTwo, + CheckedValue.three: localizations.demoMenuThree, + CheckedValue.four: localizations.demoMenuFour, + }[value]!; + }); + } + + @override + Set createDefaultValue() => _checked; + + @override + Set initWithValue(Set a) { + _checked = a; + return _checked; + } + + @override + Object toPrimitives() => _checked.map((CheckedValue value) => value.index).toList(); + + @override + Set fromPrimitives(Object? data) { + final List checkedValues = data! as List; + return Set.from(checkedValues.map((dynamic id) { + return CheckedValue.values[id as int]; + })); + } +} + +class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> + with RestorationMixin { + final _RestorableCheckedValues _checkedValues = _RestorableCheckedValues() + ..check(CheckedValue.three); + + @override + String get restorationId => 'checklist_menu_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_checkedValues, 'checked_values'); + } + + void showCheckedMenuSelections(BuildContext context, CheckedValue value) { + if (_checkedValues.isChecked(value)) { + setState(() { + _checkedValues.uncheck(value); + }); + } else { + setState(() { + _checkedValues.check(value); + }); + } + + widget.showInSnackBar( + GalleryLocalizations.of(context)!.demoMenuChecked( + _checkedValues.checkedValuesToString(context), + ), + ); + } + + String checkedValueToString(BuildContext context, CheckedValue value) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return { + CheckedValue.one: localizations.demoMenuOne, + CheckedValue.two: localizations.demoMenuTwo, + CheckedValue.three: localizations.demoMenuThree, + CheckedValue.four: localizations.demoMenuFour, + }[value]!; + } + + @override + void dispose() { + _checkedValues.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return ListTile( + title: Text( + GalleryLocalizations.of(context)!.demoMenuAnItemWithAChecklistMenu, + ), + trailing: PopupMenuButton( + padding: EdgeInsets.zero, + onSelected: (CheckedValue value) => showCheckedMenuSelections(context, value), + itemBuilder: (BuildContext context) => >[ + CheckedPopupMenuItem( + value: CheckedValue.one, + checked: _checkedValues.isChecked(CheckedValue.one), + child: Text( + checkedValueToString(context, CheckedValue.one), + ), + ), + CheckedPopupMenuItem( + value: CheckedValue.two, + enabled: false, + checked: _checkedValues.isChecked(CheckedValue.two), + child: Text( + checkedValueToString(context, CheckedValue.two), + ), + ), + CheckedPopupMenuItem( + value: CheckedValue.three, + checked: _checkedValues.isChecked(CheckedValue.three), + child: Text( + checkedValueToString(context, CheckedValue.three), + ), + ), + CheckedPopupMenuItem( + value: CheckedValue.four, + checked: _checkedValues.isChecked(CheckedValue.four), + child: Text( + checkedValueToString(context, CheckedValue.four), + ), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart new file mode 100644 index 0000000000000000000000000000000000000000..7bc7332e9115582094084cf48abca094576bd44a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN navDrawerDemo + +// Press the Navigation Drawer button to the left of AppBar to show +// a simple Drawer with two items. +class NavDrawerDemo extends StatelessWidget { + const NavDrawerDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localization = GalleryLocalizations.of(context)!; + final UserAccountsDrawerHeader drawerHeader = UserAccountsDrawerHeader( + accountName: Text( + localization.demoNavigationDrawerUserName, + ), + accountEmail: Text( + localization.demoNavigationDrawerUserEmail, + ), + currentAccountPicture: const CircleAvatar( + child: FlutterLogo(size: 42.0), + ), + ); + final ListView drawerItems = ListView( + children: [ + drawerHeader, + ListTile( + title: Text( + localization.demoNavigationDrawerToPageOne, + ), + leading: const Icon(Icons.favorite), + onTap: () { + Navigator.pop(context); + }, + ), + ListTile( + title: Text( + localization.demoNavigationDrawerToPageTwo, + ), + leading: const Icon(Icons.comment), + onTap: () { + Navigator.pop(context); + }, + ), + ], + ); + return Scaffold( + appBar: AppBar( + title: Text( + localization.demoNavigationDrawerTitle, + ), + ), + body: Semantics( + container: true, + child: Center( + child: Padding( + padding: const EdgeInsets.all(50.0), + child: Text( + localization.demoNavigationDrawerText, + ), + ), + ), + ), + drawer: Drawer( + child: drawerItems, + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..f00cfe3e4710e870cfdd2d8f267650380fb16760 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart @@ -0,0 +1,116 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN navRailDemo + +class NavRailDemo extends StatefulWidget { + const NavRailDemo({super.key}); + + @override + State createState() => _NavRailDemoState(); +} + +class _NavRailDemoState extends State with RestorationMixin { + final RestorableInt _selectedIndex = RestorableInt(0); + + @override + String get restorationId => 'nav_rail_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_selectedIndex, 'selected_index'); + } + + @override + void dispose() { + _selectedIndex.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localization = GalleryLocalizations.of(context)!; + final String destinationFirst = localization.demoNavigationRailFirst; + final String destinationSecond = localization.demoNavigationRailSecond; + final String destinationThird = localization.demoNavigationRailThird; + final List selectedItem = [ + destinationFirst, + destinationSecond, + destinationThird + ]; + return Scaffold( + appBar: AppBar( + title: Text( + localization.demoNavigationRailTitle, + ), + ), + body: Row( + children: [ + NavigationRail( + leading: FloatingActionButton( + onPressed: () {}, + tooltip: localization.buttonTextCreate, + child: const Icon(Icons.add), + ), + selectedIndex: _selectedIndex.value, + onDestinationSelected: (int index) { + setState(() { + _selectedIndex.value = index; + }); + }, + labelType: NavigationRailLabelType.selected, + destinations: [ + NavigationRailDestination( + icon: const Icon( + Icons.favorite_border, + ), + selectedIcon: const Icon( + Icons.favorite, + ), + label: Text( + destinationFirst, + ), + ), + NavigationRailDestination( + icon: const Icon( + Icons.bookmark_border, + ), + selectedIcon: const Icon( + Icons.book, + ), + label: Text( + destinationSecond, + ), + ), + NavigationRailDestination( + icon: const Icon( + Icons.star_border, + ), + selectedIcon: const Icon( + Icons.star, + ), + label: Text( + destinationThird, + ), + ), + ], + ), + const VerticalDivider(thickness: 1, width: 1), + Expanded( + child: Center( + child: Text( + selectedItem[_selectedIndex.value], + ), + ), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a9b899bde56cbb241b055f089f1dec2271c453dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart @@ -0,0 +1,219 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; + +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN pickerDemo + +class PickerDemo extends StatefulWidget { + const PickerDemo({super.key, required this.type}); + + final PickerDemoType type; + + @override + State createState() => _PickerDemoState(); +} + +class _PickerDemoState extends State with RestorationMixin { + final RestorableDateTime _fromDate = RestorableDateTime(DateTime.now()); + final RestorableTimeOfDay _fromTime = RestorableTimeOfDay( + TimeOfDay.fromDateTime(DateTime.now()), + ); + final RestorableDateTime _startDate = RestorableDateTime(DateTime.now()); + final RestorableDateTime _endDate = RestorableDateTime(DateTime.now()); + + late RestorableRouteFuture _restorableDatePickerRouteFuture; + late RestorableRouteFuture + _restorableDateRangePickerRouteFuture; + late RestorableRouteFuture _restorableTimePickerRouteFuture; + + void _selectDate(DateTime? selectedDate) { + if (selectedDate != null && selectedDate != _fromDate.value) { + setState(() { + _fromDate.value = selectedDate; + }); + } + } + + void _selectDateRange(DateTimeRange? newSelectedDate) { + if (newSelectedDate != null) { + setState(() { + _startDate.value = newSelectedDate.start; + _endDate.value = newSelectedDate.end; + }); + } + } + + void _selectTime(TimeOfDay? selectedTime) { + if (selectedTime != null && selectedTime != _fromTime.value) { + setState(() { + _fromTime.value = selectedTime; + }); + } + } + + static Route _datePickerRoute( + BuildContext context, + Object? arguments, + ) { + return DialogRoute( + context: context, + builder: (BuildContext context) { + return DatePickerDialog( + restorationId: 'date_picker_dialog', + initialDate: DateTime.fromMillisecondsSinceEpoch(arguments! as int), + firstDate: DateTime(2015), + lastDate: DateTime(2100), + ); + }, + ); + } + + static Route _timePickerRoute( + BuildContext context, + Object? arguments, + ) { + final List args = arguments! as List; + final TimeOfDay initialTime = TimeOfDay( + hour: args[0] as int, + minute: args[1] as int, + ); + + return DialogRoute( + context: context, + builder: (BuildContext context) { + return TimePickerDialog( + restorationId: 'time_picker_dialog', + initialTime: initialTime, + ); + }, + ); + } + + static Route _dateRangePickerRoute( + BuildContext context, + Object? arguments, + ) { + return DialogRoute( + context: context, + builder: (BuildContext context) { + return DateRangePickerDialog( + restorationId: 'date_rage_picker_dialog', + firstDate: DateTime(DateTime.now().year - 5), + lastDate: DateTime(DateTime.now().year + 5), + ); + }, + ); + } + + @override + void initState() { + super.initState(); + _restorableDatePickerRouteFuture = RestorableRouteFuture( + onComplete: _selectDate, + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush( + _datePickerRoute, + arguments: _fromDate.value.millisecondsSinceEpoch, + ); + }, + ); + _restorableDateRangePickerRouteFuture = + RestorableRouteFuture( + onComplete: _selectDateRange, + onPresent: (NavigatorState navigator, Object? arguments) => + navigator.restorablePush(_dateRangePickerRoute), + ); + + _restorableTimePickerRouteFuture = RestorableRouteFuture( + onComplete: _selectTime, + onPresent: (NavigatorState navigator, Object? arguments) => navigator.restorablePush( + _timePickerRoute, + arguments: [_fromTime.value.hour, _fromTime.value.minute], + ), + ); + } + + @override + String get restorationId => 'picker_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_fromDate, 'from_date'); + registerForRestoration(_fromTime, 'from_time'); + registerForRestoration(_startDate, 'start_date'); + registerForRestoration(_endDate, 'end_date'); + registerForRestoration( + _restorableDatePickerRouteFuture, + 'date_picker_route', + ); + registerForRestoration( + _restorableDateRangePickerRouteFuture, + 'date_range_picker_route', + ); + registerForRestoration( + _restorableTimePickerRouteFuture, + 'time_picker_route', + ); + } + + String get _title { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return switch (widget.type) { + PickerDemoType.date => localizations.demoDatePickerTitle, + PickerDemoType.time => localizations.demoTimePickerTitle, + PickerDemoType.range => localizations.demoDateRangePickerTitle, + }; + } + + String get _labelText { + final DateFormat yMMMd = DateFormat.yMMMd(); + return switch (widget.type) { + PickerDemoType.date => yMMMd.format(_fromDate.value), + PickerDemoType.time => _fromTime.value.format(context), + PickerDemoType.range => '${yMMMd.format(_startDate.value)} - ${yMMMd.format(_endDate.value)}', + }; + } + + @override + Widget build(BuildContext context) { + return Navigator( + onGenerateRoute: (RouteSettings settings) { + return MaterialPageRoute( + builder: (BuildContext context) => Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title), + ), + body: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(_labelText), + const SizedBox(height: 16), + ElevatedButton( + onPressed: () => switch (widget.type) { + PickerDemoType.date => _restorableDatePickerRouteFuture, + PickerDemoType.time => _restorableTimePickerRouteFuture, + PickerDemoType.range => _restorableDateRangePickerRouteFuture, + }.present(), + child: Text( + GalleryLocalizations.of(context)!.demoPickersShowPicker, + ), + ) + ], + ), + ), + ), + ); + }, + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..a38bc31633baa0bf63765f474349471763ca2c46 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +// BEGIN progressIndicatorsDemo + +class ProgressIndicatorDemo extends StatefulWidget { + const ProgressIndicatorDemo({super.key, required this.type}); + + final ProgressIndicatorDemoType type; + + @override + State createState() => _ProgressIndicatorDemoState(); +} + +class _ProgressIndicatorDemoState extends State + with SingleTickerProviderStateMixin { + late AnimationController _controller; + late Animation _animation; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 1500), + vsync: this, + animationBehavior: AnimationBehavior.preserve, + )..forward(); + + _animation = CurvedAnimation( + parent: _controller, + curve: const Interval(0.0, 0.9, curve: Curves.fastOutSlowIn), + reverseCurve: Curves.fastOutSlowIn, + )..addStatusListener((AnimationStatus status) { + if (status == AnimationStatus.dismissed) { + _controller.forward(); + } else if (status == AnimationStatus.completed) { + _controller.reverse(); + } + }); + } + + @override + void dispose() { + _controller.stop(); + super.dispose(); + } + + String get _title { + switch (widget.type) { + case ProgressIndicatorDemoType.circular: + return GalleryLocalizations.of(context)! + .demoCircularProgressIndicatorTitle; + case ProgressIndicatorDemoType.linear: + return GalleryLocalizations.of(context)! + .demoLinearProgressIndicatorTitle; + } + } + + Widget _buildIndicators(BuildContext context, Widget? child) { + switch (widget.type) { + case ProgressIndicatorDemoType.circular: + return Column( + children: [ + CircularProgressIndicator( + semanticsLabel: GalleryLocalizations.of(context)!.loading, + ), + const SizedBox(height: 32), + CircularProgressIndicator(value: _animation.value), + ], + ); + case ProgressIndicatorDemoType.linear: + return Column( + children: [ + const LinearProgressIndicator(), + const SizedBox(height: 32), + LinearProgressIndicator(value: _animation.value), + ], + ); + } + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title), + ), + body: Center( + child: SingleChildScrollView( + child: Container( + padding: const EdgeInsets.all(8), + child: AnimatedBuilder( + animation: _animation, + builder: _buildIndicators, + ), + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..72d5f347b3289a67fca9203c8f290c02bbbb3aa8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart @@ -0,0 +1,272 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class SelectionControlsDemo extends StatelessWidget { + const SelectionControlsDemo({super.key, required this.type}); + + final SelectionControlsDemoType type; + + String _title(BuildContext context) { + switch (type) { + case SelectionControlsDemoType.checkbox: + return GalleryLocalizations.of(context)! + .demoSelectionControlsCheckboxTitle; + case SelectionControlsDemoType.radio: + return GalleryLocalizations.of(context)! + .demoSelectionControlsRadioTitle; + case SelectionControlsDemoType.switches: + return GalleryLocalizations.of(context)! + .demoSelectionControlsSwitchTitle; + } + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: switch (type) { + SelectionControlsDemoType.checkbox => _CheckboxDemo(), + SelectionControlsDemoType.radio => _RadioDemo(), + SelectionControlsDemoType.switches => _SwitchDemo(), + }, + ); + } +} + +// BEGIN selectionControlsDemoCheckbox + +class _CheckboxDemo extends StatefulWidget { + @override + _CheckboxDemoState createState() => _CheckboxDemoState(); +} + +class _CheckboxDemoState extends State<_CheckboxDemo> with RestorationMixin { + RestorableBoolN checkboxValueA = RestorableBoolN(true); + RestorableBoolN checkboxValueB = RestorableBoolN(false); + RestorableBoolN checkboxValueC = RestorableBoolN(null); + + @override + String get restorationId => 'checkbox_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(checkboxValueA, 'checkbox_a'); + registerForRestoration(checkboxValueB, 'checkbox_b'); + registerForRestoration(checkboxValueC, 'checkbox_c'); + } + + @override + void dispose() { + checkboxValueA.dispose(); + checkboxValueB.dispose(); + checkboxValueC.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Checkbox( + value: checkboxValueA.value, + onChanged: (bool? value) { + setState(() { + checkboxValueA.value = value; + }); + }, + ), + Checkbox( + value: checkboxValueB.value, + onChanged: (bool? value) { + setState(() { + checkboxValueB.value = value; + }); + }, + ), + Checkbox( + value: checkboxValueC.value, + tristate: true, + onChanged: (bool? value) { + setState(() { + checkboxValueC.value = value; + }); + }, + ), + ], + ), + // Disabled checkboxes + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Checkbox( + value: checkboxValueA.value, + onChanged: null, + ), + Checkbox( + value: checkboxValueB.value, + onChanged: null, + ), + Checkbox( + value: checkboxValueC.value, + tristate: true, + onChanged: null, + ), + ], + ), + ], + ); + } +} + +// END + +// BEGIN selectionControlsDemoRadio + +class _RadioDemo extends StatefulWidget { + @override + _RadioDemoState createState() => _RadioDemoState(); +} + +class _RadioDemoState extends State<_RadioDemo> with RestorationMixin { + final RestorableInt radioValue = RestorableInt(0); + + @override + String get restorationId => 'radio_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(radioValue, 'radio_value'); + } + + void handleRadioValueChanged(int? value) { + setState(() { + radioValue.value = value!; + }); + } + + @override + void dispose() { + radioValue.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + for (int index = 0; index < 2; ++index) + Radio( + value: index, + groupValue: radioValue.value, + onChanged: handleRadioValueChanged, + ), + ], + ), + // Disabled radio buttons + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + for (int index = 0; index < 2; ++index) + Radio( + value: index, + groupValue: radioValue.value, + onChanged: null, + ), + ], + ), + ], + ); + } +} + +// END + +// BEGIN selectionControlsDemoSwitches + +class _SwitchDemo extends StatefulWidget { + @override + _SwitchDemoState createState() => _SwitchDemoState(); +} + +class _SwitchDemoState extends State<_SwitchDemo> with RestorationMixin { + RestorableBool switchValueA = RestorableBool(true); + RestorableBool switchValueB = RestorableBool(false); + + @override + String get restorationId => 'switch_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(switchValueA, 'switch_value1'); + registerForRestoration(switchValueB, 'switch_value2'); + } + + @override + void dispose() { + switchValueA.dispose(); + switchValueB.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Switch( + value: switchValueA.value, + onChanged: (bool value) { + setState(() { + switchValueA.value = value; + }); + }, + ), + Switch( + value: switchValueB.value, + onChanged: (bool value) { + setState(() { + switchValueB.value = value; + }); + }, + ), + ], + ), + // Disabled switches + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Switch( + value: switchValueA.value, + onChanged: null, + ), + Switch( + value: switchValueB.value, + onChanged: null, + ), + ], + ), + ], + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..252b3feff60dad8975001c086b2eed849af4fcca --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart @@ -0,0 +1,588 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class SlidersDemo extends StatelessWidget { + const SlidersDemo({super.key, required this.type}); + + final SlidersDemoType type; + + String _title(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + switch (type) { + case SlidersDemoType.sliders: + return localizations.demoSlidersTitle; + case SlidersDemoType.rangeSliders: + return localizations.demoRangeSlidersTitle; + case SlidersDemoType.customSliders: + return localizations.demoCustomSlidersTitle; + } + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(_title(context)), + ), + body: switch (type) { + SlidersDemoType.sliders => _Sliders(), + SlidersDemoType.rangeSliders => _RangeSliders(), + SlidersDemoType.customSliders => _CustomSliders(), + }, + ); + } +} +// BEGIN slidersDemo + +class _Sliders extends StatefulWidget { + @override + _SlidersState createState() => _SlidersState(); +} + +class _SlidersState extends State<_Sliders> with RestorationMixin { + final RestorableDouble _continuousValue = RestorableDouble(25); + final RestorableDouble _discreteValue = RestorableDouble(20); + + @override + String get restorationId => 'slider_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_continuousValue, 'continuous_value'); + registerForRestoration(_discreteValue, 'discrete_value'); + } + + @override + void dispose() { + _continuousValue.dispose(); + _discreteValue.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 40), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + Semantics( + label: localizations.demoSlidersEditableNumericalValue, + child: SizedBox( + width: 64, + height: 48, + child: TextField( + textAlign: TextAlign.center, + onSubmitted: (String value) { + final double? newValue = double.tryParse(value); + if (newValue != null && + newValue != _continuousValue.value) { + setState(() { + _continuousValue.value = + newValue.clamp(0, 100) as double; + }); + } + }, + keyboardType: TextInputType.number, + controller: TextEditingController( + text: _continuousValue.value.toStringAsFixed(0), + ), + ), + ), + ), + Slider( + value: _continuousValue.value, + max: 100, + onChanged: (double value) { + setState(() { + _continuousValue.value = value; + }); + }, + ), + // Disabled slider + Slider( + value: _continuousValue.value, + max: 100, + onChanged: null, + ), + Text(localizations + .demoSlidersContinuousWithEditableNumericalValue), + ], + ), + const SizedBox(height: 80), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + Slider( + value: _discreteValue.value, + max: 200, + divisions: 5, + label: _discreteValue.value.round().toString(), + onChanged: (double value) { + setState(() { + _discreteValue.value = value; + }); + }, + ), + // Disabled slider + Slider( + value: _discreteValue.value, + max: 200, + divisions: 5, + label: _discreteValue.value.round().toString(), + onChanged: null, + ), + Text(localizations.demoSlidersDiscrete), + ], + ), + ], + ), + ); + } +} + +// END + +// BEGIN rangeSlidersDemo + +class _RangeSliders extends StatefulWidget { + @override + _RangeSlidersState createState() => _RangeSlidersState(); +} + +class _RangeSlidersState extends State<_RangeSliders> with RestorationMixin { + final RestorableDouble _continuousStartValue = RestorableDouble(25); + final RestorableDouble _continuousEndValue = RestorableDouble(75); + final RestorableDouble _discreteStartValue = RestorableDouble(40); + final RestorableDouble _discreteEndValue = RestorableDouble(120); + + @override + String get restorationId => 'range_sliders_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_continuousStartValue, 'continuous_start_value'); + registerForRestoration(_continuousEndValue, 'continuous_end_value'); + registerForRestoration(_discreteStartValue, 'discrete_start_value'); + registerForRestoration(_discreteEndValue, 'discrete_end_value'); + } + + @override + void dispose() { + _continuousStartValue.dispose(); + _continuousEndValue.dispose(); + _discreteStartValue.dispose(); + _discreteEndValue.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final RangeValues continuousValues = RangeValues( + _continuousStartValue.value, + _continuousEndValue.value, + ); + final RangeValues discreteValues = RangeValues( + _discreteStartValue.value, + _discreteEndValue.value, + ); + + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 40), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + RangeSlider( + values: continuousValues, + max: 100, + onChanged: (RangeValues values) { + setState(() { + _continuousStartValue.value = values.start; + _continuousEndValue.value = values.end; + }); + }, + ), + // Disabled range slider + RangeSlider( + values: continuousValues, + max: 100, + onChanged: null, + ), + Text(GalleryLocalizations.of(context)!.demoSlidersContinuous), + ], + ), + const SizedBox(height: 80), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + RangeSlider( + values: discreteValues, + max: 200, + divisions: 5, + labels: RangeLabels( + discreteValues.start.round().toString(), + discreteValues.end.round().toString(), + ), + onChanged: (RangeValues values) { + setState(() { + _discreteStartValue.value = values.start; + _discreteEndValue.value = values.end; + }); + }, + ), + // Disabled range slider + RangeSlider( + values: discreteValues, + max: 200, + divisions: 5, + labels: RangeLabels( + discreteValues.start.round().toString(), + discreteValues.end.round().toString(), + ), + onChanged: null, + ), + Text(GalleryLocalizations.of(context)!.demoSlidersDiscrete), + ], + ), + ], + ), + ); + } +} + +// END + +// BEGIN customSlidersDemo + +Path _downTriangle(double size, Offset thumbCenter, {bool invert = false}) { + final Path thumbPath = Path(); + final double height = math.sqrt(3) / 2; + final double centerHeight = size * height / 3; + final double halfSize = size / 2; + final int sign = invert ? -1 : 1; + thumbPath.moveTo( + thumbCenter.dx - halfSize, thumbCenter.dy + sign * centerHeight); + thumbPath.lineTo(thumbCenter.dx, thumbCenter.dy - 2 * sign * centerHeight); + thumbPath.lineTo( + thumbCenter.dx + halfSize, thumbCenter.dy + sign * centerHeight); + thumbPath.close(); + return thumbPath; +} + +Path _rightTriangle(double size, Offset thumbCenter, {bool invert = false}) { + final Path thumbPath = Path(); + final double halfSize = size / 2; + final int sign = invert ? -1 : 1; + thumbPath.moveTo(thumbCenter.dx + halfSize * sign, thumbCenter.dy); + thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy - size); + thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy + size); + thumbPath.close(); + return thumbPath; +} + +Path _upTriangle(double size, Offset thumbCenter) => + _downTriangle(size, thumbCenter, invert: true); + +Path _leftTriangle(double size, Offset thumbCenter) => + _rightTriangle(size, thumbCenter, invert: true); + +class _CustomRangeThumbShape extends RangeSliderThumbShape { + const _CustomRangeThumbShape(); + + static const double _thumbSize = 4; + static const double _disabledThumbSize = 3; + + @override + Size getPreferredSize(bool isEnabled, bool isDiscrete) { + return isEnabled + ? const Size.fromRadius(_thumbSize) + : const Size.fromRadius(_disabledThumbSize); + } + + static final Animatable sizeTween = Tween( + begin: _disabledThumbSize, + end: _thumbSize, + ); + + @override + void paint( + PaintingContext context, + Offset center, { + required Animation activationAnimation, + required Animation enableAnimation, + bool isDiscrete = false, + bool isEnabled = false, + bool? isOnTop, + TextDirection? textDirection, + required SliderThemeData sliderTheme, + Thumb? thumb, + bool? isPressed, + }) { + final Canvas canvas = context.canvas; + final ColorTween colorTween = ColorTween( + begin: sliderTheme.disabledThumbColor, + end: sliderTheme.thumbColor, + ); + + final double size = _thumbSize * sizeTween.evaluate(enableAnimation); + canvas.drawPath( + switch ((textDirection!, thumb!)) { + (TextDirection.rtl, Thumb.start) => _rightTriangle(size, center), + (TextDirection.rtl, Thumb.end) => _leftTriangle(size, center), + (TextDirection.ltr, Thumb.start) => _leftTriangle(size, center), + (TextDirection.ltr, Thumb.end) => _rightTriangle(size, center), + }, + Paint()..color = colorTween.evaluate(enableAnimation)!, + ); + } +} + +class _CustomThumbShape extends SliderComponentShape { + const _CustomThumbShape(); + + static const double _thumbSize = 4; + static const double _disabledThumbSize = 3; + + @override + Size getPreferredSize(bool isEnabled, bool isDiscrete) { + return isEnabled + ? const Size.fromRadius(_thumbSize) + : const Size.fromRadius(_disabledThumbSize); + } + + static final Animatable sizeTween = Tween( + begin: _disabledThumbSize, + end: _thumbSize, + ); + + @override + void paint( + PaintingContext context, + Offset thumbCenter, { + Animation? activationAnimation, + required Animation enableAnimation, + bool? isDiscrete, + TextPainter? labelPainter, + RenderBox? parentBox, + required SliderThemeData sliderTheme, + TextDirection? textDirection, + double? value, + double? textScaleFactor, + Size? sizeWithOverflow, + }) { + final Canvas canvas = context.canvas; + final ColorTween colorTween = ColorTween( + begin: sliderTheme.disabledThumbColor, + end: sliderTheme.thumbColor, + ); + final double size = _thumbSize * sizeTween.evaluate(enableAnimation); + final Path thumbPath = _downTriangle(size, thumbCenter); + canvas.drawPath( + thumbPath, + Paint()..color = colorTween.evaluate(enableAnimation)!, + ); + } +} + +class _CustomValueIndicatorShape extends SliderComponentShape { + const _CustomValueIndicatorShape(); + + static const double _indicatorSize = 4; + static const double _disabledIndicatorSize = 3; + static const double _slideUpHeight = 40; + + @override + Size getPreferredSize(bool isEnabled, bool isDiscrete) { + return Size.fromRadius(isEnabled ? _indicatorSize : _disabledIndicatorSize); + } + + static final Animatable sizeTween = Tween( + begin: _disabledIndicatorSize, + end: _indicatorSize, + ); + + @override + void paint( + PaintingContext context, + Offset thumbCenter, { + required Animation activationAnimation, + required Animation enableAnimation, + bool? isDiscrete, + required TextPainter labelPainter, + RenderBox? parentBox, + required SliderThemeData sliderTheme, + TextDirection? textDirection, + double? value, + double? textScaleFactor, + Size? sizeWithOverflow, + }) { + final Canvas canvas = context.canvas; + final ColorTween enableColor = ColorTween( + begin: sliderTheme.disabledThumbColor, + end: sliderTheme.valueIndicatorColor, + ); + final Tween slideUpTween = Tween( + begin: 0, + end: _slideUpHeight, + ); + final double size = _indicatorSize * sizeTween.evaluate(enableAnimation); + final Offset slideUpOffset = + Offset(0, -slideUpTween.evaluate(activationAnimation)); + final Path thumbPath = _upTriangle(size, thumbCenter + slideUpOffset); + final Color paintColor = enableColor + .evaluate(enableAnimation)! + .withAlpha((255 * activationAnimation.value).round()); + canvas.drawPath( + thumbPath, + Paint()..color = paintColor, + ); + canvas.drawLine( + thumbCenter, + thumbCenter + slideUpOffset, + Paint() + ..color = paintColor + ..style = PaintingStyle.stroke + ..strokeWidth = 2); + labelPainter.paint( + canvas, + thumbCenter + + slideUpOffset + + Offset(-labelPainter.width / 2, -labelPainter.height - 4), + ); + } +} + +class _CustomSliders extends StatefulWidget { + @override + _CustomSlidersState createState() => _CustomSlidersState(); +} + +class _CustomSlidersState extends State<_CustomSliders> with RestorationMixin { + final RestorableDouble _continuousStartCustomValue = RestorableDouble(40); + final RestorableDouble _continuousEndCustomValue = RestorableDouble(160); + final RestorableDouble _discreteCustomValue = RestorableDouble(25); + + @override + String get restorationId => 'custom_sliders_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration( + _continuousStartCustomValue, 'continuous_start_custom_value'); + registerForRestoration( + _continuousEndCustomValue, 'continuous_end_custom_value'); + registerForRestoration(_discreteCustomValue, 'discrete_custom_value'); + } + + @override + void dispose() { + _continuousStartCustomValue.dispose(); + _continuousEndCustomValue.dispose(); + _discreteCustomValue.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final RangeValues customRangeValue = RangeValues( + _continuousStartCustomValue.value, + _continuousEndCustomValue.value, + ); + final ThemeData theme = Theme.of(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 40), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + SliderTheme( + data: theme.sliderTheme.copyWith( + trackHeight: 2, + activeTrackColor: Colors.deepPurple, + inactiveTrackColor: + theme.colorScheme.onSurface.withOpacity(0.5), + activeTickMarkColor: + theme.colorScheme.onSurface.withOpacity(0.7), + inactiveTickMarkColor: + theme.colorScheme.surface.withOpacity(0.7), + overlayColor: theme.colorScheme.onSurface.withOpacity(0.12), + thumbColor: Colors.deepPurple, + valueIndicatorColor: Colors.deepPurpleAccent, + thumbShape: const _CustomThumbShape(), + valueIndicatorShape: const _CustomValueIndicatorShape(), + valueIndicatorTextStyle: theme.textTheme.bodyLarge! + .copyWith(color: theme.colorScheme.onSurface), + ), + child: Slider( + value: _discreteCustomValue.value, + max: 200, + divisions: 5, + semanticFormatterCallback: (double value) => + value.round().toString(), + label: '${_discreteCustomValue.value.round()}', + onChanged: (double value) { + setState(() { + _discreteCustomValue.value = value; + }); + }, + ), + ), + Text(localizations.demoSlidersDiscreteSliderWithCustomTheme), + ], + ), + const SizedBox(height: 80), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + SliderTheme( + data: const SliderThemeData( + trackHeight: 2, + activeTrackColor: Colors.deepPurple, + inactiveTrackColor: Colors.black26, + activeTickMarkColor: Colors.white70, + inactiveTickMarkColor: Colors.black, + overlayColor: Colors.black12, + thumbColor: Colors.deepPurple, + rangeThumbShape: _CustomRangeThumbShape(), + showValueIndicator: ShowValueIndicator.never, + ), + child: RangeSlider( + values: customRangeValue, + max: 200, + onChanged: (RangeValues values) { + setState(() { + _continuousStartCustomValue.value = values.start; + _continuousEndCustomValue.value = values.end; + }); + }, + ), + ), + Text(localizations + .demoSlidersContinuousRangeSliderWithCustomTheme), + ], + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..2343e955ec9e1d21a693280f3b9f98e966bcba5d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN snackbarsDemo + +class SnackbarsDemo extends StatelessWidget { + const SnackbarsDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoSnackbarsTitle), + ), + body: Center( + child: ElevatedButton( + onPressed: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text(localizations.demoSnackbarsText), + action: SnackBarAction( + label: localizations.demoSnackbarsActionButtonLabel, + onPressed: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text( + localizations.demoSnackbarsAction, + ))); + }, + ), + )); + }, + child: Text(localizations.demoSnackbarsButtonLabel), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..de79cea0b8ac5a65e3e4c8922c3bfe1a13ef6817 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart @@ -0,0 +1,193 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; +import 'material_demo_types.dart'; + +class TabsDemo extends StatelessWidget { + const TabsDemo({super.key, required this.type}); + + final TabsDemoType type; + + @override + Widget build(BuildContext context) { + return switch (type) { + TabsDemoType.scrollable => _TabsScrollableDemo(), + TabsDemoType.nonScrollable => _TabsNonScrollableDemo(), + }; + } +} + +// BEGIN tabsScrollableDemo + +class _TabsScrollableDemo extends StatefulWidget { + @override + __TabsScrollableDemoState createState() => __TabsScrollableDemoState(); +} + +class __TabsScrollableDemoState extends State<_TabsScrollableDemo> + with SingleTickerProviderStateMixin, RestorationMixin { + TabController? _tabController; + + final RestorableInt tabIndex = RestorableInt(0); + + @override + String get restorationId => 'tab_scrollable_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(tabIndex, 'tab_index'); + _tabController!.index = tabIndex.value; + } + + @override + void initState() { + _tabController = TabController( + length: 12, + vsync: this, + ); + _tabController!.addListener(() { + // When the tab controller's value is updated, make sure to update the + // tab index value, which is state restorable. + setState(() { + tabIndex.value = _tabController!.index; + }); + }); + super.initState(); + } + + @override + void dispose() { + _tabController!.dispose(); + tabIndex.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final List tabs = [ + localizations.colorsRed, + localizations.colorsOrange, + localizations.colorsGreen, + localizations.colorsBlue, + localizations.colorsIndigo, + localizations.colorsPurple, + localizations.colorsRed, + localizations.colorsOrange, + localizations.colorsGreen, + localizations.colorsBlue, + localizations.colorsIndigo, + localizations.colorsPurple, + ]; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoTabsScrollingTitle), + bottom: TabBar( + controller: _tabController, + isScrollable: true, + tabs: [ + for (final String tab in tabs) Tab(text: tab), + ], + ), + ), + body: TabBarView( + controller: _tabController, + children: [ + for (final String tab in tabs) + Center( + child: Text(tab), + ), + ], + ), + ); + } +} + +// END + +// BEGIN tabsNonScrollableDemo + +class _TabsNonScrollableDemo extends StatefulWidget { + @override + __TabsNonScrollableDemoState createState() => __TabsNonScrollableDemoState(); +} + +class __TabsNonScrollableDemoState extends State<_TabsNonScrollableDemo> + with SingleTickerProviderStateMixin, RestorationMixin { + late TabController _tabController; + + final RestorableInt tabIndex = RestorableInt(0); + + @override + String get restorationId => 'tab_non_scrollable_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(tabIndex, 'tab_index'); + _tabController.index = tabIndex.value; + } + + @override + void initState() { + super.initState(); + _tabController = TabController( + length: 3, + vsync: this, + ); + _tabController.addListener(() { + // When the tab controller's value is updated, make sure to update the + // tab index value, which is state restorable. + setState(() { + tabIndex.value = _tabController.index; + }); + }); + } + + @override + void dispose() { + _tabController.dispose(); + tabIndex.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final List tabs = [ + localizations.colorsRed, + localizations.colorsOrange, + localizations.colorsGreen, + ]; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text( + localizations.demoTabsNonScrollingTitle, + ), + bottom: TabBar( + controller: _tabController, + tabs: [ + for (final String tab in tabs) Tab(text: tab), + ], + ), + ), + body: TabBarView( + controller: _tabController, + children: [ + for (final String tab in tabs) + Center( + child: Text(tab), + ), + ], + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..94b8634c78afb3f51eba7cf981ba3947805c3cdd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart @@ -0,0 +1,422 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN textFieldDemo + +class TextFieldDemo extends StatelessWidget { + const TextFieldDemo({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(GalleryLocalizations.of(context)!.demoTextFieldTitle), + ), + body: const TextFormFieldDemo(), + ); + } +} + +class TextFormFieldDemo extends StatefulWidget { + const TextFormFieldDemo({super.key}); + + @override + TextFormFieldDemoState createState() => TextFormFieldDemoState(); +} + +class PersonData { + String? name = ''; + String? phoneNumber = ''; + String? email = ''; + String password = ''; +} + +class PasswordField extends StatefulWidget { + const PasswordField({ + super.key, + this.restorationId, + this.fieldKey, + this.hintText, + this.labelText, + this.helperText, + this.onSaved, + this.validator, + this.onFieldSubmitted, + this.focusNode, + this.textInputAction, + }); + + final String? restorationId; + final Key? fieldKey; + final String? hintText; + final String? labelText; + final String? helperText; + final FormFieldSetter? onSaved; + final FormFieldValidator? validator; + final ValueChanged? onFieldSubmitted; + final FocusNode? focusNode; + final TextInputAction? textInputAction; + + @override + State createState() => _PasswordFieldState(); +} + +class _PasswordFieldState extends State with RestorationMixin { + final RestorableBool _obscureText = RestorableBool(true); + + @override + String? get restorationId => widget.restorationId; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_obscureText, 'obscure_text'); + } + + @override + Widget build(BuildContext context) { + return TextFormField( + key: widget.fieldKey, + restorationId: 'password_text_field', + obscureText: _obscureText.value, + maxLength: 8, + onSaved: widget.onSaved, + validator: widget.validator, + onFieldSubmitted: widget.onFieldSubmitted, + decoration: InputDecoration( + filled: true, + hintText: widget.hintText, + labelText: widget.labelText, + helperText: widget.helperText, + suffixIcon: IconButton( + onPressed: () { + setState(() { + _obscureText.value = !_obscureText.value; + }); + }, + hoverColor: Colors.transparent, + icon: Icon( + _obscureText.value ? Icons.visibility : Icons.visibility_off, + semanticLabel: _obscureText.value + ? GalleryLocalizations.of(context)! + .demoTextFieldShowPasswordLabel + : GalleryLocalizations.of(context)! + .demoTextFieldHidePasswordLabel, + ), + ), + ), + ); + } +} + +class TextFormFieldDemoState extends State + with RestorationMixin { + PersonData person = PersonData(); + + late FocusNode _phoneNumber, _email, _lifeStory, _password, _retypePassword; + + @override + void initState() { + super.initState(); + _phoneNumber = FocusNode(); + _email = FocusNode(); + _lifeStory = FocusNode(); + _password = FocusNode(); + _retypePassword = FocusNode(); + } + + @override + void dispose() { + _phoneNumber.dispose(); + _email.dispose(); + _lifeStory.dispose(); + _password.dispose(); + _retypePassword.dispose(); + super.dispose(); + } + + void showInSnackBar(String value) { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text(value), + )); + } + + @override + String get restorationId => 'text_field_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_autoValidateModeIndex, 'autovalidate_mode'); + } + + final RestorableInt _autoValidateModeIndex = + RestorableInt(AutovalidateMode.disabled.index); + + final GlobalKey _formKey = GlobalKey(); + final GlobalKey> _passwordFieldKey = + GlobalKey>(); + final _UsNumberTextInputFormatter _phoneNumberFormatter = + _UsNumberTextInputFormatter(); + + void _handleSubmitted() { + final FormState form = _formKey.currentState!; + if (!form.validate()) { + _autoValidateModeIndex.value = + AutovalidateMode.always.index; // Start validating on every change. + showInSnackBar( + GalleryLocalizations.of(context)!.demoTextFieldFormErrors, + ); + } else { + form.save(); + showInSnackBar(GalleryLocalizations.of(context)! + .demoTextFieldNameHasPhoneNumber(person.name!, person.phoneNumber!)); + } + } + + String? _validateName(String? value) { + if (value == null || value.isEmpty) { + return GalleryLocalizations.of(context)!.demoTextFieldNameRequired; + } + final RegExp nameExp = RegExp(r'^[A-Za-z ]+$'); + if (!nameExp.hasMatch(value)) { + return GalleryLocalizations.of(context)! + .demoTextFieldOnlyAlphabeticalChars; + } + return null; + } + + String? _validatePhoneNumber(String? value) { + final RegExp phoneExp = RegExp(r'^\(\d\d\d\) \d\d\d\-\d\d\d\d$'); + if (!phoneExp.hasMatch(value!)) { + return GalleryLocalizations.of(context)!.demoTextFieldEnterUSPhoneNumber; + } + return null; + } + + String? _validatePassword(String? value) { + final FormFieldState passwordField = _passwordFieldKey.currentState!; + if (passwordField.value == null || passwordField.value!.isEmpty) { + return GalleryLocalizations.of(context)!.demoTextFieldEnterPassword; + } + if (passwordField.value != value) { + return GalleryLocalizations.of(context)!.demoTextFieldPasswordsDoNotMatch; + } + return null; + } + + @override + Widget build(BuildContext context) { + const SizedBox sizedBoxSpace = SizedBox(height: 24); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Form( + key: _formKey, + autovalidateMode: AutovalidateMode.values[_autoValidateModeIndex.value], + child: Scrollbar( + child: SingleChildScrollView( + restorationId: 'text_field_demo_scroll_view', + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Column( + children: [ + sizedBoxSpace, + TextFormField( + restorationId: 'name_field', + textInputAction: TextInputAction.next, + textCapitalization: TextCapitalization.words, + decoration: InputDecoration( + filled: true, + icon: const Icon(Icons.person), + hintText: localizations.demoTextFieldWhatDoPeopleCallYou, + labelText: localizations.demoTextFieldNameField, + ), + onSaved: (String? value) { + person.name = value; + _phoneNumber.requestFocus(); + }, + validator: _validateName, + ), + sizedBoxSpace, + TextFormField( + restorationId: 'phone_number_field', + textInputAction: TextInputAction.next, + focusNode: _phoneNumber, + decoration: InputDecoration( + filled: true, + icon: const Icon(Icons.phone), + hintText: localizations.demoTextFieldWhereCanWeReachYou, + labelText: localizations.demoTextFieldPhoneNumber, + prefixText: '+1 ', + ), + keyboardType: TextInputType.phone, + onSaved: (String? value) { + person.phoneNumber = value; + _email.requestFocus(); + }, + maxLength: 14, + maxLengthEnforcement: MaxLengthEnforcement.none, + validator: _validatePhoneNumber, + // TextInputFormatters are applied in sequence. + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + // Fit the validating format. + _phoneNumberFormatter, + ], + ), + sizedBoxSpace, + TextFormField( + restorationId: 'email_field', + textInputAction: TextInputAction.next, + focusNode: _email, + decoration: InputDecoration( + filled: true, + icon: const Icon(Icons.email), + hintText: localizations.demoTextFieldYourEmailAddress, + labelText: localizations.demoTextFieldEmail, + ), + keyboardType: TextInputType.emailAddress, + onSaved: (String? value) { + person.email = value; + _lifeStory.requestFocus(); + }, + ), + sizedBoxSpace, + // Disabled text field + TextFormField( + enabled: false, + restorationId: 'disabled_email_field', + textInputAction: TextInputAction.next, + decoration: InputDecoration( + filled: true, + icon: const Icon(Icons.email), + hintText: localizations.demoTextFieldYourEmailAddress, + labelText: localizations.demoTextFieldEmail, + ), + keyboardType: TextInputType.emailAddress, + ), + sizedBoxSpace, + TextFormField( + restorationId: 'life_story_field', + focusNode: _lifeStory, + decoration: InputDecoration( + border: const OutlineInputBorder(), + hintText: localizations.demoTextFieldTellUsAboutYourself, + helperText: localizations.demoTextFieldKeepItShort, + labelText: localizations.demoTextFieldLifeStory, + ), + maxLines: 3, + ), + sizedBoxSpace, + TextFormField( + restorationId: 'salary_field', + textInputAction: TextInputAction.next, + keyboardType: TextInputType.number, + decoration: InputDecoration( + border: const OutlineInputBorder(), + labelText: localizations.demoTextFieldSalary, + suffixText: localizations.demoTextFieldUSD, + ), + ), + sizedBoxSpace, + PasswordField( + restorationId: 'password_field', + textInputAction: TextInputAction.next, + focusNode: _password, + fieldKey: _passwordFieldKey, + helperText: localizations.demoTextFieldNoMoreThan, + labelText: localizations.demoTextFieldPassword, + onFieldSubmitted: (String value) { + setState(() { + person.password = value; + _retypePassword.requestFocus(); + }); + }, + ), + sizedBoxSpace, + TextFormField( + restorationId: 'retype_password_field', + focusNode: _retypePassword, + decoration: InputDecoration( + filled: true, + labelText: localizations.demoTextFieldRetypePassword, + ), + maxLength: 8, + obscureText: true, + validator: _validatePassword, + onFieldSubmitted: (String value) { + _handleSubmitted(); + }, + ), + sizedBoxSpace, + Center( + child: ElevatedButton( + onPressed: _handleSubmitted, + child: Text(localizations.demoTextFieldSubmit), + ), + ), + sizedBoxSpace, + Text( + localizations.demoTextFieldRequiredField, + style: Theme.of(context).textTheme.bodySmall, + ), + sizedBoxSpace, + ], + ), + ), + ), + ); + } +} + +/// Format incoming numeric text to fit the format of (###) ###-#### ## +class _UsNumberTextInputFormatter extends TextInputFormatter { + @override + TextEditingValue formatEditUpdate( + TextEditingValue oldValue, + TextEditingValue newValue, + ) { + final int newTextLength = newValue.text.length; + final StringBuffer newText = StringBuffer(); + int selectionIndex = newValue.selection.end; + int usedSubstringIndex = 0; + if (newTextLength >= 1) { + newText.write('('); + if (newValue.selection.end >= 1) { + selectionIndex++; + } + } + if (newTextLength >= 4) { + newText.write('${newValue.text.substring(0, usedSubstringIndex = 3)}) '); + if (newValue.selection.end >= 3) { + selectionIndex += 2; + } + } + if (newTextLength >= 7) { + newText.write('${newValue.text.substring(3, usedSubstringIndex = 6)}-'); + if (newValue.selection.end >= 6) { + selectionIndex++; + } + } + if (newTextLength >= 11) { + newText.write('${newValue.text.substring(6, usedSubstringIndex = 10)} '); + if (newValue.selection.end >= 10) { + selectionIndex++; + } + } + // Dump the rest. + if (newTextLength >= usedSubstringIndex) { + newText.write(newValue.text.substring(usedSubstringIndex)); + } + return TextEditingValue( + text: newText.toString(), + selection: TextSelection.collapsed(offset: selectionIndex), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..de13632518096e6350a855489cc8cb2e88a5a287 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN tooltipDemo + +class TooltipDemo extends StatelessWidget { + const TooltipDemo({super.key}); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(localizations.demoTooltipTitle), + ), + body: Center( + child: Padding( + padding: const EdgeInsets.all(8), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + localizations.demoTooltipInstructions, + textAlign: TextAlign.center, + ), + const SizedBox(height: 16), + Tooltip( + message: localizations.starterAppTooltipSearch, + child: IconButton( + color: Theme.of(context).colorScheme.primary, + onPressed: () {}, + icon: const Icon(Icons.search), + ), + ), + ], + ), + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..af5daf40369a057ad1daaac683318bd1c7c9016d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart @@ -0,0 +1,260 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; + +// BEGIN colorsDemo + +const double kColorItemHeight = 48; + +class _Palette { + _Palette({ + required this.name, + required this.primary, + this.accent, + this.threshold = 900, + }); + + final String name; + final MaterialColor primary; + final MaterialAccentColor? accent; + + // Titles for indices > threshold are white, otherwise black. + final int threshold; +} + +List<_Palette> _allPalettes(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return <_Palette>[ + _Palette( + name: localizations.colorsRed, + primary: Colors.red, + accent: Colors.redAccent, + threshold: 300, + ), + _Palette( + name: localizations.colorsPink, + primary: Colors.pink, + accent: Colors.pinkAccent, + threshold: 200, + ), + _Palette( + name: localizations.colorsPurple, + primary: Colors.purple, + accent: Colors.purpleAccent, + threshold: 200, + ), + _Palette( + name: localizations.colorsDeepPurple, + primary: Colors.deepPurple, + accent: Colors.deepPurpleAccent, + threshold: 200, + ), + _Palette( + name: localizations.colorsIndigo, + primary: Colors.indigo, + accent: Colors.indigoAccent, + threshold: 200, + ), + _Palette( + name: localizations.colorsBlue, + primary: Colors.blue, + accent: Colors.blueAccent, + threshold: 400, + ), + _Palette( + name: localizations.colorsLightBlue, + primary: Colors.lightBlue, + accent: Colors.lightBlueAccent, + threshold: 500, + ), + _Palette( + name: localizations.colorsCyan, + primary: Colors.cyan, + accent: Colors.cyanAccent, + threshold: 600, + ), + _Palette( + name: localizations.colorsTeal, + primary: Colors.teal, + accent: Colors.tealAccent, + threshold: 400, + ), + _Palette( + name: localizations.colorsGreen, + primary: Colors.green, + accent: Colors.greenAccent, + threshold: 500, + ), + _Palette( + name: localizations.colorsLightGreen, + primary: Colors.lightGreen, + accent: Colors.lightGreenAccent, + threshold: 600, + ), + _Palette( + name: localizations.colorsLime, + primary: Colors.lime, + accent: Colors.limeAccent, + threshold: 800, + ), + _Palette( + name: localizations.colorsYellow, + primary: Colors.yellow, + accent: Colors.yellowAccent, + ), + _Palette( + name: localizations.colorsAmber, + primary: Colors.amber, + accent: Colors.amberAccent, + ), + _Palette( + name: localizations.colorsOrange, + primary: Colors.orange, + accent: Colors.orangeAccent, + threshold: 700, + ), + _Palette( + name: localizations.colorsDeepOrange, + primary: Colors.deepOrange, + accent: Colors.deepOrangeAccent, + threshold: 400, + ), + _Palette( + name: localizations.colorsBrown, + primary: Colors.brown, + threshold: 200, + ), + _Palette( + name: localizations.colorsGrey, + primary: Colors.grey, + threshold: 500, + ), + _Palette( + name: localizations.colorsBlueGrey, + primary: Colors.blueGrey, + threshold: 500, + ), + ]; +} + +class _ColorItem extends StatelessWidget { + const _ColorItem({ + required this.index, + required this.color, + this.prefix = '', + }); + + final int index; + final Color color; + final String prefix; + + String get _colorString => + "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}"; + + @override + Widget build(BuildContext context) { + return Semantics( + container: true, + child: Container( + height: kColorItemHeight, + padding: const EdgeInsets.symmetric(horizontal: 16), + color: color, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('$prefix$index'), + Flexible(child: Text(_colorString)), + ], + ), + ), + ); + } +} + +class _PaletteTabView extends StatelessWidget { + const _PaletteTabView({required this.colors}); + + final _Palette colors; + static const List primaryKeys = [ + 50, + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900 + ]; + static const List accentKeys = [100, 200, 400, 700]; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final TextStyle whiteTextStyle = textTheme.bodyMedium!.copyWith( + color: Colors.white, + ); + final TextStyle blackTextStyle = textTheme.bodyMedium!.copyWith( + color: Colors.black, + ); + return Scrollbar( + child: ListView( + itemExtent: kColorItemHeight, + children: [ + for (final int key in primaryKeys) + DefaultTextStyle( + style: key > colors.threshold ? whiteTextStyle : blackTextStyle, + child: _ColorItem(index: key, color: colors.primary[key]!), + ), + if (colors.accent != null) + for (final int key in accentKeys) + DefaultTextStyle( + style: key > colors.threshold ? whiteTextStyle : blackTextStyle, + child: _ColorItem( + index: key, + color: colors.accent![key]!, + prefix: 'A', + ), + ), + ], + ), + ); + } +} + +class ColorsDemo extends StatelessWidget { + const ColorsDemo({super.key}); + + @override + Widget build(BuildContext context) { + final List<_Palette> palettes = _allPalettes(context); + return DefaultTabController( + length: palettes.length, + child: Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(GalleryLocalizations.of(context)!.demoColorsTitle), + bottom: TabBar( + isScrollable: true, + tabs: [ + for (final _Palette palette in palettes) Tab(text: palette.name), + ], + labelColor: Theme.of(context).colorScheme.onPrimary, + ), + ), + body: TabBarView( + children: [ + for (final _Palette palette in palettes) _PaletteTabView(colors: palette), + ], + ), + ), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..161546a6ce06e9fde7d7ce6461b64202002b578d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart @@ -0,0 +1,590 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN openContainerTransformDemo + +const String _loremIpsumParagraph = + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' + 'tempor incididunt ut labore et dolore magna aliqua. Vulputate dignissim ' + 'suspendisse in est. Ut ornare lectus sit amet. Eget nunc lobortis mattis ' + 'aliquam faucibus purus in. Hendrerit gravida rutrum quisque non tellus ' + 'orci ac auctor. Mattis aliquam faucibus purus in massa. Tellus rutrum ' + 'tellus pellentesque eu tincidunt tortor. Nunc eget lorem dolor sed. Nulla ' + 'at volutpat diam ut venenatis tellus in metus. Tellus cras adipiscing enim ' + 'eu turpis. Pretium fusce id velit ut tortor. Adipiscing enim eu turpis ' + 'egestas pretium. Quis varius quam quisque id. Blandit aliquam etiam erat ' + 'velit scelerisque. In nisl nisi scelerisque eu. Semper risus in hendrerit ' + 'gravida rutrum quisque. Suspendisse in est ante in nibh mauris cursus ' + 'mattis molestie. Adipiscing elit duis tristique sollicitudin nibh sit ' + 'amet commodo nulla. Pretium viverra suspendisse potenti nullam ac tortor ' + 'vitae.\n' + '\n' + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' + 'tempor incididunt ut labore et dolore magna aliqua. Vulputate dignissim ' + 'suspendisse in est. Ut ornare lectus sit amet. Eget nunc lobortis mattis ' + 'aliquam faucibus purus in. Hendrerit gravida rutrum quisque non tellus ' + 'orci ac auctor. Mattis aliquam faucibus purus in massa. Tellus rutrum ' + 'tellus pellentesque eu tincidunt tortor. Nunc eget lorem dolor sed. Nulla ' + 'at volutpat diam ut venenatis tellus in metus. Tellus cras adipiscing enim ' + 'eu turpis. Pretium fusce id velit ut tortor. Adipiscing enim eu turpis ' + 'egestas pretium. Quis varius quam quisque id. Blandit aliquam etiam erat ' + 'velit scelerisque. In nisl nisi scelerisque eu. Semper risus in hendrerit ' + 'gravida rutrum quisque. Suspendisse in est ante in nibh mauris cursus ' + 'mattis molestie. Adipiscing elit duis tristique sollicitudin nibh sit ' + 'amet commodo nulla. Pretium viverra suspendisse potenti nullam ac tortor ' + 'vitae'; + +const double _fabDimension = 56; + +class OpenContainerTransformDemo extends StatefulWidget { + const OpenContainerTransformDemo({super.key}); + + @override + State createState() => + _OpenContainerTransformDemoState(); +} + +class _OpenContainerTransformDemoState + extends State { + final GlobalKey _scaffoldKey = GlobalKey(); + ContainerTransitionType _transitionType = ContainerTransitionType.fade; + + void _showSettingsBottomModalSheet(BuildContext context) { + final GalleryLocalizations? localizations = GalleryLocalizations.of(context); + + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return StatefulBuilder( + builder: (BuildContext context, void Function(void Function()) setModalState) { + return Container( + height: 125, + padding: const EdgeInsets.all(15), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + localizations!.demoContainerTransformModalBottomSheetTitle, + style: Theme.of(context).textTheme.bodySmall, + ), + const SizedBox( + height: 12, + ), + ToggleButtons( + borderRadius: BorderRadius.circular(2), + selectedBorderColor: Theme.of(context).colorScheme.primary, + onPressed: (int index) { + setModalState(() { + setState(() { + _transitionType = index == 0 + ? ContainerTransitionType.fade + : ContainerTransitionType.fadeThrough; + }); + }); + }, + isSelected: [ + _transitionType == ContainerTransitionType.fade, + _transitionType == ContainerTransitionType.fadeThrough, + ], + children: [ + Text( + localizations.demoContainerTransformTypeFade, + ), + Padding( + padding: const EdgeInsets.symmetric( + horizontal: 10, + ), + child: Text( + localizations.demoContainerTransformTypeFadeThrough, + ), + ), + ], + ), + ], + ), + ); + }, + ); + }, + ); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations? localizations = GalleryLocalizations.of(context); + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return Navigator( + // Adding [ValueKey] to make sure that the widget gets rebuilt when + // changing type. + key: ValueKey(_transitionType), + onGenerateRoute: (RouteSettings settings) { + return MaterialPageRoute( + builder: (BuildContext context) => Scaffold( + key: _scaffoldKey, + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text( + localizations!.demoContainerTransformTitle, + ), + Text( + '(${localizations.demoContainerTransformDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + actions: [ + IconButton( + icon: const Icon( + Icons.settings, + ), + onPressed: () { + _showSettingsBottomModalSheet(context); + }, + ), + ], + ), + body: ListView( + padding: const EdgeInsets.all(8), + children: [ + _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _DetailsCard(openContainer: openContainer); + }, + ), + const SizedBox(height: 16), + _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _DetailsListTile(openContainer: openContainer); + }, + ), + const SizedBox( + height: 16, + ), + Row( + children: [ + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: + localizations.demoMotionPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox( + width: 8, + ), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: + localizations.demoMotionPlaceholderSubtitle, + ); + }, + ), + ), + ], + ), + const SizedBox( + height: 16, + ), + Row( + children: [ + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations + .demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox( + width: 8, + ), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations + .demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox( + width: 8, + ), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations + .demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + ], + ), + const SizedBox( + height: 16, + ), + ...List>.generate(10, (int index) { + return OpenContainer( + transitionType: _transitionType, + openBuilder: (BuildContext context, void Function() openContainer) => + const _DetailsPage(), + tappable: false, + closedShape: const RoundedRectangleBorder(), + closedElevation: 0, + closedBuilder: (BuildContext context, void Function() openContainer) { + return ListTile( + leading: Image.asset( + 'placeholders/avatar_logo.png', + package: 'flutter_gallery_assets', + width: 40, + ), + onTap: openContainer, + title: Text( + '${localizations.demoMotionListTileTitle} ${index + 1}', + ), + subtitle: Text( + localizations.demoMotionPlaceholderSubtitle, + ), + ); + }, + ); + }), + ], + ), + floatingActionButton: OpenContainer( + transitionType: _transitionType, + openBuilder: (BuildContext context, void Function() openContainer) => const _DetailsPage(), + closedElevation: 6, + closedShape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all( + Radius.circular(_fabDimension / 2), + ), + ), + closedColor: colorScheme.secondary, + closedBuilder: (BuildContext context, void Function() openContainer) { + return SizedBox( + height: _fabDimension, + width: _fabDimension, + child: Center( + child: Icon( + Icons.add, + color: colorScheme.onSecondary, + ), + ), + ); + }, + ), + ), + ); + }, + ); + } +} + +class _OpenContainerWrapper extends StatelessWidget { + const _OpenContainerWrapper({ + required this.closedBuilder, + required this.transitionType, + }); + + final CloseContainerBuilder closedBuilder; + final ContainerTransitionType transitionType; + + @override + Widget build(BuildContext context) { + return OpenContainer( + transitionType: transitionType, + openBuilder: (BuildContext context, void Function() openContainer) => const _DetailsPage(), + tappable: false, + closedBuilder: closedBuilder, + ); + } +} + +class _DetailsCard extends StatelessWidget { + const _DetailsCard({required this.openContainer}); + + final VoidCallback openContainer; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return _InkWellOverlay( + openContainer: openContainer, + height: 300, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Expanded( + child: ColoredBox( + color: Colors.black38, + child: Center( + child: Image.asset( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + width: 100, + ), + ), + ), + ), + ListTile( + title: Text( + localizations.demoMotionPlaceholderTitle, + ), + subtitle: Text( + localizations.demoMotionPlaceholderSubtitle, + ), + ), + Padding( + padding: const EdgeInsets.only( + left: 16, + right: 16, + bottom: 16, + ), + child: Text( + 'Lorem ipsum dolor sit amet, consectetur ' + 'adipiscing elit, sed do eiusmod tempor.', + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + color: Colors.black54, + inherit: false, + ), + ), + ), + ], + ), + ); + } +} + +class _SmallDetailsCard extends StatelessWidget { + const _SmallDetailsCard({ + required this.openContainer, + required this.subtitle, + }); + + final VoidCallback openContainer; + final String subtitle; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return _InkWellOverlay( + openContainer: openContainer, + height: 225, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Container( + color: Colors.black38, + height: 150, + child: Center( + child: Image.asset( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + width: 80, + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(10), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + GalleryLocalizations.of(context)! + .demoMotionPlaceholderTitle, + style: textTheme.titleLarge, + ), + const SizedBox( + height: 4, + ), + Text( + subtitle, + style: textTheme.bodySmall, + ), + ], + ), + ), + ), + ], + ), + ); + } +} + +class _DetailsListTile extends StatelessWidget { + const _DetailsListTile({required this.openContainer}); + + final VoidCallback openContainer; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + const double height = 120.0; + + return _InkWellOverlay( + openContainer: openContainer, + height: height, + child: Row( + children: [ + Container( + color: Colors.black38, + height: height, + width: height, + child: Center( + child: Image.asset( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + width: 60, + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + GalleryLocalizations.of(context)! + .demoMotionPlaceholderTitle, + style: textTheme.titleMedium, + ), + const SizedBox( + height: 8, + ), + Text( + 'Lorem ipsum dolor sit amet, consectetur ' + 'adipiscing elit,', + style: textTheme.bodySmall, + ), + ], + ), + ), + ), + ], + ), + ); + } +} + +class _InkWellOverlay extends StatelessWidget { + const _InkWellOverlay({ + required this.openContainer, + required this.height, + required this.child, + }); + + final VoidCallback openContainer; + final double height; + final Widget child; + + @override + Widget build(BuildContext context) { + return SizedBox( + height: height, + child: InkWell( + onTap: openContainer, + child: child, + ), + ); + } +} + +class _DetailsPage extends StatelessWidget { + const _DetailsPage(); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final TextTheme textTheme = Theme.of(context).textTheme; + + return Scaffold( + appBar: AppBar( + title: Text( + localizations.demoMotionDetailsPageTitle, + ), + ), + body: ListView( + children: [ + Container( + color: Colors.black38, + height: 250, + child: Padding( + padding: const EdgeInsets.all(70), + child: Image.asset( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + ), + ), + ), + Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + localizations.demoMotionPlaceholderTitle, + style: textTheme.headlineSmall!.copyWith( + color: Colors.black54, + fontSize: 30, + ), + ), + const SizedBox( + height: 10, + ), + Text( + _loremIpsumParagraph, + style: textTheme.bodyMedium!.copyWith( + color: Colors.black54, + height: 1.5, + fontSize: 16, + ), + ), + ], + ), + ), + ], + ), + ); + } +} + +// END openContainerTransformDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..7f3c6cbd7a6a25f5cf748306f5702cc8a50e5e70 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart @@ -0,0 +1,166 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN fadeScaleTransitionDemo + +class FadeScaleTransitionDemo extends StatefulWidget { + const FadeScaleTransitionDemo({super.key}); + + @override + State createState() => + _FadeScaleTransitionDemoState(); +} + +class _FadeScaleTransitionDemoState extends State + with SingleTickerProviderStateMixin { + late AnimationController _controller; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + value: 0, + duration: const Duration(milliseconds: 150), + reverseDuration: const Duration(milliseconds: 75), + vsync: this, + )..addStatusListener((AnimationStatus status) { + setState(() { + // setState needs to be called to trigger a rebuild because + // the 'HIDE FAB'/'SHOW FAB' button needs to be updated based + // the latest value of [_controller.status]. + }); + }); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + bool get _isAnimationRunningForwardsOrComplete { + switch (_controller.status) { + case AnimationStatus.forward: + case AnimationStatus.completed: + return true; + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + return false; + } + } + + Widget _showExampleAlertDialog() { + return Theme( + data: Theme.of(context), + child: _ExampleAlertDialog(), + ); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations.demoFadeScaleTitle), + Text( + '(${localizations.demoFadeScaleDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + ), + floatingActionButton: AnimatedBuilder( + animation: _controller, + builder: (BuildContext context, Widget? child) { + return FadeScaleTransition( + animation: _controller, + child: child, + ); + }, + child: Visibility( + visible: !_controller.isDismissed, + child: FloatingActionButton( + onPressed: () {}, + child: const Icon(Icons.add), + ), + ), + ), + bottomNavigationBar: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Divider(height: 0), + Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: () { + showModal( + context: context, + builder: (BuildContext context) => _showExampleAlertDialog()); + }, + child: Text(localizations.demoFadeScaleShowAlertDialogButton), + ), + const SizedBox(width: 10), + ElevatedButton( + onPressed: () { + if (_isAnimationRunningForwardsOrComplete) { + _controller.reverse(); + } else { + _controller.forward(); + } + }, + child: Text( + _isAnimationRunningForwardsOrComplete + ? localizations.demoFadeScaleHideFabButton + : localizations.demoFadeScaleShowFabButton, + ), + ), + ], + ), + ), + ], + ), + ); + } +} + +class _ExampleAlertDialog extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return AlertDialog( + content: Text(localizations.demoFadeScaleAlertDialogHeader), + actions: [ + TextButton( + onPressed: () { + Navigator.of(context).pop(); + }, + child: Text(localizations.demoFadeScaleAlertDialogCancelButton), + ), + TextButton( + onPressed: () { + Navigator.of(context).pop(); + }, + child: Text(localizations.demoFadeScaleAlertDialogDiscardButton), + ), + ], + ); + } +} + +// END fadeScaleTransitionDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..875f356436726f7a3f251619985e25424e214797 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart @@ -0,0 +1,200 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN fadeThroughTransitionDemo + +class FadeThroughTransitionDemo extends StatefulWidget { + const FadeThroughTransitionDemo({super.key}); + + @override + State createState() => + _FadeThroughTransitionDemoState(); +} + +class _FadeThroughTransitionDemoState extends State { + int _pageIndex = 0; + + final List _pageList = [ + _AlbumsPage(), + _PhotosPage(), + _SearchPage(), + ]; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations.demoFadeThroughTitle), + Text( + '(${localizations.demoFadeThroughDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + ), + body: PageTransitionSwitcher( + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { + return FadeThroughTransition( + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + child: _pageList[_pageIndex], + ), + bottomNavigationBar: BottomNavigationBar( + currentIndex: _pageIndex, + onTap: (int selectedIndex) { + setState(() { + _pageIndex = selectedIndex; + }); + }, + items: [ + BottomNavigationBarItem( + icon: const Icon(Icons.photo_library), + label: localizations.demoFadeThroughAlbumsDestination, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.photo), + label: localizations.demoFadeThroughPhotosDestination, + ), + BottomNavigationBarItem( + icon: const Icon(Icons.search), + label: localizations.demoFadeThroughSearchDestination, + ), + ], + ), + ); + } +} + +class _ExampleCard extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final TextTheme textTheme = Theme.of(context).textTheme; + + return Expanded( + child: Card( + child: Stack( + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Expanded( + child: ColoredBox( + color: Colors.black26, + child: Padding( + padding: const EdgeInsets.all(30), + child: Ink.image( + image: const AssetImage( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + ), + ), + ), + ), + ), + Padding( + padding: const EdgeInsets.all(8), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + localizations.demoFadeThroughTextPlaceholder, + style: textTheme.bodyLarge, + ), + Text( + localizations.demoFadeThroughTextPlaceholder, + style: textTheme.bodySmall, + ), + ], + ), + ), + ], + ), + InkWell( + splashColor: Colors.black38, + onTap: () {}, + ), + ], + ), + ), + ); + } +} + +class _AlbumsPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Column( + children: [ + ...List.generate( + 3, + (int index) => Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _ExampleCard(), + _ExampleCard(), + ], + ), + ), + ), + ], + ); + } +} + +class _PhotosPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Column( + children: [ + _ExampleCard(), + _ExampleCard(), + ], + ); + } +} + +class _SearchPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + final GalleryLocalizations? localizations = GalleryLocalizations.of(context); + + return ListView.builder( + itemBuilder: (BuildContext context, int index) { + return ListTile( + leading: Image.asset( + 'placeholders/avatar_logo.png', + package: 'flutter_gallery_assets', + width: 40, + ), + title: Text('${localizations!.demoMotionListTileTitle} ${index + 1}'), + subtitle: Text(localizations.demoMotionPlaceholderSubtitle), + ); + }, + itemCount: 10, + ); + } +} + +// END fadeThroughTransitionDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..22fce434810ad122bc1b4b178f8b876d30e5491f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart @@ -0,0 +1,247 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN sharedXAxisTransitionDemo + +class SharedXAxisTransitionDemo extends StatefulWidget { + const SharedXAxisTransitionDemo({super.key}); + @override + State createState() => + _SharedXAxisTransitionDemoState(); +} + +class _SharedXAxisTransitionDemoState extends State { + bool _isLoggedIn = false; + + void _toggleLoginStatus() { + setState(() { + _isLoggedIn = !_isLoggedIn; + }); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Scaffold( + resizeToAvoidBottomInset: false, + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations.demoSharedXAxisTitle), + Text( + '(${localizations.demoSharedXAxisDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + ), + body: SafeArea( + child: Column( + children: [ + Expanded( + child: PageTransitionSwitcher( + reverse: !_isLoggedIn, + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { + return SharedAxisTransition( + animation: animation, + secondaryAnimation: secondaryAnimation, + transitionType: SharedAxisTransitionType.horizontal, + child: child, + ); + }, + child: _isLoggedIn ? const _CoursePage() : const _SignInPage(), + ), + ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 20), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + TextButton( + onPressed: _isLoggedIn ? _toggleLoginStatus : null, + child: Text(localizations.demoSharedXAxisBackButtonText), + ), + ElevatedButton( + onPressed: _isLoggedIn ? null : _toggleLoginStatus, + child: Text(localizations.demoSharedXAxisNextButtonText), + ), + ], + ), + ), + ], + ), + ), + ); + } +} + +class _CoursePage extends StatelessWidget { + const _CoursePage(); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return ListView( + children: [ + const SizedBox(height: 16), + Text( + localizations.demoSharedXAxisCoursePageTitle, + style: Theme.of(context).textTheme.headlineSmall, + textAlign: TextAlign.center, + ), + const SizedBox(height: 10), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 10), + child: Text( + localizations.demoSharedXAxisCoursePageSubtitle, + style: const TextStyle( + fontSize: 12, + color: Colors.grey, + ), + textAlign: TextAlign.center, + ), + ), + _CourseSwitch( + course: localizations.demoSharedXAxisArtsAndCraftsCourseTitle), + _CourseSwitch(course: localizations.demoSharedXAxisBusinessCourseTitle), + _CourseSwitch( + course: localizations.demoSharedXAxisIllustrationCourseTitle), + _CourseSwitch(course: localizations.demoSharedXAxisDesignCourseTitle), + _CourseSwitch(course: localizations.demoSharedXAxisCulinaryCourseTitle), + ], + ); + } +} + +class _CourseSwitch extends StatefulWidget { + const _CourseSwitch({ + this.course, + }); + + final String? course; + + @override + _CourseSwitchState createState() => _CourseSwitchState(); +} + +class _CourseSwitchState extends State<_CourseSwitch> { + bool _isCourseBundled = true; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations? localizations = GalleryLocalizations.of(context); + final String subtitle = _isCourseBundled + ? localizations!.demoSharedXAxisBundledCourseSubtitle + : localizations!.demoSharedXAxisIndividualCourseSubtitle; + + return SwitchListTile( + title: Text(widget.course!), + subtitle: Text(subtitle), + value: _isCourseBundled, + onChanged: (bool newValue) { + setState(() { + _isCourseBundled = newValue; + }); + }, + ); + } +} + +class _SignInPage extends StatelessWidget { + const _SignInPage(); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations? localizations = GalleryLocalizations.of(context); + + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final double maxHeight = constraints.maxHeight; + const SizedBox spacing = SizedBox(height: 10); + + return Container( + constraints: const BoxConstraints(maxWidth: 400), + child: Column( + children: [ + SizedBox(height: maxHeight / 10), + Image.asset( + 'placeholders/avatar_logo.png', + package: 'flutter_gallery_assets', + width: 80, + height: 80, + ), + spacing, + Text( + localizations!.demoSharedXAxisSignInWelcomeText, + style: Theme.of(context).textTheme.headlineSmall, + ), + spacing, + Text( + localizations.demoSharedXAxisSignInSubtitleText, + style: const TextStyle( + fontSize: 12, + color: Colors.grey, + ), + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsetsDirectional.only( + top: 40, + start: 10, + end: 10, + bottom: 10, + ), + child: TextField( + decoration: InputDecoration( + suffixIcon: const Icon( + Icons.visibility, + size: 20, + color: Colors.black54, + ), + labelText: + localizations.demoSharedXAxisSignInTextFieldLabel, + border: const OutlineInputBorder(), + ), + ), + ), + TextButton( + onPressed: () {}, + child: Text( + localizations.demoSharedXAxisForgotEmailButtonText, + ), + ), + spacing, + TextButton( + onPressed: () {}, + child: Text( + localizations.demoSharedXAxisCreateAccountButtonText, + ), + ), + ], + ), + ], + ), + ); + }, + ); + } +} + +// END sharedXAxisTransitionDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..625c0141310d5f1ec9cf71ef1871c07b880e7266 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart @@ -0,0 +1,201 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN sharedYAxisTransitionDemo + +class SharedYAxisTransitionDemo extends StatefulWidget { + const SharedYAxisTransitionDemo({super.key}); + + @override + State createState() => + _SharedYAxisTransitionDemoState(); +} + +class _SharedYAxisTransitionDemoState extends State + with SingleTickerProviderStateMixin { + bool _isAlphabetical = false; + late AnimationController _controller; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 300), + vsync: this, + ); + } + + final ListView _recentList = ListView( + // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. + key: UniqueKey(), + children: [ + for (int i = 0; i < 10; i++) _AlbumTile((i + 1).toString()), + ], + ); + + final ListView _alphabeticalList = ListView( + // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. + key: UniqueKey(), + children: [ + for (final String letter in _alphabet) _AlbumTile(letter), + ], + ); + + static const List _alphabet = [ + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + ]; + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations.demoSharedYAxisTitle), + Text( + '(${localizations.demoSharedYAxisDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + ), + body: Column( + children: [ + const SizedBox(height: 5), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Padding( + padding: const EdgeInsets.only(left: 15), + child: Text(localizations.demoSharedYAxisAlbumCount), + ), + Padding( + padding: const EdgeInsets.only(right: 7), + child: InkWell( + customBorder: const RoundedRectangleBorder( + borderRadius: BorderRadius.all( + Radius.circular(4), + ), + ), + onTap: () { + if (!_isAlphabetical) { + _controller.reset(); + _controller.animateTo(0.5); + } else { + _controller.animateTo(1); + } + setState(() { + _isAlphabetical = !_isAlphabetical; + }); + }, + child: Row( + children: [ + Text(_isAlphabetical + ? localizations.demoSharedYAxisAlphabeticalSortTitle + : localizations.demoSharedYAxisRecentSortTitle), + RotationTransition( + turns: Tween(begin: 0.0, end: 1.0) + .animate(_controller.view), + child: const Icon(Icons.arrow_drop_down), + ), + ], + ), + ), + ), + ], + ), + const SizedBox(height: 10), + Expanded( + child: PageTransitionSwitcher( + reverse: _isAlphabetical, + transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + return SharedAxisTransition( + animation: animation, + secondaryAnimation: secondaryAnimation, + transitionType: SharedAxisTransitionType.vertical, + child: child, + ); + }, + child: _isAlphabetical ? _alphabeticalList : _recentList, + ), + ), + ], + ), + ); + } +} + +class _AlbumTile extends StatelessWidget { + const _AlbumTile(this._title); + final String _title; + + @override + Widget build(BuildContext context) { + final Random randomNumberGenerator = Random(); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Column( + children: [ + ListTile( + leading: Container( + height: 60, + width: 60, + decoration: const BoxDecoration( + borderRadius: BorderRadius.all( + Radius.circular(4), + ), + color: Colors.grey, + ), + child: Padding( + padding: const EdgeInsets.all(6), + child: Image.asset( + 'placeholders/placeholder_image.png', + package: 'flutter_gallery_assets', + ), + ), + ), + title: Text( + '${localizations.demoSharedYAxisAlbumTileTitle} $_title', + ), + subtitle: Text( + localizations.demoSharedYAxisAlbumTileSubtitle, + ), + trailing: Text( + '${randomNumberGenerator.nextInt(50) + 10} ' + '${localizations.demoSharedYAxisAlbumTileDurationUnit}', + ), + ), + const Divider(height: 20, thickness: 1), + ], + ); + } +} + +// END sharedYAxisTransitionDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart new file mode 100644 index 0000000000000000000000000000000000000000..f64e2b5f02da77cc7e2a6517792e2400ff48a4a7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart @@ -0,0 +1,260 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +// BEGIN sharedZAxisTransitionDemo + +class SharedZAxisTransitionDemo extends StatelessWidget { + const SharedZAxisTransitionDemo({super.key}); + + @override + Widget build(BuildContext context) { + return Navigator( + onGenerateRoute: (RouteSettings settings) { + return _createHomeRoute(); + }, + ); + } + + Route _createHomeRoute() { + return PageRouteBuilder( + pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations.demoSharedZAxisTitle), + Text( + '(${localizations.demoSharedZAxisDemoInstructions})', + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.white), + ), + ], + ), + actions: [ + IconButton( + icon: const Icon(Icons.settings), + onPressed: () { + Navigator.of(context).push(_createSettingsRoute()); + }, + ), + ], + ), + body: const _RecipePage(), + ); + }, + transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + return SharedAxisTransition( + fillColor: Colors.transparent, + transitionType: SharedAxisTransitionType.scaled, + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + ); + } + + Route _createSettingsRoute() { + return PageRouteBuilder( + pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) => + const _SettingsPage(), + transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + return SharedAxisTransition( + fillColor: Colors.transparent, + transitionType: SharedAxisTransitionType.scaled, + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + ); + } +} + +class _SettingsPage extends StatelessWidget { + const _SettingsPage(); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + final List<_SettingsInfo> settingsList = <_SettingsInfo>[ + _SettingsInfo( + Icons.person, + localizations.demoSharedZAxisProfileSettingLabel, + ), + _SettingsInfo( + Icons.notifications, + localizations.demoSharedZAxisNotificationSettingLabel, + ), + _SettingsInfo( + Icons.security, + localizations.demoSharedZAxisPrivacySettingLabel, + ), + _SettingsInfo( + Icons.help, + localizations.demoSharedZAxisHelpSettingLabel, + ), + ]; + + return Scaffold( + appBar: AppBar( + title: Text( + localizations.demoSharedZAxisSettingsPageTitle, + ), + ), + body: ListView( + children: [ + for (final _SettingsInfo setting in settingsList) _SettingsTile(setting), + ], + ), + ); + } +} + +class _SettingsTile extends StatelessWidget { + const _SettingsTile(this.settingData); + final _SettingsInfo settingData; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + ListTile( + leading: Icon(settingData.settingIcon), + title: Text(settingData.settingsLabel), + ), + const Divider(thickness: 2), + ], + ); + } +} + +class _SettingsInfo { + const _SettingsInfo(this.settingIcon, this.settingsLabel); + + final IconData settingIcon; + final String settingsLabel; +} + +class _RecipePage extends StatelessWidget { + const _RecipePage(); + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + final List<_RecipeInfo> savedRecipes = <_RecipeInfo>[ + _RecipeInfo( + localizations.demoSharedZAxisBurgerRecipeTitle, + localizations.demoSharedZAxisBurgerRecipeDescription, + 'crane/destinations/eat_2.jpg', + ), + _RecipeInfo( + localizations.demoSharedZAxisSandwichRecipeTitle, + localizations.demoSharedZAxisSandwichRecipeDescription, + 'crane/destinations/eat_3.jpg', + ), + _RecipeInfo( + localizations.demoSharedZAxisDessertRecipeTitle, + localizations.demoSharedZAxisDessertRecipeDescription, + 'crane/destinations/eat_4.jpg', + ), + _RecipeInfo( + localizations.demoSharedZAxisShrimpPlateRecipeTitle, + localizations.demoSharedZAxisShrimpPlateRecipeDescription, + 'crane/destinations/eat_6.jpg', + ), + _RecipeInfo( + localizations.demoSharedZAxisCrabPlateRecipeTitle, + localizations.demoSharedZAxisCrabPlateRecipeDescription, + 'crane/destinations/eat_8.jpg', + ), + _RecipeInfo( + localizations.demoSharedZAxisBeefSandwichRecipeTitle, + localizations.demoSharedZAxisBeefSandwichRecipeDescription, + 'crane/destinations/eat_10.jpg', + ), + ]; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const SizedBox(height: 8), + Padding( + padding: const EdgeInsetsDirectional.only(start: 8.0), + child: Text(localizations.demoSharedZAxisSavedRecipesListTitle), + ), + const SizedBox(height: 4), + Expanded( + child: ListView( + padding: const EdgeInsets.all(8), + children: [ + for (final _RecipeInfo recipe in savedRecipes) + _RecipeTile(recipe, savedRecipes.indexOf(recipe)) + ], + ), + ), + ], + ); + } +} + +class _RecipeInfo { + const _RecipeInfo(this.recipeName, this.recipeDescription, this.recipeImage); + + final String recipeName; + final String recipeDescription; + final String recipeImage; +} + +class _RecipeTile extends StatelessWidget { + const _RecipeTile(this._recipe, this._index); + final _RecipeInfo _recipe; + final int _index; + + @override + Widget build(BuildContext context) { + return Row( + children: [ + SizedBox( + height: 70, + width: 100, + child: ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(4)), + child: Image.asset( + _recipe.recipeImage, + package: 'flutter_gallery_assets', + fit: BoxFit.fill, + ), + ), + ), + const SizedBox(width: 24), + Expanded( + child: Column( + children: [ + ListTile( + title: Text(_recipe.recipeName), + subtitle: Text(_recipe.recipeDescription), + trailing: Text('0${_index + 1}'), + ), + const Divider(thickness: 2), + ], + ), + ), + ], + ); + } +} + +// END sharedZAxisTransitionDemo diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..14d0ee45e7e56f74b45d40d9e1b283467d1151c2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart @@ -0,0 +1,247 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +import 'transformations_demo_board.dart'; +import 'transformations_demo_edit_board_point.dart'; + +// BEGIN transformationsDemo#1 + +class TransformationsDemo extends StatefulWidget { + const TransformationsDemo({super.key}); + + @override + State createState() => _TransformationsDemoState(); +} + +class _TransformationsDemoState extends State + with TickerProviderStateMixin { + final GlobalKey _targetKey = GlobalKey(); + // The radius of a hexagon tile in pixels. + static const double _kHexagonRadius = 16.0; + // The margin between hexagons. + static const double _kHexagonMargin = 1.0; + // The radius of the entire board in hexagons, not including the center. + static const int _kBoardRadius = 8; + + Board _board = Board( + boardRadius: _kBoardRadius, + hexagonRadius: _kHexagonRadius, + hexagonMargin: _kHexagonMargin, + ); + + final TransformationController _transformationController = + TransformationController(); + Animation? _animationReset; + late AnimationController _controllerReset; + Matrix4? _homeMatrix; + + // Handle reset to home transform animation. + void _onAnimateReset() { + _transformationController.value = _animationReset!.value; + if (!_controllerReset.isAnimating) { + _animationReset?.removeListener(_onAnimateReset); + _animationReset = null; + _controllerReset.reset(); + } + } + + // Initialize the reset to home transform animation. + void _animateResetInitialize() { + _controllerReset.reset(); + _animationReset = Matrix4Tween( + begin: _transformationController.value, + end: _homeMatrix, + ).animate(_controllerReset); + _controllerReset.duration = const Duration(milliseconds: 400); + _animationReset!.addListener(_onAnimateReset); + _controllerReset.forward(); + } + + // Stop a running reset to home transform animation. + void _animateResetStop() { + _controllerReset.stop(); + _animationReset?.removeListener(_onAnimateReset); + _animationReset = null; + _controllerReset.reset(); + } + + void _onScaleStart(ScaleStartDetails details) { + // If the user tries to cause a transformation while the reset animation is + // running, cancel the reset animation. + if (_controllerReset.status == AnimationStatus.forward) { + _animateResetStop(); + } + } + + void _onTapUp(TapUpDetails details) { + final RenderBox renderBox = + _targetKey.currentContext!.findRenderObject()! as RenderBox; + final Offset offset = + details.globalPosition - renderBox.localToGlobal(Offset.zero); + final Offset scenePoint = _transformationController.toScene(offset); + final BoardPoint? boardPoint = _board.pointToBoardPoint(scenePoint); + setState(() { + _board = _board.copyWithSelected(boardPoint); + }); + } + + @override + void initState() { + super.initState(); + _controllerReset = AnimationController( + vsync: this, + ); + } + + @override + Widget build(BuildContext context) { + // The scene is drawn by a CustomPaint, but user interaction is handled by + // the InteractiveViewer parent widget. + return Scaffold( + backgroundColor: Theme.of(context).colorScheme.primary, + appBar: AppBar( + automaticallyImplyLeading: false, + title: + Text(GalleryLocalizations.of(context)!.demo2dTransformationsTitle), + ), + body: ColoredBox( + color: backgroundColor, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + // Draw the scene as big as is available, but allow the user to + // translate beyond that to a visibleSize that's a bit bigger. + final Size viewportSize = Size( + constraints.maxWidth, + constraints.maxHeight, + ); + + // Start the first render, start the scene centered in the viewport. + if (_homeMatrix == null) { + _homeMatrix = Matrix4.identity() + ..translate( + viewportSize.width / 2 - _board.size.width / 2, + viewportSize.height / 2 - _board.size.height / 2, + ); + _transformationController.value = _homeMatrix!; + } + + return ClipRect( + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTapUp: _onTapUp, + child: InteractiveViewer( + key: _targetKey, + transformationController: _transformationController, + boundaryMargin: EdgeInsets.symmetric( + horizontal: viewportSize.width, + vertical: viewportSize.height, + ), + minScale: 0.01, + onInteractionStart: _onScaleStart, + child: SizedBox.expand( + child: CustomPaint( + size: _board.size, + painter: _BoardPainter( + board: _board, + ), + ), + ), + ), + ), + ), + ); + }, + ), + ), + persistentFooterButtons: [resetButton, editButton], + ); + } + + IconButton get resetButton { + return IconButton( + onPressed: () { + setState(() { + _animateResetInitialize(); + }); + }, + tooltip: 'Reset', + color: Theme.of(context).colorScheme.surface, + icon: const Icon(Icons.replay), + ); + } + + IconButton get editButton { + return IconButton( + onPressed: () { + if (_board.selected == null) { + return; + } + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return Container( + width: double.infinity, + height: 150, + padding: const EdgeInsets.all(12), + child: EditBoardPoint( + boardPoint: _board.selected!, + onColorSelection: (Color color) { + setState(() { + _board = _board.copyWithBoardPointColor( + _board.selected!, color); + Navigator.pop(context); + }); + }, + ), + ); + }); + }, + tooltip: 'Edit', + color: Theme.of(context).colorScheme.surface, + icon: const Icon(Icons.edit), + ); + } + + @override + void dispose() { + _controllerReset.dispose(); + super.dispose(); + } +} + +// CustomPainter is what is passed to CustomPaint and actually draws the scene +// when its `paint` method is called. +class _BoardPainter extends CustomPainter { + const _BoardPainter({required this.board}); + + final Board board; + + @override + void paint(Canvas canvas, Size size) { + void drawBoardPoint(BoardPoint? boardPoint) { + final Color color = boardPoint!.color.withOpacity( + board.selected == boardPoint ? 0.7 : 1, + ); + final Vertices vertices = board.getVerticesForBoardPoint(boardPoint, color); + canvas.drawVertices(vertices, BlendMode.color, Paint()); + } + + board.forEach(drawBoardPoint); + } + + // We should repaint whenever the board changes, such as board.selected. + @override + bool shouldRepaint(_BoardPainter oldDelegate) { + return oldDelegate.board != board; + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart new file mode 100644 index 0000000000000000000000000000000000000000..176232fa7c5ddf88998f6fe2cd8b9fdd065501dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart @@ -0,0 +1,301 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:collection' show IterableMixin; +import 'dart:math'; +import 'dart:ui' show Vertices; +import 'package:flutter/material.dart'; +import 'package:vector_math/vector_math_64.dart' show Vector3; + +// BEGIN transformationsDemo#2 + +// The entire state of the hex board and abstraction to get information about +// it. Iterable so that all BoardPoints on the board can be iterated over. +@immutable +class Board extends Object with IterableMixin { + Board({ + required this.boardRadius, + required this.hexagonRadius, + required this.hexagonMargin, + this.selected, + List? boardPoints, + }) : assert(boardRadius > 0), + assert(hexagonRadius > 0), + assert(hexagonMargin >= 0) { + // Set up the positions for the center hexagon where the entire board is + // centered on the origin. + // Start point of hexagon (top vertex). + final Point hexStart = Point(0, -hexagonRadius); + final double hexagonRadiusPadded = hexagonRadius - hexagonMargin; + final double centerToFlat = sqrt(3) / 2 * hexagonRadiusPadded; + positionsForHexagonAtOrigin.addAll([ + Offset(hexStart.x, hexStart.y), + Offset(hexStart.x + centerToFlat, hexStart.y + 0.5 * hexagonRadiusPadded), + Offset(hexStart.x + centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded), + Offset(hexStart.x + centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded), + Offset(hexStart.x, hexStart.y + 2 * hexagonRadiusPadded), + Offset(hexStart.x, hexStart.y + 2 * hexagonRadiusPadded), + Offset(hexStart.x - centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded), + Offset(hexStart.x - centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded), + Offset(hexStart.x - centerToFlat, hexStart.y + 0.5 * hexagonRadiusPadded), + ]); + + if (boardPoints != null) { + _boardPoints.addAll(boardPoints); + } else { + // Generate boardPoints for a fresh board. + BoardPoint? boardPoint = _getNextBoardPoint(null); + while (boardPoint != null) { + _boardPoints.add(boardPoint); + boardPoint = _getNextBoardPoint(boardPoint); + } + } + } + + final int boardRadius; // Number of hexagons from center to edge. + final double hexagonRadius; // Pixel radius of a hexagon (center to vertex). + final double hexagonMargin; // Margin between hexagons. + final List positionsForHexagonAtOrigin = []; + final BoardPoint? selected; + final List _boardPoints = []; + + @override + Iterator get iterator => _BoardIterator(_boardPoints); + + // For a given q axial coordinate, get the range of possible r values + // See the definition of BoardPoint for more information about hex grids and + // axial coordinates. + _Range _getRRangeForQ(int q) { + int rStart; + int rEnd; + if (q <= 0) { + rStart = -boardRadius - q; + rEnd = boardRadius; + } else { + rEnd = boardRadius - q; + rStart = -boardRadius; + } + + return _Range(rStart, rEnd); + } + + // Get the BoardPoint that comes after the given BoardPoint. If given null, + // returns the origin BoardPoint. If given BoardPoint is the last, returns + // null. + BoardPoint? _getNextBoardPoint(BoardPoint? boardPoint) { + // If before the first element. + if (boardPoint == null) { + return BoardPoint(-boardRadius, 0); + } + + final _Range rRange = _getRRangeForQ(boardPoint.q); + + // If at or after the last element. + if (boardPoint.q >= boardRadius && boardPoint.r >= rRange.max) { + return null; + } + + // If wrapping from one q to the next. + if (boardPoint.r >= rRange.max) { + return BoardPoint(boardPoint.q + 1, _getRRangeForQ(boardPoint.q + 1).min); + } + + // Otherwise we're just incrementing r. + return BoardPoint(boardPoint.q, boardPoint.r + 1); + } + + // Check if the board point is actually on the board. + bool _validateBoardPoint(BoardPoint boardPoint) { + const BoardPoint center = BoardPoint(0, 0); + final int distanceFromCenter = getDistance(center, boardPoint); + return distanceFromCenter <= boardRadius; + } + + // Get the size in pixels of the entire board. + Size get size { + final double centerToFlat = sqrt(3) / 2 * hexagonRadius; + return Size( + (boardRadius * 2 + 1) * centerToFlat * 2, + 2 * (hexagonRadius + boardRadius * 1.5 * hexagonRadius), + ); + } + + // Get the distance between two BoardPoints. + static int getDistance(BoardPoint a, BoardPoint b) { + final Vector3 a3 = a.cubeCoordinates; + final Vector3 b3 = b.cubeCoordinates; + return ((a3.x - b3.x).abs() + (a3.y - b3.y).abs() + (a3.z - b3.z).abs()) ~/ + 2; + } + + // Return the q,r BoardPoint for a point in the scene, where the origin is in + // the center of the board in both coordinate systems. If no BoardPoint at the + // location, return null. + BoardPoint? pointToBoardPoint(Offset point) { + final Offset pointCentered = Offset( + point.dx - size.width / 2, + point.dy - size.height / 2, + ); + final BoardPoint boardPoint = BoardPoint( + ((sqrt(3) / 3 * pointCentered.dx - 1 / 3 * pointCentered.dy) / + hexagonRadius) + .round(), + ((2 / 3 * pointCentered.dy) / hexagonRadius).round(), + ); + + if (!_validateBoardPoint(boardPoint)) { + return null; + } + + return _boardPoints.firstWhere((BoardPoint boardPointI) { + return boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r; + }); + } + + // Return a scene point for the center of a hexagon given its q,r point. + Point boardPointToPoint(BoardPoint boardPoint) { + return Point( + sqrt(3) * hexagonRadius * boardPoint.q + + sqrt(3) / 2 * hexagonRadius * boardPoint.r + + size.width / 2, + 1.5 * hexagonRadius * boardPoint.r + size.height / 2, + ); + } + + // Get Vertices that can be drawn to a Canvas for the given BoardPoint. + Vertices getVerticesForBoardPoint(BoardPoint boardPoint, Color color) { + final Point centerOfHexZeroCenter = boardPointToPoint(boardPoint); + + final List positions = positionsForHexagonAtOrigin.map((Offset offset) { + return offset.translate(centerOfHexZeroCenter.x, centerOfHexZeroCenter.y); + }).toList(); + + return Vertices( + VertexMode.triangleFan, + positions, + colors: List.filled(positions.length, color), + ); + } + + // Return a new board with the given BoardPoint selected. + Board copyWithSelected(BoardPoint? boardPoint) { + if (selected == boardPoint) { + return this; + } + final Board nextBoard = Board( + boardRadius: boardRadius, + hexagonRadius: hexagonRadius, + hexagonMargin: hexagonMargin, + selected: boardPoint, + boardPoints: _boardPoints, + ); + return nextBoard; + } + + // Return a new board where boardPoint has the given color. + Board copyWithBoardPointColor(BoardPoint boardPoint, Color color) { + final BoardPoint nextBoardPoint = boardPoint.copyWithColor(color); + final int boardPointIndex = _boardPoints.indexWhere((BoardPoint boardPointI) => + boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r); + + if (elementAt(boardPointIndex) == boardPoint && boardPoint.color == color) { + return this; + } + + final List nextBoardPoints = List.from(_boardPoints); + nextBoardPoints[boardPointIndex] = nextBoardPoint; + final BoardPoint? selectedBoardPoint = + boardPoint == selected ? nextBoardPoint : selected; + return Board( + boardRadius: boardRadius, + hexagonRadius: hexagonRadius, + hexagonMargin: hexagonMargin, + selected: selectedBoardPoint, + boardPoints: nextBoardPoints, + ); + } +} + +class _BoardIterator implements Iterator { + _BoardIterator(this.boardPoints); + + final List boardPoints; + int? currentIndex; + + @override + BoardPoint? current; + + @override + bool moveNext() { + if (currentIndex == null) { + currentIndex = 0; + } else { + currentIndex = currentIndex! + 1; + } + + if (currentIndex! >= boardPoints.length) { + current = null; + return false; + } + + current = boardPoints[currentIndex!]; + return true; + } +} + +// A range of q/r board coordinate values. +@immutable +class _Range { + const _Range(this.min, this.max) : assert(min <= max); + + final int min; + final int max; +} + +// A location on the board in axial coordinates. +// Axial coordinates use two integers, q and r, to locate a hexagon on a grid. +// https://www.redblobgames.com/grids/hexagons/#coordinates-axial +@immutable +class BoardPoint { + const BoardPoint( + this.q, + this.r, { + this.color = const Color(0xFFCDCDCD), + }); + + final int q; + final int r; + final Color color; + + @override + String toString() { + return 'BoardPoint($q, $r, $color)'; + } + + // Only compares by location. + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is BoardPoint && other.q == q && other.r == r; + } + + @override + int get hashCode => Object.hash(q, r); + + BoardPoint copyWithColor(Color nextColor) => + BoardPoint(q, r, color: nextColor); + + // Convert from q,r axial coords to x,y,z cube coords. + Vector3 get cubeCoordinates { + return Vector3( + q.toDouble(), + r.toDouble(), + (-q - r).toDouble(), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart new file mode 100644 index 0000000000000000000000000000000000000000..8f8fffc989599b019348e929cddefc3b77c94fd0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +// A generic widget for a list of selectable colors. +@immutable +class ColorPicker extends StatelessWidget { + const ColorPicker({ + super.key, + required this.colors, + required this.selectedColor, + this.onColorSelection, + }); + + final Set colors; + final Color selectedColor; + final ValueChanged? onColorSelection; + + @override + Widget build(BuildContext context) { + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: colors.map((Color color) { + return _ColorPickerSwatch( + color: color, + selected: color == selectedColor, + onTap: () { + if (onColorSelection != null) { + onColorSelection!(color); + } + }, + ); + }).toList(), + ); + } +} + +// A single selectable color widget in the ColorPicker. +@immutable +class _ColorPickerSwatch extends StatelessWidget { + const _ColorPickerSwatch({ + required this.color, + required this.selected, + this.onTap, + }); + + final Color color; + final bool selected; + final void Function()? onTap; + + @override + Widget build(BuildContext context) { + return Container( + width: 60, + height: 60, + padding: const EdgeInsets.fromLTRB(2, 0, 2, 0), + child: RawMaterialButton( + fillColor: color, + onPressed: () { + if (onTap != null) { + onTap!(); + } + }, + child: !selected + ? null + : const Icon( + Icons.check, + color: Colors.white, + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart new file mode 100644 index 0000000000000000000000000000000000000000..c1742884c1cfec45f50346942756bc3a379419b5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../themes/gallery_theme_data.dart'; +import 'transformations_demo_board.dart'; +import 'transformations_demo_color_picker.dart'; + +const Color backgroundColor = Color(0xFF272727); + +// The panel for editing a board point. +@immutable +class EditBoardPoint extends StatelessWidget { + const EditBoardPoint({ + super.key, + required this.boardPoint, + this.onColorSelection, + }); + + final BoardPoint boardPoint; + final ValueChanged? onColorSelection; + + @override + Widget build(BuildContext context) { + final Set boardPointColors = { + Colors.white, + GalleryThemeData.darkColorScheme.primary, + GalleryThemeData.darkColorScheme.primaryContainer, + GalleryThemeData.darkColorScheme.secondary, + backgroundColor, + }; + + return Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Text( + '${boardPoint.q}, ${boardPoint.r}', + textAlign: TextAlign.right, + style: const TextStyle(fontWeight: FontWeight.bold), + ), + ColorPicker( + colors: boardPointColors, + selectedColor: boardPoint.color, + onColorSelection: onColorSelection, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..1ef872f2cff4ff69f71c4f42a86d0ea29e943fa3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart @@ -0,0 +1,125 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; + +// BEGIN typographyDemo + +class _TextStyleItem extends StatelessWidget { + const _TextStyleItem({ + required this.name, + required this.style, + required this.text, + }); + + final String name; + final TextStyle style; + final String text; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16), + child: Row( + children: [ + SizedBox( + width: 72, + child: Text(name, style: Theme.of(context).textTheme.bodySmall), + ), + Expanded( + child: Text(text, style: style), + ), + ], + ), + ); + } +} + +class TypographyDemo extends StatelessWidget { + const TypographyDemo({super.key}); + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final List<_TextStyleItem> styleItems = <_TextStyleItem>[ + _TextStyleItem( + name: 'Headline 1', + style: textTheme.displayLarge!, + text: 'Light 96sp', + ), + _TextStyleItem( + name: 'Headline 2', + style: textTheme.displayMedium!, + text: 'Light 60sp', + ), + _TextStyleItem( + name: 'Headline 3', + style: textTheme.displaySmall!, + text: 'Regular 48sp', + ), + _TextStyleItem( + name: 'Headline 4', + style: textTheme.headlineMedium!, + text: 'Regular 34sp', + ), + _TextStyleItem( + name: 'Headline 5', + style: textTheme.headlineSmall!, + text: 'Regular 24sp', + ), + _TextStyleItem( + name: 'Headline 6', + style: textTheme.titleLarge!, + text: 'Medium 20sp', + ), + _TextStyleItem( + name: 'Subtitle 1', + style: textTheme.titleMedium!, + text: 'Regular 16sp', + ), + _TextStyleItem( + name: 'Subtitle 2', + style: textTheme.titleSmall!, + text: 'Medium 14sp', + ), + _TextStyleItem( + name: 'Body Text 1', + style: textTheme.bodyLarge!, + text: 'Regular 16sp', + ), + _TextStyleItem( + name: 'Body Text 2', + style: textTheme.bodyMedium!, + text: 'Regular 14sp', + ), + _TextStyleItem( + name: 'Button', + style: textTheme.labelLarge!, + text: 'MEDIUM (ALL CAPS) 14sp', + ), + _TextStyleItem( + name: 'Caption', + style: textTheme.bodySmall!, + text: 'Regular 12sp', + ), + _TextStyleItem( + name: 'Overline', + style: textTheme.labelSmall!, + text: 'REGULAR (ALL CAPS) 10sp', + ), + ]; + + return Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: Text(GalleryLocalizations.of(context)!.demoTypographyTitle), + ), + body: Scrollbar(child: ListView(children: styleItems)), + ); + } +} + +// END diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart new file mode 100644 index 0000000000000000000000000000000000000000..7b0c4e09f83ab7276236d5e6fff2aa45bfb2d4c5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart @@ -0,0 +1,251 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Animations class to compute animation values for overlay widgets. +/// +/// Values are loosely based on Material Design specs, which are minimal. +class Animations { + + Animations( + this.openController, + this.tapController, + this.rippleController, + this.dismissController, + ); + final AnimationController openController; + final AnimationController tapController; + final AnimationController rippleController; + final AnimationController dismissController; + + static const double backgroundMaxOpacity = 0.96; + static const double backgroundTapRadius = 20.0; + static const double rippleMaxOpacity = 0.75; + static const double tapTargetToContentDistance = 20.0; + static const double tapTargetMaxRadius = 44.0; + static const double tapTargetMinRadius = 20.0; + static const double tapTargetRippleRadius = 64.0; + + Animation backgroundOpacity(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return const AlwaysStoppedAnimation(0); + case FeatureDiscoveryStatus.open: + return Tween(begin: 0, end: backgroundMaxOpacity) + .animate(CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.tap: + return Tween(begin: backgroundMaxOpacity, end: 0) + .animate(CurvedAnimation( + parent: tapController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: backgroundMaxOpacity, end: 0) + .animate(CurvedAnimation( + parent: dismissController, + curve: const Interval(0.2, 1.0, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.ripple: + return const AlwaysStoppedAnimation(backgroundMaxOpacity); + } + } + + Animation backgroundRadius( + FeatureDiscoveryStatus status, + double backgroundRadiusMax, + ) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return const AlwaysStoppedAnimation(0); + case FeatureDiscoveryStatus.open: + return Tween(begin: 0, end: backgroundRadiusMax) + .animate(CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.tap: + return Tween( + begin: backgroundRadiusMax, + end: backgroundRadiusMax + backgroundTapRadius) + .animate(CurvedAnimation( + parent: tapController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: backgroundRadiusMax, end: 0) + .animate(CurvedAnimation( + parent: dismissController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.ripple: + return AlwaysStoppedAnimation(backgroundRadiusMax); + } + } + + Animation backgroundCenter( + FeatureDiscoveryStatus status, + Offset start, + Offset end, + ) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return AlwaysStoppedAnimation(start); + case FeatureDiscoveryStatus.open: + return Tween(begin: start, end: end).animate(CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.tap: + return Tween(begin: end, end: start).animate(CurvedAnimation( + parent: tapController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: end, end: start).animate(CurvedAnimation( + parent: dismissController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.ripple: + return AlwaysStoppedAnimation(end); + } + } + + Animation contentOpacity(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return const AlwaysStoppedAnimation(0); + case FeatureDiscoveryStatus.open: + return Tween(begin: 0, end: 1.0).animate(CurvedAnimation( + parent: openController, + curve: const Interval(0.4, 0.7, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.tap: + return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( + parent: tapController, + curve: const Interval(0, 0.4, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( + parent: dismissController, + curve: const Interval(0, 0.4, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.ripple: + return const AlwaysStoppedAnimation(1.0); + } + } + + Animation rippleOpacity(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.ripple: + return Tween(begin: rippleMaxOpacity, end: 0) + .animate(CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.8, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.closed: + case FeatureDiscoveryStatus.open: + case FeatureDiscoveryStatus.tap: + case FeatureDiscoveryStatus.dismiss: + return const AlwaysStoppedAnimation(0); + } + } + + Animation rippleRadius(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.ripple: + if (rippleController.value >= 0.3 && rippleController.value <= 0.8) { + return Tween(begin: tapTargetMaxRadius, end: 79.0) + .animate(CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.8, curve: Curves.ease), + )); + } + return const AlwaysStoppedAnimation(tapTargetMaxRadius); + case FeatureDiscoveryStatus.closed: + case FeatureDiscoveryStatus.open: + case FeatureDiscoveryStatus.tap: + case FeatureDiscoveryStatus.dismiss: + return const AlwaysStoppedAnimation(0); + } + } + + Animation tapTargetOpacity(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return const AlwaysStoppedAnimation(0); + case FeatureDiscoveryStatus.open: + return Tween(begin: 0, end: 1.0).animate(CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.4, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.tap: + return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( + parent: tapController, + curve: const Interval(0.1, 0.6, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( + parent: dismissController, + curve: const Interval(0.2, 0.8, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.ripple: + return const AlwaysStoppedAnimation(1.0); + } + } + + Animation tapTargetRadius(FeatureDiscoveryStatus status) { + switch (status) { + case FeatureDiscoveryStatus.closed: + return const AlwaysStoppedAnimation(tapTargetMinRadius); + case FeatureDiscoveryStatus.open: + return Tween(begin: tapTargetMinRadius, end: tapTargetMaxRadius) + .animate(CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.4, curve: Curves.ease), + )); + case FeatureDiscoveryStatus.ripple: + if (rippleController.value < 0.3) { + return Tween( + begin: tapTargetMaxRadius, end: tapTargetRippleRadius) + .animate(CurvedAnimation( + parent: rippleController, + curve: const Interval(0, 0.3, curve: Curves.ease), + )); + } else if (rippleController.value < 0.6) { + return Tween( + begin: tapTargetRippleRadius, end: tapTargetMaxRadius) + .animate(CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.6, curve: Curves.ease), + )); + } + return const AlwaysStoppedAnimation(tapTargetMaxRadius); + case FeatureDiscoveryStatus.tap: + return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius) + .animate(CurvedAnimation( + parent: tapController, + curve: Curves.ease, + )); + case FeatureDiscoveryStatus.dismiss: + return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius) + .animate(CurvedAnimation( + parent: dismissController, + curve: Curves.ease, + )); + } + } +} + +/// Enum to indicate the current status of a [FeatureDiscovery] widget. +enum FeatureDiscoveryStatus { + closed, // Overlay is closed. + open, // Overlay is opening. + ripple, // Overlay is rippling. + tap, // Overlay is tapped. + dismiss, // Overlay is being dismissed. +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart new file mode 100644 index 0000000000000000000000000000000000000000..73a02ac035f68d826012fe469049607113129c46 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart @@ -0,0 +1,400 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; + +import 'animation.dart'; +import 'overlay.dart'; + +/// [Widget] to enforce a global lock system for [FeatureDiscovery] widgets. +/// +/// This widget enforces that at most one [FeatureDiscovery] widget in its +/// widget tree is shown at a time. +/// +/// Users wanting to use [FeatureDiscovery] need to put this controller +/// above [FeatureDiscovery] widgets in the widget tree. +class FeatureDiscoveryController extends StatefulWidget { + + const FeatureDiscoveryController(this.child, {super.key}); + final Widget child; + + static _FeatureDiscoveryControllerState _of(BuildContext context) { + final _FeatureDiscoveryControllerState? matchResult = + context.findAncestorStateOfType<_FeatureDiscoveryControllerState>(); + if (matchResult != null) { + return matchResult; + } + + throw FlutterError( + 'FeatureDiscoveryController.of() called with a context that does not ' + 'contain a FeatureDiscoveryController.\n The context used was:\n ' + '$context'); + } + + @override + State createState() => + _FeatureDiscoveryControllerState(); +} + +class _FeatureDiscoveryControllerState + extends State { + bool _isLocked = false; + + /// Flag to indicate whether a [FeatureDiscovery] widget descendant is + /// currently showing its overlay or not. + /// + /// If true, then no other [FeatureDiscovery] widget should display its + /// overlay. + bool get isLocked => _isLocked; + + /// Lock the controller. + /// + /// Note we do not [setState] here because this function will be called + /// by the first [FeatureDiscovery] ready to show its overlay, and any + /// additional [FeatureDiscovery] widgets wanting to show their overlays + /// will already be scheduled to be built, so the lock change will be caught + /// in their builds. + void lock() => _isLocked = true; + + /// Unlock the controller. + void unlock() => setState(() => _isLocked = false); + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + assert( + context.findAncestorStateOfType<_FeatureDiscoveryControllerState>() == + null, + 'There should not be another ancestor of type ' + 'FeatureDiscoveryController in the widget tree.', + ); + } + + @override + Widget build(BuildContext context) => widget.child; +} + +/// Widget that highlights the [child] with an overlay. +/// +/// This widget loosely follows the guidelines set forth in the Material Specs: +/// https://material.io/archive/guidelines/growth-communications/feature-discovery.html. +class FeatureDiscovery extends StatefulWidget { + + const FeatureDiscovery({ + super.key, + required this.title, + required this.description, + required this.child, + required this.showOverlay, + this.onDismiss, + this.onTap, + this.color, + }); + /// Title to be displayed in the overlay. + final String title; + + /// Description to be displayed in the overlay. + final String description; + + /// Icon to be promoted. + final Icon child; + + /// Flag to indicate whether to show the overlay or not anchored to the + /// [child]. + final bool showOverlay; + + /// Callback invoked when the user dismisses an overlay. + final void Function()? onDismiss; + + /// Callback invoked when the user taps on the tap target of an overlay. + final void Function()? onTap; + + /// Color with which to fill the outer circle. + final Color? color; + + @visibleForTesting + static const Key overlayKey = Key('overlay key'); + + @visibleForTesting + static const Key gestureDetectorKey = Key('gesture detector key'); + + @override + State createState() => _FeatureDiscoveryState(); +} + +class _FeatureDiscoveryState extends State + with TickerProviderStateMixin { + bool showOverlay = false; + FeatureDiscoveryStatus status = FeatureDiscoveryStatus.closed; + + late AnimationController openController; + late AnimationController rippleController; + late AnimationController tapController; + late AnimationController dismissController; + + late Animations animations; + OverlayEntry? overlay; + + Widget buildOverlay(BuildContext ctx, Offset center) { + debugCheckHasMediaQuery(ctx); + debugCheckHasDirectionality(ctx); + + final Size deviceSize = MediaQuery.of(ctx).size; + final Color color = widget.color ?? Theme.of(ctx).colorScheme.primary; + + // Wrap in transparent [Material] to enable widgets that require one. + return Material( + key: FeatureDiscovery.overlayKey, + type: MaterialType.transparency, + child: Stack( + children: [ + MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + key: FeatureDiscovery.gestureDetectorKey, + onTap: dismiss, + child: Container( + width: double.infinity, + height: double.infinity, + color: Colors.transparent, + ), + ), + ), + Background( + animations: animations, + status: status, + color: color, + center: center, + deviceSize: deviceSize, + textDirection: Directionality.of(ctx), + ), + Content( + animations: animations, + status: status, + center: center, + deviceSize: deviceSize, + title: widget.title, + description: widget.description, + textTheme: Theme.of(ctx).textTheme, + ), + Ripple( + animations: animations, + status: status, + center: center, + ), + TapTarget( + animations: animations, + status: status, + center: center, + onTap: tap, + child: widget.child, + ), + ], + ), + ); + } + + /// Method to handle user tap on [TapTarget]. + /// + /// Tapping will stop any active controller and start the [tapController]. + void tap() { + openController.stop(); + rippleController.stop(); + dismissController.stop(); + tapController.forward(from: 0.0); + } + + /// Method to handle user dismissal. + /// + /// Dismissal will stop any active controller and start the + /// [dismissController]. + void dismiss() { + openController.stop(); + rippleController.stop(); + tapController.stop(); + dismissController.forward(from: 0.0); + } + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: (BuildContext ctx, _) { + if (overlay != null) { + SchedulerBinding.instance.addPostFrameCallback((_) { + // [OverlayEntry] needs to be explicitly rebuilt when necessary. + overlay!.markNeedsBuild(); + }); + } else { + if (showOverlay && !FeatureDiscoveryController._of(ctx).isLocked) { + final OverlayEntry entry = OverlayEntry( + builder: (_) => buildOverlay(ctx, getOverlayCenter(ctx)), + ); + + // Lock [FeatureDiscoveryController] early in order to prevent + // another [FeatureDiscovery] widget from trying to show its + // overlay while the post frame callback and set state are not + // complete. + FeatureDiscoveryController._of(ctx).lock(); + + SchedulerBinding.instance.addPostFrameCallback((_) { + setState(() { + overlay = entry; + status = FeatureDiscoveryStatus.closed; + openController.forward(from: 0.0); + }); + Overlay.of(context).insert(entry); + }); + } + } + return widget.child; + }); + } + + /// Compute the center position of the overlay. + Offset getOverlayCenter(BuildContext parentCtx) { + final RenderBox box = parentCtx.findRenderObject()! as RenderBox; + final Size size = box.size; + final Offset topLeftPosition = box.localToGlobal(Offset.zero); + final Offset centerPosition = Offset( + topLeftPosition.dx + size.width / 2, + topLeftPosition.dy + size.height / 2, + ); + return centerPosition; + } + + static bool _featureHighlightShown = false; + + @override + void initState() { + super.initState(); + + initAnimationControllers(); + initAnimations(); + + showOverlay = widget.showOverlay && !_featureHighlightShown; + if (showOverlay) { + _featureHighlightShown = true; + } + } + + void initAnimationControllers() { + openController = AnimationController( + duration: const Duration(milliseconds: 500), + vsync: this, + ) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.open); + case AnimationStatus.completed: + rippleController.forward(from: 0.0); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + rippleController = AnimationController( + duration: const Duration(milliseconds: 1000), + vsync: this, + ) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.ripple); + case AnimationStatus.completed: + rippleController.forward(from: 0.0); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + tapController = AnimationController( + duration: const Duration(milliseconds: 250), + vsync: this, + ) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.tap); + case AnimationStatus.completed: + widget.onTap?.call(); + cleanUponOverlayClose(); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + dismissController = AnimationController( + duration: const Duration(milliseconds: 250), + vsync: this, + ) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.dismiss); + case AnimationStatus.completed: + widget.onDismiss?.call(); + cleanUponOverlayClose(); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + } + + void initAnimations() { + animations = Animations( + openController, + tapController, + rippleController, + dismissController, + ); + } + + /// Clean up once overlay has been dismissed or tap target has been tapped. + /// + /// This is called upon [tapController] and [dismissController] end. + void cleanUponOverlayClose() { + FeatureDiscoveryController._of(context).unlock(); + setState(() { + status = FeatureDiscoveryStatus.closed; + showOverlay = false; + overlay?.remove(); + overlay = null; + }); + } + + @override + void didUpdateWidget(FeatureDiscovery oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.showOverlay != oldWidget.showOverlay) { + showOverlay = widget.showOverlay; + } + } + + @override + void dispose() { + overlay?.remove(); + openController.dispose(); + rippleController.dispose(); + tapController.dispose(); + dismissController.dispose(); + super.dispose(); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart new file mode 100644 index 0000000000000000000000000000000000000000..9052c0cdc4bcbd3dea1ce4101dec2c235b5f0ea5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart @@ -0,0 +1,382 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; +import 'animation.dart'; + +const double contentHeight = 80.0; +const double contentWidth = 300.0; +const double contentHorizontalPadding = 40.0; +const double tapTargetRadius = 44.0; +const double tapTargetToContentDistance = 20.0; +const double gutterHeight = 88.0; + +/// Background of the overlay. +class Background extends StatelessWidget { + + const Background({ + super.key, + required this.animations, + required this.center, + required this.color, + required this.deviceSize, + required this.status, + required this.textDirection, + }); + /// Animations. + final Animations animations; + + /// Overlay center position. + final Offset center; + + /// Color of the background. + final Color color; + + /// Device size. + final Size deviceSize; + + /// Status of the parent overlay. + final FeatureDiscoveryStatus status; + + /// Directionality of content. + final TextDirection textDirection; + + static const double horizontalShift = 20.0; + static const double padding = 40.0; + + /// Compute the center position of the background. + /// + /// If [center] is near the top or bottom edges of the screen, then + /// background is centered there. + /// Otherwise, background center is calculated and upon opening, animated + /// from [center] to the new calculated position. + Offset get centerPosition { + if (_isNearTopOrBottomEdges(center, deviceSize)) { + return center; + } else { + final Offset start = center; + + // dy of centerPosition is calculated to be the furthest point in + // [Content] from the [center]. + double endY; + if (_isOnTopHalfOfScreen(center, deviceSize)) { + endY = center.dy - + tapTargetRadius - + tapTargetToContentDistance - + contentHeight; + if (endY < 0.0) { + endY = center.dy + tapTargetRadius + tapTargetToContentDistance; + } + } else { + endY = center.dy + tapTargetRadius + tapTargetToContentDistance; + if (endY + contentHeight > deviceSize.height) { + endY = center.dy - + tapTargetRadius - + tapTargetToContentDistance - + contentHeight; + } + } + + // Horizontal background center shift based on whether the tap target is + // on the left, center, or right side of the screen. + double shift; + if (_isOnLeftHalfOfScreen(center, deviceSize)) { + shift = horizontalShift; + } else if (center.dx == deviceSize.width / 2) { + shift = textDirection == TextDirection.ltr + ? -horizontalShift + : horizontalShift; + } else { + shift = -horizontalShift; + } + + // dx of centerPosition is calculated to be the middle point of the + // [Content] bounds shifted by [horizontalShift]. + final Rect textBounds = _getContentBounds(deviceSize, center); + final double left = min(textBounds.left, center.dx - 88.0); + final double right = max(textBounds.right, center.dx + 88.0); + final double endX = (left + right) / 2 + shift; + final Offset end = Offset(endX, endY); + + return animations.backgroundCenter(status, start, end).value; + } + } + + /// Compute the radius. + /// + /// Radius is a function of the greatest distance from [center] to one of + /// the corners of [Content]. + double get radius { + final Rect textBounds = _getContentBounds(deviceSize, center); + final double textRadius = _maxDistance(center, textBounds) + padding; + if (_isNearTopOrBottomEdges(center, deviceSize)) { + return animations.backgroundRadius(status, textRadius).value; + } else { + // Scale down radius if icon is towards the middle of the screen. + return animations.backgroundRadius(status, textRadius).value * 0.8; + } + } + + double get opacity => animations.backgroundOpacity(status).value; + + @override + Widget build(BuildContext context) { + return Positioned( + left: centerPosition.dx, + top: centerPosition.dy, + child: FractionalTranslation( + translation: const Offset(-0.5, -0.5), + child: Opacity( + opacity: opacity, + child: Container( + height: radius * 2, + width: radius * 2, + decoration: BoxDecoration( + shape: BoxShape.circle, + color: color, + ), + ), + ), + )); + } + + /// Compute the maximum distance from [point] to the four corners of [bounds]. + double _maxDistance(Offset point, Rect bounds) { + double distance(double x1, double y1, double x2, double y2) { + return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); + } + + final double tl = distance(point.dx, point.dy, bounds.left, bounds.top); + final double tr = distance(point.dx, point.dy, bounds.right, bounds.top); + final double bl = distance(point.dx, point.dy, bounds.left, bounds.bottom); + final double br = distance(point.dx, point.dy, bounds.right, bounds.bottom); + return max(tl, max(tr, max(bl, br))); + } +} + +/// Widget that represents the text to show in the overlay. +class Content extends StatelessWidget { + + const Content({ + super.key, + required this.animations, + required this.center, + required this.description, + required this.deviceSize, + required this.status, + required this.title, + required this.textTheme, + }); + /// Animations. + final Animations animations; + + /// Overlay center position. + final Offset center; + + /// Description. + final String description; + + /// Device size. + final Size deviceSize; + + /// Status of the parent overlay. + final FeatureDiscoveryStatus status; + + /// Title. + final String title; + + /// [TextTheme] to use for drawing the [title] and the [description]. + final TextTheme textTheme; + + double get opacity => animations.contentOpacity(status).value; + + @override + Widget build(BuildContext context) { + final Rect position = _getContentBounds(deviceSize, center); + + return Positioned( + left: position.left, + height: position.bottom - position.top, + width: position.right - position.left, + top: position.top, + child: Opacity( + opacity: opacity, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _buildTitle(textTheme), + const SizedBox(height: 12.0), + _buildDescription(textTheme), + ], + ), + ), + ); + } + + Widget _buildTitle(TextTheme theme) { + return Text( + title, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: theme.titleLarge?.copyWith(color: Colors.white), + ); + } + + Widget _buildDescription(TextTheme theme) { + return Text( + description, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: theme.titleMedium?.copyWith(color: Colors.white70), + ); + } +} + +/// Widget that represents the ripple effect of [TapTarget]. +class Ripple extends StatelessWidget { + + const Ripple({ + super.key, + required this.animations, + required this.center, + required this.status, + }); + /// Animations. + final Animations animations; + + /// Overlay center position. + final Offset center; + + /// Status of the parent overlay. + final FeatureDiscoveryStatus status; + + double get radius => animations.rippleRadius(status).value; + double get opacity => animations.rippleOpacity(status).value; + + @override + Widget build(BuildContext context) { + return Positioned( + left: center.dx, + top: center.dy, + child: FractionalTranslation( + translation: const Offset(-0.5, -0.5), + child: Opacity( + opacity: opacity, + child: Container( + height: radius * 2, + width: radius * 2, + decoration: const BoxDecoration( + color: Colors.white, + shape: BoxShape.circle, + ), + ), + ), + ), + ); + } +} + +/// Wrapper widget around [child] representing the anchor of the overlay. +class TapTarget extends StatelessWidget { + + const TapTarget({ + super.key, + required this.animations, + required this.center, + required this.status, + required this.onTap, + required this.child, + }); + /// Animations. + final Animations animations; + + /// Device size. + final Offset center; + + /// Status of the parent overlay. + final FeatureDiscoveryStatus status; + + /// Callback invoked when the user taps on the [TapTarget]. + final void Function() onTap; + + /// Child widget that will be promoted by the overlay. + final Icon child; + + double get radius => animations.tapTargetRadius(status).value; + double get opacity => animations.tapTargetOpacity(status).value; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Positioned( + left: center.dx, + top: center.dy, + child: FractionalTranslation( + translation: const Offset(-0.5, -0.5), + child: InkWell( + onTap: onTap, + child: Opacity( + opacity: opacity, + child: Container( + height: radius * 2, + width: radius * 2, + decoration: BoxDecoration( + color: theme.brightness == Brightness.dark + ? theme.colorScheme.primary + : Colors.white, + shape: BoxShape.circle, + ), + child: child, + ), + ), + ), + ), + ); + } +} + +/// Method to compute the bounds of the content. +/// +/// This is exposed so it can be used for calculating the background radius +/// and center and for laying out the content. +Rect _getContentBounds(Size deviceSize, Offset overlayCenter) { + double top; + if (_isOnTopHalfOfScreen(overlayCenter, deviceSize)) { + top = overlayCenter.dy - + tapTargetRadius - + tapTargetToContentDistance - + contentHeight; + if (top < 0) { + top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance; + } + } else { + top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance; + if (top + contentHeight > deviceSize.height) { + top = overlayCenter.dy - + tapTargetRadius - + tapTargetToContentDistance - + contentHeight; + } + } + + final double left = max(contentHorizontalPadding, overlayCenter.dx - contentWidth); + final double right = + min(deviceSize.width - contentHorizontalPadding, left + contentWidth); + return Rect.fromLTRB(left, top, right, top + contentHeight); +} + +bool _isNearTopOrBottomEdges(Offset position, Size deviceSize) { + return position.dy <= gutterHeight || + (deviceSize.height - position.dy) <= gutterHeight; +} + +bool _isOnTopHalfOfScreen(Offset position, Size deviceSize) { + return position.dy < (deviceSize.height / 2.0); +} + +bool _isOnLeftHalfOfScreen(Offset position, Size deviceSize) { + return position.dx < (deviceSize.width / 2.0); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..2dacb92304d7701c9c37b8b187ebdbee000180a2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart @@ -0,0 +1,4950 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:intl/intl.dart' as intl; + +import 'gallery_localizations_en.dart'; + +/// Callers can lookup localized strings with an instance of GalleryLocalizations +/// returned by `GalleryLocalizations.of(context)`. +/// +/// Applications need to include `GalleryLocalizations.delegate()` in their app's +/// `localizationDelegates` list, and the locales they support in the app's +/// `supportedLocales` list. For example: +/// +/// ```dart +/// import 'gen_l10n/gallery_localizations.dart'; +/// +/// return MaterialApp( +/// localizationsDelegates: GalleryLocalizations.localizationsDelegates, +/// supportedLocales: GalleryLocalizations.supportedLocales, +/// home: MyApplicationHome(), +/// ); +/// ``` +/// +/// ## Update pubspec.yaml +/// +/// Please make sure to update your pubspec.yaml to include the following +/// packages: +/// +/// ```yaml +/// dependencies: +/// # Internationalization support. +/// flutter_localizations: +/// sdk: flutter +/// intl: any # Use the pinned version from flutter_localizations +/// +/// # Rest of dependencies +/// ``` +/// +/// ## iOS Applications +/// +/// iOS applications define key application metadata, including supported +/// locales, in an Info.plist file that is built into the application bundle. +/// To configure the locales supported by your app, you’ll need to edit this +/// file. +/// +/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file. +/// Then, in the Project Navigator, open the Info.plist file under the Runner +/// project’s Runner folder. +/// +/// Next, select the Information Property List item, select Add Item from the +/// Editor menu, then select Localizations from the pop-up menu. +/// +/// Select and expand the newly-created Localizations item then, for each +/// locale your application supports, add a new item and select the locale +/// you wish to add from the pop-up menu in the Value field. This list should +/// be consistent with the languages listed in the GalleryLocalizations.supportedLocales +/// property. +abstract class GalleryLocalizations { + GalleryLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale); + + final String localeName; + + static GalleryLocalizations? of(BuildContext context) { + return Localizations.of(context, GalleryLocalizations); + } + + static const LocalizationsDelegate delegate = _GalleryLocalizationsDelegate(); + + /// A list of this localizations delegate along with the default localizations + /// delegates. + /// + /// Returns a list of localizations delegates containing this delegate along with + /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, + /// and GlobalWidgetsLocalizations.delegate. + /// + /// Additional delegates can be added by appending to this list in + /// MaterialApp. This list does not have to be used at all if a custom list + /// of delegates is preferred or required. + static const List> localizationsDelegates = >[ + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; + + /// A list of this localizations delegate's supported locales. + static const List supportedLocales = [ + Locale('en'), + Locale('en', 'IS') + ]; + + /// Represents a link to a GitHub repository. + /// + /// In en, this message translates to: + /// **'{repoName} GitHub repository'** + String githubRepo(Object repoName); + + /// A description about how to view the source code for this app. + /// + /// In en, this message translates to: + /// **'To see the source code for this app, please visit the {repoLink}.'** + String aboutDialogDescription(Object repoLink); + + /// Deselect a (selectable) item + /// + /// In en, this message translates to: + /// **'Deselect'** + String get deselect; + + /// Indicates the status of a (selectable) item not being selected + /// + /// In en, this message translates to: + /// **'Not selected'** + String get notSelected; + + /// Select a (selectable) item + /// + /// In en, this message translates to: + /// **'Select'** + String get select; + + /// Indicates the associated piece of UI is selectable by long pressing it + /// + /// In en, this message translates to: + /// **'Selectable (long press)'** + String get selectable; + + /// Indicates status of a (selectable) item being selected + /// + /// In en, this message translates to: + /// **'Selected'** + String get selected; + + /// Sign in label to sign into website. + /// + /// In en, this message translates to: + /// **'SIGN IN'** + String get signIn; + + /// Password was updated on a different device and the user is required to sign in again + /// + /// In en, this message translates to: + /// **'Your password was updated on your other device. Please sign in again.'** + String get bannerDemoText; + + /// Show the Banner to the user again. + /// + /// In en, this message translates to: + /// **'Reset the banner'** + String get bannerDemoResetText; + + /// When the user clicks this button the Banner will toggle multiple actions or a single action + /// + /// In en, this message translates to: + /// **'Multiple actions'** + String get bannerDemoMultipleText; + + /// If user clicks this button the leading icon in the Banner will disappear + /// + /// In en, this message translates to: + /// **'Leading Icon'** + String get bannerDemoLeadingText; + + /// When text is pressed the banner widget will be removed from the screen. + /// + /// In en, this message translates to: + /// **'DISMISS'** + String get dismiss; + + /// Semantic label for back button to exit a study and return to the gallery home page. + /// + /// In en, this message translates to: + /// **'Back to Gallery'** + String get backToGallery; + + /// Click to see more about the content in the cards demo. + /// + /// In en, this message translates to: + /// **'Explore'** + String get cardsDemoExplore; + + /// Semantics label for Explore. Label tells user to explore the destinationName to the user. Example Explore Tamil + /// + /// In en, this message translates to: + /// **'Explore {destinationName}'** + String cardsDemoExploreSemantics(Object destinationName); + + /// Semantics label for Share. Label tells user to share the destinationName to the user. Example Share Tamil + /// + /// In en, this message translates to: + /// **'Share {destinationName}'** + String cardsDemoShareSemantics(Object destinationName); + + /// The user can tap this button + /// + /// In en, this message translates to: + /// **'Tappable'** + String get cardsDemoTappable; + + /// The top 10 cities that you can visit in Tamil Nadu + /// + /// In en, this message translates to: + /// **'Top 10 Cities to Visit in Tamil Nadu'** + String get cardsDemoTravelDestinationTitle1; + + /// Number 10 + /// + /// In en, this message translates to: + /// **'Number 10'** + String get cardsDemoTravelDestinationDescription1; + + /// Thanjavur the city + /// + /// In en, this message translates to: + /// **'Thanjavur'** + String get cardsDemoTravelDestinationCity1; + + /// Thanjavur, Tamil Nadu is a location + /// + /// In en, this message translates to: + /// **'Thanjavur, Tamil Nadu'** + String get cardsDemoTravelDestinationLocation1; + + /// Artist that are from Southern India + /// + /// In en, this message translates to: + /// **'Artisans of Southern India'** + String get cardsDemoTravelDestinationTitle2; + + /// Silk Spinners + /// + /// In en, this message translates to: + /// **'Silk Spinners'** + String get cardsDemoTravelDestinationDescription2; + + /// Chettinad the city + /// + /// In en, this message translates to: + /// **'Chettinad'** + String get cardsDemoTravelDestinationCity2; + + /// Sivaganga, Tamil Nadu is a location + /// + /// In en, this message translates to: + /// **'Sivaganga, Tamil Nadu'** + String get cardsDemoTravelDestinationLocation2; + + /// Brihadisvara Temple + /// + /// In en, this message translates to: + /// **'Brihadisvara Temple'** + String get cardsDemoTravelDestinationTitle3; + + /// Temples + /// + /// In en, this message translates to: + /// **'Temples'** + String get cardsDemoTravelDestinationDescription3; + + /// Header title on home screen for Gallery section. + /// + /// In en, this message translates to: + /// **'Gallery'** + String get homeHeaderGallery; + + /// Header title on home screen for Categories section. + /// + /// In en, this message translates to: + /// **'Categories'** + String get homeHeaderCategories; + + /// Study description for Shrine. + /// + /// In en, this message translates to: + /// **'A fashionable retail app'** + String get shrineDescription; + + /// Study description for Fortnightly. + /// + /// In en, this message translates to: + /// **'A content-focused news app'** + String get fortnightlyDescription; + + /// Study description for Rally. + /// + /// In en, this message translates to: + /// **'A personal finance app'** + String get rallyDescription; + + /// Study description for Reply. + /// + /// In en, this message translates to: + /// **'An efficient, focused email app'** + String get replyDescription; + + /// Name for account made up by user. + /// + /// In en, this message translates to: + /// **'Checking'** + String get rallyAccountDataChecking; + + /// Name for account made up by user. + /// + /// In en, this message translates to: + /// **'Home Savings'** + String get rallyAccountDataHomeSavings; + + /// Name for account made up by user. + /// + /// In en, this message translates to: + /// **'Car Savings'** + String get rallyAccountDataCarSavings; + + /// Name for account made up by user. + /// + /// In en, this message translates to: + /// **'Vacation'** + String get rallyAccountDataVacation; + + /// Title for account statistics. Below a percentage such as 0.10% will be displayed. + /// + /// In en, this message translates to: + /// **'Annual Percentage Yield'** + String get rallyAccountDetailDataAnnualPercentageYield; + + /// Title for account statistics. Below a dollar amount such as $100 will be displayed. + /// + /// In en, this message translates to: + /// **'Interest Rate'** + String get rallyAccountDetailDataInterestRate; + + /// Title for account statistics. Below a dollar amount such as $100 will be displayed. + /// + /// In en, this message translates to: + /// **'Interest YTD'** + String get rallyAccountDetailDataInterestYtd; + + /// Title for account statistics. Below a dollar amount such as $100 will be displayed. + /// + /// In en, this message translates to: + /// **'Interest Paid Last Year'** + String get rallyAccountDetailDataInterestPaidLastYear; + + /// Title for an account detail. Below a date for when the next account statement is released. + /// + /// In en, this message translates to: + /// **'Next Statement'** + String get rallyAccountDetailDataNextStatement; + + /// Title for an account detail. Below the name of the account owner will be displayed. + /// + /// In en, this message translates to: + /// **'Account Owner'** + String get rallyAccountDetailDataAccountOwner; + + /// Title for column where it displays the total dollar amount that the user has in bills. + /// + /// In en, this message translates to: + /// **'Total Amount'** + String get rallyBillDetailTotalAmount; + + /// Title for column where it displays the amount that the user has paid. + /// + /// In en, this message translates to: + /// **'Amount Paid'** + String get rallyBillDetailAmountPaid; + + /// Title for column where it displays the amount that the user has due. + /// + /// In en, this message translates to: + /// **'Amount Due'** + String get rallyBillDetailAmountDue; + + /// Category for budget, to sort expenses / bills in. + /// + /// In en, this message translates to: + /// **'Coffee Shops'** + String get rallyBudgetCategoryCoffeeShops; + + /// Category for budget, to sort expenses / bills in. + /// + /// In en, this message translates to: + /// **'Groceries'** + String get rallyBudgetCategoryGroceries; + + /// Category for budget, to sort expenses / bills in. + /// + /// In en, this message translates to: + /// **'Restaurants'** + String get rallyBudgetCategoryRestaurants; + + /// Category for budget, to sort expenses / bills in. + /// + /// In en, this message translates to: + /// **'Clothing'** + String get rallyBudgetCategoryClothing; + + /// Title for column where it displays the total dollar cap that the user has for its budget. + /// + /// In en, this message translates to: + /// **'Total Cap'** + String get rallyBudgetDetailTotalCap; + + /// Title for column where it displays the dollar amount that the user has used in its budget. + /// + /// In en, this message translates to: + /// **'Amount Used'** + String get rallyBudgetDetailAmountUsed; + + /// Title for column where it displays the dollar amount that the user has left in its budget. + /// + /// In en, this message translates to: + /// **'Amount Left'** + String get rallyBudgetDetailAmountLeft; + + /// Link to go to the page 'Manage Accounts. + /// + /// In en, this message translates to: + /// **'Manage Accounts'** + String get rallySettingsManageAccounts; + + /// Link to go to the page 'Tax Documents'. + /// + /// In en, this message translates to: + /// **'Tax Documents'** + String get rallySettingsTaxDocuments; + + /// Link to go to the page 'Passcode and Touch ID'. + /// + /// In en, this message translates to: + /// **'Passcode and Touch ID'** + String get rallySettingsPasscodeAndTouchId; + + /// Link to go to the page 'Notifications'. + /// + /// In en, this message translates to: + /// **'Notifications'** + String get rallySettingsNotifications; + + /// Link to go to the page 'Personal Information'. + /// + /// In en, this message translates to: + /// **'Personal Information'** + String get rallySettingsPersonalInformation; + + /// Link to go to the page 'Paperless Settings'. + /// + /// In en, this message translates to: + /// **'Paperless Settings'** + String get rallySettingsPaperlessSettings; + + /// Link to go to the page 'Find ATMs'. + /// + /// In en, this message translates to: + /// **'Find ATMs'** + String get rallySettingsFindAtms; + + /// Link to go to the page 'Help'. + /// + /// In en, this message translates to: + /// **'Help'** + String get rallySettingsHelp; + + /// Link to go to the page 'Sign out'. + /// + /// In en, this message translates to: + /// **'Sign out'** + String get rallySettingsSignOut; + + /// Title for 'total account value' overview page, a dollar value is displayed next to it. + /// + /// In en, this message translates to: + /// **'Total'** + String get rallyAccountTotal; + + /// Title for 'bills due' page, a dollar value is displayed next to it. + /// + /// In en, this message translates to: + /// **'Due'** + String get rallyBillsDue; + + /// Title for 'budget left' page, a dollar value is displayed next to it. + /// + /// In en, this message translates to: + /// **'Left'** + String get rallyBudgetLeft; + + /// Link text for accounts page. + /// + /// In en, this message translates to: + /// **'Accounts'** + String get rallyAccounts; + + /// Link text for bills page. + /// + /// In en, this message translates to: + /// **'Bills'** + String get rallyBills; + + /// Link text for budgets page. + /// + /// In en, this message translates to: + /// **'Budgets'** + String get rallyBudgets; + + /// Title for alerts part of overview page. + /// + /// In en, this message translates to: + /// **'Alerts'** + String get rallyAlerts; + + /// Link text for button to see all data for category. + /// + /// In en, this message translates to: + /// **'SEE ALL'** + String get rallySeeAll; + + /// Displayed as 'dollar amount left', for example $46.70 LEFT, for a budget category. + /// + /// In en, this message translates to: + /// **' LEFT'** + String get rallyFinanceLeft; + + /// The navigation link to the overview page. + /// + /// In en, this message translates to: + /// **'OVERVIEW'** + String get rallyTitleOverview; + + /// The navigation link to the accounts page. + /// + /// In en, this message translates to: + /// **'ACCOUNTS'** + String get rallyTitleAccounts; + + /// The navigation link to the bills page. + /// + /// In en, this message translates to: + /// **'BILLS'** + String get rallyTitleBills; + + /// The navigation link to the budgets page. + /// + /// In en, this message translates to: + /// **'BUDGETS'** + String get rallyTitleBudgets; + + /// The navigation link to the settings page. + /// + /// In en, this message translates to: + /// **'SETTINGS'** + String get rallyTitleSettings; + + /// Title for login page for the Rally app (Rally does not need to be translated as it is a product name). + /// + /// In en, this message translates to: + /// **'Login to Rally'** + String get rallyLoginLoginToRally; + + /// Prompt for signing up for an account. + /// + /// In en, this message translates to: + /// **'Don\'t have an account?'** + String get rallyLoginNoAccount; + + /// Button text to sign up for an account. + /// + /// In en, this message translates to: + /// **'SIGN UP'** + String get rallyLoginSignUp; + + /// The username field in an login form. + /// + /// In en, this message translates to: + /// **'Username'** + String get rallyLoginUsername; + + /// The password field in an login form. + /// + /// In en, this message translates to: + /// **'Password'** + String get rallyLoginPassword; + + /// The label text to login. + /// + /// In en, this message translates to: + /// **'Login'** + String get rallyLoginLabelLogin; + + /// Text if the user wants to stay logged in. + /// + /// In en, this message translates to: + /// **'Remember Me'** + String get rallyLoginRememberMe; + + /// Text for login button. + /// + /// In en, this message translates to: + /// **'LOGIN'** + String get rallyLoginButtonLogin; + + /// Alert message shown when for example, user has used more than 90% of their shopping budget. + /// + /// In en, this message translates to: + /// **'Heads up, you\'ve used up {percent} of your Shopping budget for this month.'** + String rallyAlertsMessageHeadsUpShopping(Object percent); + + /// Alert message shown when for example, user has spent $120 on Restaurants this week. + /// + /// In en, this message translates to: + /// **'You\'ve spent {amount} on Restaurants this week.'** + String rallyAlertsMessageSpentOnRestaurants(Object amount); + + /// Alert message shown when for example, the user has spent $24 in ATM fees this month. + /// + /// In en, this message translates to: + /// **'You\'ve spent {amount} in ATM fees this month'** + String rallyAlertsMessageATMFees(Object amount); + + /// Alert message shown when for example, the checking account is 1% higher than last month. + /// + /// In en, this message translates to: + /// **'Good work! Your checking account is {percent} higher than last month.'** + String rallyAlertsMessageCheckingAccount(Object percent); + + /// Alert message shown when you have unassigned transactions. + /// + /// In en, this message translates to: + /// **'{count, plural, =1{Increase your potential tax deduction! Assign categories to 1 unassigned transaction.}other{Increase your potential tax deduction! Assign categories to {count} unassigned transactions.}}'** + String rallyAlertsMessageUnassignedTransactions(num count); + + /// Semantics label for button to see all accounts. Accounts refer to bank account here. + /// + /// In en, this message translates to: + /// **'See all accounts'** + String get rallySeeAllAccounts; + + /// Semantics label for button to see all bills. + /// + /// In en, this message translates to: + /// **'See all bills'** + String get rallySeeAllBills; + + /// Semantics label for button to see all budgets. + /// + /// In en, this message translates to: + /// **'See all budgets'** + String get rallySeeAllBudgets; + + /// Semantics label for row with bank account name (for example checking) and its bank account number (for example 123), with how much money is deposited in it (for example $12). + /// + /// In en, this message translates to: + /// **'{accountName} account {accountNumber} with {amount}.'** + String rallyAccountAmount(Object accountName, Object accountNumber, Object amount); + + /// Semantics label for row with a bill (example name is rent), when the bill is due (1/12/2019 for example) and for how much money ($12). + /// + /// In en, this message translates to: + /// **'{billName} bill due {date} for {amount}.'** + String rallyBillAmount(Object billName, Object date, Object amount); + + /// Semantics label for row with a budget (housing budget for example), with how much is used of the budget (for example $5), the total budget (for example $100) and the amount left in the budget (for example $95). + /// + /// In en, this message translates to: + /// **'{budgetName} budget with {amountUsed} used of {amountTotal}, {amountLeft} left'** + String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft); + + /// Study description for Crane. + /// + /// In en, this message translates to: + /// **'A personalized travel app'** + String get craneDescription; + + /// Category title on home screen for styles & other demos (for context, the styles demos consist of a color demo and a typography demo). + /// + /// In en, this message translates to: + /// **'STYLES & OTHER'** + String get homeCategoryReference; + + /// Error message when opening the URL for a demo. + /// + /// In en, this message translates to: + /// **'Couldn\'t display URL:'** + String get demoInvalidURL; + + /// Tooltip for options button in a demo. + /// + /// In en, this message translates to: + /// **'Options'** + String get demoOptionsTooltip; + + /// Tooltip for info button in a demo. + /// + /// In en, this message translates to: + /// **'Info'** + String get demoInfoTooltip; + + /// Tooltip for demo code button in a demo. + /// + /// In en, this message translates to: + /// **'Demo Code'** + String get demoCodeTooltip; + + /// Tooltip for API documentation button in a demo. + /// + /// In en, this message translates to: + /// **'API Documentation'** + String get demoDocumentationTooltip; + + /// Tooltip for Full Screen button in a demo. + /// + /// In en, this message translates to: + /// **'Full Screen'** + String get demoFullscreenTooltip; + + /// Caption for a button to copy all text. + /// + /// In en, this message translates to: + /// **'COPY ALL'** + String get demoCodeViewerCopyAll; + + /// A message displayed to the user after clicking the COPY ALL button, if the text is successfully copied to the clipboard. + /// + /// In en, this message translates to: + /// **'Copied to clipboard.'** + String get demoCodeViewerCopiedToClipboardMessage; + + /// A message displayed to the user after clicking the COPY ALL button, if the text CANNOT be copied to the clipboard. + /// + /// In en, this message translates to: + /// **'Failed to copy to clipboard: {error}'** + String demoCodeViewerFailedToCopyToClipboardMessage(Object error); + + /// Title for an alert that explains what the options button does. + /// + /// In en, this message translates to: + /// **'View options'** + String get demoOptionsFeatureTitle; + + /// Description for an alert that explains what the options button does. + /// + /// In en, this message translates to: + /// **'Tap here to view available options for this demo.'** + String get demoOptionsFeatureDescription; + + /// Title for the settings screen. + /// + /// In en, this message translates to: + /// **'Settings'** + String get settingsTitle; + + /// Accessibility label for the settings button when settings are not showing. + /// + /// In en, this message translates to: + /// **'Settings'** + String get settingsButtonLabel; + + /// Accessibility label for the settings button when settings are showing. + /// + /// In en, this message translates to: + /// **'Close settings'** + String get settingsButtonCloseLabel; + + /// Option label to indicate the system default will be used. + /// + /// In en, this message translates to: + /// **'System'** + String get settingsSystemDefault; + + /// Title for text scaling setting. + /// + /// In en, this message translates to: + /// **'Text scaling'** + String get settingsTextScaling; + + /// Option label for small text scale setting. + /// + /// In en, this message translates to: + /// **'Small'** + String get settingsTextScalingSmall; + + /// Option label for normal text scale setting. + /// + /// In en, this message translates to: + /// **'Normal'** + String get settingsTextScalingNormal; + + /// Option label for large text scale setting. + /// + /// In en, this message translates to: + /// **'Large'** + String get settingsTextScalingLarge; + + /// Option label for huge text scale setting. + /// + /// In en, this message translates to: + /// **'Huge'** + String get settingsTextScalingHuge; + + /// Title for text direction setting. + /// + /// In en, this message translates to: + /// **'Text direction'** + String get settingsTextDirection; + + /// Option label for locale-based text direction setting. + /// + /// In en, this message translates to: + /// **'Based on locale'** + String get settingsTextDirectionLocaleBased; + + /// Option label for left-to-right text direction setting. + /// + /// In en, this message translates to: + /// **'LTR'** + String get settingsTextDirectionLTR; + + /// Option label for right-to-left text direction setting. + /// + /// In en, this message translates to: + /// **'RTL'** + String get settingsTextDirectionRTL; + + /// Title for locale setting. + /// + /// In en, this message translates to: + /// **'Locale'** + String get settingsLocale; + + /// Title for platform mechanics (iOS, Android, macOS, etc.) setting. + /// + /// In en, this message translates to: + /// **'Platform mechanics'** + String get settingsPlatformMechanics; + + /// Title for the theme setting. + /// + /// In en, this message translates to: + /// **'Theme'** + String get settingsTheme; + + /// Title for the dark theme setting. + /// + /// In en, this message translates to: + /// **'Dark'** + String get settingsDarkTheme; + + /// Title for the light theme setting. + /// + /// In en, this message translates to: + /// **'Light'** + String get settingsLightTheme; + + /// Title for slow motion setting. + /// + /// In en, this message translates to: + /// **'Slow motion'** + String get settingsSlowMotion; + + /// Title for information button. + /// + /// In en, this message translates to: + /// **'About Flutter Gallery'** + String get settingsAbout; + + /// Title for feedback button. + /// + /// In en, this message translates to: + /// **'Send feedback'** + String get settingsFeedback; + + /// Title for attribution (TOASTER is a proper name and should remain in English). + /// + /// In en, this message translates to: + /// **'Designed by TOASTER in London'** + String get settingsAttribution; + + /// Title for the material App bar component demo. + /// + /// In en, this message translates to: + /// **'App bar'** + String get demoAppBarTitle; + + /// Subtitle for the material App bar component demo. + /// + /// In en, this message translates to: + /// **'Displays information and actions relating to the current screen'** + String get demoAppBarSubtitle; + + /// Description for the material App bar component demo. + /// + /// In en, this message translates to: + /// **'The App bar provides content and actions related to the current screen. It\'s used for branding, screen titles, navigation, and actions'** + String get demoAppBarDescription; + + /// Title for the material bottom app bar component demo. + /// + /// In en, this message translates to: + /// **'Bottom app bar'** + String get demoBottomAppBarTitle; + + /// Subtitle for the material bottom app bar component demo. + /// + /// In en, this message translates to: + /// **'Displays navigation and actions at the bottom'** + String get demoBottomAppBarSubtitle; + + /// Description for the material bottom app bar component demo. + /// + /// In en, this message translates to: + /// **'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'** + String get demoBottomAppBarDescription; + + /// A toggle for whether to have a notch (or cutout) in the bottom app bar demo. + /// + /// In en, this message translates to: + /// **'Notch'** + String get bottomAppBarNotch; + + /// A setting for the position of the floating action button in the bottom app bar demo. + /// + /// In en, this message translates to: + /// **'Floating Action Button Position'** + String get bottomAppBarPosition; + + /// A setting for the position of the floating action button in the bottom app bar that docks the button in the bar and aligns it at the end. + /// + /// In en, this message translates to: + /// **'Docked - End'** + String get bottomAppBarPositionDockedEnd; + + /// A setting for the position of the floating action button in the bottom app bar that docks the button in the bar and aligns it in the center. + /// + /// In en, this message translates to: + /// **'Docked - Center'** + String get bottomAppBarPositionDockedCenter; + + /// A setting for the position of the floating action button in the bottom app bar that places the button above the bar and aligns it at the end. + /// + /// In en, this message translates to: + /// **'Floating - End'** + String get bottomAppBarPositionFloatingEnd; + + /// A setting for the position of the floating action button in the bottom app bar that places the button above the bar and aligns it in the center. + /// + /// In en, this message translates to: + /// **'Floating - Center'** + String get bottomAppBarPositionFloatingCenter; + + /// Title for the material banner component demo. + /// + /// In en, this message translates to: + /// **'Banner'** + String get demoBannerTitle; + + /// Subtitle for the material banner component demo. + /// + /// In en, this message translates to: + /// **'Displaying a banner within a list'** + String get demoBannerSubtitle; + + /// Description for the material banner component demo. + /// + /// In en, this message translates to: + /// **'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'** + String get demoBannerDescription; + + /// Title for the material bottom navigation component demo. + /// + /// In en, this message translates to: + /// **'Bottom navigation'** + String get demoBottomNavigationTitle; + + /// Subtitle for the material bottom navigation component demo. + /// + /// In en, this message translates to: + /// **'Bottom navigation with cross-fading views'** + String get demoBottomNavigationSubtitle; + + /// Option title for bottom navigation with persistent labels. + /// + /// In en, this message translates to: + /// **'Persistent labels'** + String get demoBottomNavigationPersistentLabels; + + /// Option title for bottom navigation with only a selected label. + /// + /// In en, this message translates to: + /// **'Selected label'** + String get demoBottomNavigationSelectedLabel; + + /// Description for the material bottom navigation component demo. + /// + /// In en, this message translates to: + /// **'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'** + String get demoBottomNavigationDescription; + + /// Title for the material buttons component demo. + /// + /// In en, this message translates to: + /// **'Buttons'** + String get demoButtonTitle; + + /// Subtitle for the material buttons component demo. + /// + /// In en, this message translates to: + /// **'Text, elevated, outlined, and more'** + String get demoButtonSubtitle; + + /// Title for the text button component demo. + /// + /// In en, this message translates to: + /// **'Text Button'** + String get demoTextButtonTitle; + + /// Description for the text button component demo. + /// + /// In en, this message translates to: + /// **'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogs and inline with padding'** + String get demoTextButtonDescription; + + /// Title for the elevated button component demo. + /// + /// In en, this message translates to: + /// **'Elevated Button'** + String get demoElevatedButtonTitle; + + /// Description for the elevated button component demo. + /// + /// In en, this message translates to: + /// **'Elevated buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.'** + String get demoElevatedButtonDescription; + + /// Title for the outlined button component demo. + /// + /// In en, this message translates to: + /// **'Outlined Button'** + String get demoOutlinedButtonTitle; + + /// Description for the outlined button component demo. + /// + /// In en, this message translates to: + /// **'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'** + String get demoOutlinedButtonDescription; + + /// Title for the toggle buttons component demo. + /// + /// In en, this message translates to: + /// **'Toggle Buttons'** + String get demoToggleButtonTitle; + + /// Description for the toggle buttons component demo. + /// + /// In en, this message translates to: + /// **'Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container'** + String get demoToggleButtonDescription; + + /// Title for the floating action button component demo. + /// + /// In en, this message translates to: + /// **'Floating Action Button'** + String get demoFloatingButtonTitle; + + /// Description for the floating action button component demo. + /// + /// In en, this message translates to: + /// **'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'** + String get demoFloatingButtonDescription; + + /// Title for the material cards component demo. + /// + /// In en, this message translates to: + /// **'Cards'** + String get demoCardTitle; + + /// Subtitle for the material cards component demo. + /// + /// In en, this message translates to: + /// **'Baseline cards with rounded corners'** + String get demoCardSubtitle; + + /// Title for the material chips component demo. + /// + /// In en, this message translates to: + /// **'Chips'** + String get demoChipTitle; + + /// Description for the material cards component demo. + /// + /// In en, this message translates to: + /// **'A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.'** + String get demoCardDescription; + + /// Subtitle for the material chips component demo. + /// + /// In en, this message translates to: + /// **'Compact elements that represent an input, attribute, or action'** + String get demoChipSubtitle; + + /// Title for the action chip component demo. + /// + /// In en, this message translates to: + /// **'Action Chip'** + String get demoActionChipTitle; + + /// Description for the action chip component demo. + /// + /// In en, this message translates to: + /// **'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'** + String get demoActionChipDescription; + + /// Title for the choice chip component demo. + /// + /// In en, this message translates to: + /// **'Choice Chip'** + String get demoChoiceChipTitle; + + /// Description for the choice chip component demo. + /// + /// In en, this message translates to: + /// **'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'** + String get demoChoiceChipDescription; + + /// Title for the filter chip component demo. + /// + /// In en, this message translates to: + /// **'Filter Chip'** + String get demoFilterChipTitle; + + /// Description for the filter chip component demo. + /// + /// In en, this message translates to: + /// **'Filter chips use tags or descriptive words as a way to filter content.'** + String get demoFilterChipDescription; + + /// Title for the input chip component demo. + /// + /// In en, this message translates to: + /// **'Input Chip'** + String get demoInputChipTitle; + + /// Description for the input chip component demo. + /// + /// In en, this message translates to: + /// **'Input chips represent a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.'** + String get demoInputChipDescription; + + /// Title for the material data table component demo. + /// + /// In en, this message translates to: + /// **'Data Tables'** + String get demoDataTableTitle; + + /// Subtitle for the material data table component demo. + /// + /// In en, this message translates to: + /// **'Rows and columns of information'** + String get demoDataTableSubtitle; + + /// Description for the material data table component demo. + /// + /// In en, this message translates to: + /// **'Data tables display information in a grid-like format of rows and columns. They organize information in a way that\'s easy to scan, so that users can look for patterns and insights.'** + String get demoDataTableDescription; + + /// Header for the data table component demo about nutrition. + /// + /// In en, this message translates to: + /// **'Nutrition'** + String get dataTableHeader; + + /// Column header for desserts. + /// + /// In en, this message translates to: + /// **'Dessert (1 serving)'** + String get dataTableColumnDessert; + + /// Column header for number of calories. + /// + /// In en, this message translates to: + /// **'Calories'** + String get dataTableColumnCalories; + + /// Column header for number of grams of fat. + /// + /// In en, this message translates to: + /// **'Fat (g)'** + String get dataTableColumnFat; + + /// Column header for number of grams of carbs. + /// + /// In en, this message translates to: + /// **'Carbs (g)'** + String get dataTableColumnCarbs; + + /// Column header for number of grams of protein. + /// + /// In en, this message translates to: + /// **'Protein (g)'** + String get dataTableColumnProtein; + + /// Column header for number of milligrams of sodium. + /// + /// In en, this message translates to: + /// **'Sodium (mg)'** + String get dataTableColumnSodium; + + /// Column header for daily percentage of calcium. + /// + /// In en, this message translates to: + /// **'Calcium (%)'** + String get dataTableColumnCalcium; + + /// Column header for daily percentage of iron. + /// + /// In en, this message translates to: + /// **'Iron (%)'** + String get dataTableColumnIron; + + /// Column row for frozen yogurt. + /// + /// In en, this message translates to: + /// **'Frozen yogurt'** + String get dataTableRowFrozenYogurt; + + /// Column row for Ice cream sandwich. + /// + /// In en, this message translates to: + /// **'Ice cream sandwich'** + String get dataTableRowIceCreamSandwich; + + /// Column row for Eclair. + /// + /// In en, this message translates to: + /// **'Eclair'** + String get dataTableRowEclair; + + /// Column row for Cupcake. + /// + /// In en, this message translates to: + /// **'Cupcake'** + String get dataTableRowCupcake; + + /// Column row for Gingerbread. + /// + /// In en, this message translates to: + /// **'Gingerbread'** + String get dataTableRowGingerbread; + + /// Column row for Jelly bean. + /// + /// In en, this message translates to: + /// **'Jelly bean'** + String get dataTableRowJellyBean; + + /// Column row for Lollipop. + /// + /// In en, this message translates to: + /// **'Lollipop'** + String get dataTableRowLollipop; + + /// Column row for Honeycomb. + /// + /// In en, this message translates to: + /// **'Honeycomb'** + String get dataTableRowHoneycomb; + + /// Column row for Donut. + /// + /// In en, this message translates to: + /// **'Donut'** + String get dataTableRowDonut; + + /// Column row for Apple pie. + /// + /// In en, this message translates to: + /// **'Apple pie'** + String get dataTableRowApplePie; + + /// A dessert with sugar on it. The parameter is some type of dessert. + /// + /// In en, this message translates to: + /// **'{value} with sugar'** + String dataTableRowWithSugar(Object value); + + /// A dessert with honey on it. The parameter is some type of dessert. + /// + /// In en, this message translates to: + /// **'{value} with honey'** + String dataTableRowWithHoney(Object value); + + /// Title for the material dialog component demo. + /// + /// In en, this message translates to: + /// **'Dialogs'** + String get demoDialogTitle; + + /// Subtitle for the material dialog component demo. + /// + /// In en, this message translates to: + /// **'Simple, alert, and fullscreen'** + String get demoDialogSubtitle; + + /// Title for the alert dialog component demo. + /// + /// In en, this message translates to: + /// **'Alert'** + String get demoAlertDialogTitle; + + /// Description for the alert dialog component demo. + /// + /// In en, this message translates to: + /// **'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.'** + String get demoAlertDialogDescription; + + /// Title for the alert dialog with title component demo. + /// + /// In en, this message translates to: + /// **'Alert With Title'** + String get demoAlertTitleDialogTitle; + + /// Title for the simple dialog component demo. + /// + /// In en, this message translates to: + /// **'Simple'** + String get demoSimpleDialogTitle; + + /// Description for the simple dialog component demo. + /// + /// In en, this message translates to: + /// **'A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.'** + String get demoSimpleDialogDescription; + + /// Title for the divider component demo. + /// + /// In en, this message translates to: + /// **'Divider'** + String get demoDividerTitle; + + /// Subtitle for the divider component demo. + /// + /// In en, this message translates to: + /// **'A divider is a thin line that groups content in lists and layouts.'** + String get demoDividerSubtitle; + + /// Description for the divider component demo. + /// + /// In en, this message translates to: + /// **'Dividers can be used in lists, drawers, and elsewhere to separate content.'** + String get demoDividerDescription; + + /// Title for the vertical divider component demo. + /// + /// In en, this message translates to: + /// **'Vertical Divider'** + String get demoVerticalDividerTitle; + + /// Title for the grid lists component demo. + /// + /// In en, this message translates to: + /// **'Grid Lists'** + String get demoGridListsTitle; + + /// Subtitle for the grid lists component demo. + /// + /// In en, this message translates to: + /// **'Row and column layout'** + String get demoGridListsSubtitle; + + /// Description for the grid lists component demo. + /// + /// In en, this message translates to: + /// **'Grid Lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'** + String get demoGridListsDescription; + + /// Title for the grid lists image-only component demo. + /// + /// In en, this message translates to: + /// **'Image only'** + String get demoGridListsImageOnlyTitle; + + /// Title for the grid lists component demo with headers on each tile. + /// + /// In en, this message translates to: + /// **'With header'** + String get demoGridListsHeaderTitle; + + /// Title for the grid lists component demo with footers on each tile. + /// + /// In en, this message translates to: + /// **'With footer'** + String get demoGridListsFooterTitle; + + /// Title for the sliders component demo. + /// + /// In en, this message translates to: + /// **'Sliders'** + String get demoSlidersTitle; + + /// Short description for the sliders component demo. + /// + /// In en, this message translates to: + /// **'Widgets for selecting a value by swiping'** + String get demoSlidersSubtitle; + + /// Description for the sliders demo. + /// + /// In en, this message translates to: + /// **'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'** + String get demoSlidersDescription; + + /// Title for the range sliders component demo. + /// + /// In en, this message translates to: + /// **'Range Sliders'** + String get demoRangeSlidersTitle; + + /// Description for the range sliders demo. + /// + /// In en, this message translates to: + /// **'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'** + String get demoRangeSlidersDescription; + + /// Title for the custom sliders component demo. + /// + /// In en, this message translates to: + /// **'Custom Sliders'** + String get demoCustomSlidersTitle; + + /// Description for the custom sliders demo. + /// + /// In en, this message translates to: + /// **'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customized.'** + String get demoCustomSlidersDescription; + + /// Text to describe a slider has a continuous value with an editable numerical value. + /// + /// In en, this message translates to: + /// **'Continuous with Editable Numerical Value'** + String get demoSlidersContinuousWithEditableNumericalValue; + + /// Text to describe that we have a slider with discrete values. + /// + /// In en, this message translates to: + /// **'Discrete'** + String get demoSlidersDiscrete; + + /// Text to describe that we have a slider with discrete values and a custom theme. + /// + /// In en, this message translates to: + /// **'Discrete Slider with Custom Theme'** + String get demoSlidersDiscreteSliderWithCustomTheme; + + /// Text to describe that we have a range slider with continuous values and a custom theme. + /// + /// In en, this message translates to: + /// **'Continuous Range Slider with Custom Theme'** + String get demoSlidersContinuousRangeSliderWithCustomTheme; + + /// Text to describe that we have a slider with continuous values. + /// + /// In en, this message translates to: + /// **'Continuous'** + String get demoSlidersContinuous; + + /// Label for input field that has an editable numerical value. + /// + /// In en, this message translates to: + /// **'Editable numerical value'** + String get demoSlidersEditableNumericalValue; + + /// Title for the menu component demo. + /// + /// In en, this message translates to: + /// **'Menu'** + String get demoMenuTitle; + + /// Title for the context menu component demo. + /// + /// In en, this message translates to: + /// **'Context menu'** + String get demoContextMenuTitle; + + /// Title for the sectioned menu component demo. + /// + /// In en, this message translates to: + /// **'Sectioned menu'** + String get demoSectionedMenuTitle; + + /// Title for the simple menu component demo. + /// + /// In en, this message translates to: + /// **'Simple menu'** + String get demoSimpleMenuTitle; + + /// Title for the checklist menu component demo. + /// + /// In en, this message translates to: + /// **'Checklist menu'** + String get demoChecklistMenuTitle; + + /// Short description for the menu component demo. + /// + /// In en, this message translates to: + /// **'Menu buttons and simple menus'** + String get demoMenuSubtitle; + + /// Description for the menu demo. + /// + /// In en, this message translates to: + /// **'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.'** + String get demoMenuDescription; + + /// The first item in a menu. + /// + /// In en, this message translates to: + /// **'Menu item one'** + String get demoMenuItemValueOne; + + /// The second item in a menu. + /// + /// In en, this message translates to: + /// **'Menu item two'** + String get demoMenuItemValueTwo; + + /// The third item in a menu. + /// + /// In en, this message translates to: + /// **'Menu item three'** + String get demoMenuItemValueThree; + + /// The number one. + /// + /// In en, this message translates to: + /// **'One'** + String get demoMenuOne; + + /// The number two. + /// + /// In en, this message translates to: + /// **'Two'** + String get demoMenuTwo; + + /// The number three. + /// + /// In en, this message translates to: + /// **'Three'** + String get demoMenuThree; + + /// The number four. + /// + /// In en, this message translates to: + /// **'Four'** + String get demoMenuFour; + + /// Label next to a button that opens a menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'An item with a context menu'** + String get demoMenuAnItemWithAContextMenuButton; + + /// Text label for a context menu item. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'Context menu item one'** + String get demoMenuContextMenuItemOne; + + /// Text label for a disabled menu item. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'Disabled menu item'** + String get demoMenuADisabledMenuItem; + + /// Text label for a context menu item three. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'Context menu item three'** + String get demoMenuContextMenuItemThree; + + /// Label next to a button that opens a sectioned menu . A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'An item with a sectioned menu'** + String get demoMenuAnItemWithASectionedMenu; + + /// Button to preview content. + /// + /// In en, this message translates to: + /// **'Preview'** + String get demoMenuPreview; + + /// Button to share content. + /// + /// In en, this message translates to: + /// **'Share'** + String get demoMenuShare; + + /// Button to get link for content. + /// + /// In en, this message translates to: + /// **'Get link'** + String get demoMenuGetLink; + + /// Button to remove content. + /// + /// In en, this message translates to: + /// **'Remove'** + String get demoMenuRemove; + + /// A text to show what value was selected. + /// + /// In en, this message translates to: + /// **'Selected: {value}'** + String demoMenuSelected(Object value); + + /// A text to show what value was checked. + /// + /// In en, this message translates to: + /// **'Checked: {value}'** + String demoMenuChecked(Object value); + + /// Title for the material drawer component demo. + /// + /// In en, this message translates to: + /// **'Navigation Drawer'** + String get demoNavigationDrawerTitle; + + /// Subtitle for the material drawer component demo. + /// + /// In en, this message translates to: + /// **'Displaying a drawer within appbar'** + String get demoNavigationDrawerSubtitle; + + /// Description for the material drawer component demo. + /// + /// In en, this message translates to: + /// **'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'** + String get demoNavigationDrawerDescription; + + /// Demo username for navigation drawer. + /// + /// In en, this message translates to: + /// **'User Name'** + String get demoNavigationDrawerUserName; + + /// Demo email for navigation drawer. + /// + /// In en, this message translates to: + /// **'user.name@example.com'** + String get demoNavigationDrawerUserEmail; + + /// Drawer Item One. + /// + /// In en, this message translates to: + /// **'Item One'** + String get demoNavigationDrawerToPageOne; + + /// Drawer Item Two. + /// + /// In en, this message translates to: + /// **'Item Two'** + String get demoNavigationDrawerToPageTwo; + + /// Description to open navigation drawer. + /// + /// In en, this message translates to: + /// **'Swipe from the edge or tap the upper-left icon to see the drawer'** + String get demoNavigationDrawerText; + + /// Title for the material Navigation Rail component demo. + /// + /// In en, this message translates to: + /// **'Navigation Rail'** + String get demoNavigationRailTitle; + + /// Subtitle for the material Navigation Rail component demo. + /// + /// In en, this message translates to: + /// **'Displaying a Navigation Rail within an app'** + String get demoNavigationRailSubtitle; + + /// Description for the material Navigation Rail component demo. + /// + /// In en, this message translates to: + /// **'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'** + String get demoNavigationRailDescription; + + /// Navigation Rail destination first label. + /// + /// In en, this message translates to: + /// **'First'** + String get demoNavigationRailFirst; + + /// Navigation Rail destination second label. + /// + /// In en, this message translates to: + /// **'Second'** + String get demoNavigationRailSecond; + + /// Navigation Rail destination Third label. + /// + /// In en, this message translates to: + /// **'Third'** + String get demoNavigationRailThird; + + /// Label next to a button that opens a simple menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'An item with a simple menu'** + String get demoMenuAnItemWithASimpleMenu; + + /// Label next to a button that opens a checklist menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo. + /// + /// In en, this message translates to: + /// **'An item with a checklist menu'** + String get demoMenuAnItemWithAChecklistMenu; + + /// Title for the fullscreen dialog component demo. + /// + /// In en, this message translates to: + /// **'Fullscreen'** + String get demoFullscreenDialogTitle; + + /// Description for the fullscreen dialog component demo. + /// + /// In en, this message translates to: + /// **'The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog'** + String get demoFullscreenDialogDescription; + + /// Title for the cupertino activity indicator component demo. + /// + /// In en, this message translates to: + /// **'Activity indicator'** + String get demoCupertinoActivityIndicatorTitle; + + /// Subtitle for the cupertino activity indicator component demo. + /// + /// In en, this message translates to: + /// **'iOS-style activity indicators'** + String get demoCupertinoActivityIndicatorSubtitle; + + /// Description for the cupertino activity indicator component demo. + /// + /// In en, this message translates to: + /// **'An iOS-style activity indicator that spins clockwise.'** + String get demoCupertinoActivityIndicatorDescription; + + /// Title for the cupertino buttons component demo. + /// + /// In en, this message translates to: + /// **'Buttons'** + String get demoCupertinoButtonsTitle; + + /// Subtitle for the cupertino buttons component demo. + /// + /// In en, this message translates to: + /// **'iOS-style buttons'** + String get demoCupertinoButtonsSubtitle; + + /// Description for the cupertino buttons component demo. + /// + /// In en, this message translates to: + /// **'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'** + String get demoCupertinoButtonsDescription; + + /// Title for the cupertino context menu component demo. + /// + /// In en, this message translates to: + /// **'Context Menu'** + String get demoCupertinoContextMenuTitle; + + /// Subtitle for the cupertino context menu component demo. + /// + /// In en, this message translates to: + /// **'iOS-style context menu'** + String get demoCupertinoContextMenuSubtitle; + + /// Description for the cupertino context menu component demo. + /// + /// In en, this message translates to: + /// **'An iOS-style full screen contextual menu that appears when an element is long-pressed.'** + String get demoCupertinoContextMenuDescription; + + /// Context menu list item one + /// + /// In en, this message translates to: + /// **'Action one'** + String get demoCupertinoContextMenuActionOne; + + /// Context menu list item two + /// + /// In en, this message translates to: + /// **'Action two'** + String get demoCupertinoContextMenuActionTwo; + + /// Context menu text. + /// + /// In en, this message translates to: + /// **'Tap and hold the Flutter logo to see the context menu.'** + String get demoCupertinoContextMenuActionText; + + /// Title for the cupertino alerts component demo. + /// + /// In en, this message translates to: + /// **'Alerts'** + String get demoCupertinoAlertsTitle; + + /// Subtitle for the cupertino alerts component demo. + /// + /// In en, this message translates to: + /// **'iOS-style alert dialogs'** + String get demoCupertinoAlertsSubtitle; + + /// Title for the cupertino alert component demo. + /// + /// In en, this message translates to: + /// **'Alert'** + String get demoCupertinoAlertTitle; + + /// Description for the cupertino alert component demo. + /// + /// In en, this message translates to: + /// **'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'** + String get demoCupertinoAlertDescription; + + /// Title for the cupertino alert with title component demo. + /// + /// In en, this message translates to: + /// **'Alert With Title'** + String get demoCupertinoAlertWithTitleTitle; + + /// Title for the cupertino alert with buttons component demo. + /// + /// In en, this message translates to: + /// **'Alert With Buttons'** + String get demoCupertinoAlertButtonsTitle; + + /// Title for the cupertino alert buttons only component demo. + /// + /// In en, this message translates to: + /// **'Alert Buttons Only'** + String get demoCupertinoAlertButtonsOnlyTitle; + + /// Title for the cupertino action sheet component demo. + /// + /// In en, this message translates to: + /// **'Action Sheet'** + String get demoCupertinoActionSheetTitle; + + /// Description for the cupertino action sheet component demo. + /// + /// In en, this message translates to: + /// **'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.'** + String get demoCupertinoActionSheetDescription; + + /// Title for the cupertino navigation bar component demo. + /// + /// In en, this message translates to: + /// **'Navigation bar'** + String get demoCupertinoNavigationBarTitle; + + /// Subtitle for the cupertino navigation bar component demo. + /// + /// In en, this message translates to: + /// **'iOS-style navigation bar'** + String get demoCupertinoNavigationBarSubtitle; + + /// Description for the cupertino navigation bar component demo. + /// + /// In en, this message translates to: + /// **'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'** + String get demoCupertinoNavigationBarDescription; + + /// Title for the cupertino pickers component demo. + /// + /// In en, this message translates to: + /// **'Pickers'** + String get demoCupertinoPickerTitle; + + /// Subtitle for the cupertino pickers component demo. + /// + /// In en, this message translates to: + /// **'iOS-style pickers'** + String get demoCupertinoPickerSubtitle; + + /// Description for the cupertino pickers component demo. + /// + /// In en, this message translates to: + /// **'An iOS-style picker widget that can be used to select strings, dates, times, or both date and time.'** + String get demoCupertinoPickerDescription; + + /// Label to open a countdown timer picker. + /// + /// In en, this message translates to: + /// **'Timer'** + String get demoCupertinoPickerTimer; + + /// Label to open an iOS picker. + /// + /// In en, this message translates to: + /// **'Picker'** + String get demoCupertinoPicker; + + /// Label to open a date picker. + /// + /// In en, this message translates to: + /// **'Date'** + String get demoCupertinoPickerDate; + + /// Label to open a time picker. + /// + /// In en, this message translates to: + /// **'Time'** + String get demoCupertinoPickerTime; + + /// Label to open a date and time picker. + /// + /// In en, this message translates to: + /// **'Date and Time'** + String get demoCupertinoPickerDateTime; + + /// Title for the cupertino pull-to-refresh component demo. + /// + /// In en, this message translates to: + /// **'Pull to refresh'** + String get demoCupertinoPullToRefreshTitle; + + /// Subtitle for the cupertino pull-to-refresh component demo. + /// + /// In en, this message translates to: + /// **'iOS-style pull to refresh control'** + String get demoCupertinoPullToRefreshSubtitle; + + /// Description for the cupertino pull-to-refresh component demo. + /// + /// In en, this message translates to: + /// **'A widget implementing the iOS-style pull to refresh content control.'** + String get demoCupertinoPullToRefreshDescription; + + /// Title for the cupertino segmented control component demo. + /// + /// In en, this message translates to: + /// **'Segmented control'** + String get demoCupertinoSegmentedControlTitle; + + /// Subtitle for the cupertino segmented control component demo. + /// + /// In en, this message translates to: + /// **'iOS-style segmented control'** + String get demoCupertinoSegmentedControlSubtitle; + + /// Description for the cupertino segmented control component demo. + /// + /// In en, this message translates to: + /// **'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'** + String get demoCupertinoSegmentedControlDescription; + + /// Title for the cupertino slider component demo. + /// + /// In en, this message translates to: + /// **'Slider'** + String get demoCupertinoSliderTitle; + + /// Subtitle for the cupertino slider component demo. + /// + /// In en, this message translates to: + /// **'iOS-style slider'** + String get demoCupertinoSliderSubtitle; + + /// Description for the cupertino slider component demo. + /// + /// In en, this message translates to: + /// **'A slider can be used to select from either a continuous or a discrete set of values.'** + String get demoCupertinoSliderDescription; + + /// A label for a continuous slider that indicates what value it is set to. + /// + /// In en, this message translates to: + /// **'Continuous: {value}'** + String demoCupertinoSliderContinuous(Object value); + + /// A label for a discrete slider that indicates what value it is set to. + /// + /// In en, this message translates to: + /// **'Discrete: {value}'** + String demoCupertinoSliderDiscrete(Object value); + + /// Subtitle for the cupertino switch component demo. + /// + /// In en, this message translates to: + /// **'iOS-style switch'** + String get demoCupertinoSwitchSubtitle; + + /// Description for the cupertino switch component demo. + /// + /// In en, this message translates to: + /// **'A switch is used to toggle the on/off state of a single setting.'** + String get demoCupertinoSwitchDescription; + + /// Title for the cupertino bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'Tab bar'** + String get demoCupertinoTabBarTitle; + + /// Subtitle for the cupertino bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'iOS-style bottom tab bar'** + String get demoCupertinoTabBarSubtitle; + + /// Description for the cupertino bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'** + String get demoCupertinoTabBarDescription; + + /// Title for the home tab in the bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'Home'** + String get cupertinoTabBarHomeTab; + + /// Title for the chat tab in the bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'Chat'** + String get cupertinoTabBarChatTab; + + /// Title for the profile tab in the bottom tab bar demo. + /// + /// In en, this message translates to: + /// **'Profile'** + String get cupertinoTabBarProfileTab; + + /// Title for the cupertino text field demo. + /// + /// In en, this message translates to: + /// **'Text fields'** + String get demoCupertinoTextFieldTitle; + + /// Subtitle for the cupertino text field demo. + /// + /// In en, this message translates to: + /// **'iOS-style text fields'** + String get demoCupertinoTextFieldSubtitle; + + /// Description for the cupertino text field demo. + /// + /// In en, this message translates to: + /// **'A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.'** + String get demoCupertinoTextFieldDescription; + + /// The placeholder for a text field where a user would enter their PIN number. + /// + /// In en, this message translates to: + /// **'PIN'** + String get demoCupertinoTextFieldPIN; + + /// Title for the cupertino search text field demo. + /// + /// In en, this message translates to: + /// **'Search text field'** + String get demoCupertinoSearchTextFieldTitle; + + /// Subtitle for the cupertino search text field demo. + /// + /// In en, this message translates to: + /// **'iOS-style search text field'** + String get demoCupertinoSearchTextFieldSubtitle; + + /// Description for the cupertino search text field demo. + /// + /// In en, this message translates to: + /// **'A search text field that lets the user search by entering text, and that can offer and filter suggestions.'** + String get demoCupertinoSearchTextFieldDescription; + + /// The placeholder for a search text field demo. + /// + /// In en, this message translates to: + /// **'Enter some text'** + String get demoCupertinoSearchTextFieldPlaceholder; + + /// Title for the cupertino scrollbar demo. + /// + /// In en, this message translates to: + /// **'Scrollbar'** + String get demoCupertinoScrollbarTitle; + + /// Subtitle for the cupertino scrollbar demo. + /// + /// In en, this message translates to: + /// **'iOS-style scrollbar'** + String get demoCupertinoScrollbarSubtitle; + + /// Description for the cupertino scrollbar demo. + /// + /// In en, this message translates to: + /// **'A scrollbar that wraps the given child'** + String get demoCupertinoScrollbarDescription; + + /// Title for the motion demo. + /// + /// In en, this message translates to: + /// **'Motion'** + String get demoMotionTitle; + + /// Subtitle for the motion demo. + /// + /// In en, this message translates to: + /// **'All of the predefined transition patterns'** + String get demoMotionSubtitle; + + /// Instructions for the container transform demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Cards, Lists & FAB'** + String get demoContainerTransformDemoInstructions; + + /// Instructions for the shared x axis demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Next and Back Buttons'** + String get demoSharedXAxisDemoInstructions; + + /// Instructions for the shared y axis demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Sort by \"Recently Played\"'** + String get demoSharedYAxisDemoInstructions; + + /// Instructions for the shared z axis demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Settings icon button'** + String get demoSharedZAxisDemoInstructions; + + /// Instructions for the fade through demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Bottom navigation'** + String get demoFadeThroughDemoInstructions; + + /// Instructions for the fade scale demo located in the app bar. + /// + /// In en, this message translates to: + /// **'Modal and FAB'** + String get demoFadeScaleDemoInstructions; + + /// Title for the container transform demo. + /// + /// In en, this message translates to: + /// **'Container Transform'** + String get demoContainerTransformTitle; + + /// Description for the container transform demo. + /// + /// In en, this message translates to: + /// **'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'** + String get demoContainerTransformDescription; + + /// Title for the container transform modal bottom sheet. + /// + /// In en, this message translates to: + /// **'Fade mode'** + String get demoContainerTransformModalBottomSheetTitle; + + /// Description for container transform fade type setting. + /// + /// In en, this message translates to: + /// **'FADE'** + String get demoContainerTransformTypeFade; + + /// Description for container transform fade through type setting. + /// + /// In en, this message translates to: + /// **'FADE THROUGH'** + String get demoContainerTransformTypeFadeThrough; + + /// The placeholder for the motion demos title properties. + /// + /// In en, this message translates to: + /// **'Title'** + String get demoMotionPlaceholderTitle; + + /// The placeholder for the motion demos subtitle properties. + /// + /// In en, this message translates to: + /// **'Secondary text'** + String get demoMotionPlaceholderSubtitle; + + /// The placeholder for the motion demos shortened subtitle properties. + /// + /// In en, this message translates to: + /// **'Secondary'** + String get demoMotionSmallPlaceholderSubtitle; + + /// The title for the details page in the motion demos. + /// + /// In en, this message translates to: + /// **'Details Page'** + String get demoMotionDetailsPageTitle; + + /// The title for a list tile in the motion demos. + /// + /// In en, this message translates to: + /// **'List item'** + String get demoMotionListTileTitle; + + /// Description for the shared y axis demo. + /// + /// In en, this message translates to: + /// **'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.'** + String get demoSharedAxisDescription; + + /// Title for the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Shared x-axis'** + String get demoSharedXAxisTitle; + + /// Button text for back button in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'BACK'** + String get demoSharedXAxisBackButtonText; + + /// Button text for the next button in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'NEXT'** + String get demoSharedXAxisNextButtonText; + + /// Title for course selection page in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Streamline your courses'** + String get demoSharedXAxisCoursePageTitle; + + /// Subtitle for course selection page in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Bundled categories appear as groups in your feed. You can always change this later.'** + String get demoSharedXAxisCoursePageSubtitle; + + /// Title for the Arts & Crafts course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Arts & Crafts'** + String get demoSharedXAxisArtsAndCraftsCourseTitle; + + /// Title for the Business course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Business'** + String get demoSharedXAxisBusinessCourseTitle; + + /// Title for the Illustration course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Illustration'** + String get demoSharedXAxisIllustrationCourseTitle; + + /// Title for the Design course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Design'** + String get demoSharedXAxisDesignCourseTitle; + + /// Title for the Culinary course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Culinary'** + String get demoSharedXAxisCulinaryCourseTitle; + + /// Subtitle for a bundled course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Bundled'** + String get demoSharedXAxisBundledCourseSubtitle; + + /// Subtitle for a individual course in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Shown Individually'** + String get demoSharedXAxisIndividualCourseSubtitle; + + /// Welcome text for sign in page in the shared x axis demo. David Park is a name and does not need to be translated. + /// + /// In en, this message translates to: + /// **'Hi David Park'** + String get demoSharedXAxisSignInWelcomeText; + + /// Subtitle text for sign in page in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Sign in with your account'** + String get demoSharedXAxisSignInSubtitleText; + + /// Label text for the sign in text field in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'Email or phone number'** + String get demoSharedXAxisSignInTextFieldLabel; + + /// Button text for the forgot email button in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'FORGOT EMAIL?'** + String get demoSharedXAxisForgotEmailButtonText; + + /// Button text for the create account button in the shared x axis demo. + /// + /// In en, this message translates to: + /// **'CREATE ACCOUNT'** + String get demoSharedXAxisCreateAccountButtonText; + + /// Title for the shared y axis demo. + /// + /// In en, this message translates to: + /// **'Shared y-axis'** + String get demoSharedYAxisTitle; + + /// Text for album count in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'268 albums'** + String get demoSharedYAxisAlbumCount; + + /// Title for alphabetical sorting type in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'A-Z'** + String get demoSharedYAxisAlphabeticalSortTitle; + + /// Title for recently played sorting type in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'Recently played'** + String get demoSharedYAxisRecentSortTitle; + + /// Title for an AlbumTile in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'Album'** + String get demoSharedYAxisAlbumTileTitle; + + /// Subtitle for an AlbumTile in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'Artist'** + String get demoSharedYAxisAlbumTileSubtitle; + + /// Duration unit for an AlbumTile in the shared y axis demo. + /// + /// In en, this message translates to: + /// **'min'** + String get demoSharedYAxisAlbumTileDurationUnit; + + /// Title for the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Shared z-axis'** + String get demoSharedZAxisTitle; + + /// Title for the settings page in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Settings'** + String get demoSharedZAxisSettingsPageTitle; + + /// Title for burger recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Burger'** + String get demoSharedZAxisBurgerRecipeTitle; + + /// Subtitle for the burger recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Burger recipe'** + String get demoSharedZAxisBurgerRecipeDescription; + + /// Title for sandwich recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Sandwich'** + String get demoSharedZAxisSandwichRecipeTitle; + + /// Subtitle for the sandwich recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Sandwich recipe'** + String get demoSharedZAxisSandwichRecipeDescription; + + /// Title for dessert recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Dessert'** + String get demoSharedZAxisDessertRecipeTitle; + + /// Subtitle for the dessert recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Dessert recipe'** + String get demoSharedZAxisDessertRecipeDescription; + + /// Title for shrimp plate recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Shrimp'** + String get demoSharedZAxisShrimpPlateRecipeTitle; + + /// Subtitle for the shrimp plate recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Shrimp plate recipe'** + String get demoSharedZAxisShrimpPlateRecipeDescription; + + /// Title for crab plate recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Crab'** + String get demoSharedZAxisCrabPlateRecipeTitle; + + /// Subtitle for the crab plate recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Crab plate recipe'** + String get demoSharedZAxisCrabPlateRecipeDescription; + + /// Title for beef sandwich recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Beef Sandwich'** + String get demoSharedZAxisBeefSandwichRecipeTitle; + + /// Subtitle for the beef sandwich recipe tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Beef Sandwich recipe'** + String get demoSharedZAxisBeefSandwichRecipeDescription; + + /// Title for list of saved recipes in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Saved Recipes'** + String get demoSharedZAxisSavedRecipesListTitle; + + /// Text label for profile setting tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Profile'** + String get demoSharedZAxisProfileSettingLabel; + + /// Text label for notifications setting tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Notifications'** + String get demoSharedZAxisNotificationSettingLabel; + + /// Text label for the privacy setting tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Privacy'** + String get demoSharedZAxisPrivacySettingLabel; + + /// Text label for the help setting tile in the shared z axis demo. + /// + /// In en, this message translates to: + /// **'Help'** + String get demoSharedZAxisHelpSettingLabel; + + /// Title for the fade through demo. + /// + /// In en, this message translates to: + /// **'Fade through'** + String get demoFadeThroughTitle; + + /// Description for the fade through demo. + /// + /// In en, this message translates to: + /// **'The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'** + String get demoFadeThroughDescription; + + /// Text for albums bottom navigation bar destination in the fade through demo. + /// + /// In en, this message translates to: + /// **'Albums'** + String get demoFadeThroughAlbumsDestination; + + /// Text for photos bottom navigation bar destination in the fade through demo. + /// + /// In en, this message translates to: + /// **'Photos'** + String get demoFadeThroughPhotosDestination; + + /// Text for search bottom navigation bar destination in the fade through demo. + /// + /// In en, this message translates to: + /// **'Search'** + String get demoFadeThroughSearchDestination; + + /// Placeholder for example card title in the fade through demo. + /// + /// In en, this message translates to: + /// **'123 photos'** + String get demoFadeThroughTextPlaceholder; + + /// Title for the fade scale demo. + /// + /// In en, this message translates to: + /// **'Fade'** + String get demoFadeScaleTitle; + + /// Description for the fade scale demo. + /// + /// In en, this message translates to: + /// **'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.'** + String get demoFadeScaleDescription; + + /// Button text to show alert dialog in the fade scale demo. + /// + /// In en, this message translates to: + /// **'SHOW MODAL'** + String get demoFadeScaleShowAlertDialogButton; + + /// Button text to show fab in the fade scale demo. + /// + /// In en, this message translates to: + /// **'SHOW FAB'** + String get demoFadeScaleShowFabButton; + + /// Button text to hide fab in the fade scale demo. + /// + /// In en, this message translates to: + /// **'HIDE FAB'** + String get demoFadeScaleHideFabButton; + + /// Generic header for alert dialog in the fade scale demo. + /// + /// In en, this message translates to: + /// **'Alert Dialog'** + String get demoFadeScaleAlertDialogHeader; + + /// Button text for alert dialog cancel button in the fade scale demo. + /// + /// In en, this message translates to: + /// **'CANCEL'** + String get demoFadeScaleAlertDialogCancelButton; + + /// Button text for alert dialog discard button in the fade scale demo. + /// + /// In en, this message translates to: + /// **'DISCARD'** + String get demoFadeScaleAlertDialogDiscardButton; + + /// Title for the colors demo. + /// + /// In en, this message translates to: + /// **'Colors'** + String get demoColorsTitle; + + /// Subtitle for the colors demo. + /// + /// In en, this message translates to: + /// **'All of the predefined colors'** + String get demoColorsSubtitle; + + /// Description for the colors demo. Material Design should remain capitalized. + /// + /// In en, this message translates to: + /// **'Color and color swatch constants which represent Material Design\'s color palette.'** + String get demoColorsDescription; + + /// Title for the typography demo. + /// + /// In en, this message translates to: + /// **'Typography'** + String get demoTypographyTitle; + + /// Subtitle for the typography demo. + /// + /// In en, this message translates to: + /// **'All of the predefined text styles'** + String get demoTypographySubtitle; + + /// Description for the typography demo. Material Design should remain capitalized. + /// + /// In en, this message translates to: + /// **'Definitions for the various typographical styles found in Material Design.'** + String get demoTypographyDescription; + + /// Title for the 2D transformations demo. + /// + /// In en, this message translates to: + /// **'2D transformations'** + String get demo2dTransformationsTitle; + + /// Subtitle for the 2D transformations demo. + /// + /// In en, this message translates to: + /// **'Pan and zoom'** + String get demo2dTransformationsSubtitle; + + /// Description for the 2D transformations demo. + /// + /// In en, this message translates to: + /// **'Tap to edit tiles, and use gestures to move around the scene. Drag to pan and pinch with two fingers to zoom. Press the reset button to return to the starting orientation.'** + String get demo2dTransformationsDescription; + + /// Tooltip for a button to reset the transformations (scale, translation) for the 2D transformations demo. + /// + /// In en, this message translates to: + /// **'Reset transformations'** + String get demo2dTransformationsResetTooltip; + + /// Tooltip for a button to edit a tile. + /// + /// In en, this message translates to: + /// **'Edit tile'** + String get demo2dTransformationsEditTooltip; + + /// Text for a generic button. + /// + /// In en, this message translates to: + /// **'BUTTON'** + String get buttonText; + + /// Title for bottom sheet demo. + /// + /// In en, this message translates to: + /// **'Bottom sheet'** + String get demoBottomSheetTitle; + + /// Description for bottom sheet demo. + /// + /// In en, this message translates to: + /// **'Persistent and modal bottom sheets'** + String get demoBottomSheetSubtitle; + + /// Title for persistent bottom sheet demo. + /// + /// In en, this message translates to: + /// **'Persistent bottom sheet'** + String get demoBottomSheetPersistentTitle; + + /// Description for persistent bottom sheet demo. + /// + /// In en, this message translates to: + /// **'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'** + String get demoBottomSheetPersistentDescription; + + /// Title for modal bottom sheet demo. + /// + /// In en, this message translates to: + /// **'Modal bottom sheet'** + String get demoBottomSheetModalTitle; + + /// Description for modal bottom sheet demo. + /// + /// In en, this message translates to: + /// **'A modal bottom sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app.'** + String get demoBottomSheetModalDescription; + + /// Semantic label for add icon. + /// + /// In en, this message translates to: + /// **'Add'** + String get demoBottomSheetAddLabel; + + /// Button text to show bottom sheet. + /// + /// In en, this message translates to: + /// **'SHOW BOTTOM SHEET'** + String get demoBottomSheetButtonText; + + /// Generic header placeholder. + /// + /// In en, this message translates to: + /// **'Header'** + String get demoBottomSheetHeader; + + /// Generic item placeholder. + /// + /// In en, this message translates to: + /// **'Item {value}'** + String demoBottomSheetItem(Object value); + + /// Title for lists demo. + /// + /// In en, this message translates to: + /// **'Lists'** + String get demoListsTitle; + + /// Subtitle for lists demo. + /// + /// In en, this message translates to: + /// **'Scrolling list layouts'** + String get demoListsSubtitle; + + /// Description for lists demo. This describes what a single row in a list consists of. + /// + /// In en, this message translates to: + /// **'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'** + String get demoListsDescription; + + /// Title for lists demo with only one line of text per row. + /// + /// In en, this message translates to: + /// **'One Line'** + String get demoOneLineListsTitle; + + /// Title for lists demo with two lines of text per row. + /// + /// In en, this message translates to: + /// **'Two Lines'** + String get demoTwoLineListsTitle; + + /// Text that appears in the second line of a list item. + /// + /// In en, this message translates to: + /// **'Secondary text'** + String get demoListsSecondary; + + /// Title for progress indicators demo. + /// + /// In en, this message translates to: + /// **'Progress indicators'** + String get demoProgressIndicatorTitle; + + /// Subtitle for progress indicators demo. + /// + /// In en, this message translates to: + /// **'Linear, circular, indeterminate'** + String get demoProgressIndicatorSubtitle; + + /// Title for circular progress indicator demo. + /// + /// In en, this message translates to: + /// **'Circular Progress Indicator'** + String get demoCircularProgressIndicatorTitle; + + /// Description for circular progress indicator demo. + /// + /// In en, this message translates to: + /// **'A Material Design circular progress indicator, which spins to indicate that the application is busy.'** + String get demoCircularProgressIndicatorDescription; + + /// Title for linear progress indicator demo. + /// + /// In en, this message translates to: + /// **'Linear Progress Indicator'** + String get demoLinearProgressIndicatorTitle; + + /// Description for linear progress indicator demo. + /// + /// In en, this message translates to: + /// **'A Material Design linear progress indicator, also known as a progress bar.'** + String get demoLinearProgressIndicatorDescription; + + /// Title for pickers demo. + /// + /// In en, this message translates to: + /// **'Pickers'** + String get demoPickersTitle; + + /// Subtitle for pickers demo. + /// + /// In en, this message translates to: + /// **'Date and time selection'** + String get demoPickersSubtitle; + + /// Title for date picker demo. + /// + /// In en, this message translates to: + /// **'Date Picker'** + String get demoDatePickerTitle; + + /// Description for date picker demo. + /// + /// In en, this message translates to: + /// **'Shows a dialog containing a Material Design date picker.'** + String get demoDatePickerDescription; + + /// Title for time picker demo. + /// + /// In en, this message translates to: + /// **'Time Picker'** + String get demoTimePickerTitle; + + /// Description for time picker demo. + /// + /// In en, this message translates to: + /// **'Shows a dialog containing a Material Design time picker.'** + String get demoTimePickerDescription; + + /// Title for date range picker demo. + /// + /// In en, this message translates to: + /// **'Date Range Picker'** + String get demoDateRangePickerTitle; + + /// Description for date range picker demo. + /// + /// In en, this message translates to: + /// **'Shows a dialog containing a Material Design date range picker.'** + String get demoDateRangePickerDescription; + + /// Button text to show the date or time picker in the demo. + /// + /// In en, this message translates to: + /// **'SHOW PICKER'** + String get demoPickersShowPicker; + + /// Title for tabs demo. + /// + /// In en, this message translates to: + /// **'Tabs'** + String get demoTabsTitle; + + /// Title for tabs demo with a tab bar that scrolls. + /// + /// In en, this message translates to: + /// **'Scrolling'** + String get demoTabsScrollingTitle; + + /// Title for tabs demo with a tab bar that doesn't scroll. + /// + /// In en, this message translates to: + /// **'Non-scrolling'** + String get demoTabsNonScrollingTitle; + + /// Subtitle for tabs demo. + /// + /// In en, this message translates to: + /// **'Tabs with independently scrollable views'** + String get demoTabsSubtitle; + + /// Description for tabs demo. + /// + /// In en, this message translates to: + /// **'Tabs organize content across different screens, data sets, and other interactions.'** + String get demoTabsDescription; + + /// Title for snackbars demo. + /// + /// In en, this message translates to: + /// **'Snackbars'** + String get demoSnackbarsTitle; + + /// Subtitle for snackbars demo. + /// + /// In en, this message translates to: + /// **'Snackbars show messages at the bottom of the screen'** + String get demoSnackbarsSubtitle; + + /// Description for snackbars demo. + /// + /// In en, this message translates to: + /// **'Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn\'t interrupt the user experience, and they don\'t require user input to disappear.'** + String get demoSnackbarsDescription; + + /// Label for button to show a snackbar. + /// + /// In en, this message translates to: + /// **'SHOW A SNACKBAR'** + String get demoSnackbarsButtonLabel; + + /// Text to show on a snackbar. + /// + /// In en, this message translates to: + /// **'This is a snackbar.'** + String get demoSnackbarsText; + + /// Label for action button text on the snackbar. + /// + /// In en, this message translates to: + /// **'ACTION'** + String get demoSnackbarsActionButtonLabel; + + /// Text that appears when you press on a snackbars' action. + /// + /// In en, this message translates to: + /// **'You pressed the snackbar action.'** + String get demoSnackbarsAction; + + /// Title for selection controls demo. + /// + /// In en, this message translates to: + /// **'Selection controls'** + String get demoSelectionControlsTitle; + + /// Subtitle for selection controls demo. + /// + /// In en, this message translates to: + /// **'Checkboxes, radio buttons, and switches'** + String get demoSelectionControlsSubtitle; + + /// Title for the checkbox (selection controls) demo. + /// + /// In en, this message translates to: + /// **'Checkbox'** + String get demoSelectionControlsCheckboxTitle; + + /// Description for the checkbox (selection controls) demo. + /// + /// In en, this message translates to: + /// **'Checkboxes allow the user to select multiple options from a set. A normal checkbox\'s value is true or false and a tristate checkbox\'s value can also be null.'** + String get demoSelectionControlsCheckboxDescription; + + /// Title for the radio button (selection controls) demo. + /// + /// In en, this message translates to: + /// **'Radio'** + String get demoSelectionControlsRadioTitle; + + /// Description for the radio button (selection controls) demo. + /// + /// In en, this message translates to: + /// **'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.'** + String get demoSelectionControlsRadioDescription; + + /// Title for the switches (selection controls) demo. + /// + /// In en, this message translates to: + /// **'Switch'** + String get demoSelectionControlsSwitchTitle; + + /// Description for the switches (selection controls) demo. + /// + /// In en, this message translates to: + /// **'On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it\'s in, should be made clear from the corresponding inline label.'** + String get demoSelectionControlsSwitchDescription; + + /// Title for text fields demo. + /// + /// In en, this message translates to: + /// **'Text fields'** + String get demoBottomTextFieldsTitle; + + /// Title for text fields demo. + /// + /// In en, this message translates to: + /// **'Text fields'** + String get demoTextFieldTitle; + + /// Description for text fields demo. + /// + /// In en, this message translates to: + /// **'Single line of editable text and numbers'** + String get demoTextFieldSubtitle; + + /// Description for text fields demo. + /// + /// In en, this message translates to: + /// **'Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.'** + String get demoTextFieldDescription; + + /// Label for show password icon. + /// + /// In en, this message translates to: + /// **'Show password'** + String get demoTextFieldShowPasswordLabel; + + /// Label for hide password icon. + /// + /// In en, this message translates to: + /// **'Hide password'** + String get demoTextFieldHidePasswordLabel; + + /// Text that shows up on form errors. + /// + /// In en, this message translates to: + /// **'Please fix the errors in red before submitting.'** + String get demoTextFieldFormErrors; + + /// Shows up as submission error if name is not given in the form. + /// + /// In en, this message translates to: + /// **'Name is required.'** + String get demoTextFieldNameRequired; + + /// Error that shows if non-alphabetical characters are given. + /// + /// In en, this message translates to: + /// **'Please enter only alphabetical characters.'** + String get demoTextFieldOnlyAlphabeticalChars; + + /// Error that shows up if non-valid non-US phone number is given. + /// + /// In en, this message translates to: + /// **'(###) ###-#### - Enter a US phone number.'** + String get demoTextFieldEnterUSPhoneNumber; + + /// Error that shows up if password is not given. + /// + /// In en, this message translates to: + /// **'Please enter a password.'** + String get demoTextFieldEnterPassword; + + /// Error that shows up, if the re-typed password does not match the already given password. + /// + /// In en, this message translates to: + /// **'The passwords don\'t match'** + String get demoTextFieldPasswordsDoNotMatch; + + /// Placeholder for name field in form. + /// + /// In en, this message translates to: + /// **'What do people call you?'** + String get demoTextFieldWhatDoPeopleCallYou; + + /// The label for a name input field that is required (hence the star). + /// + /// In en, this message translates to: + /// **'Name*'** + String get demoTextFieldNameField; + + /// Placeholder for when entering a phone number in a form. + /// + /// In en, this message translates to: + /// **'Where can we reach you?'** + String get demoTextFieldWhereCanWeReachYou; + + /// The label for a phone number input field that is required (hence the star). + /// + /// In en, this message translates to: + /// **'Phone number*'** + String get demoTextFieldPhoneNumber; + + /// The label for an email address input field. + /// + /// In en, this message translates to: + /// **'Your email address'** + String get demoTextFieldYourEmailAddress; + + /// The label for an email address input field + /// + /// In en, this message translates to: + /// **'Email'** + String get demoTextFieldEmail; + + /// The placeholder text for biography/life story input field. + /// + /// In en, this message translates to: + /// **'Tell us about yourself (e.g., write down what you do or what hobbies you have)'** + String get demoTextFieldTellUsAboutYourself; + + /// Helper text for biography/life story input field. + /// + /// In en, this message translates to: + /// **'Keep it short, this is just a demo.'** + String get demoTextFieldKeepItShort; + + /// The label for biography/life story input field. + /// + /// In en, this message translates to: + /// **'Life story'** + String get demoTextFieldLifeStory; + + /// The label for salary input field. + /// + /// In en, this message translates to: + /// **'Salary'** + String get demoTextFieldSalary; + + /// US currency, used as suffix in input field for salary. + /// + /// In en, this message translates to: + /// **'USD'** + String get demoTextFieldUSD; + + /// Helper text for password input field. + /// + /// In en, this message translates to: + /// **'No more than 8 characters.'** + String get demoTextFieldNoMoreThan; + + /// Label for password input field, that is required (hence the star). + /// + /// In en, this message translates to: + /// **'Password*'** + String get demoTextFieldPassword; + + /// Label for repeat password input field. + /// + /// In en, this message translates to: + /// **'Re-type password*'** + String get demoTextFieldRetypePassword; + + /// The submit button text for form. + /// + /// In en, this message translates to: + /// **'SUBMIT'** + String get demoTextFieldSubmit; + + /// Text that shows up when valid phone number and name is submitted in form. + /// + /// In en, this message translates to: + /// **'{name} phone number is {phoneNumber}'** + String demoTextFieldNameHasPhoneNumber(Object name, Object phoneNumber); + + /// Helper text to indicate that * means that it is a required field. + /// + /// In en, this message translates to: + /// **'* indicates required field'** + String get demoTextFieldRequiredField; + + /// Title for tooltip demo. + /// + /// In en, this message translates to: + /// **'Tooltips'** + String get demoTooltipTitle; + + /// Subtitle for tooltip demo. + /// + /// In en, this message translates to: + /// **'Short message displayed on long press or hover'** + String get demoTooltipSubtitle; + + /// Description for tooltip demo. + /// + /// In en, this message translates to: + /// **'Tooltips provide text labels that help explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on, or long press an element.'** + String get demoTooltipDescription; + + /// Instructions for how to trigger a tooltip in the tooltip demo. + /// + /// In en, this message translates to: + /// **'Long press or hover to display the tooltip.'** + String get demoTooltipInstructions; + + /// Title for Comments tab of bottom navigation. + /// + /// In en, this message translates to: + /// **'Comments'** + String get bottomNavigationCommentsTab; + + /// Title for Calendar tab of bottom navigation. + /// + /// In en, this message translates to: + /// **'Calendar'** + String get bottomNavigationCalendarTab; + + /// Title for Account tab of bottom navigation. + /// + /// In en, this message translates to: + /// **'Account'** + String get bottomNavigationAccountTab; + + /// Title for Alarm tab of bottom navigation. + /// + /// In en, this message translates to: + /// **'Alarm'** + String get bottomNavigationAlarmTab; + + /// Title for Camera tab of bottom navigation. + /// + /// In en, this message translates to: + /// **'Camera'** + String get bottomNavigationCameraTab; + + /// Accessibility label for the content placeholder in the bottom navigation demo + /// + /// In en, this message translates to: + /// **'Placeholder for {title} tab'** + String bottomNavigationContentPlaceholder(Object title); + + /// Tooltip text for a create button. + /// + /// In en, this message translates to: + /// **'Create'** + String get buttonTextCreate; + + /// Message displayed after an option is selected from a dialog + /// + /// In en, this message translates to: + /// **'You selected: \"{value}\"'** + String dialogSelectedOption(Object value); + + /// A chip component to turn on the lights. + /// + /// In en, this message translates to: + /// **'Turn on lights'** + String get chipTurnOnLights; + + /// A chip component to select a small size. + /// + /// In en, this message translates to: + /// **'Small'** + String get chipSmall; + + /// A chip component to select a medium size. + /// + /// In en, this message translates to: + /// **'Medium'** + String get chipMedium; + + /// A chip component to select a large size. + /// + /// In en, this message translates to: + /// **'Large'** + String get chipLarge; + + /// A chip component to filter selection by elevators. + /// + /// In en, this message translates to: + /// **'Elevator'** + String get chipElevator; + + /// A chip component to filter selection by washers. + /// + /// In en, this message translates to: + /// **'Washer'** + String get chipWasher; + + /// A chip component to filter selection by fireplaces. + /// + /// In en, this message translates to: + /// **'Fireplace'** + String get chipFireplace; + + /// A chip component to that indicates a biking selection. + /// + /// In en, this message translates to: + /// **'Biking'** + String get chipBiking; + + /// Used in the title of the demos. + /// + /// In en, this message translates to: + /// **'Demo'** + String get demo; + + /// Used as semantic label for a BottomAppBar. + /// + /// In en, this message translates to: + /// **'Bottom app bar'** + String get bottomAppBar; + + /// Indicates the loading process. + /// + /// In en, this message translates to: + /// **'Loading'** + String get loading; + + /// Alert dialog message to discard draft. + /// + /// In en, this message translates to: + /// **'Discard draft?'** + String get dialogDiscardTitle; + + /// Alert dialog title to use location services. + /// + /// In en, this message translates to: + /// **'Use Google\'s location service?'** + String get dialogLocationTitle; + + /// Alert dialog description to use location services. + /// + /// In en, this message translates to: + /// **'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'** + String get dialogLocationDescription; + + /// Alert dialog cancel option. + /// + /// In en, this message translates to: + /// **'CANCEL'** + String get dialogCancel; + + /// Alert dialog discard option. + /// + /// In en, this message translates to: + /// **'DISCARD'** + String get dialogDiscard; + + /// Alert dialog disagree option. + /// + /// In en, this message translates to: + /// **'DISAGREE'** + String get dialogDisagree; + + /// Alert dialog agree option. + /// + /// In en, this message translates to: + /// **'AGREE'** + String get dialogAgree; + + /// Alert dialog title for setting a backup account. + /// + /// In en, this message translates to: + /// **'Set backup account'** + String get dialogSetBackup; + + /// Alert dialog option for adding an account. + /// + /// In en, this message translates to: + /// **'Add account'** + String get dialogAddAccount; + + /// Button text to display a dialog. + /// + /// In en, this message translates to: + /// **'SHOW DIALOG'** + String get dialogShow; + + /// Title for full screen dialog demo. + /// + /// In en, this message translates to: + /// **'Full Screen Dialog'** + String get dialogFullscreenTitle; + + /// Save button for full screen dialog demo. + /// + /// In en, this message translates to: + /// **'SAVE'** + String get dialogFullscreenSave; + + /// Description for full screen dialog demo. + /// + /// In en, this message translates to: + /// **'A full screen dialog demo'** + String get dialogFullscreenDescription; + + /// Button text for a generic iOS-style button. + /// + /// In en, this message translates to: + /// **'Button'** + String get cupertinoButton; + + /// Button text for a iOS-style button with a filled background. + /// + /// In en, this message translates to: + /// **'With Background'** + String get cupertinoButtonWithBackground; + + /// iOS-style alert cancel option. + /// + /// In en, this message translates to: + /// **'Cancel'** + String get cupertinoAlertCancel; + + /// iOS-style alert discard option. + /// + /// In en, this message translates to: + /// **'Discard'** + String get cupertinoAlertDiscard; + + /// iOS-style alert title for location permission. + /// + /// In en, this message translates to: + /// **'Allow \"Maps\" to access your location while you are using the app?'** + String get cupertinoAlertLocationTitle; + + /// iOS-style alert description for location permission. + /// + /// In en, this message translates to: + /// **'Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.'** + String get cupertinoAlertLocationDescription; + + /// iOS-style alert allow option. + /// + /// In en, this message translates to: + /// **'Allow'** + String get cupertinoAlertAllow; + + /// iOS-style alert don't allow option. + /// + /// In en, this message translates to: + /// **'Don\'t Allow'** + String get cupertinoAlertDontAllow; + + /// iOS-style alert title for selecting favorite dessert. + /// + /// In en, this message translates to: + /// **'Select Favorite Dessert'** + String get cupertinoAlertFavoriteDessert; + + /// iOS-style alert description for selecting favorite dessert. + /// + /// In en, this message translates to: + /// **'Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.'** + String get cupertinoAlertDessertDescription; + + /// iOS-style alert cheesecake option. + /// + /// In en, this message translates to: + /// **'Cheesecake'** + String get cupertinoAlertCheesecake; + + /// iOS-style alert tiramisu option. + /// + /// In en, this message translates to: + /// **'Tiramisu'** + String get cupertinoAlertTiramisu; + + /// iOS-style alert apple pie option. + /// + /// In en, this message translates to: + /// **'Apple Pie'** + String get cupertinoAlertApplePie; + + /// iOS-style alert chocolate brownie option. + /// + /// In en, this message translates to: + /// **'Chocolate Brownie'** + String get cupertinoAlertChocolateBrownie; + + /// Button text to show iOS-style alert. + /// + /// In en, this message translates to: + /// **'Show Alert'** + String get cupertinoShowAlert; + + /// Tab title for the color red. + /// + /// In en, this message translates to: + /// **'RED'** + String get colorsRed; + + /// Tab title for the color pink. + /// + /// In en, this message translates to: + /// **'PINK'** + String get colorsPink; + + /// Tab title for the color purple. + /// + /// In en, this message translates to: + /// **'PURPLE'** + String get colorsPurple; + + /// Tab title for the color deep purple. + /// + /// In en, this message translates to: + /// **'DEEP PURPLE'** + String get colorsDeepPurple; + + /// Tab title for the color indigo. + /// + /// In en, this message translates to: + /// **'INDIGO'** + String get colorsIndigo; + + /// Tab title for the color blue. + /// + /// In en, this message translates to: + /// **'BLUE'** + String get colorsBlue; + + /// Tab title for the color light blue. + /// + /// In en, this message translates to: + /// **'LIGHT BLUE'** + String get colorsLightBlue; + + /// Tab title for the color cyan. + /// + /// In en, this message translates to: + /// **'CYAN'** + String get colorsCyan; + + /// Tab title for the color teal. + /// + /// In en, this message translates to: + /// **'TEAL'** + String get colorsTeal; + + /// Tab title for the color green. + /// + /// In en, this message translates to: + /// **'GREEN'** + String get colorsGreen; + + /// Tab title for the color light green. + /// + /// In en, this message translates to: + /// **'LIGHT GREEN'** + String get colorsLightGreen; + + /// Tab title for the color lime. + /// + /// In en, this message translates to: + /// **'LIME'** + String get colorsLime; + + /// Tab title for the color yellow. + /// + /// In en, this message translates to: + /// **'YELLOW'** + String get colorsYellow; + + /// Tab title for the color amber. + /// + /// In en, this message translates to: + /// **'AMBER'** + String get colorsAmber; + + /// Tab title for the color orange. + /// + /// In en, this message translates to: + /// **'ORANGE'** + String get colorsOrange; + + /// Tab title for the color deep orange. + /// + /// In en, this message translates to: + /// **'DEEP ORANGE'** + String get colorsDeepOrange; + + /// Tab title for the color brown. + /// + /// In en, this message translates to: + /// **'BROWN'** + String get colorsBrown; + + /// Tab title for the color grey. + /// + /// In en, this message translates to: + /// **'GREY'** + String get colorsGrey; + + /// Tab title for the color blue grey. + /// + /// In en, this message translates to: + /// **'BLUE GREY'** + String get colorsBlueGrey; + + /// Title for Chennai location. + /// + /// In en, this message translates to: + /// **'Chennai'** + String get placeChennai; + + /// Title for Tanjore location. + /// + /// In en, this message translates to: + /// **'Tanjore'** + String get placeTanjore; + + /// Title for Chettinad location. + /// + /// In en, this message translates to: + /// **'Chettinad'** + String get placeChettinad; + + /// Title for Pondicherry location. + /// + /// In en, this message translates to: + /// **'Pondicherry'** + String get placePondicherry; + + /// Title for Flower Market location. + /// + /// In en, this message translates to: + /// **'Flower Market'** + String get placeFlowerMarket; + + /// Title for Bronze Works location. + /// + /// In en, this message translates to: + /// **'Bronze Works'** + String get placeBronzeWorks; + + /// Title for Market location. + /// + /// In en, this message translates to: + /// **'Market'** + String get placeMarket; + + /// Title for Thanjavur Temple location. + /// + /// In en, this message translates to: + /// **'Thanjavur Temple'** + String get placeThanjavurTemple; + + /// Title for Salt Farm location. + /// + /// In en, this message translates to: + /// **'Salt Farm'** + String get placeSaltFarm; + + /// Title for image of people riding on scooters. + /// + /// In en, this message translates to: + /// **'Scooters'** + String get placeScooters; + + /// Title for an image of a silk maker. + /// + /// In en, this message translates to: + /// **'Silk Maker'** + String get placeSilkMaker; + + /// Title for an image of preparing lunch. + /// + /// In en, this message translates to: + /// **'Lunch Prep'** + String get placeLunchPrep; + + /// Title for Beach location. + /// + /// In en, this message translates to: + /// **'Beach'** + String get placeBeach; + + /// Title for an image of a fisherman. + /// + /// In en, this message translates to: + /// **'Fisherman'** + String get placeFisherman; + + /// The title and name for the starter app. + /// + /// In en, this message translates to: + /// **'Starter app'** + String get starterAppTitle; + + /// The description for the starter app. + /// + /// In en, this message translates to: + /// **'A responsive starter layout'** + String get starterAppDescription; + + /// Generic placeholder for button. + /// + /// In en, this message translates to: + /// **'BUTTON'** + String get starterAppGenericButton; + + /// Tooltip on add icon. + /// + /// In en, this message translates to: + /// **'Add'** + String get starterAppTooltipAdd; + + /// Tooltip on favorite icon. + /// + /// In en, this message translates to: + /// **'Favorite'** + String get starterAppTooltipFavorite; + + /// Tooltip on share icon. + /// + /// In en, this message translates to: + /// **'Share'** + String get starterAppTooltipShare; + + /// Tooltip on search icon. + /// + /// In en, this message translates to: + /// **'Search'** + String get starterAppTooltipSearch; + + /// Generic placeholder for title in app bar. + /// + /// In en, this message translates to: + /// **'Title'** + String get starterAppGenericTitle; + + /// Generic placeholder for subtitle in drawer. + /// + /// In en, this message translates to: + /// **'Subtitle'** + String get starterAppGenericSubtitle; + + /// Generic placeholder for headline in drawer. + /// + /// In en, this message translates to: + /// **'Headline'** + String get starterAppGenericHeadline; + + /// Generic placeholder for body text in drawer. + /// + /// In en, this message translates to: + /// **'Body'** + String get starterAppGenericBody; + + /// Generic placeholder drawer item. + /// + /// In en, this message translates to: + /// **'Item {value}'** + String starterAppDrawerItem(Object value); + + /// Caption for a menu page. + /// + /// In en, this message translates to: + /// **'MENU'** + String get shrineMenuCaption; + + /// A tab showing products from all categories. + /// + /// In en, this message translates to: + /// **'ALL'** + String get shrineCategoryNameAll; + + /// A category of products consisting of accessories (clothing items). + /// + /// In en, this message translates to: + /// **'ACCESSORIES'** + String get shrineCategoryNameAccessories; + + /// A category of products consisting of clothing. + /// + /// In en, this message translates to: + /// **'CLOTHING'** + String get shrineCategoryNameClothing; + + /// A category of products consisting of items used at home. + /// + /// In en, this message translates to: + /// **'HOME'** + String get shrineCategoryNameHome; + + /// Label for a logout button. + /// + /// In en, this message translates to: + /// **'LOGOUT'** + String get shrineLogoutButtonCaption; + + /// On the login screen, a label for a textfield for the user to input their username. + /// + /// In en, this message translates to: + /// **'Username'** + String get shrineLoginUsernameLabel; + + /// On the login screen, a label for a textfield for the user to input their password. + /// + /// In en, this message translates to: + /// **'Password'** + String get shrineLoginPasswordLabel; + + /// On the login screen, the caption for a button to cancel login. + /// + /// In en, this message translates to: + /// **'CANCEL'** + String get shrineCancelButtonCaption; + + /// On the login screen, the caption for a button to proceed login. + /// + /// In en, this message translates to: + /// **'NEXT'** + String get shrineNextButtonCaption; + + /// Caption for a shopping cart page. + /// + /// In en, this message translates to: + /// **'CART'** + String get shrineCartPageCaption; + + /// A text showing the number of items for a specific product. + /// + /// In en, this message translates to: + /// **'Quantity: {quantity}'** + String shrineProductQuantity(Object quantity); + + /// A text showing the unit price of each product. Used as: 'Quantity: 3 x $129'. The currency will be handled by the formatter. + /// + /// In en, this message translates to: + /// **'x {price}'** + String shrineProductPrice(Object price); + + /// A text showing the total number of items in the cart. + /// + /// In en, this message translates to: + /// **'{quantity, plural, =0{NO ITEMS} =1{1 ITEM} other{{quantity} ITEMS}}'** + String shrineCartItemCount(num quantity); + + /// Caption for a button used to clear the cart. + /// + /// In en, this message translates to: + /// **'CLEAR CART'** + String get shrineCartClearButtonCaption; + + /// Label for a text showing total price of the items in the cart. + /// + /// In en, this message translates to: + /// **'TOTAL'** + String get shrineCartTotalCaption; + + /// Label for a text showing the subtotal price of the items in the cart (excluding shipping and tax). + /// + /// In en, this message translates to: + /// **'Subtotal:'** + String get shrineCartSubtotalCaption; + + /// Label for a text showing the shipping cost for the items in the cart. + /// + /// In en, this message translates to: + /// **'Shipping:'** + String get shrineCartShippingCaption; + + /// Label for a text showing the tax for the items in the cart. + /// + /// In en, this message translates to: + /// **'Tax:'** + String get shrineCartTaxCaption; + + /// Name of the product 'Vagabond sack'. + /// + /// In en, this message translates to: + /// **'Vagabond sack'** + String get shrineProductVagabondSack; + + /// Name of the product 'Stella sunglasses'. + /// + /// In en, this message translates to: + /// **'Stella sunglasses'** + String get shrineProductStellaSunglasses; + + /// Name of the product 'Whitney belt'. + /// + /// In en, this message translates to: + /// **'Whitney belt'** + String get shrineProductWhitneyBelt; + + /// Name of the product 'Garden strand'. + /// + /// In en, this message translates to: + /// **'Garden strand'** + String get shrineProductGardenStrand; + + /// Name of the product 'Strut earrings'. + /// + /// In en, this message translates to: + /// **'Strut earrings'** + String get shrineProductStrutEarrings; + + /// Name of the product 'Varsity socks'. + /// + /// In en, this message translates to: + /// **'Varsity socks'** + String get shrineProductVarsitySocks; + + /// Name of the product 'Weave keyring'. + /// + /// In en, this message translates to: + /// **'Weave keyring'** + String get shrineProductWeaveKeyring; + + /// Name of the product 'Gatsby hat'. + /// + /// In en, this message translates to: + /// **'Gatsby hat'** + String get shrineProductGatsbyHat; + + /// Name of the product 'Shrug bag'. + /// + /// In en, this message translates to: + /// **'Shrug bag'** + String get shrineProductShrugBag; + + /// Name of the product 'Gilt desk trio'. + /// + /// In en, this message translates to: + /// **'Gilt desk trio'** + String get shrineProductGiltDeskTrio; + + /// Name of the product 'Copper wire rack'. + /// + /// In en, this message translates to: + /// **'Copper wire rack'** + String get shrineProductCopperWireRack; + + /// Name of the product 'Soothe ceramic set'. + /// + /// In en, this message translates to: + /// **'Soothe ceramic set'** + String get shrineProductSootheCeramicSet; + + /// Name of the product 'Hurrahs tea set'. + /// + /// In en, this message translates to: + /// **'Hurrahs tea set'** + String get shrineProductHurrahsTeaSet; + + /// Name of the product 'Blue stone mug'. + /// + /// In en, this message translates to: + /// **'Blue stone mug'** + String get shrineProductBlueStoneMug; + + /// Name of the product 'Rainwater tray'. + /// + /// In en, this message translates to: + /// **'Rainwater tray'** + String get shrineProductRainwaterTray; + + /// Name of the product 'Chambray napkins'. + /// + /// In en, this message translates to: + /// **'Chambray napkins'** + String get shrineProductChambrayNapkins; + + /// Name of the product 'Succulent planters'. + /// + /// In en, this message translates to: + /// **'Succulent planters'** + String get shrineProductSucculentPlanters; + + /// Name of the product 'Quartet table'. + /// + /// In en, this message translates to: + /// **'Quartet table'** + String get shrineProductQuartetTable; + + /// Name of the product 'Kitchen quattro'. + /// + /// In en, this message translates to: + /// **'Kitchen quattro'** + String get shrineProductKitchenQuattro; + + /// Name of the product 'Clay sweater'. + /// + /// In en, this message translates to: + /// **'Clay sweater'** + String get shrineProductClaySweater; + + /// Name of the product 'Sea tunic'. + /// + /// In en, this message translates to: + /// **'Sea tunic'** + String get shrineProductSeaTunic; + + /// Name of the product 'Plaster tunic'. + /// + /// In en, this message translates to: + /// **'Plaster tunic'** + String get shrineProductPlasterTunic; + + /// Name of the product 'White pinstripe shirt'. + /// + /// In en, this message translates to: + /// **'White pinstripe shirt'** + String get shrineProductWhitePinstripeShirt; + + /// Name of the product 'Chambray shirt'. + /// + /// In en, this message translates to: + /// **'Chambray shirt'** + String get shrineProductChambrayShirt; + + /// Name of the product 'Seabreeze sweater'. + /// + /// In en, this message translates to: + /// **'Seabreeze sweater'** + String get shrineProductSeabreezeSweater; + + /// Name of the product 'Gentry jacket'. + /// + /// In en, this message translates to: + /// **'Gentry jacket'** + String get shrineProductGentryJacket; + + /// Name of the product 'Navy trousers'. + /// + /// In en, this message translates to: + /// **'Navy trousers'** + String get shrineProductNavyTrousers; + + /// Name of the product 'Walter henley (white)'. + /// + /// In en, this message translates to: + /// **'Walter henley (white)'** + String get shrineProductWalterHenleyWhite; + + /// Name of the product 'Surf and perf shirt'. + /// + /// In en, this message translates to: + /// **'Surf and perf shirt'** + String get shrineProductSurfAndPerfShirt; + + /// Name of the product 'Ginger scarf'. + /// + /// In en, this message translates to: + /// **'Ginger scarf'** + String get shrineProductGingerScarf; + + /// Name of the product 'Ramona crossover'. + /// + /// In en, this message translates to: + /// **'Ramona crossover'** + String get shrineProductRamonaCrossover; + + /// Name of the product 'Classic white collar'. + /// + /// In en, this message translates to: + /// **'Classic white collar'** + String get shrineProductClassicWhiteCollar; + + /// Name of the product 'Cerise scallop tee'. + /// + /// In en, this message translates to: + /// **'Cerise scallop tee'** + String get shrineProductCeriseScallopTee; + + /// Name of the product 'Shoulder rolls tee'. + /// + /// In en, this message translates to: + /// **'Shoulder rolls tee'** + String get shrineProductShoulderRollsTee; + + /// Name of the product 'Grey slouch tank'. + /// + /// In en, this message translates to: + /// **'Grey slouch tank'** + String get shrineProductGreySlouchTank; + + /// Name of the product 'Sunshirt dress'. + /// + /// In en, this message translates to: + /// **'Sunshirt dress'** + String get shrineProductSunshirtDress; + + /// Name of the product 'Fine lines tee'. + /// + /// In en, this message translates to: + /// **'Fine lines tee'** + String get shrineProductFineLinesTee; + + /// The tooltip text for a search button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Search'** + String get shrineTooltipSearch; + + /// The tooltip text for a settings button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Settings'** + String get shrineTooltipSettings; + + /// The tooltip text for a menu button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Open menu'** + String get shrineTooltipOpenMenu; + + /// The tooltip text for a button to close a menu. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Close menu'** + String get shrineTooltipCloseMenu; + + /// The tooltip text for a button to close the shopping cart page. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Close cart'** + String get shrineTooltipCloseCart; + + /// The description of a shopping cart button containing some products. Used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'{quantity, plural, =0{Shopping cart, no items} =1{Shopping cart, 1 item} other{Shopping cart, {quantity} items}}'** + String shrineScreenReaderCart(num quantity); + + /// An announcement made by screen readers, such as TalkBack and VoiceOver to indicate the action of a button for adding a product to the cart. + /// + /// In en, this message translates to: + /// **'Add to cart'** + String get shrineScreenReaderProductAddToCart; + + /// A tooltip for a button to remove a product. This will be read by screen readers, such as TalkBack and VoiceOver when a product is added to the shopping cart. + /// + /// In en, this message translates to: + /// **'Remove {product}'** + String shrineScreenReaderRemoveProductButton(Object product); + + /// The tooltip text for a button to remove an item (a product) in a shopping cart. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver. + /// + /// In en, this message translates to: + /// **'Remove item'** + String get shrineTooltipRemoveItem; + + /// Form field label to enter the number of diners. + /// + /// In en, this message translates to: + /// **'Diners'** + String get craneFormDiners; + + /// Form field label to select a date. + /// + /// In en, this message translates to: + /// **'Select Date'** + String get craneFormDate; + + /// Form field label to select a time. + /// + /// In en, this message translates to: + /// **'Select Time'** + String get craneFormTime; + + /// Form field label to select a location. + /// + /// In en, this message translates to: + /// **'Select Location'** + String get craneFormLocation; + + /// Form field label to select the number of travellers. + /// + /// In en, this message translates to: + /// **'Travelers'** + String get craneFormTravelers; + + /// Form field label to choose a travel origin. + /// + /// In en, this message translates to: + /// **'Choose Origin'** + String get craneFormOrigin; + + /// Form field label to choose a travel destination. + /// + /// In en, this message translates to: + /// **'Choose Destination'** + String get craneFormDestination; + + /// Form field label to select multiple dates. + /// + /// In en, this message translates to: + /// **'Select Dates'** + String get craneFormDates; + + /// Generic text for an amount of hours, abbreviated to the shortest form. For example 1h. {hours} should remain untranslated. + /// + /// In en, this message translates to: + /// **'{hours, plural, =1{1h} other{{hours}h}}'** + String craneHours(num hours); + + /// Generic text for an amount of minutes, abbreviated to the shortest form. For example 15m. {minutes} should remain untranslated. + /// + /// In en, this message translates to: + /// **'{minutes, plural, =1{1m} other{{minutes}m}}'** + String craneMinutes(num minutes); + + /// A pattern to define the layout of a flight duration string. For example in English one might say 1h 15m. Translation should only rearrange the inputs. {hoursShortForm} would for example be replaced by 1h, already translated to the given locale. {minutesShortForm} would for example be replaced by 15m, already translated to the given locale. + /// + /// In en, this message translates to: + /// **'{hoursShortForm} {minutesShortForm}'** + String craneFlightDuration(Object hoursShortForm, Object minutesShortForm); + + /// Title for FLY tab. + /// + /// In en, this message translates to: + /// **'FLY'** + String get craneFly; + + /// Title for SLEEP tab. + /// + /// In en, this message translates to: + /// **'SLEEP'** + String get craneSleep; + + /// Title for EAT tab. + /// + /// In en, this message translates to: + /// **'EAT'** + String get craneEat; + + /// Subhead for FLY tab. + /// + /// In en, this message translates to: + /// **'Explore Flights by Destination'** + String get craneFlySubhead; + + /// Subhead for SLEEP tab. + /// + /// In en, this message translates to: + /// **'Explore Properties by Destination'** + String get craneSleepSubhead; + + /// Subhead for EAT tab. + /// + /// In en, this message translates to: + /// **'Explore Restaurants by Destination'** + String get craneEatSubhead; + + /// Label indicating if a flight is nonstop or how many layovers it includes. + /// + /// In en, this message translates to: + /// **'{numberOfStops, plural, =0{Nonstop} =1{1 stop} other{{numberOfStops} stops}}'** + String craneFlyStops(num numberOfStops); + + /// Text indicating the number of available properties (temporary rentals). Always plural. + /// + /// In en, this message translates to: + /// **'{totalProperties, plural, =0{No Available Properties} =1{1 Available Properties} other{{totalProperties} Available Properties}}'** + String craneSleepProperties(num totalProperties); + + /// Text indicating the number of restaurants. Always plural. + /// + /// In en, this message translates to: + /// **'{totalRestaurants, plural, =0{No Restaurants} =1{1 Restaurant} other{{totalRestaurants} Restaurants}}'** + String craneEatRestaurants(num totalRestaurants); + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Aspen, United States'** + String get craneFly0; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Big Sur, United States'** + String get craneFly1; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Khumbu Valley, Nepal'** + String get craneFly2; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Machu Picchu, Peru'** + String get craneFly3; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Malé, Maldives'** + String get craneFly4; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Vitznau, Switzerland'** + String get craneFly5; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Mexico City, Mexico'** + String get craneFly6; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Mount Rushmore, United States'** + String get craneFly7; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Singapore'** + String get craneFly8; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Havana, Cuba'** + String get craneFly9; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Cairo, Egypt'** + String get craneFly10; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Lisbon, Portugal'** + String get craneFly11; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Napa, United States'** + String get craneFly12; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Bali, Indonesia'** + String get craneFly13; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Malé, Maldives'** + String get craneSleep0; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Aspen, United States'** + String get craneSleep1; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Machu Picchu, Peru'** + String get craneSleep2; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Havana, Cuba'** + String get craneSleep3; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Vitznau, Switzerland'** + String get craneSleep4; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Big Sur, United States'** + String get craneSleep5; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Napa, United States'** + String get craneSleep6; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Porto, Portugal'** + String get craneSleep7; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Tulum, Mexico'** + String get craneSleep8; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Lisbon, Portugal'** + String get craneSleep9; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Cairo, Egypt'** + String get craneSleep10; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Taipei, Taiwan'** + String get craneSleep11; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Naples, Italy'** + String get craneEat0; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Dallas, United States'** + String get craneEat1; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Córdoba, Argentina'** + String get craneEat2; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Portland, United States'** + String get craneEat3; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Paris, France'** + String get craneEat4; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Seoul, South Korea'** + String get craneEat5; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Seattle, United States'** + String get craneEat6; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Nashville, United States'** + String get craneEat7; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Atlanta, United States'** + String get craneEat8; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Madrid, Spain'** + String get craneEat9; + + /// Label for city. + /// + /// In en, this message translates to: + /// **'Lisbon, Portugal'** + String get craneEat10; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Chalet in a snowy landscape with evergreen trees'** + String get craneFly0SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Tent in a field'** + String get craneFly1SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Prayer flags in front of snowy mountain'** + String get craneFly2SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Machu Picchu citadel'** + String get craneFly3SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Overwater bungalows'** + String get craneFly4SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Lake-side hotel in front of mountains'** + String get craneFly5SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Aerial view of Palacio de Bellas Artes'** + String get craneFly6SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Mount Rushmore'** + String get craneFly7SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Supertree Grove'** + String get craneFly8SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Man leaning on an antique blue car'** + String get craneFly9SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Al-Azhar Mosque towers during sunset'** + String get craneFly10SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Brick lighthouse at sea'** + String get craneFly11SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Pool with palm trees'** + String get craneFly12SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Sea-side pool with palm trees'** + String get craneFly13SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Overwater bungalows'** + String get craneSleep0SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Chalet in a snowy landscape with evergreen trees'** + String get craneSleep1SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Machu Picchu citadel'** + String get craneSleep2SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Man leaning on an antique blue car'** + String get craneSleep3SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Lake-side hotel in front of mountains'** + String get craneSleep4SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Tent in a field'** + String get craneSleep5SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Pool with palm trees'** + String get craneSleep6SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Colorful apartments at Riberia Square'** + String get craneSleep7SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Mayan ruins on a cliff above a beach'** + String get craneSleep8SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Brick lighthouse at sea'** + String get craneSleep9SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Al-Azhar Mosque towers during sunset'** + String get craneSleep10SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Taipei 101 skyscraper'** + String get craneSleep11SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Pizza in a wood-fired oven'** + String get craneEat0SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Empty bar with diner-style stools'** + String get craneEat1SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Burger'** + String get craneEat2SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Korean taco'** + String get craneEat3SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Chocolate dessert'** + String get craneEat4SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Artsy restaurant seating area'** + String get craneEat5SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Shrimp dish'** + String get craneEat6SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Bakery entrance'** + String get craneEat7SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Plate of crawfish'** + String get craneEat8SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Cafe counter with pastries'** + String get craneEat9SemanticLabel; + + /// Semantic label for an image. + /// + /// In en, this message translates to: + /// **'Woman holding huge pastrami sandwich'** + String get craneEat10SemanticLabel; + + /// Menu item for the front page of the news app. + /// + /// In en, this message translates to: + /// **'Front Page'** + String get fortnightlyMenuFrontPage; + + /// Menu item for the world news section of the news app. + /// + /// In en, this message translates to: + /// **'World'** + String get fortnightlyMenuWorld; + + /// Menu item for the United States news section of the news app. + /// + /// In en, this message translates to: + /// **'US'** + String get fortnightlyMenuUS; + + /// Menu item for the political news section of the news app. + /// + /// In en, this message translates to: + /// **'Politics'** + String get fortnightlyMenuPolitics; + + /// Menu item for the business news section of the news app. + /// + /// In en, this message translates to: + /// **'Business'** + String get fortnightlyMenuBusiness; + + /// Menu item for the tech news section of the news app. + /// + /// In en, this message translates to: + /// **'Tech'** + String get fortnightlyMenuTech; + + /// Menu item for the science news section of the news app. + /// + /// In en, this message translates to: + /// **'Science'** + String get fortnightlyMenuScience; + + /// Menu item for the sports news section of the news app. + /// + /// In en, this message translates to: + /// **'Sports'** + String get fortnightlyMenuSports; + + /// Menu item for the travel news section of the news app. + /// + /// In en, this message translates to: + /// **'Travel'** + String get fortnightlyMenuTravel; + + /// Menu item for the culture news section of the news app. + /// + /// In en, this message translates to: + /// **'Culture'** + String get fortnightlyMenuCulture; + + /// Hashtag for the tech design trending topic of the news app. + /// + /// In en, this message translates to: + /// **'TechDesign'** + String get fortnightlyTrendingTechDesign; + + /// Hashtag for the reform trending topic of the news app. + /// + /// In en, this message translates to: + /// **'Reform'** + String get fortnightlyTrendingReform; + + /// Hashtag for the healthcare revolution trending topic of the news app. + /// + /// In en, this message translates to: + /// **'HealthcareRevolution'** + String get fortnightlyTrendingHealthcareRevolution; + + /// Hashtag for the green army trending topic of the news app. + /// + /// In en, this message translates to: + /// **'GreenArmy'** + String get fortnightlyTrendingGreenArmy; + + /// Hashtag for the stocks trending topic of the news app. + /// + /// In en, this message translates to: + /// **'Stocks'** + String get fortnightlyTrendingStocks; + + /// Title for news section regarding the latest updates. + /// + /// In en, this message translates to: + /// **'Latest Updates'** + String get fortnightlyLatestUpdates; + + /// Headline for a news article about healthcare. + /// + /// In en, this message translates to: + /// **'The Quiet, Yet Powerful Healthcare Revolution'** + String get fortnightlyHeadlineHealthcare; + + /// Headline for a news article about war. + /// + /// In en, this message translates to: + /// **'Divided American Lives During War'** + String get fortnightlyHeadlineWar; + + /// Headline for a news article about gasoline. + /// + /// In en, this message translates to: + /// **'The Future of Gasoline'** + String get fortnightlyHeadlineGasoline; + + /// Headline for a news article about the green army. + /// + /// In en, this message translates to: + /// **'Reforming The Green Army From Within'** + String get fortnightlyHeadlineArmy; + + /// Headline for a news article about stocks. + /// + /// In en, this message translates to: + /// **'As Stocks Stagnate, Many Look To Currency'** + String get fortnightlyHeadlineStocks; + + /// Headline for a news article about fabric. + /// + /// In en, this message translates to: + /// **'Designers Use Tech To Make Futuristic Fabrics'** + String get fortnightlyHeadlineFabrics; + + /// Headline for a news article about feminists and partisanship. + /// + /// In en, this message translates to: + /// **'Feminists Take On Partisanship'** + String get fortnightlyHeadlineFeminists; + + /// Headline for a news article about bees. + /// + /// In en, this message translates to: + /// **'Farmland Bees In Short Supply'** + String get fortnightlyHeadlineBees; + + /// Text label for Inbox destination. + /// + /// In en, this message translates to: + /// **'Inbox'** + String get replyInboxLabel; + + /// Text label for Starred destination. + /// + /// In en, this message translates to: + /// **'Starred'** + String get replyStarredLabel; + + /// Text label for Sent destination. + /// + /// In en, this message translates to: + /// **'Sent'** + String get replySentLabel; + + /// Text label for Trash destination. + /// + /// In en, this message translates to: + /// **'Trash'** + String get replyTrashLabel; + + /// Text label for Spam destination. + /// + /// In en, this message translates to: + /// **'Spam'** + String get replySpamLabel; + + /// Text label for Drafts destination. + /// + /// In en, this message translates to: + /// **'Drafts'** + String get replyDraftsLabel; + + /// Option title for TwoPane demo on foldable devices. + /// + /// In en, this message translates to: + /// **'Foldable'** + String get demoTwoPaneFoldableLabel; + + /// Description for the foldable option configuration on the TwoPane demo. + /// + /// In en, this message translates to: + /// **'This is how TwoPane behaves on a foldable device.'** + String get demoTwoPaneFoldableDescription; + + /// Option title for TwoPane demo in small screen mode. Counterpart of the foldable option. + /// + /// In en, this message translates to: + /// **'Small Screen'** + String get demoTwoPaneSmallScreenLabel; + + /// Description for the small screen option configuration on the TwoPane demo. + /// + /// In en, this message translates to: + /// **'This is how TwoPane behaves on a small screen device.'** + String get demoTwoPaneSmallScreenDescription; + + /// Option title for TwoPane demo in tablet or desktop mode. + /// + /// In en, this message translates to: + /// **'Tablet / Desktop'** + String get demoTwoPaneTabletLabel; + + /// Description for the tablet / desktop option configuration on the TwoPane demo. + /// + /// In en, this message translates to: + /// **'This is how TwoPane behaves on a larger screen like a tablet or desktop.'** + String get demoTwoPaneTabletDescription; + + /// Title for the TwoPane widget demo. + /// + /// In en, this message translates to: + /// **'TwoPane'** + String get demoTwoPaneTitle; + + /// Subtitle for the TwoPane widget demo. + /// + /// In en, this message translates to: + /// **'Responsive layouts on foldable, large, and small screens'** + String get demoTwoPaneSubtitle; + + /// Tip for user, visible on the right side of the splash screen when Gallery runs on a foldable device. + /// + /// In en, this message translates to: + /// **'Select a demo'** + String get splashSelectDemo; + + /// Title of one of the panes in the TwoPane demo. It sits on top of a list of items. + /// + /// In en, this message translates to: + /// **'List'** + String get demoTwoPaneList; + + /// Title of one of the panes in the TwoPane demo, which shows details of the currently selected item. + /// + /// In en, this message translates to: + /// **'Details'** + String get demoTwoPaneDetails; + + /// Tip for user, visible on the right side of the TwoPane widget demo in the foldable configuration. + /// + /// In en, this message translates to: + /// **'Select an item'** + String get demoTwoPaneSelectItem; + + /// Generic item placeholder visible in the TwoPane widget demo. + /// + /// In en, this message translates to: + /// **'Item {value}'** + String demoTwoPaneItem(Object value); + + /// Generic item description or details visible in the TwoPane widget demo. + /// + /// In en, this message translates to: + /// **'Item {value} details'** + String demoTwoPaneItemDetails(Object value); +} + +class _GalleryLocalizationsDelegate extends LocalizationsDelegate { + const _GalleryLocalizationsDelegate(); + + @override + Future load(Locale locale) { + return SynchronousFuture(lookupGalleryLocalizations(locale)); + } + + @override + bool isSupported(Locale locale) => ['en'].contains(locale.languageCode); + + @override + bool shouldReload(_GalleryLocalizationsDelegate old) => false; +} + +GalleryLocalizations lookupGalleryLocalizations(Locale locale) { + + // Lookup logic when language+country codes are specified. + switch (locale.languageCode) { + case 'en': { + switch (locale.countryCode) { + case 'IS': return GalleryLocalizationsEnIs(); + } + break; + } + } + + // Lookup logic when only language code is specified. + switch (locale.languageCode) { + case 'en': return GalleryLocalizationsEn(); + } + + throw FlutterError( + 'GalleryLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.' + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations_en.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations_en.dart new file mode 100644 index 0000000000000000000000000000000000000000..dc6ba69df65e72558610d8f1ef20fc0a84641ca0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations_en.dart @@ -0,0 +1,5080 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:intl/intl.dart' as intl; + +import 'gallery_localizations.dart'; + +/// The translations for English (`en`). +class GalleryLocalizationsEn extends GalleryLocalizations { + GalleryLocalizationsEn([super.locale = 'en']); + + @override + String githubRepo(Object repoName) { + return '$repoName GitHub repository'; + } + + @override + String aboutDialogDescription(Object repoLink) { + return 'To see the source code for this app, please visit the $repoLink.'; + } + + @override + String get deselect => 'Deselect'; + + @override + String get notSelected => 'Not selected'; + + @override + String get select => 'Select'; + + @override + String get selectable => 'Selectable (long press)'; + + @override + String get selected => 'Selected'; + + @override + String get signIn => 'SIGN IN'; + + @override + String get bannerDemoText => 'Your password was updated on your other device. Please sign in again.'; + + @override + String get bannerDemoResetText => 'Reset the banner'; + + @override + String get bannerDemoMultipleText => 'Multiple actions'; + + @override + String get bannerDemoLeadingText => 'Leading Icon'; + + @override + String get dismiss => 'DISMISS'; + + @override + String get backToGallery => 'Back to Gallery'; + + @override + String get cardsDemoExplore => 'Explore'; + + @override + String cardsDemoExploreSemantics(Object destinationName) { + return 'Explore $destinationName'; + } + + @override + String cardsDemoShareSemantics(Object destinationName) { + return 'Share $destinationName'; + } + + @override + String get cardsDemoTappable => 'Tappable'; + + @override + String get cardsDemoTravelDestinationTitle1 => 'Top 10 Cities to Visit in Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationDescription1 => 'Number 10'; + + @override + String get cardsDemoTravelDestinationCity1 => 'Thanjavur'; + + @override + String get cardsDemoTravelDestinationLocation1 => 'Thanjavur, Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationTitle2 => 'Artisans of Southern India'; + + @override + String get cardsDemoTravelDestinationDescription2 => 'Silk Spinners'; + + @override + String get cardsDemoTravelDestinationCity2 => 'Chettinad'; + + @override + String get cardsDemoTravelDestinationLocation2 => 'Sivaganga, Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationTitle3 => 'Brihadisvara Temple'; + + @override + String get cardsDemoTravelDestinationDescription3 => 'Temples'; + + @override + String get homeHeaderGallery => 'Gallery'; + + @override + String get homeHeaderCategories => 'Categories'; + + @override + String get shrineDescription => 'A fashionable retail app'; + + @override + String get fortnightlyDescription => 'A content-focused news app'; + + @override + String get rallyDescription => 'A personal finance app'; + + @override + String get replyDescription => 'An efficient, focused email app'; + + @override + String get rallyAccountDataChecking => 'Checking'; + + @override + String get rallyAccountDataHomeSavings => 'Home Savings'; + + @override + String get rallyAccountDataCarSavings => 'Car Savings'; + + @override + String get rallyAccountDataVacation => 'Vacation'; + + @override + String get rallyAccountDetailDataAnnualPercentageYield => 'Annual Percentage Yield'; + + @override + String get rallyAccountDetailDataInterestRate => 'Interest Rate'; + + @override + String get rallyAccountDetailDataInterestYtd => 'Interest YTD'; + + @override + String get rallyAccountDetailDataInterestPaidLastYear => 'Interest Paid Last Year'; + + @override + String get rallyAccountDetailDataNextStatement => 'Next Statement'; + + @override + String get rallyAccountDetailDataAccountOwner => 'Account Owner'; + + @override + String get rallyBillDetailTotalAmount => 'Total Amount'; + + @override + String get rallyBillDetailAmountPaid => 'Amount Paid'; + + @override + String get rallyBillDetailAmountDue => 'Amount Due'; + + @override + String get rallyBudgetCategoryCoffeeShops => 'Coffee Shops'; + + @override + String get rallyBudgetCategoryGroceries => 'Groceries'; + + @override + String get rallyBudgetCategoryRestaurants => 'Restaurants'; + + @override + String get rallyBudgetCategoryClothing => 'Clothing'; + + @override + String get rallyBudgetDetailTotalCap => 'Total Cap'; + + @override + String get rallyBudgetDetailAmountUsed => 'Amount Used'; + + @override + String get rallyBudgetDetailAmountLeft => 'Amount Left'; + + @override + String get rallySettingsManageAccounts => 'Manage Accounts'; + + @override + String get rallySettingsTaxDocuments => 'Tax Documents'; + + @override + String get rallySettingsPasscodeAndTouchId => 'Passcode and Touch ID'; + + @override + String get rallySettingsNotifications => 'Notifications'; + + @override + String get rallySettingsPersonalInformation => 'Personal Information'; + + @override + String get rallySettingsPaperlessSettings => 'Paperless Settings'; + + @override + String get rallySettingsFindAtms => 'Find ATMs'; + + @override + String get rallySettingsHelp => 'Help'; + + @override + String get rallySettingsSignOut => 'Sign out'; + + @override + String get rallyAccountTotal => 'Total'; + + @override + String get rallyBillsDue => 'Due'; + + @override + String get rallyBudgetLeft => 'Left'; + + @override + String get rallyAccounts => 'Accounts'; + + @override + String get rallyBills => 'Bills'; + + @override + String get rallyBudgets => 'Budgets'; + + @override + String get rallyAlerts => 'Alerts'; + + @override + String get rallySeeAll => 'SEE ALL'; + + @override + String get rallyFinanceLeft => ' LEFT'; + + @override + String get rallyTitleOverview => 'OVERVIEW'; + + @override + String get rallyTitleAccounts => 'ACCOUNTS'; + + @override + String get rallyTitleBills => 'BILLS'; + + @override + String get rallyTitleBudgets => 'BUDGETS'; + + @override + String get rallyTitleSettings => 'SETTINGS'; + + @override + String get rallyLoginLoginToRally => 'Login to Rally'; + + @override + String get rallyLoginNoAccount => "Don't have an account?"; + + @override + String get rallyLoginSignUp => 'SIGN UP'; + + @override + String get rallyLoginUsername => 'Username'; + + @override + String get rallyLoginPassword => 'Password'; + + @override + String get rallyLoginLabelLogin => 'Login'; + + @override + String get rallyLoginRememberMe => 'Remember Me'; + + @override + String get rallyLoginButtonLogin => 'LOGIN'; + + @override + String rallyAlertsMessageHeadsUpShopping(Object percent) { + return "Heads up, you've used up $percent of your Shopping budget for this month."; + } + + @override + String rallyAlertsMessageSpentOnRestaurants(Object amount) { + return "You've spent $amount on Restaurants this week."; + } + + @override + String rallyAlertsMessageATMFees(Object amount) { + return "You've spent $amount in ATM fees this month"; + } + + @override + String rallyAlertsMessageCheckingAccount(Object percent) { + return 'Good work! Your checking account is $percent higher than last month.'; + } + + @override + String rallyAlertsMessageUnassignedTransactions(num count) { + final String temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', + one: 'Increase your potential tax deduction! Assign categories to 1 unassigned transaction.', + ); + return temp0; + } + + @override + String get rallySeeAllAccounts => 'See all accounts'; + + @override + String get rallySeeAllBills => 'See all bills'; + + @override + String get rallySeeAllBudgets => 'See all budgets'; + + @override + String rallyAccountAmount(Object accountName, Object accountNumber, Object amount) { + return '$accountName account $accountNumber with $amount.'; + } + + @override + String rallyBillAmount(Object billName, Object date, Object amount) { + return '$billName bill due $date for $amount.'; + } + + @override + String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft) { + return '$budgetName budget with $amountUsed used of $amountTotal, $amountLeft left'; + } + + @override + String get craneDescription => 'A personalized travel app'; + + @override + String get homeCategoryReference => 'STYLES & OTHER'; + + @override + String get demoInvalidURL => "Couldn't display URL:"; + + @override + String get demoOptionsTooltip => 'Options'; + + @override + String get demoInfoTooltip => 'Info'; + + @override + String get demoCodeTooltip => 'Demo Code'; + + @override + String get demoDocumentationTooltip => 'API Documentation'; + + @override + String get demoFullscreenTooltip => 'Full Screen'; + + @override + String get demoCodeViewerCopyAll => 'COPY ALL'; + + @override + String get demoCodeViewerCopiedToClipboardMessage => 'Copied to clipboard.'; + + @override + String demoCodeViewerFailedToCopyToClipboardMessage(Object error) { + return 'Failed to copy to clipboard: $error'; + } + + @override + String get demoOptionsFeatureTitle => 'View options'; + + @override + String get demoOptionsFeatureDescription => 'Tap here to view available options for this demo.'; + + @override + String get settingsTitle => 'Settings'; + + @override + String get settingsButtonLabel => 'Settings'; + + @override + String get settingsButtonCloseLabel => 'Close settings'; + + @override + String get settingsSystemDefault => 'System'; + + @override + String get settingsTextScaling => 'Text scaling'; + + @override + String get settingsTextScalingSmall => 'Small'; + + @override + String get settingsTextScalingNormal => 'Normal'; + + @override + String get settingsTextScalingLarge => 'Large'; + + @override + String get settingsTextScalingHuge => 'Huge'; + + @override + String get settingsTextDirection => 'Text direction'; + + @override + String get settingsTextDirectionLocaleBased => 'Based on locale'; + + @override + String get settingsTextDirectionLTR => 'LTR'; + + @override + String get settingsTextDirectionRTL => 'RTL'; + + @override + String get settingsLocale => 'Locale'; + + @override + String get settingsPlatformMechanics => 'Platform mechanics'; + + @override + String get settingsTheme => 'Theme'; + + @override + String get settingsDarkTheme => 'Dark'; + + @override + String get settingsLightTheme => 'Light'; + + @override + String get settingsSlowMotion => 'Slow motion'; + + @override + String get settingsAbout => 'About Flutter Gallery'; + + @override + String get settingsFeedback => 'Send feedback'; + + @override + String get settingsAttribution => 'Designed by TOASTER in London'; + + @override + String get demoAppBarTitle => 'App bar'; + + @override + String get demoAppBarSubtitle => 'Displays information and actions relating to the current screen'; + + @override + String get demoAppBarDescription => "The App bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions"; + + @override + String get demoBottomAppBarTitle => 'Bottom app bar'; + + @override + String get demoBottomAppBarSubtitle => 'Displays navigation and actions at the bottom'; + + @override + String get demoBottomAppBarDescription => 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; + + @override + String get bottomAppBarNotch => 'Notch'; + + @override + String get bottomAppBarPosition => 'Floating Action Button Position'; + + @override + String get bottomAppBarPositionDockedEnd => 'Docked - End'; + + @override + String get bottomAppBarPositionDockedCenter => 'Docked - Center'; + + @override + String get bottomAppBarPositionFloatingEnd => 'Floating - End'; + + @override + String get bottomAppBarPositionFloatingCenter => 'Floating - Center'; + + @override + String get demoBannerTitle => 'Banner'; + + @override + String get demoBannerSubtitle => 'Displaying a banner within a list'; + + @override + String get demoBannerDescription => 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; + + @override + String get demoBottomNavigationTitle => 'Bottom navigation'; + + @override + String get demoBottomNavigationSubtitle => 'Bottom navigation with cross-fading views'; + + @override + String get demoBottomNavigationPersistentLabels => 'Persistent labels'; + + @override + String get demoBottomNavigationSelectedLabel => 'Selected label'; + + @override + String get demoBottomNavigationDescription => 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; + + @override + String get demoButtonTitle => 'Buttons'; + + @override + String get demoButtonSubtitle => 'Text, elevated, outlined, and more'; + + @override + String get demoTextButtonTitle => 'Text Button'; + + @override + String get demoTextButtonDescription => 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogs and inline with padding'; + + @override + String get demoElevatedButtonTitle => 'Elevated Button'; + + @override + String get demoElevatedButtonDescription => 'Elevated buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.'; + + @override + String get demoOutlinedButtonTitle => 'Outlined Button'; + + @override + String get demoOutlinedButtonDescription => 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; + + @override + String get demoToggleButtonTitle => 'Toggle Buttons'; + + @override + String get demoToggleButtonDescription => 'Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container'; + + @override + String get demoFloatingButtonTitle => 'Floating Action Button'; + + @override + String get demoFloatingButtonDescription => 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; + + @override + String get demoCardTitle => 'Cards'; + + @override + String get demoCardSubtitle => 'Baseline cards with rounded corners'; + + @override + String get demoChipTitle => 'Chips'; + + @override + String get demoCardDescription => 'A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.'; + + @override + String get demoChipSubtitle => 'Compact elements that represent an input, attribute, or action'; + + @override + String get demoActionChipTitle => 'Action Chip'; + + @override + String get demoActionChipDescription => 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; + + @override + String get demoChoiceChipTitle => 'Choice Chip'; + + @override + String get demoChoiceChipDescription => 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; + + @override + String get demoFilterChipTitle => 'Filter Chip'; + + @override + String get demoFilterChipDescription => 'Filter chips use tags or descriptive words as a way to filter content.'; + + @override + String get demoInputChipTitle => 'Input Chip'; + + @override + String get demoInputChipDescription => 'Input chips represent a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.'; + + @override + String get demoDataTableTitle => 'Data Tables'; + + @override + String get demoDataTableSubtitle => 'Rows and columns of information'; + + @override + String get demoDataTableDescription => "Data tables display information in a grid-like format of rows and columns. They organize information in a way that's easy to scan, so that users can look for patterns and insights."; + + @override + String get dataTableHeader => 'Nutrition'; + + @override + String get dataTableColumnDessert => 'Dessert (1 serving)'; + + @override + String get dataTableColumnCalories => 'Calories'; + + @override + String get dataTableColumnFat => 'Fat (g)'; + + @override + String get dataTableColumnCarbs => 'Carbs (g)'; + + @override + String get dataTableColumnProtein => 'Protein (g)'; + + @override + String get dataTableColumnSodium => 'Sodium (mg)'; + + @override + String get dataTableColumnCalcium => 'Calcium (%)'; + + @override + String get dataTableColumnIron => 'Iron (%)'; + + @override + String get dataTableRowFrozenYogurt => 'Frozen yogurt'; + + @override + String get dataTableRowIceCreamSandwich => 'Ice cream sandwich'; + + @override + String get dataTableRowEclair => 'Eclair'; + + @override + String get dataTableRowCupcake => 'Cupcake'; + + @override + String get dataTableRowGingerbread => 'Gingerbread'; + + @override + String get dataTableRowJellyBean => 'Jelly bean'; + + @override + String get dataTableRowLollipop => 'Lollipop'; + + @override + String get dataTableRowHoneycomb => 'Honeycomb'; + + @override + String get dataTableRowDonut => 'Donut'; + + @override + String get dataTableRowApplePie => 'Apple pie'; + + @override + String dataTableRowWithSugar(Object value) { + return '$value with sugar'; + } + + @override + String dataTableRowWithHoney(Object value) { + return '$value with honey'; + } + + @override + String get demoDialogTitle => 'Dialogs'; + + @override + String get demoDialogSubtitle => 'Simple, alert, and fullscreen'; + + @override + String get demoAlertDialogTitle => 'Alert'; + + @override + String get demoAlertDialogDescription => 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.'; + + @override + String get demoAlertTitleDialogTitle => 'Alert With Title'; + + @override + String get demoSimpleDialogTitle => 'Simple'; + + @override + String get demoSimpleDialogDescription => 'A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.'; + + @override + String get demoDividerTitle => 'Divider'; + + @override + String get demoDividerSubtitle => 'A divider is a thin line that groups content in lists and layouts.'; + + @override + String get demoDividerDescription => 'Dividers can be used in lists, drawers, and elsewhere to separate content.'; + + @override + String get demoVerticalDividerTitle => 'Vertical Divider'; + + @override + String get demoGridListsTitle => 'Grid Lists'; + + @override + String get demoGridListsSubtitle => 'Row and column layout'; + + @override + String get demoGridListsDescription => 'Grid Lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; + + @override + String get demoGridListsImageOnlyTitle => 'Image only'; + + @override + String get demoGridListsHeaderTitle => 'With header'; + + @override + String get demoGridListsFooterTitle => 'With footer'; + + @override + String get demoSlidersTitle => 'Sliders'; + + @override + String get demoSlidersSubtitle => 'Widgets for selecting a value by swiping'; + + @override + String get demoSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; + + @override + String get demoRangeSlidersTitle => 'Range Sliders'; + + @override + String get demoRangeSlidersDescription => 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; + + @override + String get demoCustomSlidersTitle => 'Custom Sliders'; + + @override + String get demoCustomSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customized.'; + + @override + String get demoSlidersContinuousWithEditableNumericalValue => 'Continuous with Editable Numerical Value'; + + @override + String get demoSlidersDiscrete => 'Discrete'; + + @override + String get demoSlidersDiscreteSliderWithCustomTheme => 'Discrete Slider with Custom Theme'; + + @override + String get demoSlidersContinuousRangeSliderWithCustomTheme => 'Continuous Range Slider with Custom Theme'; + + @override + String get demoSlidersContinuous => 'Continuous'; + + @override + String get demoSlidersEditableNumericalValue => 'Editable numerical value'; + + @override + String get demoMenuTitle => 'Menu'; + + @override + String get demoContextMenuTitle => 'Context menu'; + + @override + String get demoSectionedMenuTitle => 'Sectioned menu'; + + @override + String get demoSimpleMenuTitle => 'Simple menu'; + + @override + String get demoChecklistMenuTitle => 'Checklist menu'; + + @override + String get demoMenuSubtitle => 'Menu buttons and simple menus'; + + @override + String get demoMenuDescription => 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.'; + + @override + String get demoMenuItemValueOne => 'Menu item one'; + + @override + String get demoMenuItemValueTwo => 'Menu item two'; + + @override + String get demoMenuItemValueThree => 'Menu item three'; + + @override + String get demoMenuOne => 'One'; + + @override + String get demoMenuTwo => 'Two'; + + @override + String get demoMenuThree => 'Three'; + + @override + String get demoMenuFour => 'Four'; + + @override + String get demoMenuAnItemWithAContextMenuButton => 'An item with a context menu'; + + @override + String get demoMenuContextMenuItemOne => 'Context menu item one'; + + @override + String get demoMenuADisabledMenuItem => 'Disabled menu item'; + + @override + String get demoMenuContextMenuItemThree => 'Context menu item three'; + + @override + String get demoMenuAnItemWithASectionedMenu => 'An item with a sectioned menu'; + + @override + String get demoMenuPreview => 'Preview'; + + @override + String get demoMenuShare => 'Share'; + + @override + String get demoMenuGetLink => 'Get link'; + + @override + String get demoMenuRemove => 'Remove'; + + @override + String demoMenuSelected(Object value) { + return 'Selected: $value'; + } + + @override + String demoMenuChecked(Object value) { + return 'Checked: $value'; + } + + @override + String get demoNavigationDrawerTitle => 'Navigation Drawer'; + + @override + String get demoNavigationDrawerSubtitle => 'Displaying a drawer within appbar'; + + @override + String get demoNavigationDrawerDescription => 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; + + @override + String get demoNavigationDrawerUserName => 'User Name'; + + @override + String get demoNavigationDrawerUserEmail => 'user.name@example.com'; + + @override + String get demoNavigationDrawerToPageOne => 'Item One'; + + @override + String get demoNavigationDrawerToPageTwo => 'Item Two'; + + @override + String get demoNavigationDrawerText => 'Swipe from the edge or tap the upper-left icon to see the drawer'; + + @override + String get demoNavigationRailTitle => 'Navigation Rail'; + + @override + String get demoNavigationRailSubtitle => 'Displaying a Navigation Rail within an app'; + + @override + String get demoNavigationRailDescription => 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; + + @override + String get demoNavigationRailFirst => 'First'; + + @override + String get demoNavigationRailSecond => 'Second'; + + @override + String get demoNavigationRailThird => 'Third'; + + @override + String get demoMenuAnItemWithASimpleMenu => 'An item with a simple menu'; + + @override + String get demoMenuAnItemWithAChecklistMenu => 'An item with a checklist menu'; + + @override + String get demoFullscreenDialogTitle => 'Fullscreen'; + + @override + String get demoFullscreenDialogDescription => 'The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog'; + + @override + String get demoCupertinoActivityIndicatorTitle => 'Activity indicator'; + + @override + String get demoCupertinoActivityIndicatorSubtitle => 'iOS-style activity indicators'; + + @override + String get demoCupertinoActivityIndicatorDescription => 'An iOS-style activity indicator that spins clockwise.'; + + @override + String get demoCupertinoButtonsTitle => 'Buttons'; + + @override + String get demoCupertinoButtonsSubtitle => 'iOS-style buttons'; + + @override + String get demoCupertinoButtonsDescription => 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; + + @override + String get demoCupertinoContextMenuTitle => 'Context Menu'; + + @override + String get demoCupertinoContextMenuSubtitle => 'iOS-style context menu'; + + @override + String get demoCupertinoContextMenuDescription => 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; + + @override + String get demoCupertinoContextMenuActionOne => 'Action one'; + + @override + String get demoCupertinoContextMenuActionTwo => 'Action two'; + + @override + String get demoCupertinoContextMenuActionText => 'Tap and hold the Flutter logo to see the context menu.'; + + @override + String get demoCupertinoAlertsTitle => 'Alerts'; + + @override + String get demoCupertinoAlertsSubtitle => 'iOS-style alert dialogs'; + + @override + String get demoCupertinoAlertTitle => 'Alert'; + + @override + String get demoCupertinoAlertDescription => 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; + + @override + String get demoCupertinoAlertWithTitleTitle => 'Alert With Title'; + + @override + String get demoCupertinoAlertButtonsTitle => 'Alert With Buttons'; + + @override + String get demoCupertinoAlertButtonsOnlyTitle => 'Alert Buttons Only'; + + @override + String get demoCupertinoActionSheetTitle => 'Action Sheet'; + + @override + String get demoCupertinoActionSheetDescription => 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.'; + + @override + String get demoCupertinoNavigationBarTitle => 'Navigation bar'; + + @override + String get demoCupertinoNavigationBarSubtitle => 'iOS-style navigation bar'; + + @override + String get demoCupertinoNavigationBarDescription => 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; + + @override + String get demoCupertinoPickerTitle => 'Pickers'; + + @override + String get demoCupertinoPickerSubtitle => 'iOS-style pickers'; + + @override + String get demoCupertinoPickerDescription => 'An iOS-style picker widget that can be used to select strings, dates, times, or both date and time.'; + + @override + String get demoCupertinoPickerTimer => 'Timer'; + + @override + String get demoCupertinoPicker => 'Picker'; + + @override + String get demoCupertinoPickerDate => 'Date'; + + @override + String get demoCupertinoPickerTime => 'Time'; + + @override + String get demoCupertinoPickerDateTime => 'Date and Time'; + + @override + String get demoCupertinoPullToRefreshTitle => 'Pull to refresh'; + + @override + String get demoCupertinoPullToRefreshSubtitle => 'iOS-style pull to refresh control'; + + @override + String get demoCupertinoPullToRefreshDescription => 'A widget implementing the iOS-style pull to refresh content control.'; + + @override + String get demoCupertinoSegmentedControlTitle => 'Segmented control'; + + @override + String get demoCupertinoSegmentedControlSubtitle => 'iOS-style segmented control'; + + @override + String get demoCupertinoSegmentedControlDescription => 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; + + @override + String get demoCupertinoSliderTitle => 'Slider'; + + @override + String get demoCupertinoSliderSubtitle => 'iOS-style slider'; + + @override + String get demoCupertinoSliderDescription => 'A slider can be used to select from either a continuous or a discrete set of values.'; + + @override + String demoCupertinoSliderContinuous(Object value) { + return 'Continuous: $value'; + } + + @override + String demoCupertinoSliderDiscrete(Object value) { + return 'Discrete: $value'; + } + + @override + String get demoCupertinoSwitchSubtitle => 'iOS-style switch'; + + @override + String get demoCupertinoSwitchDescription => 'A switch is used to toggle the on/off state of a single setting.'; + + @override + String get demoCupertinoTabBarTitle => 'Tab bar'; + + @override + String get demoCupertinoTabBarSubtitle => 'iOS-style bottom tab bar'; + + @override + String get demoCupertinoTabBarDescription => 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; + + @override + String get cupertinoTabBarHomeTab => 'Home'; + + @override + String get cupertinoTabBarChatTab => 'Chat'; + + @override + String get cupertinoTabBarProfileTab => 'Profile'; + + @override + String get demoCupertinoTextFieldTitle => 'Text fields'; + + @override + String get demoCupertinoTextFieldSubtitle => 'iOS-style text fields'; + + @override + String get demoCupertinoTextFieldDescription => 'A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.'; + + @override + String get demoCupertinoTextFieldPIN => 'PIN'; + + @override + String get demoCupertinoSearchTextFieldTitle => 'Search text field'; + + @override + String get demoCupertinoSearchTextFieldSubtitle => 'iOS-style search text field'; + + @override + String get demoCupertinoSearchTextFieldDescription => 'A search text field that lets the user search by entering text, and that can offer and filter suggestions.'; + + @override + String get demoCupertinoSearchTextFieldPlaceholder => 'Enter some text'; + + @override + String get demoCupertinoScrollbarTitle => 'Scrollbar'; + + @override + String get demoCupertinoScrollbarSubtitle => 'iOS-style scrollbar'; + + @override + String get demoCupertinoScrollbarDescription => 'A scrollbar that wraps the given child'; + + @override + String get demoMotionTitle => 'Motion'; + + @override + String get demoMotionSubtitle => 'All of the predefined transition patterns'; + + @override + String get demoContainerTransformDemoInstructions => 'Cards, Lists & FAB'; + + @override + String get demoSharedXAxisDemoInstructions => 'Next and Back Buttons'; + + @override + String get demoSharedYAxisDemoInstructions => 'Sort by "Recently Played"'; + + @override + String get demoSharedZAxisDemoInstructions => 'Settings icon button'; + + @override + String get demoFadeThroughDemoInstructions => 'Bottom navigation'; + + @override + String get demoFadeScaleDemoInstructions => 'Modal and FAB'; + + @override + String get demoContainerTransformTitle => 'Container Transform'; + + @override + String get demoContainerTransformDescription => 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; + + @override + String get demoContainerTransformModalBottomSheetTitle => 'Fade mode'; + + @override + String get demoContainerTransformTypeFade => 'FADE'; + + @override + String get demoContainerTransformTypeFadeThrough => 'FADE THROUGH'; + + @override + String get demoMotionPlaceholderTitle => 'Title'; + + @override + String get demoMotionPlaceholderSubtitle => 'Secondary text'; + + @override + String get demoMotionSmallPlaceholderSubtitle => 'Secondary'; + + @override + String get demoMotionDetailsPageTitle => 'Details Page'; + + @override + String get demoMotionListTileTitle => 'List item'; + + @override + String get demoSharedAxisDescription => 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.'; + + @override + String get demoSharedXAxisTitle => 'Shared x-axis'; + + @override + String get demoSharedXAxisBackButtonText => 'BACK'; + + @override + String get demoSharedXAxisNextButtonText => 'NEXT'; + + @override + String get demoSharedXAxisCoursePageTitle => 'Streamline your courses'; + + @override + String get demoSharedXAxisCoursePageSubtitle => 'Bundled categories appear as groups in your feed. You can always change this later.'; + + @override + String get demoSharedXAxisArtsAndCraftsCourseTitle => 'Arts & Crafts'; + + @override + String get demoSharedXAxisBusinessCourseTitle => 'Business'; + + @override + String get demoSharedXAxisIllustrationCourseTitle => 'Illustration'; + + @override + String get demoSharedXAxisDesignCourseTitle => 'Design'; + + @override + String get demoSharedXAxisCulinaryCourseTitle => 'Culinary'; + + @override + String get demoSharedXAxisBundledCourseSubtitle => 'Bundled'; + + @override + String get demoSharedXAxisIndividualCourseSubtitle => 'Shown Individually'; + + @override + String get demoSharedXAxisSignInWelcomeText => 'Hi David Park'; + + @override + String get demoSharedXAxisSignInSubtitleText => 'Sign in with your account'; + + @override + String get demoSharedXAxisSignInTextFieldLabel => 'Email or phone number'; + + @override + String get demoSharedXAxisForgotEmailButtonText => 'FORGOT EMAIL?'; + + @override + String get demoSharedXAxisCreateAccountButtonText => 'CREATE ACCOUNT'; + + @override + String get demoSharedYAxisTitle => 'Shared y-axis'; + + @override + String get demoSharedYAxisAlbumCount => '268 albums'; + + @override + String get demoSharedYAxisAlphabeticalSortTitle => 'A-Z'; + + @override + String get demoSharedYAxisRecentSortTitle => 'Recently played'; + + @override + String get demoSharedYAxisAlbumTileTitle => 'Album'; + + @override + String get demoSharedYAxisAlbumTileSubtitle => 'Artist'; + + @override + String get demoSharedYAxisAlbumTileDurationUnit => 'min'; + + @override + String get demoSharedZAxisTitle => 'Shared z-axis'; + + @override + String get demoSharedZAxisSettingsPageTitle => 'Settings'; + + @override + String get demoSharedZAxisBurgerRecipeTitle => 'Burger'; + + @override + String get demoSharedZAxisBurgerRecipeDescription => 'Burger recipe'; + + @override + String get demoSharedZAxisSandwichRecipeTitle => 'Sandwich'; + + @override + String get demoSharedZAxisSandwichRecipeDescription => 'Sandwich recipe'; + + @override + String get demoSharedZAxisDessertRecipeTitle => 'Dessert'; + + @override + String get demoSharedZAxisDessertRecipeDescription => 'Dessert recipe'; + + @override + String get demoSharedZAxisShrimpPlateRecipeTitle => 'Shrimp'; + + @override + String get demoSharedZAxisShrimpPlateRecipeDescription => 'Shrimp plate recipe'; + + @override + String get demoSharedZAxisCrabPlateRecipeTitle => 'Crab'; + + @override + String get demoSharedZAxisCrabPlateRecipeDescription => 'Crab plate recipe'; + + @override + String get demoSharedZAxisBeefSandwichRecipeTitle => 'Beef Sandwich'; + + @override + String get demoSharedZAxisBeefSandwichRecipeDescription => 'Beef Sandwich recipe'; + + @override + String get demoSharedZAxisSavedRecipesListTitle => 'Saved Recipes'; + + @override + String get demoSharedZAxisProfileSettingLabel => 'Profile'; + + @override + String get demoSharedZAxisNotificationSettingLabel => 'Notifications'; + + @override + String get demoSharedZAxisPrivacySettingLabel => 'Privacy'; + + @override + String get demoSharedZAxisHelpSettingLabel => 'Help'; + + @override + String get demoFadeThroughTitle => 'Fade through'; + + @override + String get demoFadeThroughDescription => 'The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; + + @override + String get demoFadeThroughAlbumsDestination => 'Albums'; + + @override + String get demoFadeThroughPhotosDestination => 'Photos'; + + @override + String get demoFadeThroughSearchDestination => 'Search'; + + @override + String get demoFadeThroughTextPlaceholder => '123 photos'; + + @override + String get demoFadeScaleTitle => 'Fade'; + + @override + String get demoFadeScaleDescription => 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.'; + + @override + String get demoFadeScaleShowAlertDialogButton => 'SHOW MODAL'; + + @override + String get demoFadeScaleShowFabButton => 'SHOW FAB'; + + @override + String get demoFadeScaleHideFabButton => 'HIDE FAB'; + + @override + String get demoFadeScaleAlertDialogHeader => 'Alert Dialog'; + + @override + String get demoFadeScaleAlertDialogCancelButton => 'CANCEL'; + + @override + String get demoFadeScaleAlertDialogDiscardButton => 'DISCARD'; + + @override + String get demoColorsTitle => 'Colors'; + + @override + String get demoColorsSubtitle => 'All of the predefined colors'; + + @override + String get demoColorsDescription => "Color and color swatch constants which represent Material Design's color palette."; + + @override + String get demoTypographyTitle => 'Typography'; + + @override + String get demoTypographySubtitle => 'All of the predefined text styles'; + + @override + String get demoTypographyDescription => 'Definitions for the various typographical styles found in Material Design.'; + + @override + String get demo2dTransformationsTitle => '2D transformations'; + + @override + String get demo2dTransformationsSubtitle => 'Pan and zoom'; + + @override + String get demo2dTransformationsDescription => 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan and pinch with two fingers to zoom. Press the reset button to return to the starting orientation.'; + + @override + String get demo2dTransformationsResetTooltip => 'Reset transformations'; + + @override + String get demo2dTransformationsEditTooltip => 'Edit tile'; + + @override + String get buttonText => 'BUTTON'; + + @override + String get demoBottomSheetTitle => 'Bottom sheet'; + + @override + String get demoBottomSheetSubtitle => 'Persistent and modal bottom sheets'; + + @override + String get demoBottomSheetPersistentTitle => 'Persistent bottom sheet'; + + @override + String get demoBottomSheetPersistentDescription => 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; + + @override + String get demoBottomSheetModalTitle => 'Modal bottom sheet'; + + @override + String get demoBottomSheetModalDescription => 'A modal bottom sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app.'; + + @override + String get demoBottomSheetAddLabel => 'Add'; + + @override + String get demoBottomSheetButtonText => 'SHOW BOTTOM SHEET'; + + @override + String get demoBottomSheetHeader => 'Header'; + + @override + String demoBottomSheetItem(Object value) { + return 'Item $value'; + } + + @override + String get demoListsTitle => 'Lists'; + + @override + String get demoListsSubtitle => 'Scrolling list layouts'; + + @override + String get demoListsDescription => 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; + + @override + String get demoOneLineListsTitle => 'One Line'; + + @override + String get demoTwoLineListsTitle => 'Two Lines'; + + @override + String get demoListsSecondary => 'Secondary text'; + + @override + String get demoProgressIndicatorTitle => 'Progress indicators'; + + @override + String get demoProgressIndicatorSubtitle => 'Linear, circular, indeterminate'; + + @override + String get demoCircularProgressIndicatorTitle => 'Circular Progress Indicator'; + + @override + String get demoCircularProgressIndicatorDescription => 'A Material Design circular progress indicator, which spins to indicate that the application is busy.'; + + @override + String get demoLinearProgressIndicatorTitle => 'Linear Progress Indicator'; + + @override + String get demoLinearProgressIndicatorDescription => 'A Material Design linear progress indicator, also known as a progress bar.'; + + @override + String get demoPickersTitle => 'Pickers'; + + @override + String get demoPickersSubtitle => 'Date and time selection'; + + @override + String get demoDatePickerTitle => 'Date Picker'; + + @override + String get demoDatePickerDescription => 'Shows a dialog containing a Material Design date picker.'; + + @override + String get demoTimePickerTitle => 'Time Picker'; + + @override + String get demoTimePickerDescription => 'Shows a dialog containing a Material Design time picker.'; + + @override + String get demoDateRangePickerTitle => 'Date Range Picker'; + + @override + String get demoDateRangePickerDescription => 'Shows a dialog containing a Material Design date range picker.'; + + @override + String get demoPickersShowPicker => 'SHOW PICKER'; + + @override + String get demoTabsTitle => 'Tabs'; + + @override + String get demoTabsScrollingTitle => 'Scrolling'; + + @override + String get demoTabsNonScrollingTitle => 'Non-scrolling'; + + @override + String get demoTabsSubtitle => 'Tabs with independently scrollable views'; + + @override + String get demoTabsDescription => 'Tabs organize content across different screens, data sets, and other interactions.'; + + @override + String get demoSnackbarsTitle => 'Snackbars'; + + @override + String get demoSnackbarsSubtitle => 'Snackbars show messages at the bottom of the screen'; + + @override + String get demoSnackbarsDescription => "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; + + @override + String get demoSnackbarsButtonLabel => 'SHOW A SNACKBAR'; + + @override + String get demoSnackbarsText => 'This is a snackbar.'; + + @override + String get demoSnackbarsActionButtonLabel => 'ACTION'; + + @override + String get demoSnackbarsAction => 'You pressed the snackbar action.'; + + @override + String get demoSelectionControlsTitle => 'Selection controls'; + + @override + String get demoSelectionControlsSubtitle => 'Checkboxes, radio buttons, and switches'; + + @override + String get demoSelectionControlsCheckboxTitle => 'Checkbox'; + + @override + String get demoSelectionControlsCheckboxDescription => "Checkboxes allow the user to select multiple options from a set. A normal checkbox's value is true or false and a tristate checkbox's value can also be null."; + + @override + String get demoSelectionControlsRadioTitle => 'Radio'; + + @override + String get demoSelectionControlsRadioDescription => 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.'; + + @override + String get demoSelectionControlsSwitchTitle => 'Switch'; + + @override + String get demoSelectionControlsSwitchDescription => "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; + + @override + String get demoBottomTextFieldsTitle => 'Text fields'; + + @override + String get demoTextFieldTitle => 'Text fields'; + + @override + String get demoTextFieldSubtitle => 'Single line of editable text and numbers'; + + @override + String get demoTextFieldDescription => 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.'; + + @override + String get demoTextFieldShowPasswordLabel => 'Show password'; + + @override + String get demoTextFieldHidePasswordLabel => 'Hide password'; + + @override + String get demoTextFieldFormErrors => 'Please fix the errors in red before submitting.'; + + @override + String get demoTextFieldNameRequired => 'Name is required.'; + + @override + String get demoTextFieldOnlyAlphabeticalChars => 'Please enter only alphabetical characters.'; + + @override + String get demoTextFieldEnterUSPhoneNumber => '(###) ###-#### - Enter a US phone number.'; + + @override + String get demoTextFieldEnterPassword => 'Please enter a password.'; + + @override + String get demoTextFieldPasswordsDoNotMatch => "The passwords don't match"; + + @override + String get demoTextFieldWhatDoPeopleCallYou => 'What do people call you?'; + + @override + String get demoTextFieldNameField => 'Name*'; + + @override + String get demoTextFieldWhereCanWeReachYou => 'Where can we reach you?'; + + @override + String get demoTextFieldPhoneNumber => 'Phone number*'; + + @override + String get demoTextFieldYourEmailAddress => 'Your email address'; + + @override + String get demoTextFieldEmail => 'Email'; + + @override + String get demoTextFieldTellUsAboutYourself => 'Tell us about yourself (e.g., write down what you do or what hobbies you have)'; + + @override + String get demoTextFieldKeepItShort => 'Keep it short, this is just a demo.'; + + @override + String get demoTextFieldLifeStory => 'Life story'; + + @override + String get demoTextFieldSalary => 'Salary'; + + @override + String get demoTextFieldUSD => 'USD'; + + @override + String get demoTextFieldNoMoreThan => 'No more than 8 characters.'; + + @override + String get demoTextFieldPassword => 'Password*'; + + @override + String get demoTextFieldRetypePassword => 'Re-type password*'; + + @override + String get demoTextFieldSubmit => 'SUBMIT'; + + @override + String demoTextFieldNameHasPhoneNumber(Object name, Object phoneNumber) { + return '$name phone number is $phoneNumber'; + } + + @override + String get demoTextFieldRequiredField => '* indicates required field'; + + @override + String get demoTooltipTitle => 'Tooltips'; + + @override + String get demoTooltipSubtitle => 'Short message displayed on long press or hover'; + + @override + String get demoTooltipDescription => 'Tooltips provide text labels that help explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on, or long press an element.'; + + @override + String get demoTooltipInstructions => 'Long press or hover to display the tooltip.'; + + @override + String get bottomNavigationCommentsTab => 'Comments'; + + @override + String get bottomNavigationCalendarTab => 'Calendar'; + + @override + String get bottomNavigationAccountTab => 'Account'; + + @override + String get bottomNavigationAlarmTab => 'Alarm'; + + @override + String get bottomNavigationCameraTab => 'Camera'; + + @override + String bottomNavigationContentPlaceholder(Object title) { + return 'Placeholder for $title tab'; + } + + @override + String get buttonTextCreate => 'Create'; + + @override + String dialogSelectedOption(Object value) { + return 'You selected: "$value"'; + } + + @override + String get chipTurnOnLights => 'Turn on lights'; + + @override + String get chipSmall => 'Small'; + + @override + String get chipMedium => 'Medium'; + + @override + String get chipLarge => 'Large'; + + @override + String get chipElevator => 'Elevator'; + + @override + String get chipWasher => 'Washer'; + + @override + String get chipFireplace => 'Fireplace'; + + @override + String get chipBiking => 'Biking'; + + @override + String get demo => 'Demo'; + + @override + String get bottomAppBar => 'Bottom app bar'; + + @override + String get loading => 'Loading'; + + @override + String get dialogDiscardTitle => 'Discard draft?'; + + @override + String get dialogLocationTitle => "Use Google's location service?"; + + @override + String get dialogLocationDescription => 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; + + @override + String get dialogCancel => 'CANCEL'; + + @override + String get dialogDiscard => 'DISCARD'; + + @override + String get dialogDisagree => 'DISAGREE'; + + @override + String get dialogAgree => 'AGREE'; + + @override + String get dialogSetBackup => 'Set backup account'; + + @override + String get dialogAddAccount => 'Add account'; + + @override + String get dialogShow => 'SHOW DIALOG'; + + @override + String get dialogFullscreenTitle => 'Full Screen Dialog'; + + @override + String get dialogFullscreenSave => 'SAVE'; + + @override + String get dialogFullscreenDescription => 'A full screen dialog demo'; + + @override + String get cupertinoButton => 'Button'; + + @override + String get cupertinoButtonWithBackground => 'With Background'; + + @override + String get cupertinoAlertCancel => 'Cancel'; + + @override + String get cupertinoAlertDiscard => 'Discard'; + + @override + String get cupertinoAlertLocationTitle => 'Allow "Maps" to access your location while you are using the app?'; + + @override + String get cupertinoAlertLocationDescription => 'Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.'; + + @override + String get cupertinoAlertAllow => 'Allow'; + + @override + String get cupertinoAlertDontAllow => "Don't Allow"; + + @override + String get cupertinoAlertFavoriteDessert => 'Select Favorite Dessert'; + + @override + String get cupertinoAlertDessertDescription => 'Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.'; + + @override + String get cupertinoAlertCheesecake => 'Cheesecake'; + + @override + String get cupertinoAlertTiramisu => 'Tiramisu'; + + @override + String get cupertinoAlertApplePie => 'Apple Pie'; + + @override + String get cupertinoAlertChocolateBrownie => 'Chocolate Brownie'; + + @override + String get cupertinoShowAlert => 'Show Alert'; + + @override + String get colorsRed => 'RED'; + + @override + String get colorsPink => 'PINK'; + + @override + String get colorsPurple => 'PURPLE'; + + @override + String get colorsDeepPurple => 'DEEP PURPLE'; + + @override + String get colorsIndigo => 'INDIGO'; + + @override + String get colorsBlue => 'BLUE'; + + @override + String get colorsLightBlue => 'LIGHT BLUE'; + + @override + String get colorsCyan => 'CYAN'; + + @override + String get colorsTeal => 'TEAL'; + + @override + String get colorsGreen => 'GREEN'; + + @override + String get colorsLightGreen => 'LIGHT GREEN'; + + @override + String get colorsLime => 'LIME'; + + @override + String get colorsYellow => 'YELLOW'; + + @override + String get colorsAmber => 'AMBER'; + + @override + String get colorsOrange => 'ORANGE'; + + @override + String get colorsDeepOrange => 'DEEP ORANGE'; + + @override + String get colorsBrown => 'BROWN'; + + @override + String get colorsGrey => 'GREY'; + + @override + String get colorsBlueGrey => 'BLUE GREY'; + + @override + String get placeChennai => 'Chennai'; + + @override + String get placeTanjore => 'Tanjore'; + + @override + String get placeChettinad => 'Chettinad'; + + @override + String get placePondicherry => 'Pondicherry'; + + @override + String get placeFlowerMarket => 'Flower Market'; + + @override + String get placeBronzeWorks => 'Bronze Works'; + + @override + String get placeMarket => 'Market'; + + @override + String get placeThanjavurTemple => 'Thanjavur Temple'; + + @override + String get placeSaltFarm => 'Salt Farm'; + + @override + String get placeScooters => 'Scooters'; + + @override + String get placeSilkMaker => 'Silk Maker'; + + @override + String get placeLunchPrep => 'Lunch Prep'; + + @override + String get placeBeach => 'Beach'; + + @override + String get placeFisherman => 'Fisherman'; + + @override + String get starterAppTitle => 'Starter app'; + + @override + String get starterAppDescription => 'A responsive starter layout'; + + @override + String get starterAppGenericButton => 'BUTTON'; + + @override + String get starterAppTooltipAdd => 'Add'; + + @override + String get starterAppTooltipFavorite => 'Favorite'; + + @override + String get starterAppTooltipShare => 'Share'; + + @override + String get starterAppTooltipSearch => 'Search'; + + @override + String get starterAppGenericTitle => 'Title'; + + @override + String get starterAppGenericSubtitle => 'Subtitle'; + + @override + String get starterAppGenericHeadline => 'Headline'; + + @override + String get starterAppGenericBody => 'Body'; + + @override + String starterAppDrawerItem(Object value) { + return 'Item $value'; + } + + @override + String get shrineMenuCaption => 'MENU'; + + @override + String get shrineCategoryNameAll => 'ALL'; + + @override + String get shrineCategoryNameAccessories => 'ACCESSORIES'; + + @override + String get shrineCategoryNameClothing => 'CLOTHING'; + + @override + String get shrineCategoryNameHome => 'HOME'; + + @override + String get shrineLogoutButtonCaption => 'LOGOUT'; + + @override + String get shrineLoginUsernameLabel => 'Username'; + + @override + String get shrineLoginPasswordLabel => 'Password'; + + @override + String get shrineCancelButtonCaption => 'CANCEL'; + + @override + String get shrineNextButtonCaption => 'NEXT'; + + @override + String get shrineCartPageCaption => 'CART'; + + @override + String shrineProductQuantity(Object quantity) { + return 'Quantity: $quantity'; + } + + @override + String shrineProductPrice(Object price) { + return 'x $price'; + } + + @override + String shrineCartItemCount(num quantity) { + return intl.Intl.pluralLogic( + quantity, + locale: localeName, + other: '$quantity ITEMS', + one: '1 ITEM', + zero: 'NO ITEMS', + ); + } + + @override + String get shrineCartClearButtonCaption => 'CLEAR CART'; + + @override + String get shrineCartTotalCaption => 'TOTAL'; + + @override + String get shrineCartSubtotalCaption => 'Subtotal:'; + + @override + String get shrineCartShippingCaption => 'Shipping:'; + + @override + String get shrineCartTaxCaption => 'Tax:'; + + @override + String get shrineProductVagabondSack => 'Vagabond sack'; + + @override + String get shrineProductStellaSunglasses => 'Stella sunglasses'; + + @override + String get shrineProductWhitneyBelt => 'Whitney belt'; + + @override + String get shrineProductGardenStrand => 'Garden strand'; + + @override + String get shrineProductStrutEarrings => 'Strut earrings'; + + @override + String get shrineProductVarsitySocks => 'Varsity socks'; + + @override + String get shrineProductWeaveKeyring => 'Weave keyring'; + + @override + String get shrineProductGatsbyHat => 'Gatsby hat'; + + @override + String get shrineProductShrugBag => 'Shrug bag'; + + @override + String get shrineProductGiltDeskTrio => 'Gilt desk trio'; + + @override + String get shrineProductCopperWireRack => 'Copper wire rack'; + + @override + String get shrineProductSootheCeramicSet => 'Soothe ceramic set'; + + @override + String get shrineProductHurrahsTeaSet => 'Hurrahs tea set'; + + @override + String get shrineProductBlueStoneMug => 'Blue stone mug'; + + @override + String get shrineProductRainwaterTray => 'Rainwater tray'; + + @override + String get shrineProductChambrayNapkins => 'Chambray napkins'; + + @override + String get shrineProductSucculentPlanters => 'Succulent planters'; + + @override + String get shrineProductQuartetTable => 'Quartet table'; + + @override + String get shrineProductKitchenQuattro => 'Kitchen quattro'; + + @override + String get shrineProductClaySweater => 'Clay sweater'; + + @override + String get shrineProductSeaTunic => 'Sea tunic'; + + @override + String get shrineProductPlasterTunic => 'Plaster tunic'; + + @override + String get shrineProductWhitePinstripeShirt => 'White pinstripe shirt'; + + @override + String get shrineProductChambrayShirt => 'Chambray shirt'; + + @override + String get shrineProductSeabreezeSweater => 'Seabreeze sweater'; + + @override + String get shrineProductGentryJacket => 'Gentry jacket'; + + @override + String get shrineProductNavyTrousers => 'Navy trousers'; + + @override + String get shrineProductWalterHenleyWhite => 'Walter henley (white)'; + + @override + String get shrineProductSurfAndPerfShirt => 'Surf and perf shirt'; + + @override + String get shrineProductGingerScarf => 'Ginger scarf'; + + @override + String get shrineProductRamonaCrossover => 'Ramona crossover'; + + @override + String get shrineProductClassicWhiteCollar => 'Classic white collar'; + + @override + String get shrineProductCeriseScallopTee => 'Cerise scallop tee'; + + @override + String get shrineProductShoulderRollsTee => 'Shoulder rolls tee'; + + @override + String get shrineProductGreySlouchTank => 'Grey slouch tank'; + + @override + String get shrineProductSunshirtDress => 'Sunshirt dress'; + + @override + String get shrineProductFineLinesTee => 'Fine lines tee'; + + @override + String get shrineTooltipSearch => 'Search'; + + @override + String get shrineTooltipSettings => 'Settings'; + + @override + String get shrineTooltipOpenMenu => 'Open menu'; + + @override + String get shrineTooltipCloseMenu => 'Close menu'; + + @override + String get shrineTooltipCloseCart => 'Close cart'; + + @override + String shrineScreenReaderCart(num quantity) { + return intl.Intl.pluralLogic( + quantity, + locale: localeName, + other: 'Shopping cart, $quantity items', + one: 'Shopping cart, 1 item', + zero: 'Shopping cart, no items', + ); + } + + @override + String get shrineScreenReaderProductAddToCart => 'Add to cart'; + + @override + String shrineScreenReaderRemoveProductButton(Object product) { + return 'Remove $product'; + } + + @override + String get shrineTooltipRemoveItem => 'Remove item'; + + @override + String get craneFormDiners => 'Diners'; + + @override + String get craneFormDate => 'Select Date'; + + @override + String get craneFormTime => 'Select Time'; + + @override + String get craneFormLocation => 'Select Location'; + + @override + String get craneFormTravelers => 'Travelers'; + + @override + String get craneFormOrigin => 'Choose Origin'; + + @override + String get craneFormDestination => 'Choose Destination'; + + @override + String get craneFormDates => 'Select Dates'; + + @override + String craneHours(num hours) { + final String temp0 = intl.Intl.pluralLogic( + hours, + locale: localeName, + other: '${hours}h', + one: '1h', + ); + return temp0; + } + + @override + String craneMinutes(num minutes) { + final String temp0 = intl.Intl.pluralLogic( + minutes, + locale: localeName, + other: '${minutes}m', + one: '1m', + ); + return temp0; + } + + @override + String craneFlightDuration(Object hoursShortForm, Object minutesShortForm) { + return '$hoursShortForm $minutesShortForm'; + } + + @override + String get craneFly => 'FLY'; + + @override + String get craneSleep => 'SLEEP'; + + @override + String get craneEat => 'EAT'; + + @override + String get craneFlySubhead => 'Explore Flights by Destination'; + + @override + String get craneSleepSubhead => 'Explore Properties by Destination'; + + @override + String get craneEatSubhead => 'Explore Restaurants by Destination'; + + @override + String craneFlyStops(num numberOfStops) { + final String temp0 = intl.Intl.pluralLogic( + numberOfStops, + locale: localeName, + other: '$numberOfStops stops', + one: '1 stop', + zero: 'Nonstop', + ); + return temp0; + } + + @override + String craneSleepProperties(num totalProperties) { + final String temp0 = intl.Intl.pluralLogic( + totalProperties, + locale: localeName, + other: '$totalProperties Available Properties', + one: '1 Available Properties', + zero: 'No Available Properties', + ); + return temp0; + } + + @override + String craneEatRestaurants(num totalRestaurants) { + final String temp0 = intl.Intl.pluralLogic( + totalRestaurants, + locale: localeName, + other: '$totalRestaurants Restaurants', + one: '1 Restaurant', + zero: 'No Restaurants', + ); + return temp0; + } + + @override + String get craneFly0 => 'Aspen, United States'; + + @override + String get craneFly1 => 'Big Sur, United States'; + + @override + String get craneFly2 => 'Khumbu Valley, Nepal'; + + @override + String get craneFly3 => 'Machu Picchu, Peru'; + + @override + String get craneFly4 => 'Malé, Maldives'; + + @override + String get craneFly5 => 'Vitznau, Switzerland'; + + @override + String get craneFly6 => 'Mexico City, Mexico'; + + @override + String get craneFly7 => 'Mount Rushmore, United States'; + + @override + String get craneFly8 => 'Singapore'; + + @override + String get craneFly9 => 'Havana, Cuba'; + + @override + String get craneFly10 => 'Cairo, Egypt'; + + @override + String get craneFly11 => 'Lisbon, Portugal'; + + @override + String get craneFly12 => 'Napa, United States'; + + @override + String get craneFly13 => 'Bali, Indonesia'; + + @override + String get craneSleep0 => 'Malé, Maldives'; + + @override + String get craneSleep1 => 'Aspen, United States'; + + @override + String get craneSleep2 => 'Machu Picchu, Peru'; + + @override + String get craneSleep3 => 'Havana, Cuba'; + + @override + String get craneSleep4 => 'Vitznau, Switzerland'; + + @override + String get craneSleep5 => 'Big Sur, United States'; + + @override + String get craneSleep6 => 'Napa, United States'; + + @override + String get craneSleep7 => 'Porto, Portugal'; + + @override + String get craneSleep8 => 'Tulum, Mexico'; + + @override + String get craneSleep9 => 'Lisbon, Portugal'; + + @override + String get craneSleep10 => 'Cairo, Egypt'; + + @override + String get craneSleep11 => 'Taipei, Taiwan'; + + @override + String get craneEat0 => 'Naples, Italy'; + + @override + String get craneEat1 => 'Dallas, United States'; + + @override + String get craneEat2 => 'Córdoba, Argentina'; + + @override + String get craneEat3 => 'Portland, United States'; + + @override + String get craneEat4 => 'Paris, France'; + + @override + String get craneEat5 => 'Seoul, South Korea'; + + @override + String get craneEat6 => 'Seattle, United States'; + + @override + String get craneEat7 => 'Nashville, United States'; + + @override + String get craneEat8 => 'Atlanta, United States'; + + @override + String get craneEat9 => 'Madrid, Spain'; + + @override + String get craneEat10 => 'Lisbon, Portugal'; + + @override + String get craneFly0SemanticLabel => 'Chalet in a snowy landscape with evergreen trees'; + + @override + String get craneFly1SemanticLabel => 'Tent in a field'; + + @override + String get craneFly2SemanticLabel => 'Prayer flags in front of snowy mountain'; + + @override + String get craneFly3SemanticLabel => 'Machu Picchu citadel'; + + @override + String get craneFly4SemanticLabel => 'Overwater bungalows'; + + @override + String get craneFly5SemanticLabel => 'Lake-side hotel in front of mountains'; + + @override + String get craneFly6SemanticLabel => 'Aerial view of Palacio de Bellas Artes'; + + @override + String get craneFly7SemanticLabel => 'Mount Rushmore'; + + @override + String get craneFly8SemanticLabel => 'Supertree Grove'; + + @override + String get craneFly9SemanticLabel => 'Man leaning on an antique blue car'; + + @override + String get craneFly10SemanticLabel => 'Al-Azhar Mosque towers during sunset'; + + @override + String get craneFly11SemanticLabel => 'Brick lighthouse at sea'; + + @override + String get craneFly12SemanticLabel => 'Pool with palm trees'; + + @override + String get craneFly13SemanticLabel => 'Sea-side pool with palm trees'; + + @override + String get craneSleep0SemanticLabel => 'Overwater bungalows'; + + @override + String get craneSleep1SemanticLabel => 'Chalet in a snowy landscape with evergreen trees'; + + @override + String get craneSleep2SemanticLabel => 'Machu Picchu citadel'; + + @override + String get craneSleep3SemanticLabel => 'Man leaning on an antique blue car'; + + @override + String get craneSleep4SemanticLabel => 'Lake-side hotel in front of mountains'; + + @override + String get craneSleep5SemanticLabel => 'Tent in a field'; + + @override + String get craneSleep6SemanticLabel => 'Pool with palm trees'; + + @override + String get craneSleep7SemanticLabel => 'Colorful apartments at Riberia Square'; + + @override + String get craneSleep8SemanticLabel => 'Mayan ruins on a cliff above a beach'; + + @override + String get craneSleep9SemanticLabel => 'Brick lighthouse at sea'; + + @override + String get craneSleep10SemanticLabel => 'Al-Azhar Mosque towers during sunset'; + + @override + String get craneSleep11SemanticLabel => 'Taipei 101 skyscraper'; + + @override + String get craneEat0SemanticLabel => 'Pizza in a wood-fired oven'; + + @override + String get craneEat1SemanticLabel => 'Empty bar with diner-style stools'; + + @override + String get craneEat2SemanticLabel => 'Burger'; + + @override + String get craneEat3SemanticLabel => 'Korean taco'; + + @override + String get craneEat4SemanticLabel => 'Chocolate dessert'; + + @override + String get craneEat5SemanticLabel => 'Artsy restaurant seating area'; + + @override + String get craneEat6SemanticLabel => 'Shrimp dish'; + + @override + String get craneEat7SemanticLabel => 'Bakery entrance'; + + @override + String get craneEat8SemanticLabel => 'Plate of crawfish'; + + @override + String get craneEat9SemanticLabel => 'Cafe counter with pastries'; + + @override + String get craneEat10SemanticLabel => 'Woman holding huge pastrami sandwich'; + + @override + String get fortnightlyMenuFrontPage => 'Front Page'; + + @override + String get fortnightlyMenuWorld => 'World'; + + @override + String get fortnightlyMenuUS => 'US'; + + @override + String get fortnightlyMenuPolitics => 'Politics'; + + @override + String get fortnightlyMenuBusiness => 'Business'; + + @override + String get fortnightlyMenuTech => 'Tech'; + + @override + String get fortnightlyMenuScience => 'Science'; + + @override + String get fortnightlyMenuSports => 'Sports'; + + @override + String get fortnightlyMenuTravel => 'Travel'; + + @override + String get fortnightlyMenuCulture => 'Culture'; + + @override + String get fortnightlyTrendingTechDesign => 'TechDesign'; + + @override + String get fortnightlyTrendingReform => 'Reform'; + + @override + String get fortnightlyTrendingHealthcareRevolution => 'HealthcareRevolution'; + + @override + String get fortnightlyTrendingGreenArmy => 'GreenArmy'; + + @override + String get fortnightlyTrendingStocks => 'Stocks'; + + @override + String get fortnightlyLatestUpdates => 'Latest Updates'; + + @override + String get fortnightlyHeadlineHealthcare => 'The Quiet, Yet Powerful Healthcare Revolution'; + + @override + String get fortnightlyHeadlineWar => 'Divided American Lives During War'; + + @override + String get fortnightlyHeadlineGasoline => 'The Future of Gasoline'; + + @override + String get fortnightlyHeadlineArmy => 'Reforming The Green Army From Within'; + + @override + String get fortnightlyHeadlineStocks => 'As Stocks Stagnate, Many Look To Currency'; + + @override + String get fortnightlyHeadlineFabrics => 'Designers Use Tech To Make Futuristic Fabrics'; + + @override + String get fortnightlyHeadlineFeminists => 'Feminists Take On Partisanship'; + + @override + String get fortnightlyHeadlineBees => 'Farmland Bees In Short Supply'; + + @override + String get replyInboxLabel => 'Inbox'; + + @override + String get replyStarredLabel => 'Starred'; + + @override + String get replySentLabel => 'Sent'; + + @override + String get replyTrashLabel => 'Trash'; + + @override + String get replySpamLabel => 'Spam'; + + @override + String get replyDraftsLabel => 'Drafts'; + + @override + String get demoTwoPaneFoldableLabel => 'Foldable'; + + @override + String get demoTwoPaneFoldableDescription => 'This is how TwoPane behaves on a foldable device.'; + + @override + String get demoTwoPaneSmallScreenLabel => 'Small Screen'; + + @override + String get demoTwoPaneSmallScreenDescription => 'This is how TwoPane behaves on a small screen device.'; + + @override + String get demoTwoPaneTabletLabel => 'Tablet / Desktop'; + + @override + String get demoTwoPaneTabletDescription => 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; + + @override + String get demoTwoPaneTitle => 'TwoPane'; + + @override + String get demoTwoPaneSubtitle => 'Responsive layouts on foldable, large, and small screens'; + + @override + String get splashSelectDemo => 'Select a demo'; + + @override + String get demoTwoPaneList => 'List'; + + @override + String get demoTwoPaneDetails => 'Details'; + + @override + String get demoTwoPaneSelectItem => 'Select an item'; + + @override + String demoTwoPaneItem(Object value) { + return 'Item $value'; + } + + @override + String demoTwoPaneItemDetails(Object value) { + return 'Item $value details'; + } +} + +/// The translations for English, as used in Iceland (`en_IS`). +class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { + GalleryLocalizationsEnIs(): super('en_IS'); + + @override + String githubRepo(Object repoName) { + return '$repoName GitHub repository'; + } + + @override + String aboutDialogDescription(Object repoLink) { + return 'To see the source code for this app, please visit the $repoLink.'; + } + + @override + String get deselect => 'Deselect'; + + @override + String get notSelected => 'Not selected'; + + @override + String get select => 'Select'; + + @override + String get selectable => 'Selectable (long press)'; + + @override + String get selected => 'Selected'; + + @override + String get signIn => 'SIGN IN'; + + @override + String get bannerDemoText => 'Your password was updated on your other device. Please sign in again.'; + + @override + String get bannerDemoResetText => 'Reset the banner'; + + @override + String get bannerDemoMultipleText => 'Multiple actions'; + + @override + String get bannerDemoLeadingText => 'Leading icon'; + + @override + String get dismiss => 'DISMISS'; + + @override + String get backToGallery => 'Back to Gallery'; + + @override + String get cardsDemoExplore => 'Explore'; + + @override + String cardsDemoExploreSemantics(Object destinationName) { + return 'Explore $destinationName'; + } + + @override + String cardsDemoShareSemantics(Object destinationName) { + return 'Share $destinationName'; + } + + @override + String get cardsDemoTappable => 'Tappable'; + + @override + String get cardsDemoTravelDestinationTitle1 => 'Top 10 cities to visit in Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationDescription1 => 'Number 10'; + + @override + String get cardsDemoTravelDestinationCity1 => 'Thanjavur'; + + @override + String get cardsDemoTravelDestinationLocation1 => 'Thanjavur, Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationTitle2 => 'Artisans of Southern India'; + + @override + String get cardsDemoTravelDestinationDescription2 => 'Silk spinners'; + + @override + String get cardsDemoTravelDestinationCity2 => 'Chettinad'; + + @override + String get cardsDemoTravelDestinationLocation2 => 'Sivaganga, Tamil Nadu'; + + @override + String get cardsDemoTravelDestinationTitle3 => 'Brihadisvara Temple'; + + @override + String get cardsDemoTravelDestinationDescription3 => 'Temples'; + + @override + String get homeHeaderGallery => 'Gallery'; + + @override + String get homeHeaderCategories => 'Categories'; + + @override + String get shrineDescription => 'A fashionable retail app'; + + @override + String get fortnightlyDescription => 'A content-focused news app'; + + @override + String get rallyDescription => 'A personal finance app'; + + @override + String get replyDescription => 'An efficient, focused email app'; + + @override + String get rallyAccountDataChecking => 'Current'; + + @override + String get rallyAccountDataHomeSavings => 'Home savings'; + + @override + String get rallyAccountDataCarSavings => 'Car savings'; + + @override + String get rallyAccountDataVacation => 'Holiday'; + + @override + String get rallyAccountDetailDataAnnualPercentageYield => 'Annual percentage yield'; + + @override + String get rallyAccountDetailDataInterestRate => 'Interest rate'; + + @override + String get rallyAccountDetailDataInterestYtd => 'Interest YTD'; + + @override + String get rallyAccountDetailDataInterestPaidLastYear => 'Interest paid last year'; + + @override + String get rallyAccountDetailDataNextStatement => 'Next statement'; + + @override + String get rallyAccountDetailDataAccountOwner => 'Account owner'; + + @override + String get rallyBillDetailTotalAmount => 'Total amount'; + + @override + String get rallyBillDetailAmountPaid => 'Amount paid'; + + @override + String get rallyBillDetailAmountDue => 'Amount due'; + + @override + String get rallyBudgetCategoryCoffeeShops => 'Coffee shops'; + + @override + String get rallyBudgetCategoryGroceries => 'Groceries'; + + @override + String get rallyBudgetCategoryRestaurants => 'Restaurants'; + + @override + String get rallyBudgetCategoryClothing => 'Clothing'; + + @override + String get rallyBudgetDetailTotalCap => 'Total cap'; + + @override + String get rallyBudgetDetailAmountUsed => 'Amount used'; + + @override + String get rallyBudgetDetailAmountLeft => 'Amount left'; + + @override + String get rallySettingsManageAccounts => 'Manage accounts'; + + @override + String get rallySettingsTaxDocuments => 'Tax documents'; + + @override + String get rallySettingsPasscodeAndTouchId => 'Passcode and Touch ID'; + + @override + String get rallySettingsNotifications => 'Notifications'; + + @override + String get rallySettingsPersonalInformation => 'Personal information'; + + @override + String get rallySettingsPaperlessSettings => 'Paperless settings'; + + @override + String get rallySettingsFindAtms => 'Find ATMs'; + + @override + String get rallySettingsHelp => 'Help'; + + @override + String get rallySettingsSignOut => 'Sign out'; + + @override + String get rallyAccountTotal => 'Total'; + + @override + String get rallyBillsDue => 'Due'; + + @override + String get rallyBudgetLeft => 'Left'; + + @override + String get rallyAccounts => 'Accounts'; + + @override + String get rallyBills => 'Bills'; + + @override + String get rallyBudgets => 'Budgets'; + + @override + String get rallyAlerts => 'Alerts'; + + @override + String get rallySeeAll => 'SEE ALL'; + + @override + String get rallyFinanceLeft => 'LEFT'; + + @override + String get rallyTitleOverview => 'OVERVIEW'; + + @override + String get rallyTitleAccounts => 'ACCOUNTS'; + + @override + String get rallyTitleBills => 'BILLS'; + + @override + String get rallyTitleBudgets => 'BUDGETS'; + + @override + String get rallyTitleSettings => 'SETTINGS'; + + @override + String get rallyLoginLoginToRally => 'Log in to Rally'; + + @override + String get rallyLoginNoAccount => "Don't have an account?"; + + @override + String get rallyLoginSignUp => 'SIGN UP'; + + @override + String get rallyLoginUsername => 'Username'; + + @override + String get rallyLoginPassword => 'Password'; + + @override + String get rallyLoginLabelLogin => 'Log in'; + + @override + String get rallyLoginRememberMe => 'Remember me'; + + @override + String get rallyLoginButtonLogin => 'LOGIN'; + + @override + String rallyAlertsMessageHeadsUpShopping(Object percent) { + return "Heads up: you've used up $percent of your shopping budget for this month."; + } + + @override + String rallyAlertsMessageSpentOnRestaurants(Object amount) { + return "You've spent $amount on restaurants this week."; + } + + @override + String rallyAlertsMessageATMFees(Object amount) { + return "You've spent $amount in ATM fees this month"; + } + + @override + String rallyAlertsMessageCheckingAccount(Object percent) { + return 'Good work! Your current account is $percent higher than last month.'; + } + + @override + String rallyAlertsMessageUnassignedTransactions(num count) { + final String temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', + one: 'Increase your potential tax deduction! Assign categories to 1 unassigned transaction.', + ); + return temp0; + } + + @override + String get rallySeeAllAccounts => 'See all accounts'; + + @override + String get rallySeeAllBills => 'See all bills'; + + @override + String get rallySeeAllBudgets => 'See all budgets'; + + @override + String rallyAccountAmount(Object accountName, Object accountNumber, Object amount) { + return '$accountName account $accountNumber with $amount.'; + } + + @override + String rallyBillAmount(Object billName, Object date, Object amount) { + return '$billName bill due $date for $amount.'; + } + + @override + String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft) { + return '$budgetName budget with $amountUsed used of $amountTotal, $amountLeft left'; + } + + @override + String get craneDescription => 'A personalised travel app'; + + @override + String get homeCategoryReference => 'STYLES AND OTHER'; + + @override + String get demoInvalidURL => "Couldn't display URL:"; + + @override + String get demoOptionsTooltip => 'Options'; + + @override + String get demoInfoTooltip => 'Info'; + + @override + String get demoCodeTooltip => 'Demo code'; + + @override + String get demoDocumentationTooltip => 'API Documentation'; + + @override + String get demoFullscreenTooltip => 'Full screen'; + + @override + String get demoCodeViewerCopyAll => 'COPY ALL'; + + @override + String get demoCodeViewerCopiedToClipboardMessage => 'Copied to clipboard.'; + + @override + String demoCodeViewerFailedToCopyToClipboardMessage(Object error) { + return 'Failed to copy to clipboard: $error'; + } + + @override + String get demoOptionsFeatureTitle => 'View options'; + + @override + String get demoOptionsFeatureDescription => 'Tap here to view available options for this demo.'; + + @override + String get settingsTitle => 'Settings'; + + @override + String get settingsButtonLabel => 'Settings'; + + @override + String get settingsButtonCloseLabel => 'Close settings'; + + @override + String get settingsSystemDefault => 'System'; + + @override + String get settingsTextScaling => 'Text scaling'; + + @override + String get settingsTextScalingSmall => 'Small'; + + @override + String get settingsTextScalingNormal => 'Normal'; + + @override + String get settingsTextScalingLarge => 'Large'; + + @override + String get settingsTextScalingHuge => 'Huge'; + + @override + String get settingsTextDirection => 'Text direction'; + + @override + String get settingsTextDirectionLocaleBased => 'Based on locale'; + + @override + String get settingsTextDirectionLTR => 'LTR'; + + @override + String get settingsTextDirectionRTL => 'RTL'; + + @override + String get settingsLocale => 'Locale'; + + @override + String get settingsPlatformMechanics => 'Platform mechanics'; + + @override + String get settingsTheme => 'Theme'; + + @override + String get settingsDarkTheme => 'Dark'; + + @override + String get settingsLightTheme => 'Light'; + + @override + String get settingsSlowMotion => 'Slow motion'; + + @override + String get settingsAbout => 'About Flutter Gallery'; + + @override + String get settingsFeedback => 'Send feedback'; + + @override + String get settingsAttribution => 'Designed by TOASTER in London'; + + @override + String get demoAppBarTitle => 'App bar'; + + @override + String get demoAppBarSubtitle => 'Displays information and actions relating to the current screen'; + + @override + String get demoAppBarDescription => "The app bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation and actions"; + + @override + String get demoBottomAppBarTitle => 'Bottom app bar'; + + @override + String get demoBottomAppBarSubtitle => 'Displays navigation and actions at the bottom'; + + @override + String get demoBottomAppBarDescription => 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; + + @override + String get bottomAppBarNotch => 'Notch'; + + @override + String get bottomAppBarPosition => 'Floating action button position'; + + @override + String get bottomAppBarPositionDockedEnd => 'Docked - End'; + + @override + String get bottomAppBarPositionDockedCenter => 'Docked - Centre'; + + @override + String get bottomAppBarPositionFloatingEnd => 'Floating - End'; + + @override + String get bottomAppBarPositionFloatingCenter => 'Floating - Centre'; + + @override + String get demoBannerTitle => 'Banner'; + + @override + String get demoBannerSubtitle => 'Displaying a banner within a list'; + + @override + String get demoBannerDescription => 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; + + @override + String get demoBottomNavigationTitle => 'Bottom navigation'; + + @override + String get demoBottomNavigationSubtitle => 'Bottom navigation with cross-fading views'; + + @override + String get demoBottomNavigationPersistentLabels => 'Persistent labels'; + + @override + String get demoBottomNavigationSelectedLabel => 'Selected label'; + + @override + String get demoBottomNavigationDescription => 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; + + @override + String get demoButtonTitle => 'Buttons'; + + @override + String get demoButtonSubtitle => 'Text, elevated, outlined and more'; + + @override + String get demoTextButtonTitle => 'Text button'; + + @override + String get demoTextButtonDescription => 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogues and inline with padding'; + + @override + String get demoElevatedButtonTitle => 'Elevated button'; + + @override + String get demoElevatedButtonDescription => 'Elevated buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.'; + + @override + String get demoOutlinedButtonTitle => 'Outlined button'; + + @override + String get demoOutlinedButtonDescription => 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; + + @override + String get demoToggleButtonTitle => 'Toggle Buttons'; + + @override + String get demoToggleButtonDescription => 'Toggle buttons can be used to group related options. To emphasise groups of related toggle buttons, a group should share a common container'; + + @override + String get demoFloatingButtonTitle => 'Floating Action Button'; + + @override + String get demoFloatingButtonDescription => 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; + + @override + String get demoCardTitle => 'Cards'; + + @override + String get demoCardSubtitle => 'Baseline cards with rounded corners'; + + @override + String get demoChipTitle => 'Chips'; + + @override + String get demoCardDescription => 'A card is a sheet of material used to represent some related information, for example, an album, a geographical location, a meal, contact details, etc.'; + + @override + String get demoChipSubtitle => 'Compact elements that represent an input, attribute or action'; + + @override + String get demoActionChipTitle => 'Action chip'; + + @override + String get demoActionChipDescription => 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; + + @override + String get demoChoiceChipTitle => 'Choice chip'; + + @override + String get demoChoiceChipDescription => 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; + + @override + String get demoFilterChipTitle => 'Filter chip'; + + @override + String get demoFilterChipDescription => 'Filter chips use tags or descriptive words as a way to filter content.'; + + @override + String get demoInputChipTitle => 'Input chip'; + + @override + String get demoInputChipDescription => 'Input chips represent a complex piece of information, such as an entity (person, place or thing) or conversational text, in a compact form.'; + + @override + String get demoDataTableTitle => 'Data tables'; + + @override + String get demoDataTableSubtitle => 'Rows and columns of information'; + + @override + String get demoDataTableDescription => "Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights."; + + @override + String get dataTableHeader => 'Nutrition'; + + @override + String get dataTableColumnDessert => 'Dessert (1 serving)'; + + @override + String get dataTableColumnCalories => 'Calories'; + + @override + String get dataTableColumnFat => 'Fat (gm)'; + + @override + String get dataTableColumnCarbs => 'Carbs (gm)'; + + @override + String get dataTableColumnProtein => 'Protein (gm)'; + + @override + String get dataTableColumnSodium => 'Sodium (mg)'; + + @override + String get dataTableColumnCalcium => 'Calcium (%)'; + + @override + String get dataTableColumnIron => 'Iron (%)'; + + @override + String get dataTableRowFrozenYogurt => 'Frozen yogurt'; + + @override + String get dataTableRowIceCreamSandwich => 'Ice cream sandwich'; + + @override + String get dataTableRowEclair => 'Eclair'; + + @override + String get dataTableRowCupcake => 'Cupcake'; + + @override + String get dataTableRowGingerbread => 'Gingerbread'; + + @override + String get dataTableRowJellyBean => 'Jelly bean'; + + @override + String get dataTableRowLollipop => 'Lollipop'; + + @override + String get dataTableRowHoneycomb => 'Honeycomb'; + + @override + String get dataTableRowDonut => 'Doughnut'; + + @override + String get dataTableRowApplePie => 'Apple pie'; + + @override + String dataTableRowWithSugar(Object value) { + return '$value with sugar'; + } + + @override + String dataTableRowWithHoney(Object value) { + return '$value with honey'; + } + + @override + String get demoDialogTitle => 'Dialogues'; + + @override + String get demoDialogSubtitle => 'Simple, alert and full-screen'; + + @override + String get demoAlertDialogTitle => 'Alert'; + + @override + String get demoAlertDialogDescription => 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title and an optional list of actions.'; + + @override + String get demoAlertTitleDialogTitle => 'Alert With Title'; + + @override + String get demoSimpleDialogTitle => 'Simple'; + + @override + String get demoSimpleDialogDescription => 'A simple dialogue offers the user a choice between several options. A simple dialogue has an optional title that is displayed above the choices.'; + + @override + String get demoDividerTitle => 'Divider'; + + @override + String get demoDividerSubtitle => 'A divider is a thin line that groups content in lists and layouts.'; + + @override + String get demoDividerDescription => 'Dividers can be used in lists, drawers and elsewhere to separate content.'; + + @override + String get demoVerticalDividerTitle => 'Vertical divider'; + + @override + String get demoGridListsTitle => 'Grid lists'; + + @override + String get demoGridListsSubtitle => 'Row and column layout'; + + @override + String get demoGridListsDescription => 'Grid lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; + + @override + String get demoGridListsImageOnlyTitle => 'Image only'; + + @override + String get demoGridListsHeaderTitle => 'With header'; + + @override + String get demoGridListsFooterTitle => 'With footer'; + + @override + String get demoSlidersTitle => 'Sliders'; + + @override + String get demoSlidersSubtitle => 'Widgets for selecting a value by swiping'; + + @override + String get demoSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; + + @override + String get demoRangeSlidersTitle => 'Range sliders'; + + @override + String get demoRangeSlidersDescription => 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; + + @override + String get demoCustomSlidersTitle => 'Custom sliders'; + + @override + String get demoCustomSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customised.'; + + @override + String get demoSlidersContinuousWithEditableNumericalValue => 'Continuous with editable numerical value'; + + @override + String get demoSlidersDiscrete => 'Discrete'; + + @override + String get demoSlidersDiscreteSliderWithCustomTheme => 'Discrete slider with custom theme'; + + @override + String get demoSlidersContinuousRangeSliderWithCustomTheme => 'Continuous range slider with custom theme'; + + @override + String get demoSlidersContinuous => 'Continuous'; + + @override + String get demoSlidersEditableNumericalValue => 'Editable numerical value'; + + @override + String get demoMenuTitle => 'Menu'; + + @override + String get demoContextMenuTitle => 'Context menu'; + + @override + String get demoSectionedMenuTitle => 'Sectioned menu'; + + @override + String get demoSimpleMenuTitle => 'Simple menu'; + + @override + String get demoChecklistMenuTitle => 'Checklist menu'; + + @override + String get demoMenuSubtitle => 'Menu buttons and simple menus'; + + @override + String get demoMenuDescription => 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action or other control.'; + + @override + String get demoMenuItemValueOne => 'Menu item one'; + + @override + String get demoMenuItemValueTwo => 'Menu item two'; + + @override + String get demoMenuItemValueThree => 'Menu item three'; + + @override + String get demoMenuOne => 'One'; + + @override + String get demoMenuTwo => 'Two'; + + @override + String get demoMenuThree => 'Three'; + + @override + String get demoMenuFour => 'Four'; + + @override + String get demoMenuAnItemWithAContextMenuButton => 'An item with a context menu'; + + @override + String get demoMenuContextMenuItemOne => 'Context menu item one'; + + @override + String get demoMenuADisabledMenuItem => 'Disabled menu item'; + + @override + String get demoMenuContextMenuItemThree => 'Context menu item three'; + + @override + String get demoMenuAnItemWithASectionedMenu => 'An item with a sectioned menu'; + + @override + String get demoMenuPreview => 'Preview'; + + @override + String get demoMenuShare => 'Share'; + + @override + String get demoMenuGetLink => 'Get link'; + + @override + String get demoMenuRemove => 'Remove'; + + @override + String demoMenuSelected(Object value) { + return 'Selected: $value'; + } + + @override + String demoMenuChecked(Object value) { + return 'Checked: $value'; + } + + @override + String get demoNavigationDrawerTitle => 'Navigation drawer'; + + @override + String get demoNavigationDrawerSubtitle => 'Displaying a drawer within app bar'; + + @override + String get demoNavigationDrawerDescription => 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; + + @override + String get demoNavigationDrawerUserName => 'User name'; + + @override + String get demoNavigationDrawerUserEmail => 'user.name@example.com'; + + @override + String get demoNavigationDrawerToPageOne => 'Item one'; + + @override + String get demoNavigationDrawerToPageTwo => 'Item two'; + + @override + String get demoNavigationDrawerText => 'Swipe from the edge or tap the upper-left icon to see the drawer'; + + @override + String get demoNavigationRailTitle => 'Navigation rail'; + + @override + String get demoNavigationRailSubtitle => 'Displaying a navigation rail within an app'; + + @override + String get demoNavigationRailDescription => 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; + + @override + String get demoNavigationRailFirst => 'First'; + + @override + String get demoNavigationRailSecond => 'Second'; + + @override + String get demoNavigationRailThird => 'Third'; + + @override + String get demoMenuAnItemWithASimpleMenu => 'An item with a simple menu'; + + @override + String get demoMenuAnItemWithAChecklistMenu => 'An item with a checklist menu'; + + @override + String get demoFullscreenDialogTitle => 'Full screen'; + + @override + String get demoFullscreenDialogDescription => 'The fullscreenDialog property specifies whether the incoming page is a full-screen modal dialogue'; + + @override + String get demoCupertinoActivityIndicatorTitle => 'Activity indicator'; + + @override + String get demoCupertinoActivityIndicatorSubtitle => 'iOS-style activity indicators'; + + @override + String get demoCupertinoActivityIndicatorDescription => 'An iOS-style activity indicator that spins clockwise.'; + + @override + String get demoCupertinoButtonsTitle => 'Buttons'; + + @override + String get demoCupertinoButtonsSubtitle => 'iOS-style buttons'; + + @override + String get demoCupertinoButtonsDescription => 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; + + @override + String get demoCupertinoContextMenuTitle => 'Context menu'; + + @override + String get demoCupertinoContextMenuSubtitle => 'iOS-style context menu'; + + @override + String get demoCupertinoContextMenuDescription => 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; + + @override + String get demoCupertinoContextMenuActionOne => 'Action one'; + + @override + String get demoCupertinoContextMenuActionTwo => 'Action two'; + + @override + String get demoCupertinoContextMenuActionText => 'Tap and hold the Flutter logo to see the context menu.'; + + @override + String get demoCupertinoAlertsTitle => 'Alerts'; + + @override + String get demoCupertinoAlertsSubtitle => 'iOS-style alert dialogues'; + + @override + String get demoCupertinoAlertTitle => 'Alert'; + + @override + String get demoCupertinoAlertDescription => 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title, optional content and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; + + @override + String get demoCupertinoAlertWithTitleTitle => 'Alert with title'; + + @override + String get demoCupertinoAlertButtonsTitle => 'Alert With Buttons'; + + @override + String get demoCupertinoAlertButtonsOnlyTitle => 'Alert Buttons Only'; + + @override + String get demoCupertinoActionSheetTitle => 'Action Sheet'; + + @override + String get demoCupertinoActionSheetDescription => 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message and a list of actions.'; + + @override + String get demoCupertinoNavigationBarTitle => 'Navigation bar'; + + @override + String get demoCupertinoNavigationBarSubtitle => 'iOS-style navigation bar'; + + @override + String get demoCupertinoNavigationBarDescription => 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; + + @override + String get demoCupertinoPickerTitle => 'Pickers'; + + @override + String get demoCupertinoPickerSubtitle => 'iOS-style pickers'; + + @override + String get demoCupertinoPickerDescription => 'An iOS-style picker widget that can be used to select strings, dates, times or both date and time.'; + + @override + String get demoCupertinoPickerTimer => 'Timer'; + + @override + String get demoCupertinoPicker => 'Picker'; + + @override + String get demoCupertinoPickerDate => 'Date'; + + @override + String get demoCupertinoPickerTime => 'Time'; + + @override + String get demoCupertinoPickerDateTime => 'Date and time'; + + @override + String get demoCupertinoPullToRefreshTitle => 'Pull to refresh'; + + @override + String get demoCupertinoPullToRefreshSubtitle => 'iOS-style pull to refresh control'; + + @override + String get demoCupertinoPullToRefreshDescription => 'A widget implementing the iOS-style pull to refresh content control.'; + + @override + String get demoCupertinoSegmentedControlTitle => 'Segmented control'; + + @override + String get demoCupertinoSegmentedControlSubtitle => 'iOS-style segmented control'; + + @override + String get demoCupertinoSegmentedControlDescription => 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; + + @override + String get demoCupertinoSliderTitle => 'Slider'; + + @override + String get demoCupertinoSliderSubtitle => 'iOS-style slider'; + + @override + String get demoCupertinoSliderDescription => 'A slider can be used to select from either a continuous or a discrete set of values.'; + + @override + String demoCupertinoSliderContinuous(Object value) { + return 'Continuous: $value'; + } + + @override + String demoCupertinoSliderDiscrete(Object value) { + return 'Discrete: $value'; + } + + @override + String get demoCupertinoSwitchSubtitle => 'iOS-style switch'; + + @override + String get demoCupertinoSwitchDescription => 'A switch is used to toggle the on/off state of a single setting.'; + + @override + String get demoCupertinoTabBarTitle => 'Tab bar'; + + @override + String get demoCupertinoTabBarSubtitle => 'iOS-style bottom tab bar'; + + @override + String get demoCupertinoTabBarDescription => 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; + + @override + String get cupertinoTabBarHomeTab => 'Home'; + + @override + String get cupertinoTabBarChatTab => 'Chat'; + + @override + String get cupertinoTabBarProfileTab => 'Profile'; + + @override + String get demoCupertinoTextFieldTitle => 'Text fields'; + + @override + String get demoCupertinoTextFieldSubtitle => 'iOS-style text fields'; + + @override + String get demoCupertinoTextFieldDescription => 'A text field allows the user to enter text, either with a hardware keyboard or with an on-screen keyboard.'; + + @override + String get demoCupertinoTextFieldPIN => 'PIN'; + + @override + String get demoCupertinoSearchTextFieldTitle => 'Search text field'; + + @override + String get demoCupertinoSearchTextFieldSubtitle => 'iOS-style search text field'; + + @override + String get demoCupertinoSearchTextFieldDescription => 'A search text field that lets the user search by entering text and that can offer and filter suggestions.'; + + @override + String get demoCupertinoSearchTextFieldPlaceholder => 'Enter some text'; + + @override + String get demoCupertinoScrollbarTitle => 'Scrollbar'; + + @override + String get demoCupertinoScrollbarSubtitle => 'iOS-style scrollbar'; + + @override + String get demoCupertinoScrollbarDescription => 'A scrollbar that wraps the given child'; + + @override + String get demoMotionTitle => 'Motion'; + + @override + String get demoMotionSubtitle => 'All of the predefined transition patterns'; + + @override + String get demoContainerTransformDemoInstructions => 'Cards, lists and FAB'; + + @override + String get demoSharedXAxisDemoInstructions => 'Next and back buttons'; + + @override + String get demoSharedYAxisDemoInstructions => "Sort by 'Recently played'"; + + @override + String get demoSharedZAxisDemoInstructions => 'Settings icon button'; + + @override + String get demoFadeThroughDemoInstructions => 'Bottom navigation'; + + @override + String get demoFadeScaleDemoInstructions => 'Modal and FAB'; + + @override + String get demoContainerTransformTitle => 'Container transform'; + + @override + String get demoContainerTransformDescription => 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; + + @override + String get demoContainerTransformModalBottomSheetTitle => 'Fade mode'; + + @override + String get demoContainerTransformTypeFade => 'FADE'; + + @override + String get demoContainerTransformTypeFadeThrough => 'FADE THROUGH'; + + @override + String get demoMotionPlaceholderTitle => 'Title'; + + @override + String get demoMotionPlaceholderSubtitle => 'Secondary text'; + + @override + String get demoMotionSmallPlaceholderSubtitle => 'Secondary'; + + @override + String get demoMotionDetailsPageTitle => 'Details page'; + + @override + String get demoMotionListTileTitle => 'List item'; + + @override + String get demoSharedAxisDescription => 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y or z axis to reinforce the relationship between elements.'; + + @override + String get demoSharedXAxisTitle => 'Shared x-axis'; + + @override + String get demoSharedXAxisBackButtonText => 'BACK'; + + @override + String get demoSharedXAxisNextButtonText => 'NEXT'; + + @override + String get demoSharedXAxisCoursePageTitle => 'Streamline your courses'; + + @override + String get demoSharedXAxisCoursePageSubtitle => 'Bundled categories appear as groups in your feed. You can always change this later.'; + + @override + String get demoSharedXAxisArtsAndCraftsCourseTitle => 'Arts and crafts'; + + @override + String get demoSharedXAxisBusinessCourseTitle => 'Business'; + + @override + String get demoSharedXAxisIllustrationCourseTitle => 'Illustration'; + + @override + String get demoSharedXAxisDesignCourseTitle => 'Design'; + + @override + String get demoSharedXAxisCulinaryCourseTitle => 'Culinary'; + + @override + String get demoSharedXAxisBundledCourseSubtitle => 'Bundled'; + + @override + String get demoSharedXAxisIndividualCourseSubtitle => 'Shown individually'; + + @override + String get demoSharedXAxisSignInWelcomeText => 'Hi David Park'; + + @override + String get demoSharedXAxisSignInSubtitleText => 'Sign in with your account'; + + @override + String get demoSharedXAxisSignInTextFieldLabel => 'Email or phone number'; + + @override + String get demoSharedXAxisForgotEmailButtonText => 'FORGOT EMAIL?'; + + @override + String get demoSharedXAxisCreateAccountButtonText => 'CREATE ACCOUNT'; + + @override + String get demoSharedYAxisTitle => 'Shared y-axis'; + + @override + String get demoSharedYAxisAlbumCount => '268 albums'; + + @override + String get demoSharedYAxisAlphabeticalSortTitle => 'A–Z'; + + @override + String get demoSharedYAxisRecentSortTitle => 'Recently played'; + + @override + String get demoSharedYAxisAlbumTileTitle => 'Album'; + + @override + String get demoSharedYAxisAlbumTileSubtitle => 'Artist'; + + @override + String get demoSharedYAxisAlbumTileDurationUnit => 'min'; + + @override + String get demoSharedZAxisTitle => 'Shared z-axis'; + + @override + String get demoSharedZAxisSettingsPageTitle => 'Settings'; + + @override + String get demoSharedZAxisBurgerRecipeTitle => 'Burger'; + + @override + String get demoSharedZAxisBurgerRecipeDescription => 'Burger recipe'; + + @override + String get demoSharedZAxisSandwichRecipeTitle => 'Sandwich'; + + @override + String get demoSharedZAxisSandwichRecipeDescription => 'Sandwich recipe'; + + @override + String get demoSharedZAxisDessertRecipeTitle => 'Dessert'; + + @override + String get demoSharedZAxisDessertRecipeDescription => 'Dessert recipe'; + + @override + String get demoSharedZAxisShrimpPlateRecipeTitle => 'Shrimp'; + + @override + String get demoSharedZAxisShrimpPlateRecipeDescription => 'Shrimp plate recipe'; + + @override + String get demoSharedZAxisCrabPlateRecipeTitle => 'Crab'; + + @override + String get demoSharedZAxisCrabPlateRecipeDescription => 'Crab plate recipe'; + + @override + String get demoSharedZAxisBeefSandwichRecipeTitle => 'Beef sandwich'; + + @override + String get demoSharedZAxisBeefSandwichRecipeDescription => 'Beef sandwich recipe'; + + @override + String get demoSharedZAxisSavedRecipesListTitle => 'Saved recipes'; + + @override + String get demoSharedZAxisProfileSettingLabel => 'Profile'; + + @override + String get demoSharedZAxisNotificationSettingLabel => 'Notifications'; + + @override + String get demoSharedZAxisPrivacySettingLabel => 'Privacy'; + + @override + String get demoSharedZAxisHelpSettingLabel => 'Help'; + + @override + String get demoFadeThroughTitle => 'Fade through'; + + @override + String get demoFadeThroughDescription => 'The fade-through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; + + @override + String get demoFadeThroughAlbumsDestination => 'Albums'; + + @override + String get demoFadeThroughPhotosDestination => 'Photos'; + + @override + String get demoFadeThroughSearchDestination => 'Search'; + + @override + String get demoFadeThroughTextPlaceholder => '123 photos'; + + @override + String get demoFadeScaleTitle => 'Fade'; + + @override + String get demoFadeScaleDescription => 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialogue that fades in the centre of the screen.'; + + @override + String get demoFadeScaleShowAlertDialogButton => 'SHOW MODAL'; + + @override + String get demoFadeScaleShowFabButton => 'SHOW FAB'; + + @override + String get demoFadeScaleHideFabButton => 'HIDE FAB'; + + @override + String get demoFadeScaleAlertDialogHeader => 'Alert dialogue'; + + @override + String get demoFadeScaleAlertDialogCancelButton => 'CANCEL'; + + @override + String get demoFadeScaleAlertDialogDiscardButton => 'DISCARD'; + + @override + String get demoColorsTitle => 'Colours'; + + @override + String get demoColorsSubtitle => 'All of the predefined colours'; + + @override + String get demoColorsDescription => "Colour and colour swatch constants which represent Material Design's colour palette."; + + @override + String get demoTypographyTitle => 'Typography'; + + @override + String get demoTypographySubtitle => 'All of the predefined text styles'; + + @override + String get demoTypographyDescription => 'Definitions for the various typographical styles found in Material Design.'; + + @override + String get demo2dTransformationsTitle => '2D transformations'; + + @override + String get demo2dTransformationsSubtitle => 'Pan, zoom, rotate'; + + @override + String get demo2dTransformationsDescription => 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan, pinch to zoom, rotate with two fingers. Press the reset button to return to the starting orientation.'; + + @override + String get demo2dTransformationsResetTooltip => 'Reset transformations'; + + @override + String get demo2dTransformationsEditTooltip => 'Edit tile'; + + @override + String get buttonText => 'BUTTON'; + + @override + String get demoBottomSheetTitle => 'Bottom sheet'; + + @override + String get demoBottomSheetSubtitle => 'Persistent and modal bottom sheets'; + + @override + String get demoBottomSheetPersistentTitle => 'Persistent bottom sheet'; + + @override + String get demoBottomSheetPersistentDescription => 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; + + @override + String get demoBottomSheetModalTitle => 'Modal bottom sheet'; + + @override + String get demoBottomSheetModalDescription => 'A modal bottom sheet is an alternative to a menu or a dialogue and prevents the user from interacting with the rest of the app.'; + + @override + String get demoBottomSheetAddLabel => 'Add'; + + @override + String get demoBottomSheetButtonText => 'SHOW BOTTOM SHEET'; + + @override + String get demoBottomSheetHeader => 'Header'; + + @override + String demoBottomSheetItem(Object value) { + return 'Item $value'; + } + + @override + String get demoListsTitle => 'Lists'; + + @override + String get demoListsSubtitle => 'Scrolling list layouts'; + + @override + String get demoListsDescription => 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; + + @override + String get demoOneLineListsTitle => 'One line'; + + @override + String get demoTwoLineListsTitle => 'Two lines'; + + @override + String get demoListsSecondary => 'Secondary text'; + + @override + String get demoProgressIndicatorTitle => 'Progress indicators'; + + @override + String get demoProgressIndicatorSubtitle => 'Linear, circular, indeterminate'; + + @override + String get demoCircularProgressIndicatorTitle => 'Circular progress indicator'; + + @override + String get demoCircularProgressIndicatorDescription => 'A material design circular progress indicator, which spins to indicate that the application is busy.'; + + @override + String get demoLinearProgressIndicatorTitle => 'Linear progress indicator'; + + @override + String get demoLinearProgressIndicatorDescription => 'A material design linear progress indicator, also known as a progress bar.'; + + @override + String get demoPickersTitle => 'Pickers'; + + @override + String get demoPickersSubtitle => 'Date and time selection'; + + @override + String get demoDatePickerTitle => 'Date picker'; + + @override + String get demoDatePickerDescription => 'Shows a dialogue containing a material design date picker.'; + + @override + String get demoTimePickerTitle => 'Time picker'; + + @override + String get demoTimePickerDescription => 'Shows a dialogue containing a material design time picker.'; + + @override + String get demoDateRangePickerTitle => 'Date range picker'; + + @override + String get demoDateRangePickerDescription => 'Shows a dialogue containing a Material Design date range picker.'; + + @override + String get demoPickersShowPicker => 'SHOW PICKER'; + + @override + String get demoTabsTitle => 'Tabs'; + + @override + String get demoTabsScrollingTitle => 'Scrolling'; + + @override + String get demoTabsNonScrollingTitle => 'Non-scrolling'; + + @override + String get demoTabsSubtitle => 'Tabs with independently scrollable views'; + + @override + String get demoTabsDescription => 'Tabs organise content across different screens, data sets and other interactions.'; + + @override + String get demoSnackbarsTitle => 'Snackbars'; + + @override + String get demoSnackbarsSubtitle => 'Snackbars show messages at the bottom of the screen'; + + @override + String get demoSnackbarsDescription => "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; + + @override + String get demoSnackbarsButtonLabel => 'SHOW A SNACKBAR'; + + @override + String get demoSnackbarsText => 'This is a snackbar.'; + + @override + String get demoSnackbarsActionButtonLabel => 'ACTION'; + + @override + String get demoSnackbarsAction => 'You pressed the snackbar action.'; + + @override + String get demoSelectionControlsTitle => 'Selection controls'; + + @override + String get demoSelectionControlsSubtitle => 'Tick boxes, radio buttons and switches'; + + @override + String get demoSelectionControlsCheckboxTitle => 'Tick box'; + + @override + String get demoSelectionControlsCheckboxDescription => "Tick boxes allow the user to select multiple options from a set. A normal tick box's value is true or false and a tristate tick box's value can also be null."; + + @override + String get demoSelectionControlsRadioTitle => 'Radio'; + + @override + String get demoSelectionControlsRadioDescription => 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side by side.'; + + @override + String get demoSelectionControlsSwitchTitle => 'Switch'; + + @override + String get demoSelectionControlsSwitchDescription => "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; + + @override + String get demoBottomTextFieldsTitle => 'Text fields'; + + @override + String get demoTextFieldTitle => 'Text fields'; + + @override + String get demoTextFieldSubtitle => 'Single line of editable text and numbers'; + + @override + String get demoTextFieldDescription => 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogues.'; + + @override + String get demoTextFieldShowPasswordLabel => 'Show password'; + + @override + String get demoTextFieldHidePasswordLabel => 'Hide password'; + + @override + String get demoTextFieldFormErrors => 'Please fix the errors in red before submitting.'; + + @override + String get demoTextFieldNameRequired => 'Name is required.'; + + @override + String get demoTextFieldOnlyAlphabeticalChars => 'Please enter only alphabetical characters.'; + + @override + String get demoTextFieldEnterUSPhoneNumber => '(###) ###-#### – Enter a US phone number.'; + + @override + String get demoTextFieldEnterPassword => 'Please enter a password.'; + + @override + String get demoTextFieldPasswordsDoNotMatch => "The passwords don't match"; + + @override + String get demoTextFieldWhatDoPeopleCallYou => 'What do people call you?'; + + @override + String get demoTextFieldNameField => 'Name*'; + + @override + String get demoTextFieldWhereCanWeReachYou => 'Where can we contact you?'; + + @override + String get demoTextFieldPhoneNumber => 'Phone number*'; + + @override + String get demoTextFieldYourEmailAddress => 'Your email address'; + + @override + String get demoTextFieldEmail => 'Email'; + + @override + String get demoTextFieldTellUsAboutYourself => 'Tell us about yourself (e.g. write down what you do or what hobbies you have)'; + + @override + String get demoTextFieldKeepItShort => 'Keep it short, this is just a demo.'; + + @override + String get demoTextFieldLifeStory => 'Life story'; + + @override + String get demoTextFieldSalary => 'Salary'; + + @override + String get demoTextFieldUSD => 'USD'; + + @override + String get demoTextFieldNoMoreThan => 'No more than 8 characters.'; + + @override + String get demoTextFieldPassword => 'Password*'; + + @override + String get demoTextFieldRetypePassword => 'Re-type password*'; + + @override + String get demoTextFieldSubmit => 'SUBMIT'; + + @override + String demoTextFieldNameHasPhoneNumber(Object name, Object phoneNumber) { + return '$name phone number is $phoneNumber'; + } + + @override + String get demoTextFieldRequiredField => '* indicates required field'; + + @override + String get demoTooltipTitle => 'Tooltips'; + + @override + String get demoTooltipSubtitle => 'Short message displayed on long press or hover'; + + @override + String get demoTooltipDescription => 'Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.'; + + @override + String get demoTooltipInstructions => 'Long press or hover to display the tooltip.'; + + @override + String get bottomNavigationCommentsTab => 'Comments'; + + @override + String get bottomNavigationCalendarTab => 'Calendar'; + + @override + String get bottomNavigationAccountTab => 'Account'; + + @override + String get bottomNavigationAlarmTab => 'Alarm'; + + @override + String get bottomNavigationCameraTab => 'Camera'; + + @override + String bottomNavigationContentPlaceholder(Object title) { + return 'Placeholder for $title tab'; + } + + @override + String get buttonTextCreate => 'Create'; + + @override + String dialogSelectedOption(Object value) { + return "You selected: '$value'"; + } + + @override + String get chipTurnOnLights => 'Turn on lights'; + + @override + String get chipSmall => 'Small'; + + @override + String get chipMedium => 'Medium'; + + @override + String get chipLarge => 'Large'; + + @override + String get chipElevator => 'Lift'; + + @override + String get chipWasher => 'Washing machine'; + + @override + String get chipFireplace => 'Fireplace'; + + @override + String get chipBiking => 'Cycling'; + + @override + String get demo => 'Demo'; + + @override + String get bottomAppBar => 'Bottom app bar'; + + @override + String get loading => 'Loading'; + + @override + String get dialogDiscardTitle => 'Discard draft?'; + + @override + String get dialogLocationTitle => "Use Google's location service?"; + + @override + String get dialogLocationDescription => 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; + + @override + String get dialogCancel => 'CANCEL'; + + @override + String get dialogDiscard => 'DISCARD'; + + @override + String get dialogDisagree => 'DISAGREE'; + + @override + String get dialogAgree => 'AGREE'; + + @override + String get dialogSetBackup => 'Set backup account'; + + @override + String get dialogAddAccount => 'Add account'; + + @override + String get dialogShow => 'SHOW DIALOGUE'; + + @override + String get dialogFullscreenTitle => 'Full-Screen Dialogue'; + + @override + String get dialogFullscreenSave => 'SAVE'; + + @override + String get dialogFullscreenDescription => 'A full-screen dialogue demo'; + + @override + String get cupertinoButton => 'Button'; + + @override + String get cupertinoButtonWithBackground => 'With background'; + + @override + String get cupertinoAlertCancel => 'Cancel'; + + @override + String get cupertinoAlertDiscard => 'Discard'; + + @override + String get cupertinoAlertLocationTitle => "Allow 'Maps' to access your location while you are using the app?"; + + @override + String get cupertinoAlertLocationDescription => 'Your current location will be displayed on the map and used for directions, nearby search results and estimated travel times.'; + + @override + String get cupertinoAlertAllow => 'Allow'; + + @override + String get cupertinoAlertDontAllow => "Don't allow"; + + @override + String get cupertinoAlertFavoriteDessert => 'Select Favourite Dessert'; + + @override + String get cupertinoAlertDessertDescription => 'Please select your favourite type of dessert from the list below. Your selection will be used to customise the suggested list of eateries in your area.'; + + @override + String get cupertinoAlertCheesecake => 'Cheesecake'; + + @override + String get cupertinoAlertTiramisu => 'Tiramisu'; + + @override + String get cupertinoAlertApplePie => 'Apple Pie'; + + @override + String get cupertinoAlertChocolateBrownie => 'Chocolate brownie'; + + @override + String get cupertinoShowAlert => 'Show alert'; + + @override + String get colorsRed => 'RED'; + + @override + String get colorsPink => 'PINK'; + + @override + String get colorsPurple => 'PURPLE'; + + @override + String get colorsDeepPurple => 'DEEP PURPLE'; + + @override + String get colorsIndigo => 'INDIGO'; + + @override + String get colorsBlue => 'BLUE'; + + @override + String get colorsLightBlue => 'LIGHT BLUE'; + + @override + String get colorsCyan => 'CYAN'; + + @override + String get colorsTeal => 'TEAL'; + + @override + String get colorsGreen => 'GREEN'; + + @override + String get colorsLightGreen => 'LIGHT GREEN'; + + @override + String get colorsLime => 'LIME'; + + @override + String get colorsYellow => 'YELLOW'; + + @override + String get colorsAmber => 'AMBER'; + + @override + String get colorsOrange => 'ORANGE'; + + @override + String get colorsDeepOrange => 'DEEP ORANGE'; + + @override + String get colorsBrown => 'BROWN'; + + @override + String get colorsGrey => 'GREY'; + + @override + String get colorsBlueGrey => 'BLUE GREY'; + + @override + String get placeChennai => 'Chennai'; + + @override + String get placeTanjore => 'Tanjore'; + + @override + String get placeChettinad => 'Chettinad'; + + @override + String get placePondicherry => 'Pondicherry'; + + @override + String get placeFlowerMarket => 'Flower market'; + + @override + String get placeBronzeWorks => 'Bronze works'; + + @override + String get placeMarket => 'Market'; + + @override + String get placeThanjavurTemple => 'Thanjavur Temple'; + + @override + String get placeSaltFarm => 'Salt farm'; + + @override + String get placeScooters => 'Scooters'; + + @override + String get placeSilkMaker => 'Silk maker'; + + @override + String get placeLunchPrep => 'Lunch prep'; + + @override + String get placeBeach => 'Beach'; + + @override + String get placeFisherman => 'Fisherman'; + + @override + String get starterAppTitle => 'Starter app'; + + @override + String get starterAppDescription => 'A responsive starter layout'; + + @override + String get starterAppGenericButton => 'BUTTON'; + + @override + String get starterAppTooltipAdd => 'Add'; + + @override + String get starterAppTooltipFavorite => 'Favourite'; + + @override + String get starterAppTooltipShare => 'Share'; + + @override + String get starterAppTooltipSearch => 'Search'; + + @override + String get starterAppGenericTitle => 'Title'; + + @override + String get starterAppGenericSubtitle => 'Subtitle'; + + @override + String get starterAppGenericHeadline => 'Headline'; + + @override + String get starterAppGenericBody => 'Body'; + + @override + String starterAppDrawerItem(Object value) { + return 'Item $value'; + } + + @override + String get shrineMenuCaption => 'MENU'; + + @override + String get shrineCategoryNameAll => 'ALL'; + + @override + String get shrineCategoryNameAccessories => 'ACCESSORIES'; + + @override + String get shrineCategoryNameClothing => 'CLOTHING'; + + @override + String get shrineCategoryNameHome => 'HOME'; + + @override + String get shrineLogoutButtonCaption => 'LOGOUT'; + + @override + String get shrineLoginUsernameLabel => 'Username'; + + @override + String get shrineLoginPasswordLabel => 'Password'; + + @override + String get shrineCancelButtonCaption => 'CANCEL'; + + @override + String get shrineNextButtonCaption => 'NEXT'; + + @override + String get shrineCartPageCaption => 'BASKET'; + + @override + String shrineProductQuantity(Object quantity) { + return 'Quantity: $quantity'; + } + + @override + String shrineProductPrice(Object price) { + return 'x $price'; + } + + @override + String shrineCartItemCount(num quantity) { + final String temp0 = intl.Intl.pluralLogic( + quantity, + locale: localeName, + other: '$quantity ITEMS', + one: '1 ITEM', + zero: 'NO ITEMS', + ); + return temp0; + } + + @override + String get shrineCartClearButtonCaption => 'CLEAR BASKET'; + + @override + String get shrineCartTotalCaption => 'TOTAL'; + + @override + String get shrineCartSubtotalCaption => 'Subtotal:'; + + @override + String get shrineCartShippingCaption => 'Delivery:'; + + @override + String get shrineCartTaxCaption => 'Tax:'; + + @override + String get shrineProductVagabondSack => 'Vagabond sack'; + + @override + String get shrineProductStellaSunglasses => 'Stella sunglasses'; + + @override + String get shrineProductWhitneyBelt => 'Whitney belt'; + + @override + String get shrineProductGardenStrand => 'Garden strand'; + + @override + String get shrineProductStrutEarrings => 'Strut earrings'; + + @override + String get shrineProductVarsitySocks => 'Varsity socks'; + + @override + String get shrineProductWeaveKeyring => 'Weave keyring'; + + @override + String get shrineProductGatsbyHat => 'Gatsby hat'; + + @override + String get shrineProductShrugBag => 'Shrug bag'; + + @override + String get shrineProductGiltDeskTrio => 'Gilt desk trio'; + + @override + String get shrineProductCopperWireRack => 'Copper wire rack'; + + @override + String get shrineProductSootheCeramicSet => 'Soothe ceramic set'; + + @override + String get shrineProductHurrahsTeaSet => 'Hurrahs tea set'; + + @override + String get shrineProductBlueStoneMug => 'Blue stone mug'; + + @override + String get shrineProductRainwaterTray => 'Rainwater tray'; + + @override + String get shrineProductChambrayNapkins => 'Chambray napkins'; + + @override + String get shrineProductSucculentPlanters => 'Succulent planters'; + + @override + String get shrineProductQuartetTable => 'Quartet table'; + + @override + String get shrineProductKitchenQuattro => 'Kitchen quattro'; + + @override + String get shrineProductClaySweater => 'Clay sweater'; + + @override + String get shrineProductSeaTunic => 'Sea tunic'; + + @override + String get shrineProductPlasterTunic => 'Plaster tunic'; + + @override + String get shrineProductWhitePinstripeShirt => 'White pinstripe shirt'; + + @override + String get shrineProductChambrayShirt => 'Chambray shirt'; + + @override + String get shrineProductSeabreezeSweater => 'Seabreeze sweater'; + + @override + String get shrineProductGentryJacket => 'Gentry jacket'; + + @override + String get shrineProductNavyTrousers => 'Navy trousers'; + + @override + String get shrineProductWalterHenleyWhite => 'Walter henley (white)'; + + @override + String get shrineProductSurfAndPerfShirt => 'Surf and perf shirt'; + + @override + String get shrineProductGingerScarf => 'Ginger scarf'; + + @override + String get shrineProductRamonaCrossover => 'Ramona crossover'; + + @override + String get shrineProductClassicWhiteCollar => 'Classic white collar'; + + @override + String get shrineProductCeriseScallopTee => 'Cerise scallop tee'; + + @override + String get shrineProductShoulderRollsTee => 'Shoulder rolls tee'; + + @override + String get shrineProductGreySlouchTank => 'Grey slouch tank top'; + + @override + String get shrineProductSunshirtDress => 'Sunshirt dress'; + + @override + String get shrineProductFineLinesTee => 'Fine lines tee'; + + @override + String get shrineTooltipSearch => 'Search'; + + @override + String get shrineTooltipSettings => 'Settings'; + + @override + String get shrineTooltipOpenMenu => 'Open menu'; + + @override + String get shrineTooltipCloseMenu => 'Close menu'; + + @override + String get shrineTooltipCloseCart => 'Close basket'; + + @override + String shrineScreenReaderCart(num quantity) { + final String temp0 = intl.Intl.pluralLogic( + quantity, + locale: localeName, + other: 'Shopping basket, $quantity items', + one: 'Shopping basket, 1 item', + zero: 'Shopping basket, no items', + ); + return temp0; + } + + @override + String get shrineScreenReaderProductAddToCart => 'Add to basket'; + + @override + String shrineScreenReaderRemoveProductButton(Object product) { + return 'Remove $product'; + } + + @override + String get shrineTooltipRemoveItem => 'Remove item'; + + @override + String get craneFormDiners => 'Diners'; + + @override + String get craneFormDate => 'Select date'; + + @override + String get craneFormTime => 'Select time'; + + @override + String get craneFormLocation => 'Select location'; + + @override + String get craneFormTravelers => 'Travellers'; + + @override + String get craneFormOrigin => 'Choose origin'; + + @override + String get craneFormDestination => 'Choose destination'; + + @override + String get craneFormDates => 'Select dates'; + + @override + String craneHours(num hours) { + final String temp0 = intl.Intl.pluralLogic( + hours, + locale: localeName, + other: '${hours}h', + one: '1 h', + ); + return temp0; + } + + @override + String craneMinutes(num minutes) { + final String temp0 = intl.Intl.pluralLogic( + minutes, + locale: localeName, + other: '${minutes}m', + one: '1 m', + ); + return temp0; + } + + @override + String craneFlightDuration(Object hoursShortForm, Object minutesShortForm) { + return '$hoursShortForm $minutesShortForm'; + } + + @override + String get craneFly => 'FLY'; + + @override + String get craneSleep => 'SLEEP'; + + @override + String get craneEat => 'EAT'; + + @override + String get craneFlySubhead => 'Explore flights by destination'; + + @override + String get craneSleepSubhead => 'Explore properties by destination'; + + @override + String get craneEatSubhead => 'Explore restaurants by destination'; + + @override + String craneFlyStops(num numberOfStops) { + final String temp0 = intl.Intl.pluralLogic( + numberOfStops, + locale: localeName, + other: '$numberOfStops stops', + one: '1 stop', + zero: 'Non-stop', + ); + return temp0; + } + + @override + String craneSleepProperties(num totalProperties) { + final String temp0 = intl.Intl.pluralLogic( + totalProperties, + locale: localeName, + other: '$totalProperties available properties', + one: '1 available property', + zero: 'No available properties', + ); + return temp0; + } + + @override + String craneEatRestaurants(num totalRestaurants) { + return intl.Intl.pluralLogic( + totalRestaurants, + locale: localeName, + other: '$totalRestaurants restaurants', + one: '1 restaurant', + zero: 'No restaurants', + ); + } + + @override + String get craneFly0 => 'Aspen, United States'; + + @override + String get craneFly1 => 'Big Sur, United States'; + + @override + String get craneFly2 => 'Khumbu Valley, Nepal'; + + @override + String get craneFly3 => 'Machu Picchu, Peru'; + + @override + String get craneFly4 => 'Malé, Maldives'; + + @override + String get craneFly5 => 'Vitznau, Switzerland'; + + @override + String get craneFly6 => 'Mexico City, Mexico'; + + @override + String get craneFly7 => 'Mount Rushmore, United States'; + + @override + String get craneFly8 => 'Singapore'; + + @override + String get craneFly9 => 'Havana, Cuba'; + + @override + String get craneFly10 => 'Cairo, Egypt'; + + @override + String get craneFly11 => 'Lisbon, Portugal'; + + @override + String get craneFly12 => 'Napa, United States'; + + @override + String get craneFly13 => 'Bali, Indonesia'; + + @override + String get craneSleep0 => 'Malé, Maldives'; + + @override + String get craneSleep1 => 'Aspen, United States'; + + @override + String get craneSleep2 => 'Machu Picchu, Peru'; + + @override + String get craneSleep3 => 'Havana, Cuba'; + + @override + String get craneSleep4 => 'Vitznau, Switzerland'; + + @override + String get craneSleep5 => 'Big Sur, United States'; + + @override + String get craneSleep6 => 'Napa, United States'; + + @override + String get craneSleep7 => 'Porto, Portugal'; + + @override + String get craneSleep8 => 'Tulum, Mexico'; + + @override + String get craneSleep9 => 'Lisbon, Portugal'; + + @override + String get craneSleep10 => 'Cairo, Egypt'; + + @override + String get craneSleep11 => 'Taipei, Taiwan'; + + @override + String get craneEat0 => 'Naples, Italy'; + + @override + String get craneEat1 => 'Dallas, United States'; + + @override + String get craneEat2 => 'Córdoba, Argentina'; + + @override + String get craneEat3 => 'Portland, United States'; + + @override + String get craneEat4 => 'Paris, France'; + + @override + String get craneEat5 => 'Seoul, South Korea'; + + @override + String get craneEat6 => 'Seattle, United States'; + + @override + String get craneEat7 => 'Nashville, United States'; + + @override + String get craneEat8 => 'Atlanta, United States'; + + @override + String get craneEat9 => 'Madrid, Spain'; + + @override + String get craneEat10 => 'Lisbon, Portugal'; + + @override + String get craneFly0SemanticLabel => 'Chalet in a snowy landscape with evergreen trees'; + + @override + String get craneFly1SemanticLabel => 'Tent in a field'; + + @override + String get craneFly2SemanticLabel => 'Prayer flags in front of snowy mountain'; + + @override + String get craneFly3SemanticLabel => 'Machu Picchu citadel'; + + @override + String get craneFly4SemanticLabel => 'Overwater bungalows'; + + @override + String get craneFly5SemanticLabel => 'Lake-side hotel in front of mountains'; + + @override + String get craneFly6SemanticLabel => 'Aerial view of Palacio de Bellas Artes'; + + @override + String get craneFly7SemanticLabel => 'Mount Rushmore'; + + @override + String get craneFly8SemanticLabel => 'Supertree Grove'; + + @override + String get craneFly9SemanticLabel => 'Man leaning on an antique blue car'; + + @override + String get craneFly10SemanticLabel => 'Al-Azhar Mosque towers during sunset'; + + @override + String get craneFly11SemanticLabel => 'Brick lighthouse at sea'; + + @override + String get craneFly12SemanticLabel => 'Pool with palm trees'; + + @override + String get craneFly13SemanticLabel => 'Seaside pool with palm trees'; + + @override + String get craneSleep0SemanticLabel => 'Overwater bungalows'; + + @override + String get craneSleep1SemanticLabel => 'Chalet in a snowy landscape with evergreen trees'; + + @override + String get craneSleep2SemanticLabel => 'Machu Picchu citadel'; + + @override + String get craneSleep3SemanticLabel => 'Man leaning on an antique blue car'; + + @override + String get craneSleep4SemanticLabel => 'Lake-side hotel in front of mountains'; + + @override + String get craneSleep5SemanticLabel => 'Tent in a field'; + + @override + String get craneSleep6SemanticLabel => 'Pool with palm trees'; + + @override + String get craneSleep7SemanticLabel => 'Colourful apartments at Ribeira Square'; + + @override + String get craneSleep8SemanticLabel => 'Mayan ruins on a cliff above a beach'; + + @override + String get craneSleep9SemanticLabel => 'Brick lighthouse at sea'; + + @override + String get craneSleep10SemanticLabel => 'Al-Azhar Mosque towers during sunset'; + + @override + String get craneSleep11SemanticLabel => 'Taipei 101 skyscraper'; + + @override + String get craneEat0SemanticLabel => 'Pizza in a wood-fired oven'; + + @override + String get craneEat1SemanticLabel => 'Empty bar with diner-style stools'; + + @override + String get craneEat2SemanticLabel => 'Burger'; + + @override + String get craneEat3SemanticLabel => 'Korean taco'; + + @override + String get craneEat4SemanticLabel => 'Chocolate dessert'; + + @override + String get craneEat5SemanticLabel => 'Artsy restaurant seating area'; + + @override + String get craneEat6SemanticLabel => 'Shrimp dish'; + + @override + String get craneEat7SemanticLabel => 'Bakery entrance'; + + @override + String get craneEat8SemanticLabel => 'Plate of crawfish'; + + @override + String get craneEat9SemanticLabel => 'Café counter with pastries'; + + @override + String get craneEat10SemanticLabel => 'Woman holding huge pastrami sandwich'; + + @override + String get fortnightlyMenuFrontPage => 'Front page'; + + @override + String get fortnightlyMenuWorld => 'World'; + + @override + String get fortnightlyMenuUS => 'US'; + + @override + String get fortnightlyMenuPolitics => 'Politics'; + + @override + String get fortnightlyMenuBusiness => 'Business'; + + @override + String get fortnightlyMenuTech => 'Tech'; + + @override + String get fortnightlyMenuScience => 'Science'; + + @override + String get fortnightlyMenuSports => 'Sport'; + + @override + String get fortnightlyMenuTravel => 'Travel'; + + @override + String get fortnightlyMenuCulture => 'Culture'; + + @override + String get fortnightlyTrendingTechDesign => 'TechDesign'; + + @override + String get fortnightlyTrendingReform => 'Reform'; + + @override + String get fortnightlyTrendingHealthcareRevolution => 'HealthcareRevolution'; + + @override + String get fortnightlyTrendingGreenArmy => 'GreenArmy'; + + @override + String get fortnightlyTrendingStocks => 'Stocks'; + + @override + String get fortnightlyLatestUpdates => 'Latest updates'; + + @override + String get fortnightlyHeadlineHealthcare => 'The Quiet, yet Powerful Healthcare Revolution'; + + @override + String get fortnightlyHeadlineWar => 'Divided American Lives During War'; + + @override + String get fortnightlyHeadlineGasoline => 'The Future of Petrol'; + + @override + String get fortnightlyHeadlineArmy => 'Reforming The Green Army from Within'; + + @override + String get fortnightlyHeadlineStocks => 'As Stocks Stagnate, many Look to Currency'; + + @override + String get fortnightlyHeadlineFabrics => 'Designers use Tech to make Futuristic Fabrics'; + + @override + String get fortnightlyHeadlineFeminists => 'Feminists take on Partisanship'; + + @override + String get fortnightlyHeadlineBees => 'Farmland Bees in Short Supply'; + + @override + String get replyInboxLabel => 'Inbox'; + + @override + String get replyStarredLabel => 'Starred'; + + @override + String get replySentLabel => 'Sent'; + + @override + String get replyTrashLabel => 'Bin'; + + @override + String get replySpamLabel => 'Spam'; + + @override + String get replyDraftsLabel => 'Drafts'; + + @override + String get demoTwoPaneFoldableLabel => 'Foldable'; + + @override + String get demoTwoPaneFoldableDescription => 'This is how TwoPane behaves on a foldable device.'; + + @override + String get demoTwoPaneSmallScreenLabel => 'Small screen'; + + @override + String get demoTwoPaneSmallScreenDescription => 'This is how TwoPane behaves on a small screen device.'; + + @override + String get demoTwoPaneTabletLabel => 'Tablet/Desktop'; + + @override + String get demoTwoPaneTabletDescription => 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; + + @override + String get demoTwoPaneTitle => 'TwoPane'; + + @override + String get demoTwoPaneSubtitle => 'Responsive layouts on foldable, large and small screens'; + + @override + String get splashSelectDemo => 'Select a demo'; + + @override + String get demoTwoPaneList => 'List'; + + @override + String get demoTwoPaneDetails => 'Details'; + + @override + String get demoTwoPaneSelectItem => 'Select an item'; + + @override + String demoTwoPaneItem(Object value) { + return 'Item $value'; + } + + @override + String demoTwoPaneItemDetails(Object value) { + return 'Item $value details'; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en.arb b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en.arb new file mode 100644 index 0000000000000000000000000000000000000000..ce8f755e9c03c7bf8ae912e9e509cf24cb78835d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en.arb @@ -0,0 +1,3426 @@ +{ + "githubRepo": "{repoName} GitHub repository", + "@githubRepo": { + "description": "Represents a link to a GitHub repository.", + "placeholders": { + "repoName": { + "example": "Flutter Gallery" + } + } + }, + "aboutDialogDescription": "To see the source code for this app, please visit the {repoLink}.", + "@aboutDialogDescription": { + "description": "A description about how to view the source code for this app.", + "placeholders": { + "repoLink": { + "example": "Flutter Gallery GitHub repository" + } + } + }, + "deselect": "Deselect", + "@deselect": { + "description": "Deselect a (selectable) item" + }, + "notSelected": "Not selected", + "@notSelected": { + "description": "Indicates the status of a (selectable) item not being selected" + }, + "select": "Select", + "@select": { + "description": "Select a (selectable) item" + }, + "selectable": "Selectable (long press)", + "@selectable": { + "description": "Indicates the associated piece of UI is selectable by long pressing it" + }, + "selected": "Selected", + "@selected": { + "description": "Indicates status of a (selectable) item being selected" + }, + "signIn": "SIGN IN", + "@signIn": { + "description": "Sign in label to sign into website." + }, + "bannerDemoText": "Your password was updated on your other device. Please sign in again.", + "@bannerDemoText": { + "description": "Password was updated on a different device and the user is required to sign in again" + }, + "bannerDemoResetText": "Reset the banner", + "@bannerDemoResetText": { + "description": "Show the Banner to the user again." + }, + "bannerDemoMultipleText": "Multiple actions", + "@bannerDemoMultipleText": { + "description": "When the user clicks this button the Banner will toggle multiple actions or a single action" + }, + "bannerDemoLeadingText": "Leading Icon", + "@bannerDemoLeadingText": { + "description": "If user clicks this button the leading icon in the Banner will disappear" + }, + "dismiss": "DISMISS", + "@dismiss": { + "description": "When text is pressed the banner widget will be removed from the screen." + }, + "backToGallery": "Back to Gallery", + "@backToGallery": { + "description": "Semantic label for back button to exit a study and return to the gallery home page." + }, + "cardsDemoExplore": "Explore", + "@cardsDemoExplore": { + "description": "Click to see more about the content in the cards demo." + }, + "cardsDemoExploreSemantics": "Explore {destinationName}", + "@cardsDemoExploreSemantics": { + "description": "Semantics label for Explore. Label tells user to explore the destinationName to the user. Example Explore Tamil", + "placeholders": { + "destinationName": { + "example": "Tamil" + } + } + }, + "cardsDemoShareSemantics": "Share {destinationName}", + "@cardsDemoShareSemantics": { + "description": "Semantics label for Share. Label tells user to share the destinationName to the user. Example Share Tamil", + "placeholders": { + "destinationName": { + "example": "Tamil" + } + } + }, + "cardsDemoTappable": "Tappable", + "@cardsDemoTappable": { + "description": "The user can tap this button" + }, + "cardsDemoTravelDestinationTitle1": "Top 10 Cities to Visit in Tamil Nadu", + "@cardsDemoTravelDestinationTitle1": { + "description": "The top 10 cities that you can visit in Tamil Nadu" + }, + "cardsDemoTravelDestinationDescription1": "Number 10", + "@cardsDemoTravelDestinationDescription1": { + "description": "Number 10" + }, + "cardsDemoTravelDestinationCity1": "Thanjavur", + "@cardsDemoTravelDestinationCity1": { + "description": "Thanjavur the city" + }, + "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", + "@cardsDemoTravelDestinationLocation1": { + "description": "Thanjavur, Tamil Nadu is a location" + }, + "cardsDemoTravelDestinationTitle2": "Artisans of Southern India", + "@cardsDemoTravelDestinationTitle2": { + "description": "Artist that are from Southern India" + }, + "cardsDemoTravelDestinationDescription2": "Silk Spinners", + "@cardsDemoTravelDestinationDescription2": { + "description": "Silk Spinners" + }, + "cardsDemoTravelDestinationCity2": "Chettinad", + "@cardsDemoTravelDestinationCity2": { + "description": "Chettinad the city" + }, + "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", + "@cardsDemoTravelDestinationLocation2": { + "description": "Sivaganga, Tamil Nadu is a location" + }, + "cardsDemoTravelDestinationTitle3": "Brihadisvara Temple", + "@cardsDemoTravelDestinationTitle3": { + "description": "Brihadisvara Temple" + }, + "cardsDemoTravelDestinationDescription3": "Temples", + "@cardsDemoTravelDestinationDescription3": { + "description": "Temples" + }, + "homeHeaderGallery": "Gallery", + "@homeHeaderGallery": { + "description": "Header title on home screen for Gallery section." + }, + "homeHeaderCategories": "Categories", + "@homeHeaderCategories": { + "description": "Header title on home screen for Categories section." + }, + "shrineDescription": "A fashionable retail app", + "@shrineDescription": { + "description": "Study description for Shrine." + }, + "fortnightlyDescription": "A content-focused news app", + "@fortnightlyDescription": { + "description": "Study description for Fortnightly." + }, + "rallyDescription": "A personal finance app", + "@rallyDescription": { + "description": "Study description for Rally." + }, + "replyDescription": "An efficient, focused email app", + "@replyDescription": { + "description": "Study description for Reply." + }, + "rallyAccountDataChecking": "Checking", + "@rallyAccountDataChecking": { + "description": "Name for account made up by user." + }, + "rallyAccountDataHomeSavings": "Home Savings", + "@rallyAccountDataHomeSavings": { + "description": "Name for account made up by user." + }, + "rallyAccountDataCarSavings": "Car Savings", + "@rallyAccountDataCarSavings": { + "description": "Name for account made up by user." + }, + "rallyAccountDataVacation": "Vacation", + "@rallyAccountDataVacation": { + "description": "Name for account made up by user." + }, + "rallyAccountDetailDataAnnualPercentageYield": "Annual Percentage Yield", + "@rallyAccountDetailDataAnnualPercentageYield": { + "description": "Title for account statistics. Below a percentage such as 0.10% will be displayed." + }, + "rallyAccountDetailDataInterestRate": "Interest Rate", + "@rallyAccountDetailDataInterestRate": { + "description": "Title for account statistics. Below a dollar amount such as $100 will be displayed." + }, + "rallyAccountDetailDataInterestYtd": "Interest YTD", + "@rallyAccountDetailDataInterestYtd": { + "description": "Title for account statistics. Below a dollar amount such as $100 will be displayed." + }, + "rallyAccountDetailDataInterestPaidLastYear": "Interest Paid Last Year", + "@rallyAccountDetailDataInterestPaidLastYear": { + "description": "Title for account statistics. Below a dollar amount such as $100 will be displayed." + }, + "rallyAccountDetailDataNextStatement": "Next Statement", + "@rallyAccountDetailDataNextStatement": { + "description": "Title for an account detail. Below a date for when the next account statement is released." + }, + "rallyAccountDetailDataAccountOwner": "Account Owner", + "@rallyAccountDetailDataAccountOwner": { + "description": "Title for an account detail. Below the name of the account owner will be displayed." + }, + "rallyBillDetailTotalAmount": "Total Amount", + "@rallyBillDetailTotalAmount": { + "description": "Title for column where it displays the total dollar amount that the user has in bills." + }, + "rallyBillDetailAmountPaid": "Amount Paid", + "@rallyBillDetailAmountPaid": { + "description": "Title for column where it displays the amount that the user has paid." + }, + "rallyBillDetailAmountDue": "Amount Due", + "@rallyBillDetailAmountDue": { + "description": "Title for column where it displays the amount that the user has due." + }, + "rallyBudgetCategoryCoffeeShops": "Coffee Shops", + "@rallyBudgetCategoryCoffeeShops": { + "description": "Category for budget, to sort expenses / bills in." + }, + "rallyBudgetCategoryGroceries": "Groceries", + "@rallyBudgetCategoryGroceries": { + "description": "Category for budget, to sort expenses / bills in." + }, + "rallyBudgetCategoryRestaurants": "Restaurants", + "@rallyBudgetCategoryRestaurants": { + "description": "Category for budget, to sort expenses / bills in." + }, + "rallyBudgetCategoryClothing": "Clothing", + "@rallyBudgetCategoryClothing": { + "description": "Category for budget, to sort expenses / bills in." + }, + "rallyBudgetDetailTotalCap": "Total Cap", + "@rallyBudgetDetailTotalCap": { + "description": "Title for column where it displays the total dollar cap that the user has for its budget." + }, + "rallyBudgetDetailAmountUsed": "Amount Used", + "@rallyBudgetDetailAmountUsed": { + "description": "Title for column where it displays the dollar amount that the user has used in its budget." + }, + "rallyBudgetDetailAmountLeft": "Amount Left", + "@rallyBudgetDetailAmountLeft": { + "description": "Title for column where it displays the dollar amount that the user has left in its budget." + }, + "rallySettingsManageAccounts": "Manage Accounts", + "@rallySettingsManageAccounts": { + "description": "Link to go to the page 'Manage Accounts." + }, + "rallySettingsTaxDocuments": "Tax Documents", + "@rallySettingsTaxDocuments": { + "description": "Link to go to the page 'Tax Documents'." + }, + "rallySettingsPasscodeAndTouchId": "Passcode and Touch ID", + "@rallySettingsPasscodeAndTouchId": { + "description": "Link to go to the page 'Passcode and Touch ID'." + }, + "rallySettingsNotifications": "Notifications", + "@rallySettingsNotifications": { + "description": "Link to go to the page 'Notifications'." + }, + "rallySettingsPersonalInformation": "Personal Information", + "@rallySettingsPersonalInformation": { + "description": "Link to go to the page 'Personal Information'." + }, + "rallySettingsPaperlessSettings": "Paperless Settings", + "@rallySettingsPaperlessSettings": { + "description": "Link to go to the page 'Paperless Settings'." + }, + "rallySettingsFindAtms": "Find ATMs", + "@rallySettingsFindAtms": { + "description": "Link to go to the page 'Find ATMs'." + }, + "rallySettingsHelp": "Help", + "@rallySettingsHelp": { + "description": "Link to go to the page 'Help'." + }, + "rallySettingsSignOut": "Sign out", + "@rallySettingsSignOut": { + "description": "Link to go to the page 'Sign out'." + }, + "rallyAccountTotal": "Total", + "@rallyAccountTotal": { + "description": "Title for 'total account value' overview page, a dollar value is displayed next to it." + }, + "rallyBillsDue": "Due", + "@rallyBillsDue": { + "description": "Title for 'bills due' page, a dollar value is displayed next to it." + }, + "rallyBudgetLeft": "Left", + "@rallyBudgetLeft": { + "description": "Title for 'budget left' page, a dollar value is displayed next to it." + }, + "rallyAccounts": "Accounts", + "@rallyAccounts": { + "description": "Link text for accounts page." + }, + "rallyBills": "Bills", + "@rallyBills": { + "description": "Link text for bills page." + }, + "rallyBudgets": "Budgets", + "@rallyBudgets": { + "description": "Link text for budgets page." + }, + "rallyAlerts": "Alerts", + "@rallyAlerts": { + "description": "Title for alerts part of overview page." + }, + "rallySeeAll": "SEE ALL", + "@rallySeeAll": { + "description": "Link text for button to see all data for category." + }, + "rallyFinanceLeft": " LEFT", + "@rallyFinanceLeft": { + "description": "Displayed as 'dollar amount left', for example $46.70 LEFT, for a budget category." + }, + "rallyTitleOverview": "OVERVIEW", + "@rallyTitleOverview": { + "description": "The navigation link to the overview page." + }, + "rallyTitleAccounts": "ACCOUNTS", + "@rallyTitleAccounts": { + "description": "The navigation link to the accounts page." + }, + "rallyTitleBills": "BILLS", + "@rallyTitleBills": { + "description": "The navigation link to the bills page." + }, + "rallyTitleBudgets": "BUDGETS", + "@rallyTitleBudgets": { + "description": "The navigation link to the budgets page." + }, + "rallyTitleSettings": "SETTINGS", + "@rallyTitleSettings": { + "description": "The navigation link to the settings page." + }, + "rallyLoginLoginToRally": "Login to Rally", + "@rallyLoginLoginToRally": { + "description": "Title for login page for the Rally app (Rally does not need to be translated as it is a product name)." + }, + "rallyLoginNoAccount": "Don't have an account?", + "@rallyLoginNoAccount": { + "description": "Prompt for signing up for an account." + }, + "rallyLoginSignUp": "SIGN UP", + "@rallyLoginSignUp": { + "description": "Button text to sign up for an account." + }, + "rallyLoginUsername": "Username", + "@rallyLoginUsername": { + "description": "The username field in an login form." + }, + "rallyLoginPassword": "Password", + "@rallyLoginPassword": { + "description": "The password field in an login form." + }, + "rallyLoginLabelLogin": "Login", + "@rallyLoginLabelLogin": { + "description": "The label text to login." + }, + "rallyLoginRememberMe": "Remember Me", + "@rallyLoginRememberMe": { + "description": "Text if the user wants to stay logged in." + }, + "rallyLoginButtonLogin": "LOGIN", + "@rallyLoginButtonLogin": { + "description": "Text for login button." + }, + "rallyAlertsMessageHeadsUpShopping": "Heads up, you've used up {percent} of your Shopping budget for this month.", + "@rallyAlertsMessageHeadsUpShopping": { + "description": "Alert message shown when for example, user has used more than 90% of their shopping budget.", + "placeholders": { + "percent": { + "example": "90%" + } + } + }, + "rallyAlertsMessageSpentOnRestaurants": "You've spent {amount} on Restaurants this week.", + "@rallyAlertsMessageSpentOnRestaurants": { + "description": "Alert message shown when for example, user has spent $120 on Restaurants this week.", + "placeholders": { + "amount": { + "example": "$120" + } + } + }, + "rallyAlertsMessageATMFees": "You've spent {amount} in ATM fees this month", + "@rallyAlertsMessageATMFees": { + "description": "Alert message shown when for example, the user has spent $24 in ATM fees this month.", + "placeholders": { + "amount": { + "example": "24" + } + } + }, + "rallyAlertsMessageCheckingAccount": "Good work! Your checking account is {percent} higher than last month.", + "@rallyAlertsMessageCheckingAccount": { + "description": "Alert message shown when for example, the checking account is 1% higher than last month.", + "placeholders": { + "percent": { + "example": "1%" + } + } + }, + "rallyAlertsMessageUnassignedTransactions": "{count, plural, =1{Increase your potential tax deduction! Assign categories to 1 unassigned transaction.}other{Increase your potential tax deduction! Assign categories to {count} unassigned transactions.}}", + "@rallyAlertsMessageUnassignedTransactions": { + "description": "Alert message shown when you have unassigned transactions.", + "placeholders": { + "count": { + "example": "2" + } + } + }, + "rallySeeAllAccounts": "See all accounts", + "@rallySeeAllAccounts": { + "description": "Semantics label for button to see all accounts. Accounts refer to bank account here." + }, + "rallySeeAllBills": "See all bills", + "@rallySeeAllBills": { + "description": "Semantics label for button to see all bills." + }, + "rallySeeAllBudgets": "See all budgets", + "@rallySeeAllBudgets": { + "description": "Semantics label for button to see all budgets." + }, + "rallyAccountAmount": "{accountName} account {accountNumber} with {amount}.", + "@rallyAccountAmount": { + "description": "Semantics label for row with bank account name (for example checking) and its bank account number (for example 123), with how much money is deposited in it (for example $12).", + "placeholders": { + "accountName": { + "example": "Home Savings" + }, + "accountNumber": { + "example": "1234" + }, + "amount": { + "example": "$12" + } + } + }, + "rallyBillAmount": "{billName} bill due {date} for {amount}.", + "@rallyBillAmount": { + "description": "Semantics label for row with a bill (example name is rent), when the bill is due (1/12/2019 for example) and for how much money ($12).", + "placeholders": { + "billName": { + "example": "Rent" + }, + "date": { + "example": "1/24/2019" + }, + "amount": { + "example": "$12" + } + } + }, + "rallyBudgetAmount": "{budgetName} budget with {amountUsed} used of {amountTotal}, {amountLeft} left", + "@rallyBudgetAmount": { + "description": "Semantics label for row with a budget (housing budget for example), with how much is used of the budget (for example $5), the total budget (for example $100) and the amount left in the budget (for example $95).", + "placeholders": { + "budgetName": { + "example": "Groceries" + }, + "amountUsed": { + "example": "$5" + }, + "amountTotal": { + "example": "$100" + }, + "amountLeft": { + "example": "$95" + } + } + }, + "craneDescription": "A personalized travel app", + "@craneDescription": { + "description": "Study description for Crane." + }, + "homeCategoryReference": "STYLES & OTHER", + "@homeCategoryReference": { + "description": "Category title on home screen for styles & other demos (for context, the styles demos consist of a color demo and a typography demo)." + }, + "demoInvalidURL": "Couldn't display URL:", + "@demoInvalidURL": { + "description": "Error message when opening the URL for a demo." + }, + "demoOptionsTooltip": "Options", + "@demoOptionsTooltip": { + "description": "Tooltip for options button in a demo." + }, + "demoInfoTooltip": "Info", + "@demoInfoTooltip": { + "description": "Tooltip for info button in a demo." + }, + "demoCodeTooltip": "Demo Code", + "@demoCodeTooltip": { + "description": "Tooltip for demo code button in a demo." + }, + "demoDocumentationTooltip": "API Documentation", + "@demoDocumentationTooltip": { + "description": "Tooltip for API documentation button in a demo." + }, + "demoFullscreenTooltip": "Full Screen", + "@demoFullscreenTooltip": { + "description": "Tooltip for Full Screen button in a demo." + }, + "demoCodeViewerCopyAll": "COPY ALL", + "@demoCodeViewerCopyAll": { + "description": "Caption for a button to copy all text." + }, + "demoCodeViewerCopiedToClipboardMessage": "Copied to clipboard.", + "@demoCodeViewerCopiedToClipboardMessage": { + "description": "A message displayed to the user after clicking the COPY ALL button, if the text is successfully copied to the clipboard." + }, + "demoCodeViewerFailedToCopyToClipboardMessage": "Failed to copy to clipboard: {error}", + "@demoCodeViewerFailedToCopyToClipboardMessage": { + "description": "A message displayed to the user after clicking the COPY ALL button, if the text CANNOT be copied to the clipboard.", + "placeholders": { + "error": { + "example": "Your browser does not have clipboard support." + } + } + }, + "demoOptionsFeatureTitle": "View options", + "@demoOptionsFeatureTitle": { + "description": "Title for an alert that explains what the options button does." + }, + "demoOptionsFeatureDescription": "Tap here to view available options for this demo.", + "@demoOptionsFeatureDescription": { + "description": "Description for an alert that explains what the options button does." + }, + "settingsTitle": "Settings", + "@settingsTitle": { + "description": "Title for the settings screen." + }, + "settingsButtonLabel": "Settings", + "@settingsButtonLabel": { + "description": "Accessibility label for the settings button when settings are not showing." + }, + "settingsButtonCloseLabel": "Close settings", + "@settingsButtonCloseLabel": { + "description": "Accessibility label for the settings button when settings are showing." + }, + "settingsSystemDefault": "System", + "@settingsSystemDefault": { + "description": "Option label to indicate the system default will be used." + }, + "settingsTextScaling": "Text scaling", + "@settingsTextScaling": { + "description": "Title for text scaling setting." + }, + "settingsTextScalingSmall": "Small", + "@settingsTextScalingSmall": { + "description": "Option label for small text scale setting." + }, + "settingsTextScalingNormal": "Normal", + "@settingsTextScalingNormal": { + "description": "Option label for normal text scale setting." + }, + "settingsTextScalingLarge": "Large", + "@settingsTextScalingLarge": { + "description": "Option label for large text scale setting." + }, + "settingsTextScalingHuge": "Huge", + "@settingsTextScalingHuge": { + "description": "Option label for huge text scale setting." + }, + "settingsTextDirection": "Text direction", + "@settingsTextDirection": { + "description": "Title for text direction setting." + }, + "settingsTextDirectionLocaleBased": "Based on locale", + "@settingsTextDirectionLocaleBased": { + "description": "Option label for locale-based text direction setting." + }, + "settingsTextDirectionLTR": "LTR", + "@settingsTextDirectionLTR": { + "description": "Option label for left-to-right text direction setting." + }, + "settingsTextDirectionRTL": "RTL", + "@settingsTextDirectionRTL": { + "description": "Option label for right-to-left text direction setting." + }, + "settingsLocale": "Locale", + "@settingsLocale": { + "description": "Title for locale setting." + }, + "settingsPlatformMechanics": "Platform mechanics", + "@settingsPlatformMechanics": { + "description": "Title for platform mechanics (iOS, Android, macOS, etc.) setting." + }, + "settingsTheme": "Theme", + "@settingsTheme": { + "description": "Title for the theme setting." + }, + "settingsDarkTheme": "Dark", + "@settingsDarkTheme": { + "description": "Title for the dark theme setting." + }, + "settingsLightTheme": "Light", + "@settingsLightTheme": { + "description": "Title for the light theme setting." + }, + "settingsSlowMotion": "Slow motion", + "@settingsSlowMotion": { + "description": "Title for slow motion setting." + }, + "settingsAbout": "About Flutter Gallery", + "@settingsAbout": { + "description": "Title for information button." + }, + "settingsFeedback": "Send feedback", + "@settingsFeedback": { + "description": "Title for feedback button." + }, + "settingsAttribution": "Designed by TOASTER in London", + "@settingsAttribution": { + "description": "Title for attribution (TOASTER is a proper name and should remain in English)." + }, + "demoAppBarTitle": "App bar", + "@demoAppBarTitle": { + "description": "Title for the material App bar component demo." + }, + "demoAppBarSubtitle": "Displays information and actions relating to the current screen", + "@demoAppBarSubtitle": { + "description": "Subtitle for the material App bar component demo." + }, + "demoAppBarDescription": "The App bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions", + "@demoAppBarDescription": { + "description": "Description for the material App bar component demo." + }, + "demoBottomAppBarTitle": "Bottom app bar", + "@demoBottomAppBarTitle": { + "description": "Title for the material bottom app bar component demo." + }, + "demoBottomAppBarSubtitle": "Displays navigation and actions at the bottom", + "@demoBottomAppBarSubtitle": { + "description": "Subtitle for the material bottom app bar component demo." + }, + "demoBottomAppBarDescription": "Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.", + "@demoBottomAppBarDescription": { + "description": "Description for the material bottom app bar component demo." + }, + "bottomAppBarNotch": "Notch", + "@bottomAppBarNotch": { + "description": "A toggle for whether to have a notch (or cutout) in the bottom app bar demo." + }, + "bottomAppBarPosition": "Floating Action Button Position", + "@bottomAppBarPosition": { + "description": "A setting for the position of the floating action button in the bottom app bar demo." + }, + "bottomAppBarPositionDockedEnd": "Docked - End", + "@bottomAppBarPositionDockedEnd": { + "description": "A setting for the position of the floating action button in the bottom app bar that docks the button in the bar and aligns it at the end." + }, + "bottomAppBarPositionDockedCenter": "Docked - Center", + "@bottomAppBarPositionDockedCenter": { + "description": "A setting for the position of the floating action button in the bottom app bar that docks the button in the bar and aligns it in the center." + }, + "bottomAppBarPositionFloatingEnd": "Floating - End", + "@bottomAppBarPositionFloatingEnd": { + "description": "A setting for the position of the floating action button in the bottom app bar that places the button above the bar and aligns it at the end." + }, + "bottomAppBarPositionFloatingCenter": "Floating - Center", + "@bottomAppBarPositionFloatingCenter": { + "description": "A setting for the position of the floating action button in the bottom app bar that places the button above the bar and aligns it in the center." + }, + "demoBannerTitle": "Banner", + "@demoBannerTitle": { + "description": "Title for the material banner component demo." + }, + "demoBannerSubtitle": "Displaying a banner within a list", + "@demoBannerSubtitle": { + "description": "Subtitle for the material banner component demo." + }, + "demoBannerDescription": "A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.", + "@demoBannerDescription": { + "description": "Description for the material banner component demo." + }, + "demoBottomNavigationTitle": "Bottom navigation", + "@demoBottomNavigationTitle": { + "description": "Title for the material bottom navigation component demo." + }, + "demoBottomNavigationSubtitle": "Bottom navigation with cross-fading views", + "@demoBottomNavigationSubtitle": { + "description": "Subtitle for the material bottom navigation component demo." + }, + "demoBottomNavigationPersistentLabels": "Persistent labels", + "@demoBottomNavigationPersistentLabels": { + "description": "Option title for bottom navigation with persistent labels." + }, + "demoBottomNavigationSelectedLabel": "Selected label", + "@demoBottomNavigationSelectedLabel": { + "description": "Option title for bottom navigation with only a selected label." + }, + "demoBottomNavigationDescription": "Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.", + "@demoBottomNavigationDescription": { + "description": "Description for the material bottom navigation component demo." + }, + "demoButtonTitle": "Buttons", + "@demoButtonTitle": { + "description": "Title for the material buttons component demo." + }, + "demoButtonSubtitle": "Text, elevated, outlined, and more", + "@demoButtonSubtitle": { + "description": "Subtitle for the material buttons component demo." + }, + "demoTextButtonTitle": "Text Button", + "@demoTextButtonTitle": { + "description": "Title for the text button component demo." + }, + "demoTextButtonDescription": "A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogs and inline with padding", + "@demoTextButtonDescription": { + "description": "Description for the text button component demo." + }, + "demoElevatedButtonTitle": "Elevated Button", + "@demoElevatedButtonTitle": { + "description": "Title for the elevated button component demo." + }, + "demoElevatedButtonDescription": "Elevated buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.", + "@demoElevatedButtonDescription": { + "description": "Description for the elevated button component demo." + }, + "demoOutlinedButtonTitle": "Outlined Button", + "@demoOutlinedButtonTitle": { + "description": "Title for the outlined button component demo." + }, + "demoOutlinedButtonDescription": "Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", + "@demoOutlinedButtonDescription": { + "description": "Description for the outlined button component demo." + }, + "demoToggleButtonTitle": "Toggle Buttons", + "@demoToggleButtonTitle": { + "description": "Title for the toggle buttons component demo." + }, + "demoToggleButtonDescription": "Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container", + "@demoToggleButtonDescription": { + "description": "Description for the toggle buttons component demo." + }, + "demoFloatingButtonTitle": "Floating Action Button", + "@demoFloatingButtonTitle": { + "description": "Title for the floating action button component demo." + }, + "demoFloatingButtonDescription": "A floating action button is a circular icon button that hovers over content to promote a primary action in the application.", + "@demoFloatingButtonDescription": { + "description": "Description for the floating action button component demo." + }, + "demoCardTitle": "Cards", + "@demoCardTitle": { + "description": "Title for the material cards component demo." + }, + "demoCardSubtitle": "Baseline cards with rounded corners", + "@demoCardSubtitle": { + "description": "Subtitle for the material cards component demo." + }, + "demoChipTitle": "Chips", + "@demoChipTitle": { + "description": "Title for the material chips component demo." + }, + "demoCardDescription": "A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.", + "@demoCardDescription": { + "description": "Description for the material cards component demo." + }, + "demoChipSubtitle": "Compact elements that represent an input, attribute, or action", + "@demoChipSubtitle": { + "description": "Subtitle for the material chips component demo." + }, + "demoActionChipTitle": "Action Chip", + "@demoActionChipTitle": { + "description": "Title for the action chip component demo." + }, + "demoActionChipDescription": "Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.", + "@demoActionChipDescription": { + "description": "Description for the action chip component demo." + }, + "demoChoiceChipTitle": "Choice Chip", + "@demoChoiceChipTitle": { + "description": "Title for the choice chip component demo." + }, + "demoChoiceChipDescription": "Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.", + "@demoChoiceChipDescription": { + "description": "Description for the choice chip component demo." + }, + "demoFilterChipTitle": "Filter Chip", + "@demoFilterChipTitle": { + "description": "Title for the filter chip component demo." + }, + "demoFilterChipDescription": "Filter chips use tags or descriptive words as a way to filter content.", + "@demoFilterChipDescription": { + "description": "Description for the filter chip component demo." + }, + "demoInputChipTitle": "Input Chip", + "@demoInputChipTitle": { + "description": "Title for the input chip component demo." + }, + "demoInputChipDescription": "Input chips represent a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.", + "@demoInputChipDescription": { + "description": "Description for the input chip component demo." + }, + "demoDataTableTitle": "Data Tables", + "@demoDataTableTitle": { + "description": "Title for the material data table component demo." + }, + "demoDataTableSubtitle": "Rows and columns of information", + "@demoDataTableSubtitle": { + "description": "Subtitle for the material data table component demo." + }, + "demoDataTableDescription": "Data tables display information in a grid-like format of rows and columns. They organize information in a way that's easy to scan, so that users can look for patterns and insights.", + "@demoDataTableDescription": { + "description": "Description for the material data table component demo." + }, + "dataTableHeader": "Nutrition", + "@dataTableHeader": { + "description": "Header for the data table component demo about nutrition." + }, + "dataTableColumnDessert": "Dessert (1 serving)", + "@dataTableColumnDessert": { + "description": "Column header for desserts." + }, + "dataTableColumnCalories": "Calories", + "@dataTableColumnCalories": { + "description": "Column header for number of calories." + }, + "dataTableColumnFat": "Fat (g)", + "@dataTableColumnFat": { + "description": "Column header for number of grams of fat." + }, + "dataTableColumnCarbs": "Carbs (g)", + "@dataTableColumnCarbs": { + "description": "Column header for number of grams of carbs." + }, + "dataTableColumnProtein": "Protein (g)", + "@dataTableColumnProtein": { + "description": "Column header for number of grams of protein." + }, + "dataTableColumnSodium": "Sodium (mg)", + "@dataTableColumnSodium": { + "description": "Column header for number of milligrams of sodium." + }, + "dataTableColumnCalcium": "Calcium (%)", + "@dataTableColumnCalcium": { + "description": "Column header for daily percentage of calcium." + }, + "dataTableColumnIron": "Iron (%)", + "@dataTableColumnIron": { + "description": "Column header for daily percentage of iron." + }, + "dataTableRowFrozenYogurt": "Frozen yogurt", + "@dataTableRowFrozenYogurt": { + "description": "Column row for frozen yogurt." + }, + "dataTableRowIceCreamSandwich": "Ice cream sandwich", + "@dataTableRowIceCreamSandwich": { + "description": "Column row for Ice cream sandwich." + }, + "dataTableRowEclair": "Eclair", + "@dataTableRowEclair": { + "description": "Column row for Eclair." + }, + "dataTableRowCupcake": "Cupcake", + "@dataTableRowCupcake": { + "description": "Column row for Cupcake." + }, + "dataTableRowGingerbread": "Gingerbread", + "@dataTableRowGingerbread": { + "description": "Column row for Gingerbread." + }, + "dataTableRowJellyBean": "Jelly bean", + "@dataTableRowJellyBean": { + "description": "Column row for Jelly bean." + }, + "dataTableRowLollipop": "Lollipop", + "@dataTableRowLollipop": { + "description": "Column row for Lollipop." + }, + "dataTableRowHoneycomb": "Honeycomb", + "@dataTableRowHoneycomb": { + "description": "Column row for Honeycomb." + }, + "dataTableRowDonut": "Donut", + "@dataTableRowDonut": { + "description": "Column row for Donut." + }, + "dataTableRowApplePie": "Apple pie", + "@dataTableRowApplePie": { + "description": "Column row for Apple pie." + }, + "dataTableRowWithSugar": "{value} with sugar", + "@dataTableRowWithSugar": { + "description": "A dessert with sugar on it. The parameter is some type of dessert.", + "placeholders": { + "value": { + "example": "Apple pie" + } + } + }, + "dataTableRowWithHoney": "{value} with honey", + "@dataTableRowWithHoney": { + "description": "A dessert with honey on it. The parameter is some type of dessert.", + "placeholders": { + "value": { + "example": "Apple pie" + } + } + }, + "demoDialogTitle": "Dialogs", + "@demoDialogTitle": { + "description": "Title for the material dialog component demo." + }, + "demoDialogSubtitle": "Simple, alert, and fullscreen", + "@demoDialogSubtitle": { + "description": "Subtitle for the material dialog component demo." + }, + "demoAlertDialogTitle": "Alert", + "@demoAlertDialogTitle": { + "description": "Title for the alert dialog component demo." + }, + "demoAlertDialogDescription": "An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.", + "@demoAlertDialogDescription": { + "description": "Description for the alert dialog component demo." + }, + "demoAlertTitleDialogTitle": "Alert With Title", + "@demoAlertTitleDialogTitle": { + "description": "Title for the alert dialog with title component demo." + }, + "demoSimpleDialogTitle": "Simple", + "@demoSimpleDialogTitle": { + "description": "Title for the simple dialog component demo." + }, + "demoSimpleDialogDescription": "A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.", + "@demoSimpleDialogDescription": { + "description": "Description for the simple dialog component demo." + }, + "demoDividerTitle": "Divider", + "@demoDividerTitle": { + "description": "Title for the divider component demo." + }, + "demoDividerSubtitle": "A divider is a thin line that groups content in lists and layouts.", + "@demoDividerSubtitle": { + "description": "Subtitle for the divider component demo." + }, + "demoDividerDescription": "Dividers can be used in lists, drawers, and elsewhere to separate content.", + "@demoDividerDescription": { + "description": "Description for the divider component demo." + }, + "demoVerticalDividerTitle": "Vertical Divider", + "@demoVerticalDividerTitle": { + "description": "Title for the vertical divider component demo." + }, + "demoGridListsTitle": "Grid Lists", + "@demoGridListsTitle": { + "description": "Title for the grid lists component demo." + }, + "demoGridListsSubtitle": "Row and column layout", + "@demoGridListsSubtitle": { + "description": "Subtitle for the grid lists component demo." + }, + "demoGridListsDescription": "Grid Lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.", + "@demoGridListsDescription": { + "description": "Description for the grid lists component demo." + }, + "demoGridListsImageOnlyTitle": "Image only", + "@demoGridListsImageOnlyTitle": { + "description": "Title for the grid lists image-only component demo." + }, + "demoGridListsHeaderTitle": "With header", + "@demoGridListsHeaderTitle": { + "description": "Title for the grid lists component demo with headers on each tile." + }, + "demoGridListsFooterTitle": "With footer", + "@demoGridListsFooterTitle": { + "description": "Title for the grid lists component demo with footers on each tile." + }, + "demoSlidersTitle": "Sliders", + "@demoSlidersTitle": { + "description": "Title for the sliders component demo." + }, + "demoSlidersSubtitle": "Widgets for selecting a value by swiping", + "@demoSlidersSubtitle": { + "description": "Short description for the sliders component demo." + }, + "demoSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.", + "@demoSlidersDescription": { + "description": "Description for the sliders demo." + }, + "demoRangeSlidersTitle": "Range Sliders", + "@demoRangeSlidersTitle": { + "description": "Title for the range sliders component demo." + }, + "demoRangeSlidersDescription": "Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness, or applying image filters.", + "@demoRangeSlidersDescription": { + "description": "Description for the range sliders demo." + }, + "demoCustomSlidersTitle": "Custom Sliders", + "@demoCustomSlidersTitle": { + "description": "Title for the custom sliders component demo." + }, + "demoCustomSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customized.", + "@demoCustomSlidersDescription": { + "description": "Description for the custom sliders demo." + }, + "demoSlidersContinuousWithEditableNumericalValue": "Continuous with Editable Numerical Value", + "@demoSlidersContinuousWithEditableNumericalValue": { + "description": "Text to describe a slider has a continuous value with an editable numerical value." + }, + "demoSlidersDiscrete": "Discrete", + "@demoSlidersDiscrete": { + "description": "Text to describe that we have a slider with discrete values." + }, + "demoSlidersDiscreteSliderWithCustomTheme": "Discrete Slider with Custom Theme", + "@demoSlidersDiscreteSliderWithCustomTheme": { + "description": "Text to describe that we have a slider with discrete values and a custom theme. " + }, + "demoSlidersContinuousRangeSliderWithCustomTheme": "Continuous Range Slider with Custom Theme", + "@demoSlidersContinuousRangeSliderWithCustomTheme": { + "description": "Text to describe that we have a range slider with continuous values and a custom theme. " + }, + "demoSlidersContinuous": "Continuous", + "@demoSlidersContinuous": { + "description": "Text to describe that we have a slider with continuous values." + }, + "demoSlidersEditableNumericalValue": "Editable numerical value", + "@demoSlidersEditableNumericalValue": { + "description": "Label for input field that has an editable numerical value." + }, + "demoMenuTitle": "Menu", + "@demoMenuTitle": { + "description": "Title for the menu component demo." + }, + "demoContextMenuTitle": "Context menu", + "@demoContextMenuTitle": { + "description": "Title for the context menu component demo." + }, + "demoSectionedMenuTitle": "Sectioned menu", + "@demoSectionedMenuTitle": { + "description": "Title for the sectioned menu component demo." + }, + "demoSimpleMenuTitle": "Simple menu", + "@demoSimpleMenuTitle": { + "description": "Title for the simple menu component demo." + }, + "demoChecklistMenuTitle": "Checklist menu", + "@demoChecklistMenuTitle": { + "description": "Title for the checklist menu component demo." + }, + "demoMenuSubtitle": "Menu buttons and simple menus", + "@demoMenuSubtitle": { + "description": "Short description for the menu component demo." + }, + "demoMenuDescription": "A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.", + "@demoMenuDescription": { + "description": "Description for the menu demo." + }, + "demoMenuItemValueOne": "Menu item one", + "@demoMenuItemValueOne": { + "description": "The first item in a menu." + }, + "demoMenuItemValueTwo": "Menu item two", + "@demoMenuItemValueTwo": { + "description": "The second item in a menu." + }, + "demoMenuItemValueThree": "Menu item three", + "@demoMenuItemValueThree": { + "description": "The third item in a menu." + }, + "demoMenuOne": "One", + "@demoMenuOne": { + "description": "The number one." + }, + "demoMenuTwo": "Two", + "@demoMenuTwo": { + "description": "The number two." + }, + "demoMenuThree": "Three", + "@demoMenuThree": { + "description": "The number three." + }, + "demoMenuFour": "Four", + "@demoMenuFour": { + "description": "The number four." + }, + "demoMenuAnItemWithAContextMenuButton": "An item with a context menu", + "@demoMenuAnItemWithAContextMenuButton": { + "description": "Label next to a button that opens a menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuContextMenuItemOne": "Context menu item one", + "@demoMenuContextMenuItemOne": { + "description": "Text label for a context menu item. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuADisabledMenuItem": "Disabled menu item", + "@demoMenuADisabledMenuItem": { + "description": "Text label for a disabled menu item. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuContextMenuItemThree": "Context menu item three", + "@demoMenuContextMenuItemThree": { + "description": "Text label for a context menu item three. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuAnItemWithASectionedMenu": "An item with a sectioned menu", + "@demoMenuAnItemWithASectionedMenu": { + "description": "Label next to a button that opens a sectioned menu . A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuPreview": "Preview", + "@demoMenuPreview": { + "description": "Button to preview content." + }, + "demoMenuShare": "Share", + "@demoMenuShare": { + "description": "Button to share content." + }, + "demoMenuGetLink": "Get link", + "@demoMenuGetLink": { + "description": "Button to get link for content." + }, + "demoMenuRemove": "Remove", + "@demoMenuRemove": { + "description": "Button to remove content." + }, + "demoMenuSelected": "Selected: {value}", + "@demoMenuSelected": { + "description": "A text to show what value was selected.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoMenuChecked": "Checked: {value}", + "@demoMenuChecked": { + "description": "A text to show what value was checked.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoNavigationDrawerTitle": "Navigation Drawer", + "@demoNavigationDrawerTitle": { + "description": "Title for the material drawer component demo." + }, + "demoNavigationDrawerSubtitle": "Displaying a drawer within appbar", + "@demoNavigationDrawerSubtitle": { + "description": "Subtitle for the material drawer component demo." + }, + "demoNavigationDrawerDescription": "A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.", + "@demoNavigationDrawerDescription": { + "description": "Description for the material drawer component demo." + }, + "demoNavigationDrawerUserName": "User Name", + "@demoNavigationDrawerUserName": { + "description": "Demo username for navigation drawer." + }, + "demoNavigationDrawerUserEmail": "user.name@example.com", + "@demoNavigationDrawerUserEmail": { + "description": "Demo email for navigation drawer." + }, + "demoNavigationDrawerToPageOne": "Item One", + "@demoNavigationDrawerToPageOne": { + "description": "Drawer Item One." + }, + "demoNavigationDrawerToPageTwo": "Item Two", + "@demoNavigationDrawerToPageTwo": { + "description": "Drawer Item Two." + }, + "demoNavigationDrawerText": "Swipe from the edge or tap the upper-left icon to see the drawer", + "@demoNavigationDrawerText": { + "description": "Description to open navigation drawer." + }, + "demoNavigationRailTitle": "Navigation Rail", + "@demoNavigationRailTitle": { + "description": "Title for the material Navigation Rail component demo." + }, + "demoNavigationRailSubtitle": "Displaying a Navigation Rail within an app", + "@demoNavigationRailSubtitle": { + "description": "Subtitle for the material Navigation Rail component demo." + }, + "demoNavigationRailDescription": "A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.", + "@demoNavigationRailDescription": { + "description": "Description for the material Navigation Rail component demo." + }, + "demoNavigationRailFirst": "First", + "@demoNavigationRailFirst": { + "description": "Navigation Rail destination first label." + }, + "demoNavigationRailSecond": "Second", + "@demoNavigationRailSecond": { + "description": "Navigation Rail destination second label." + }, + "demoNavigationRailThird": "Third", + "@demoNavigationRailThird": { + "description": "Navigation Rail destination Third label." + }, + "demoMenuAnItemWithASimpleMenu": "An item with a simple menu", + "@demoMenuAnItemWithASimpleMenu": { + "description": "Label next to a button that opens a simple menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoMenuAnItemWithAChecklistMenu": "An item with a checklist menu", + "@demoMenuAnItemWithAChecklistMenu": { + "description": "Label next to a button that opens a checklist menu. A menu displays a list of choices on a temporary surface. Used as an example in a demo." + }, + "demoFullscreenDialogTitle": "Fullscreen", + "@demoFullscreenDialogTitle": { + "description": "Title for the fullscreen dialog component demo." + }, + "demoFullscreenDialogDescription": "The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog", + "@demoFullscreenDialogDescription": { + "description": "Description for the fullscreen dialog component demo." + }, + "demoCupertinoActivityIndicatorTitle": "Activity indicator", + "@demoCupertinoActivityIndicatorTitle": { + "description": "Title for the cupertino activity indicator component demo." + }, + "demoCupertinoActivityIndicatorSubtitle": "iOS-style activity indicators", + "@demoCupertinoActivityIndicatorSubtitle": { + "description": "Subtitle for the cupertino activity indicator component demo." + }, + "demoCupertinoActivityIndicatorDescription": "An iOS-style activity indicator that spins clockwise.", + "@demoCupertinoActivityIndicatorDescription": { + "description": "Description for the cupertino activity indicator component demo." + }, + "demoCupertinoButtonsTitle": "Buttons", + "@demoCupertinoButtonsTitle": { + "description": "Title for the cupertino buttons component demo." + }, + "demoCupertinoButtonsSubtitle": "iOS-style buttons", + "@demoCupertinoButtonsSubtitle": { + "description": "Subtitle for the cupertino buttons component demo." + }, + "demoCupertinoButtonsDescription": "An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.", + "@demoCupertinoButtonsDescription": { + "description": "Description for the cupertino buttons component demo." + }, + "demoCupertinoContextMenuTitle": "Context Menu", + "@demoCupertinoContextMenuTitle": { + "description": "Title for the cupertino context menu component demo." + }, + "demoCupertinoContextMenuSubtitle": "iOS-style context menu", + "@demoCupertinoContextMenuSubtitle": { + "description": "Subtitle for the cupertino context menu component demo." + }, + "demoCupertinoContextMenuDescription": "An iOS-style full screen contextual menu that appears when an element is long-pressed.", + "@demoCupertinoContextMenuDescription": { + "description": "Description for the cupertino context menu component demo." + }, + "demoCupertinoContextMenuActionOne": "Action one", + "@demoCupertinoContextMenuActionOne": { + "description": "Context menu list item one" + }, + "demoCupertinoContextMenuActionTwo": "Action two", + "@demoCupertinoContextMenuActionTwo": { + "description": "Context menu list item two" + }, + "demoCupertinoContextMenuActionText": "Tap and hold the Flutter logo to see the context menu.", + "@demoCupertinoContextMenuActionText": { + "description": "Context menu text." + }, + "demoCupertinoAlertsTitle": "Alerts", + "@demoCupertinoAlertsTitle": { + "description": "Title for the cupertino alerts component demo." + }, + "demoCupertinoAlertsSubtitle": "iOS-style alert dialogs", + "@demoCupertinoAlertsSubtitle": { + "description": "Subtitle for the cupertino alerts component demo." + }, + "demoCupertinoAlertTitle": "Alert", + "@demoCupertinoAlertTitle": { + "description": "Title for the cupertino alert component demo." + }, + "demoCupertinoAlertDescription": "An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.", + "@demoCupertinoAlertDescription": { + "description": "Description for the cupertino alert component demo." + }, + "demoCupertinoAlertWithTitleTitle": "Alert With Title", + "@demoCupertinoAlertWithTitleTitle": { + "description": "Title for the cupertino alert with title component demo." + }, + "demoCupertinoAlertButtonsTitle": "Alert With Buttons", + "@demoCupertinoAlertButtonsTitle": { + "description": "Title for the cupertino alert with buttons component demo." + }, + "demoCupertinoAlertButtonsOnlyTitle": "Alert Buttons Only", + "@demoCupertinoAlertButtonsOnlyTitle": { + "description": "Title for the cupertino alert buttons only component demo." + }, + "demoCupertinoActionSheetTitle": "Action Sheet", + "@demoCupertinoActionSheetTitle": { + "description": "Title for the cupertino action sheet component demo." + }, + "demoCupertinoActionSheetDescription": "An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.", + "@demoCupertinoActionSheetDescription": { + "description": "Description for the cupertino action sheet component demo." + }, + "demoCupertinoNavigationBarTitle": "Navigation bar", + "@demoCupertinoNavigationBarTitle": { + "description": "Title for the cupertino navigation bar component demo." + }, + "demoCupertinoNavigationBarSubtitle": "iOS-style navigation bar", + "@demoCupertinoNavigationBarSubtitle": { + "description": "Subtitle for the cupertino navigation bar component demo." + }, + "demoCupertinoNavigationBarDescription": "An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.", + "@demoCupertinoNavigationBarDescription": { + "description": "Description for the cupertino navigation bar component demo." + }, + "demoCupertinoPickerTitle": "Pickers", + "@demoCupertinoPickerTitle": { + "description": "Title for the cupertino pickers component demo." + }, + "demoCupertinoPickerSubtitle": "iOS-style pickers", + "@demoCupertinoPickerSubtitle": { + "description": "Subtitle for the cupertino pickers component demo." + }, + "demoCupertinoPickerDescription": "An iOS-style picker widget that can be used to select strings, dates, times, or both date and time.", + "@demoCupertinoPickerDescription": { + "description": "Description for the cupertino pickers component demo." + }, + "demoCupertinoPickerTimer": "Timer", + "@demoCupertinoPickerTimer": { + "description": "Label to open a countdown timer picker." + }, + "demoCupertinoPicker": "Picker", + "@demoCupertinoPicker": { + "description": "Label to open an iOS picker." + }, + "demoCupertinoPickerDate": "Date", + "@demoCupertinoPickerDate": { + "description": "Label to open a date picker." + }, + "demoCupertinoPickerTime": "Time", + "@demoCupertinoPickerTime": { + "description": "Label to open a time picker." + }, + "demoCupertinoPickerDateTime": "Date and Time", + "@demoCupertinoPickerDateTime": { + "description": "Label to open a date and time picker." + }, + "demoCupertinoPullToRefreshTitle": "Pull to refresh", + "@demoCupertinoPullToRefreshTitle": { + "description": "Title for the cupertino pull-to-refresh component demo." + }, + "demoCupertinoPullToRefreshSubtitle": "iOS-style pull to refresh control", + "@demoCupertinoPullToRefreshSubtitle": { + "description": "Subtitle for the cupertino pull-to-refresh component demo." + }, + "demoCupertinoPullToRefreshDescription": "A widget implementing the iOS-style pull to refresh content control.", + "@demoCupertinoPullToRefreshDescription": { + "description": "Description for the cupertino pull-to-refresh component demo." + }, + "demoCupertinoSegmentedControlTitle": "Segmented control", + "@demoCupertinoSegmentedControlTitle": { + "description": "Title for the cupertino segmented control component demo." + }, + "demoCupertinoSegmentedControlSubtitle": "iOS-style segmented control", + "@demoCupertinoSegmentedControlSubtitle": { + "description": "Subtitle for the cupertino segmented control component demo." + }, + "demoCupertinoSegmentedControlDescription": "Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.", + "@demoCupertinoSegmentedControlDescription": { + "description": "Description for the cupertino segmented control component demo." + }, + "demoCupertinoSliderTitle": "Slider", + "@demoCupertinoSliderTitle": { + "description": "Title for the cupertino slider component demo." + }, + "demoCupertinoSliderSubtitle": "iOS-style slider", + "@demoCupertinoSliderSubtitle": { + "description": "Subtitle for the cupertino slider component demo." + }, + "demoCupertinoSliderDescription": "A slider can be used to select from either a continuous or a discrete set of values.", + "@demoCupertinoSliderDescription": { + "description": "Description for the cupertino slider component demo." + }, + "demoCupertinoSliderContinuous": "Continuous: {value}", + "@demoCupertinoSliderContinuous": { + "description": "A label for a continuous slider that indicates what value it is set to.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoCupertinoSliderDiscrete": "Discrete: {value}", + "@demoCupertinoSliderDiscrete": { + "description": "A label for a discrete slider that indicates what value it is set to.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoCupertinoSwitchSubtitle": "iOS-style switch", + "@demoCupertinoSwitchSubtitle": { + "description": "Subtitle for the cupertino switch component demo." + }, + "demoCupertinoSwitchDescription": "A switch is used to toggle the on/off state of a single setting.", + "@demoCupertinoSwitchDescription": { + "description": "Description for the cupertino switch component demo." + }, + "demoCupertinoTabBarTitle": "Tab bar", + "@demoCupertinoTabBarTitle": { + "description": "Title for the cupertino bottom tab bar demo." + }, + "demoCupertinoTabBarSubtitle": "iOS-style bottom tab bar", + "@demoCupertinoTabBarSubtitle": { + "description": "Subtitle for the cupertino bottom tab bar demo." + }, + "demoCupertinoTabBarDescription": "An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.", + "@demoCupertinoTabBarDescription": { + "description": "Description for the cupertino bottom tab bar demo." + }, + "cupertinoTabBarHomeTab": "Home", + "@cupertinoTabBarHomeTab": { + "description": "Title for the home tab in the bottom tab bar demo." + }, + "cupertinoTabBarChatTab": "Chat", + "@cupertinoTabBarChatTab": { + "description": "Title for the chat tab in the bottom tab bar demo." + }, + "cupertinoTabBarProfileTab": "Profile", + "@cupertinoTabBarProfileTab": { + "description": "Title for the profile tab in the bottom tab bar demo." + }, + "demoCupertinoTextFieldTitle": "Text fields", + "@demoCupertinoTextFieldTitle": { + "description": "Title for the cupertino text field demo." + }, + "demoCupertinoTextFieldSubtitle": "iOS-style text fields", + "@demoCupertinoTextFieldSubtitle": { + "description": "Subtitle for the cupertino text field demo." + }, + "demoCupertinoTextFieldDescription": "A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.", + "@demoCupertinoTextFieldDescription": { + "description": "Description for the cupertino text field demo." + }, + "demoCupertinoTextFieldPIN": "PIN", + "@demoCupertinoTextFieldPIN": { + "description": "The placeholder for a text field where a user would enter their PIN number." + }, + "demoCupertinoSearchTextFieldTitle": "Search text field", + "@demoCupertinoSearchTextFieldTitle": { + "description": "Title for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldSubtitle": "iOS-style search text field", + "@demoCupertinoSearchTextFieldSubtitle": { + "description": "Subtitle for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldDescription": "A search text field that lets the user search by entering text, and that can offer and filter suggestions.", + "@demoCupertinoSearchTextFieldDescription": { + "description": "Description for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldPlaceholder": "Enter some text", + "@demoCupertinoSearchTextFieldPlaceholder": { + "description": "The placeholder for a search text field demo." + }, + "demoCupertinoScrollbarTitle": "Scrollbar", + "@demoCupertinoScrollbarTitle": { + "description": "Title for the cupertino scrollbar demo." + }, + "demoCupertinoScrollbarSubtitle": "iOS-style scrollbar", + "@demoCupertinoScrollbarSubtitle": { + "description": "Subtitle for the cupertino scrollbar demo." + }, + "demoCupertinoScrollbarDescription": "A scrollbar that wraps the given child", + "@demoCupertinoScrollbarDescription": { + "description": "Description for the cupertino scrollbar demo." + }, + "demoMotionTitle": "Motion", + "@demoMotionTitle": { + "description": "Title for the motion demo." + }, + "demoMotionSubtitle": "All of the predefined transition patterns", + "@demoMotionSubtitle": { + "description": "Subtitle for the motion demo." + }, + "demoContainerTransformDemoInstructions": "Cards, Lists & FAB", + "@demoContainerTransformDemoInstructions": { + "description": "Instructions for the container transform demo located in the app bar." + }, + "demoSharedXAxisDemoInstructions": "Next and Back Buttons", + "@demoSharedXAxisDemoInstructions": { + "description": "Instructions for the shared x axis demo located in the app bar." + }, + "demoSharedYAxisDemoInstructions": "Sort by \"Recently Played\"", + "@demoSharedYAxisDemoInstructions": { + "description": "Instructions for the shared y axis demo located in the app bar." + }, + "demoSharedZAxisDemoInstructions": "Settings icon button", + "@demoSharedZAxisDemoInstructions": { + "description": "Instructions for the shared z axis demo located in the app bar." + }, + "demoFadeThroughDemoInstructions": "Bottom navigation", + "@demoFadeThroughDemoInstructions": { + "description": "Instructions for the fade through demo located in the app bar." + }, + "demoFadeScaleDemoInstructions": "Modal and FAB", + "@demoFadeScaleDemoInstructions": { + "description": "Instructions for the fade scale demo located in the app bar." + }, + "demoContainerTransformTitle": "Container Transform", + "@demoContainerTransformTitle": { + "description": "Title for the container transform demo." + }, + "demoContainerTransformDescription": "The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements", + "@demoContainerTransformDescription": { + "description": "Description for the container transform demo." + }, + "demoContainerTransformModalBottomSheetTitle": "Fade mode", + "@demoContainerTransformModalBottomSheetTitle": { + "description": "Title for the container transform modal bottom sheet." + }, + "demoContainerTransformTypeFade": "FADE", + "@demoContainerTransformTypeFade": { + "description": "Description for container transform fade type setting." + }, + "demoContainerTransformTypeFadeThrough": "FADE THROUGH", + "@demoContainerTransformTypeFadeThrough": { + "description": "Description for container transform fade through type setting." + }, + "demoMotionPlaceholderTitle": "Title", + "@demoMotionPlaceholderTitle": { + "description": "The placeholder for the motion demos title properties." + }, + "demoMotionPlaceholderSubtitle": "Secondary text", + "@demoMotionPlaceholderSubtitle": { + "description": "The placeholder for the motion demos subtitle properties." + }, + "demoMotionSmallPlaceholderSubtitle": "Secondary", + "@demoMotionSmallPlaceholderSubtitle": { + "description": "The placeholder for the motion demos shortened subtitle properties." + }, + "demoMotionDetailsPageTitle": "Details Page", + "@demoMotionDetailsPageTitle": { + "description": "The title for the details page in the motion demos." + }, + "demoMotionListTileTitle": "List item", + "@demoMotionListTileTitle": { + "description": "The title for a list tile in the motion demos." + }, + "demoSharedAxisDescription": "The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.", + "@demoSharedAxisDescription": { + "description": "Description for the shared y axis demo." + }, + "demoSharedXAxisTitle": "Shared x-axis", + "@demoSharedXAxisTitle": { + "description": "Title for the shared x axis demo." + }, + "demoSharedXAxisBackButtonText": "BACK", + "@demoSharedXAxisBackButtonText": { + "description": "Button text for back button in the shared x axis demo." + }, + "demoSharedXAxisNextButtonText": "NEXT", + "@demoSharedXAxisNextButtonText": { + "description": "Button text for the next button in the shared x axis demo." + }, + "demoSharedXAxisCoursePageTitle": "Streamline your courses", + "@demoSharedXAxisCoursePageTitle": { + "description": "Title for course selection page in the shared x axis demo." + }, + "demoSharedXAxisCoursePageSubtitle": "Bundled categories appear as groups in your feed. You can always change this later.", + "@demoSharedXAxisCoursePageSubtitle": { + "description": "Subtitle for course selection page in the shared x axis demo." + }, + "demoSharedXAxisArtsAndCraftsCourseTitle": "Arts & Crafts", + "@demoSharedXAxisArtsAndCraftsCourseTitle": { + "description": "Title for the Arts & Crafts course in the shared x axis demo." + }, + "demoSharedXAxisBusinessCourseTitle": "Business", + "@demoSharedXAxisBusinessCourseTitle": { + "description": "Title for the Business course in the shared x axis demo." + }, + "demoSharedXAxisIllustrationCourseTitle": "Illustration", + "@demoSharedXAxisIllustrationCourseTitle": { + "description": "Title for the Illustration course in the shared x axis demo." + }, + "demoSharedXAxisDesignCourseTitle": "Design", + "@demoSharedXAxisDesignCourseTitle": { + "description": "Title for the Design course in the shared x axis demo." + }, + "demoSharedXAxisCulinaryCourseTitle": "Culinary", + "@demoSharedXAxisCulinaryCourseTitle": { + "description": "Title for the Culinary course in the shared x axis demo." + }, + "demoSharedXAxisBundledCourseSubtitle": "Bundled", + "@demoSharedXAxisBundledCourseSubtitle": { + "description": "Subtitle for a bundled course in the shared x axis demo." + }, + "demoSharedXAxisIndividualCourseSubtitle": "Shown Individually", + "@demoSharedXAxisIndividualCourseSubtitle": { + "description": "Subtitle for a individual course in the shared x axis demo." + }, + "demoSharedXAxisSignInWelcomeText": "Hi David Park", + "@demoSharedXAxisSignInWelcomeText": { + "description": "Welcome text for sign in page in the shared x axis demo. David Park is a name and does not need to be translated." + }, + "demoSharedXAxisSignInSubtitleText": "Sign in with your account", + "@demoSharedXAxisSignInSubtitleText": { + "description": "Subtitle text for sign in page in the shared x axis demo." + }, + "demoSharedXAxisSignInTextFieldLabel": "Email or phone number", + "@demoSharedXAxisSignInTextFieldLabel": { + "description": "Label text for the sign in text field in the shared x axis demo." + }, + "demoSharedXAxisForgotEmailButtonText": "FORGOT EMAIL?", + "@demoSharedXAxisForgotEmailButtonText": { + "description": "Button text for the forgot email button in the shared x axis demo." + }, + "demoSharedXAxisCreateAccountButtonText": "CREATE ACCOUNT", + "@demoSharedXAxisCreateAccountButtonText": { + "description": "Button text for the create account button in the shared x axis demo." + }, + "demoSharedYAxisTitle": "Shared y-axis", + "@demoSharedYAxisTitle": { + "description": "Title for the shared y axis demo." + }, + "demoSharedYAxisAlbumCount": "268 albums", + "@demoSharedYAxisAlbumCount": { + "description": "Text for album count in the shared y axis demo." + }, + "demoSharedYAxisAlphabeticalSortTitle": "A-Z", + "@demoSharedYAxisAlphabeticalSortTitle": { + "description": "Title for alphabetical sorting type in the shared y axis demo." + }, + "demoSharedYAxisRecentSortTitle": "Recently played", + "@demoSharedYAxisRecentSortTitle": { + "description": "Title for recently played sorting type in the shared y axis demo." + }, + "demoSharedYAxisAlbumTileTitle": "Album", + "@demoSharedYAxisAlbumTileTitle": { + "description": "Title for an AlbumTile in the shared y axis demo." + }, + "demoSharedYAxisAlbumTileSubtitle": "Artist", + "@demoSharedYAxisAlbumTileSubtitle": { + "description": "Subtitle for an AlbumTile in the shared y axis demo." + }, + "demoSharedYAxisAlbumTileDurationUnit": "min", + "@demoSharedYAxisAlbumTileDurationUnit": { + "description": "Duration unit for an AlbumTile in the shared y axis demo." + }, + "demoSharedZAxisTitle": "Shared z-axis", + "@demoSharedZAxisTitle": { + "description": "Title for the shared z axis demo." + }, + "demoSharedZAxisSettingsPageTitle": "Settings", + "@demoSharedZAxisSettingsPageTitle": { + "description": "Title for the settings page in the shared z axis demo." + }, + "demoSharedZAxisBurgerRecipeTitle": "Burger", + "@demoSharedZAxisBurgerRecipeTitle": { + "description": "Title for burger recipe tile in the shared z axis demo." + }, + "demoSharedZAxisBurgerRecipeDescription": "Burger recipe", + "@demoSharedZAxisBurgerRecipeDescription": { + "description": "Subtitle for the burger recipe tile in the shared z axis demo." + }, + "demoSharedZAxisSandwichRecipeTitle": "Sandwich", + "@demoSharedZAxisSandwichRecipeTitle": { + "description": "Title for sandwich recipe tile in the shared z axis demo." + }, + "demoSharedZAxisSandwichRecipeDescription": "Sandwich recipe", + "@demoSharedZAxisSandwichRecipeDescription": { + "description": "Subtitle for the sandwich recipe tile in the shared z axis demo." + }, + "demoSharedZAxisDessertRecipeTitle": "Dessert", + "@demoSharedZAxisDessertRecipeTitle": { + "description": "Title for dessert recipe tile in the shared z axis demo." + }, + "demoSharedZAxisDessertRecipeDescription": "Dessert recipe", + "@demoSharedZAxisDessertRecipeDescription": { + "description": "Subtitle for the dessert recipe tile in the shared z axis demo." + }, + "demoSharedZAxisShrimpPlateRecipeTitle": "Shrimp", + "@demoSharedZAxisShrimpPlateRecipeTitle": { + "description": "Title for shrimp plate recipe tile in the shared z axis demo." + }, + "demoSharedZAxisShrimpPlateRecipeDescription": "Shrimp plate recipe", + "@demoSharedZAxisShrimpPlateRecipeDescription": { + "description": "Subtitle for the shrimp plate recipe tile in the shared z axis demo." + }, + "demoSharedZAxisCrabPlateRecipeTitle": "Crab", + "@demoSharedZAxisCrabPlateRecipeTitle": { + "description": "Title for crab plate recipe tile in the shared z axis demo." + }, + "demoSharedZAxisCrabPlateRecipeDescription": "Crab plate recipe", + "@demoSharedZAxisCrabPlateRecipeDescription": { + "description": "Subtitle for the crab plate recipe tile in the shared z axis demo." + }, + "demoSharedZAxisBeefSandwichRecipeTitle": "Beef Sandwich", + "@demoSharedZAxisBeefSandwichRecipeTitle": { + "description": "Title for beef sandwich recipe tile in the shared z axis demo." + }, + "demoSharedZAxisBeefSandwichRecipeDescription": "Beef Sandwich recipe", + "@demoSharedZAxisBeefSandwichRecipeDescription": { + "description": "Subtitle for the beef sandwich recipe tile in the shared z axis demo." + }, + "demoSharedZAxisSavedRecipesListTitle": "Saved Recipes", + "@demoSharedZAxisSavedRecipesListTitle": { + "description": "Title for list of saved recipes in the shared z axis demo." + }, + "demoSharedZAxisProfileSettingLabel": "Profile", + "@demoSharedZAxisProfileSettingLabel": { + "description": "Text label for profile setting tile in the shared z axis demo." + }, + "demoSharedZAxisNotificationSettingLabel": "Notifications", + "@demoSharedZAxisNotificationSettingLabel": { + "description": "Text label for notifications setting tile in the shared z axis demo." + }, + "demoSharedZAxisPrivacySettingLabel": "Privacy", + "@demoSharedZAxisPrivacySettingLabel": { + "description": "Text label for the privacy setting tile in the shared z axis demo." + }, + "demoSharedZAxisHelpSettingLabel": "Help", + "@demoSharedZAxisHelpSettingLabel": { + "description": "Text label for the help setting tile in the shared z axis demo." + }, + "demoFadeThroughTitle": "Fade through", + "@demoFadeThroughTitle": { + "description": "Title for the fade through demo." + }, + "demoFadeThroughDescription": "The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.", + "@demoFadeThroughDescription": { + "description": "Description for the fade through demo." + }, + "demoFadeThroughAlbumsDestination": "Albums", + "@demoFadeThroughAlbumsDestination": { + "description": "Text for albums bottom navigation bar destination in the fade through demo." + }, + "demoFadeThroughPhotosDestination": "Photos", + "@demoFadeThroughPhotosDestination": { + "description": "Text for photos bottom navigation bar destination in the fade through demo." + }, + "demoFadeThroughSearchDestination": "Search", + "@demoFadeThroughSearchDestination": { + "description": "Text for search bottom navigation bar destination in the fade through demo." + }, + "demoFadeThroughTextPlaceholder": "123 photos", + "@demoFadeThroughTextPlaceholder": { + "description": "Placeholder for example card title in the fade through demo." + }, + "demoFadeScaleTitle": "Fade", + "@demoFadeScaleTitle": { + "description": "Title for the fade scale demo." + }, + "demoFadeScaleDescription": "The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.", + "@demoFadeScaleDescription": { + "description": "Description for the fade scale demo." + }, + "demoFadeScaleShowAlertDialogButton": "SHOW MODAL", + "@demoFadeScaleShowAlertDialogButton": { + "description": "Button text to show alert dialog in the fade scale demo." + }, + "demoFadeScaleShowFabButton": "SHOW FAB", + "@demoFadeScaleShowFabButton": { + "description": "Button text to show fab in the fade scale demo." + }, + "demoFadeScaleHideFabButton": "HIDE FAB", + "@demoFadeScaleHideFabButton": { + "description": "Button text to hide fab in the fade scale demo." + }, + "demoFadeScaleAlertDialogHeader": "Alert Dialog", + "@demoFadeScaleAlertDialogHeader": { + "description": "Generic header for alert dialog in the fade scale demo." + }, + "demoFadeScaleAlertDialogCancelButton": "CANCEL", + "@demoFadeScaleAlertDialogCancelButton": { + "description": "Button text for alert dialog cancel button in the fade scale demo." + }, + "demoFadeScaleAlertDialogDiscardButton": "DISCARD", + "@demoFadeScaleAlertDialogDiscardButton": { + "description": "Button text for alert dialog discard button in the fade scale demo." + }, + "demoColorsTitle": "Colors", + "@demoColorsTitle": { + "description": "Title for the colors demo." + }, + "demoColorsSubtitle": "All of the predefined colors", + "@demoColorsSubtitle": { + "description": "Subtitle for the colors demo." + }, + "demoColorsDescription": "Color and color swatch constants which represent Material Design's color palette.", + "@demoColorsDescription": { + "description": "Description for the colors demo. Material Design should remain capitalized." + }, + "demoTypographyTitle": "Typography", + "@demoTypographyTitle": { + "description": "Title for the typography demo." + }, + "demoTypographySubtitle": "All of the predefined text styles", + "@demoTypographySubtitle": { + "description": "Subtitle for the typography demo." + }, + "demoTypographyDescription": "Definitions for the various typographical styles found in Material Design.", + "@demoTypographyDescription": { + "description": "Description for the typography demo. Material Design should remain capitalized." + }, + "demo2dTransformationsTitle": "2D transformations", + "@demo2dTransformationsTitle": { + "description": "Title for the 2D transformations demo." + }, + "demo2dTransformationsSubtitle": "Pan and zoom", + "@demo2dTransformationsSubtitle": { + "description": "Subtitle for the 2D transformations demo." + }, + "demo2dTransformationsDescription": "Tap to edit tiles, and use gestures to move around the scene. Drag to pan and pinch with two fingers to zoom. Press the reset button to return to the starting orientation.", + "@demo2dTransformationsDescription": { + "description": "Description for the 2D transformations demo." + }, + "demo2dTransformationsResetTooltip": "Reset transformations", + "@demo2dTransformationsResetTooltip": { + "description": "Tooltip for a button to reset the transformations (scale, translation) for the 2D transformations demo." + }, + "demo2dTransformationsEditTooltip": "Edit tile", + "@demo2dTransformationsEditTooltip": { + "description": "Tooltip for a button to edit a tile." + }, + "buttonText": "BUTTON", + "@buttonText": { + "description": "Text for a generic button." + }, + "demoBottomSheetTitle": "Bottom sheet", + "@demoBottomSheetTitle": { + "description": "Title for bottom sheet demo." + }, + "demoBottomSheetSubtitle": "Persistent and modal bottom sheets", + "@demoBottomSheetSubtitle": { + "description": "Description for bottom sheet demo." + }, + "demoBottomSheetPersistentTitle": "Persistent bottom sheet", + "@demoBottomSheetPersistentTitle": { + "description": "Title for persistent bottom sheet demo." + }, + "demoBottomSheetPersistentDescription": "A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.", + "@demoBottomSheetPersistentDescription": { + "description": "Description for persistent bottom sheet demo." + }, + "demoBottomSheetModalTitle": "Modal bottom sheet", + "@demoBottomSheetModalTitle": { + "description": "Title for modal bottom sheet demo." + }, + "demoBottomSheetModalDescription": "A modal bottom sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app.", + "@demoBottomSheetModalDescription": { + "description": "Description for modal bottom sheet demo." + }, + "demoBottomSheetAddLabel": "Add", + "@demoBottomSheetAddLabel": { + "description": "Semantic label for add icon." + }, + "demoBottomSheetButtonText": "SHOW BOTTOM SHEET", + "@demoBottomSheetButtonText": { + "description": "Button text to show bottom sheet." + }, + "demoBottomSheetHeader": "Header", + "@demoBottomSheetHeader": { + "description": "Generic header placeholder." + }, + "demoBottomSheetItem": "Item {value}", + "@demoBottomSheetItem": { + "description": "Generic item placeholder.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoListsTitle": "Lists", + "@demoListsTitle": { + "description": "Title for lists demo." + }, + "demoListsSubtitle": "Scrolling list layouts", + "@demoListsSubtitle": { + "description": "Subtitle for lists demo." + }, + "demoListsDescription": "A single fixed-height row that typically contains some text as well as a leading or trailing icon.", + "@demoListsDescription": { + "description": "Description for lists demo. This describes what a single row in a list consists of." + }, + "demoOneLineListsTitle": "One Line", + "@demoOneLineListsTitle": { + "description": "Title for lists demo with only one line of text per row." + }, + "demoTwoLineListsTitle": "Two Lines", + "@demoTwoLineListsTitle": { + "description": "Title for lists demo with two lines of text per row." + }, + "demoListsSecondary": "Secondary text", + "@demoListsSecondary": { + "description": "Text that appears in the second line of a list item." + }, + "demoProgressIndicatorTitle": "Progress indicators", + "@demoProgressIndicatorTitle": { + "description": "Title for progress indicators demo." + }, + "demoProgressIndicatorSubtitle": "Linear, circular, indeterminate", + "@demoProgressIndicatorSubtitle": { + "description": "Subtitle for progress indicators demo." + }, + "demoCircularProgressIndicatorTitle": "Circular Progress Indicator", + "@demoCircularProgressIndicatorTitle": { + "description": "Title for circular progress indicator demo." + }, + "demoCircularProgressIndicatorDescription": "A Material Design circular progress indicator, which spins to indicate that the application is busy.", + "@demoCircularProgressIndicatorDescription": { + "description": "Description for circular progress indicator demo." + }, + "demoLinearProgressIndicatorTitle": "Linear Progress Indicator", + "@demoLinearProgressIndicatorTitle": { + "description": "Title for linear progress indicator demo." + }, + "demoLinearProgressIndicatorDescription": "A Material Design linear progress indicator, also known as a progress bar.", + "@demoLinearProgressIndicatorDescription": { + "description": "Description for linear progress indicator demo." + }, + "demoPickersTitle": "Pickers", + "@demoPickersTitle": { + "description": "Title for pickers demo." + }, + "demoPickersSubtitle": "Date and time selection", + "@demoPickersSubtitle": { + "description": "Subtitle for pickers demo." + }, + "demoDatePickerTitle": "Date Picker", + "@demoDatePickerTitle": { + "description": "Title for date picker demo." + }, + "demoDatePickerDescription": "Shows a dialog containing a Material Design date picker.", + "@demoDatePickerDescription": { + "description": "Description for date picker demo." + }, + "demoTimePickerTitle": "Time Picker", + "@demoTimePickerTitle": { + "description": "Title for time picker demo." + }, + "demoTimePickerDescription": "Shows a dialog containing a Material Design time picker.", + "@demoTimePickerDescription": { + "description": "Description for time picker demo." + }, + "demoDateRangePickerTitle": "Date Range Picker", + "@demoDateRangePickerTitle": { + "description": "Title for date range picker demo." + }, + "demoDateRangePickerDescription": "Shows a dialog containing a Material Design date range picker.", + "@demoDateRangePickerDescription": { + "description": "Description for date range picker demo." + }, + "demoPickersShowPicker": "SHOW PICKER", + "@demoPickersShowPicker": { + "description": "Button text to show the date or time picker in the demo." + }, + "demoTabsTitle": "Tabs", + "@demoTabsTitle": { + "description": "Title for tabs demo." + }, + "demoTabsScrollingTitle": "Scrolling", + "@demoTabsScrollingTitle": { + "description": "Title for tabs demo with a tab bar that scrolls." + }, + "demoTabsNonScrollingTitle": "Non-scrolling", + "@demoTabsNonScrollingTitle": { + "description": "Title for tabs demo with a tab bar that doesn't scroll." + }, + "demoTabsSubtitle": "Tabs with independently scrollable views", + "@demoTabsSubtitle": { + "description": "Subtitle for tabs demo." + }, + "demoTabsDescription": "Tabs organize content across different screens, data sets, and other interactions.", + "@demoTabsDescription": { + "description": "Description for tabs demo." + }, + "demoSnackbarsTitle": "Snackbars", + "@demoSnackbarsTitle": { + "description": "Title for snackbars demo." + }, + "demoSnackbarsSubtitle": "Snackbars show messages at the bottom of the screen", + "@demoSnackbarsSubtitle": { + "description": "Subtitle for snackbars demo." + }, + "demoSnackbarsDescription": "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear.", + "@demoSnackbarsDescription": { + "description": "Description for snackbars demo." + }, + "demoSnackbarsButtonLabel": "SHOW A SNACKBAR", + "@demoSnackbarsButtonLabel": { + "description": "Label for button to show a snackbar." + }, + "demoSnackbarsText": "This is a snackbar.", + "@demoSnackbarsText": { + "description": "Text to show on a snackbar." + }, + "demoSnackbarsActionButtonLabel": "ACTION", + "@demoSnackbarsActionButtonLabel": { + "description": "Label for action button text on the snackbar." + }, + "demoSnackbarsAction": "You pressed the snackbar action.", + "@demoSnackbarsAction": { + "description": "Text that appears when you press on a snackbars' action." + }, + "demoSelectionControlsTitle": "Selection controls", + "@demoSelectionControlsTitle": { + "description": "Title for selection controls demo." + }, + "demoSelectionControlsSubtitle": "Checkboxes, radio buttons, and switches", + "@demoSelectionControlsSubtitle": { + "description": "Subtitle for selection controls demo." + }, + "demoSelectionControlsCheckboxTitle": "Checkbox", + "@demoSelectionControlsCheckboxTitle": { + "description": "Title for the checkbox (selection controls) demo." + }, + "demoSelectionControlsCheckboxDescription": "Checkboxes allow the user to select multiple options from a set. A normal checkbox's value is true or false and a tristate checkbox's value can also be null.", + "@demoSelectionControlsCheckboxDescription": { + "description": "Description for the checkbox (selection controls) demo." + }, + "demoSelectionControlsRadioTitle": "Radio", + "@demoSelectionControlsRadioTitle": { + "description": "Title for the radio button (selection controls) demo." + }, + "demoSelectionControlsRadioDescription": "Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.", + "@demoSelectionControlsRadioDescription": { + "description": "Description for the radio button (selection controls) demo." + }, + "demoSelectionControlsSwitchTitle": "Switch", + "@demoSelectionControlsSwitchTitle": { + "description": "Title for the switches (selection controls) demo." + }, + "demoSelectionControlsSwitchDescription": "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label.", + "@demoSelectionControlsSwitchDescription": { + "description": "Description for the switches (selection controls) demo." + }, + "demoBottomTextFieldsTitle": "Text fields", + "@demoBottomTextFieldsTitle": { + "description": "Title for text fields demo." + }, + "demoTextFieldTitle": "Text fields", + "@demoTextFieldTitle": { + "description": "Title for text fields demo." + }, + "demoTextFieldSubtitle": "Single line of editable text and numbers", + "@demoTextFieldSubtitle": { + "description": "Description for text fields demo." + }, + "demoTextFieldDescription": "Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.", + "@demoTextFieldDescription": { + "description": "Description for text fields demo." + }, + "demoTextFieldShowPasswordLabel": "Show password", + "@demoTextFieldShowPasswordLabel": { + "description": "Label for show password icon." + }, + "demoTextFieldHidePasswordLabel": "Hide password", + "@demoTextFieldHidePasswordLabel": { + "description": "Label for hide password icon." + }, + "demoTextFieldFormErrors": "Please fix the errors in red before submitting.", + "@demoTextFieldFormErrors": { + "description": "Text that shows up on form errors." + }, + "demoTextFieldNameRequired": "Name is required.", + "@demoTextFieldNameRequired": { + "description": "Shows up as submission error if name is not given in the form." + }, + "demoTextFieldOnlyAlphabeticalChars": "Please enter only alphabetical characters.", + "@demoTextFieldOnlyAlphabeticalChars": { + "description": "Error that shows if non-alphabetical characters are given." + }, + "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - Enter a US phone number.", + "@demoTextFieldEnterUSPhoneNumber": { + "description": "Error that shows up if non-valid non-US phone number is given." + }, + "demoTextFieldEnterPassword": "Please enter a password.", + "@demoTextFieldEnterPassword": { + "description": "Error that shows up if password is not given." + }, + "demoTextFieldPasswordsDoNotMatch": "The passwords don't match", + "@demoTextFieldPasswordsDoNotMatch": { + "description": "Error that shows up, if the re-typed password does not match the already given password." + }, + "demoTextFieldWhatDoPeopleCallYou": "What do people call you?", + "@demoTextFieldWhatDoPeopleCallYou": { + "description": "Placeholder for name field in form." + }, + "demoTextFieldNameField": "Name*", + "@demoTextFieldNameField": { + "description": "The label for a name input field that is required (hence the star)." + }, + "demoTextFieldWhereCanWeReachYou": "Where can we reach you?", + "@demoTextFieldWhereCanWeReachYou": { + "description": "Placeholder for when entering a phone number in a form." + }, + "demoTextFieldPhoneNumber": "Phone number*", + "@demoTextFieldPhoneNumber": { + "description": "The label for a phone number input field that is required (hence the star)." + }, + "demoTextFieldYourEmailAddress": "Your email address", + "@demoTextFieldYourEmailAddress": { + "description": "The label for an email address input field." + }, + "demoTextFieldEmail": "Email", + "@demoTextFieldEmail": { + "description": "The label for an email address input field" + }, + "demoTextFieldTellUsAboutYourself": "Tell us about yourself (e.g., write down what you do or what hobbies you have)", + "@demoTextFieldTellUsAboutYourself": { + "description": "The placeholder text for biography/life story input field." + }, + "demoTextFieldKeepItShort": "Keep it short, this is just a demo.", + "@demoTextFieldKeepItShort": { + "description": "Helper text for biography/life story input field." + }, + "demoTextFieldLifeStory": "Life story", + "@demoTextFieldLifeStory": { + "description": "The label for biography/life story input field." + }, + "demoTextFieldSalary": "Salary", + "@demoTextFieldSalary": { + "description": "The label for salary input field." + }, + "demoTextFieldUSD": "USD", + "@demoTextFieldUSD": { + "description": "US currency, used as suffix in input field for salary." + }, + "demoTextFieldNoMoreThan": "No more than 8 characters.", + "@demoTextFieldNoMoreThan": { + "description": "Helper text for password input field." + }, + "demoTextFieldPassword": "Password*", + "@demoTextFieldPassword": { + "description": "Label for password input field, that is required (hence the star)." + }, + "demoTextFieldRetypePassword": "Re-type password*", + "@demoTextFieldRetypePassword": { + "description": "Label for repeat password input field." + }, + "demoTextFieldSubmit": "SUBMIT", + "@demoTextFieldSubmit": { + "description": "The submit button text for form." + }, + "demoTextFieldNameHasPhoneNumber": "{name} phone number is {phoneNumber}", + "@demoTextFieldNameHasPhoneNumber": { + "description": "Text that shows up when valid phone number and name is submitted in form.", + "placeholders": { + "name": { + "example": "Peter" + }, + "phoneNumber": { + "phoneNumber": "+1 (000) 000-0000" + } + } + }, + "demoTextFieldRequiredField": "* indicates required field", + "@demoTextFieldRequiredField": { + "description": "Helper text to indicate that * means that it is a required field." + }, + "demoTooltipTitle": "Tooltips", + "@demoTooltipTitle": { + "description": "Title for tooltip demo." + }, + "demoTooltipSubtitle": "Short message displayed on long press or hover", + "@demoTooltipSubtitle": { + "description": "Subtitle for tooltip demo." + }, + "demoTooltipDescription": "Tooltips provide text labels that help explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on, or long press an element.", + "@demoTooltipDescription": { + "description": "Description for tooltip demo." + }, + "demoTooltipInstructions": "Long press or hover to display the tooltip.", + "@demoTooltipInstructions": { + "description": "Instructions for how to trigger a tooltip in the tooltip demo." + }, + "bottomNavigationCommentsTab": "Comments", + "@bottomNavigationCommentsTab": { + "description": "Title for Comments tab of bottom navigation." + }, + "bottomNavigationCalendarTab": "Calendar", + "@bottomNavigationCalendarTab": { + "description": "Title for Calendar tab of bottom navigation." + }, + "bottomNavigationAccountTab": "Account", + "@bottomNavigationAccountTab": { + "description": "Title for Account tab of bottom navigation." + }, + "bottomNavigationAlarmTab": "Alarm", + "@bottomNavigationAlarmTab": { + "description": "Title for Alarm tab of bottom navigation." + }, + "bottomNavigationCameraTab": "Camera", + "@bottomNavigationCameraTab": { + "description": "Title for Camera tab of bottom navigation." + }, + "bottomNavigationContentPlaceholder": "Placeholder for {title} tab", + "@bottomNavigationContentPlaceholder": { + "description": "Accessibility label for the content placeholder in the bottom navigation demo", + "placeholders": { + "title": { + "example": "Account" + } + } + }, + "buttonTextCreate": "Create", + "@buttonTextCreate": { + "description": "Tooltip text for a create button." + }, + "dialogSelectedOption": "You selected: \"{value}\"", + "@dialogSelectedOption": { + "description": "Message displayed after an option is selected from a dialog", + "placeholders": { + "value": { + "example": "AGREE" + } + } + }, + "chipTurnOnLights": "Turn on lights", + "@chipTurnOnLights": { + "description": "A chip component to turn on the lights." + }, + "chipSmall": "Small", + "@chipSmall": { + "description": "A chip component to select a small size." + }, + "chipMedium": "Medium", + "@chipMedium": { + "description": "A chip component to select a medium size." + }, + "chipLarge": "Large", + "@chipLarge": { + "description": "A chip component to select a large size." + }, + "chipElevator": "Elevator", + "@chipElevator": { + "description": "A chip component to filter selection by elevators." + }, + "chipWasher": "Washer", + "@chipWasher": { + "description": "A chip component to filter selection by washers." + }, + "chipFireplace": "Fireplace", + "@chipFireplace": { + "description": "A chip component to filter selection by fireplaces." + }, + "chipBiking": "Biking", + "@chipBiking": { + "description": "A chip component to that indicates a biking selection." + }, + "demo": "Demo", + "@demo": { + "description": "Used in the title of the demos." + }, + "bottomAppBar": "Bottom app bar", + "@bottomAppBar": { + "description": "Used as semantic label for a BottomAppBar." + }, + "loading": "Loading", + "@loading": { + "description": "Indicates the loading process." + }, + "dialogDiscardTitle": "Discard draft?", + "@dialogDiscardTitle": { + "description": "Alert dialog message to discard draft." + }, + "dialogLocationTitle": "Use Google's location service?", + "@dialogLocationTitle": { + "description": "Alert dialog title to use location services." + }, + "dialogLocationDescription": "Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.", + "@dialogLocationDescription": { + "description": "Alert dialog description to use location services." + }, + "dialogCancel": "CANCEL", + "@dialogCancel": { + "description": "Alert dialog cancel option." + }, + "dialogDiscard": "DISCARD", + "@dialogDiscard": { + "description": "Alert dialog discard option." + }, + "dialogDisagree": "DISAGREE", + "@dialogDisagree": { + "description": "Alert dialog disagree option." + }, + "dialogAgree": "AGREE", + "@dialogAgree": { + "description": "Alert dialog agree option." + }, + "dialogSetBackup": "Set backup account", + "@dialogSetBackup": { + "description": "Alert dialog title for setting a backup account." + }, + "dialogAddAccount": "Add account", + "@dialogAddAccount": { + "description": "Alert dialog option for adding an account." + }, + "dialogShow": "SHOW DIALOG", + "@dialogShow": { + "description": "Button text to display a dialog." + }, + "dialogFullscreenTitle": "Full Screen Dialog", + "@dialogFullscreenTitle": { + "description": "Title for full screen dialog demo." + }, + "dialogFullscreenSave": "SAVE", + "@dialogFullscreenSave": { + "description": "Save button for full screen dialog demo." + }, + "dialogFullscreenDescription": "A full screen dialog demo", + "@dialogFullscreenDescription": { + "description": "Description for full screen dialog demo." + }, + "cupertinoButton": "Button", + "@cupertinoButton": { + "description": "Button text for a generic iOS-style button." + }, + "cupertinoButtonWithBackground": "With Background", + "@cupertinoButtonWithBackground": { + "description": "Button text for a iOS-style button with a filled background." + }, + "cupertinoAlertCancel": "Cancel", + "@cupertinoAlertCancel": { + "description": "iOS-style alert cancel option." + }, + "cupertinoAlertDiscard": "Discard", + "@cupertinoAlertDiscard": { + "description": "iOS-style alert discard option." + }, + "cupertinoAlertLocationTitle": "Allow \"Maps\" to access your location while you are using the app?", + "@cupertinoAlertLocationTitle": { + "description": "iOS-style alert title for location permission." + }, + "cupertinoAlertLocationDescription": "Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.", + "@cupertinoAlertLocationDescription": { + "description": "iOS-style alert description for location permission." + }, + "cupertinoAlertAllow": "Allow", + "@cupertinoAlertAllow": { + "description": "iOS-style alert allow option." + }, + "cupertinoAlertDontAllow": "Don't Allow", + "@cupertinoAlertDontAllow": { + "description": "iOS-style alert don't allow option." + }, + "cupertinoAlertFavoriteDessert": "Select Favorite Dessert", + "@cupertinoAlertFavoriteDessert": { + "description": "iOS-style alert title for selecting favorite dessert." + }, + "cupertinoAlertDessertDescription": "Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.", + "@cupertinoAlertDessertDescription": { + "description": "iOS-style alert description for selecting favorite dessert." + }, + "cupertinoAlertCheesecake": "Cheesecake", + "@cupertinoAlertCheesecake": { + "description": "iOS-style alert cheesecake option." + }, + "cupertinoAlertTiramisu": "Tiramisu", + "@cupertinoAlertTiramisu": { + "description": "iOS-style alert tiramisu option." + }, + "cupertinoAlertApplePie": "Apple Pie", + "@cupertinoAlertApplePie": { + "description": "iOS-style alert apple pie option." + }, + "cupertinoAlertChocolateBrownie": "Chocolate Brownie", + "@cupertinoAlertChocolateBrownie": { + "description": "iOS-style alert chocolate brownie option." + }, + "cupertinoShowAlert": "Show Alert", + "@cupertinoShowAlert": { + "description": "Button text to show iOS-style alert." + }, + "colorsRed": "RED", + "@colorsRed": { + "description": "Tab title for the color red." + }, + "colorsPink": "PINK", + "@colorsPink": { + "description": "Tab title for the color pink." + }, + "colorsPurple": "PURPLE", + "@colorsPurple": { + "description": "Tab title for the color purple." + }, + "colorsDeepPurple": "DEEP PURPLE", + "@colorsDeepPurple": { + "description": "Tab title for the color deep purple." + }, + "colorsIndigo": "INDIGO", + "@colorsIndigo": { + "description": "Tab title for the color indigo." + }, + "colorsBlue": "BLUE", + "@colorsBlue": { + "description": "Tab title for the color blue." + }, + "colorsLightBlue": "LIGHT BLUE", + "@colorsLightBlue": { + "description": "Tab title for the color light blue." + }, + "colorsCyan": "CYAN", + "@colorsCyan": { + "description": "Tab title for the color cyan." + }, + "colorsTeal": "TEAL", + "@colorsTeal": { + "description": "Tab title for the color teal." + }, + "colorsGreen": "GREEN", + "@colorsGreen": { + "description": "Tab title for the color green." + }, + "colorsLightGreen": "LIGHT GREEN", + "@colorsLightGreen": { + "description": "Tab title for the color light green." + }, + "colorsLime": "LIME", + "@colorsLime": { + "description": "Tab title for the color lime." + }, + "colorsYellow": "YELLOW", + "@colorsYellow": { + "description": "Tab title for the color yellow." + }, + "colorsAmber": "AMBER", + "@colorsAmber": { + "description": "Tab title for the color amber." + }, + "colorsOrange": "ORANGE", + "@colorsOrange": { + "description": "Tab title for the color orange." + }, + "colorsDeepOrange": "DEEP ORANGE", + "@colorsDeepOrange": { + "description": "Tab title for the color deep orange." + }, + "colorsBrown": "BROWN", + "@colorsBrown": { + "description": "Tab title for the color brown." + }, + "colorsGrey": "GREY", + "@colorsGrey": { + "description": "Tab title for the color grey." + }, + "colorsBlueGrey": "BLUE GREY", + "@colorsBlueGrey": { + "description": "Tab title for the color blue grey." + }, + "placeChennai": "Chennai", + "@placeChennai": { + "description": "Title for Chennai location." + }, + "placeTanjore": "Tanjore", + "@placeTanjore": { + "description": "Title for Tanjore location." + }, + "placeChettinad": "Chettinad", + "@placeChettinad": { + "description": "Title for Chettinad location." + }, + "placePondicherry": "Pondicherry", + "@placePondicherry": { + "description": "Title for Pondicherry location." + }, + "placeFlowerMarket": "Flower Market", + "@placeFlowerMarket": { + "description": "Title for Flower Market location." + }, + "placeBronzeWorks": "Bronze Works", + "@placeBronzeWorks": { + "description": "Title for Bronze Works location." + }, + "placeMarket": "Market", + "@placeMarket": { + "description": "Title for Market location." + }, + "placeThanjavurTemple": "Thanjavur Temple", + "@placeThanjavurTemple": { + "description": "Title for Thanjavur Temple location." + }, + "placeSaltFarm": "Salt Farm", + "@placeSaltFarm": { + "description": "Title for Salt Farm location." + }, + "placeScooters": "Scooters", + "@placeScooters": { + "description": "Title for image of people riding on scooters." + }, + "placeSilkMaker": "Silk Maker", + "@placeSilkMaker": { + "description": "Title for an image of a silk maker." + }, + "placeLunchPrep": "Lunch Prep", + "@placeLunchPrep": { + "description": "Title for an image of preparing lunch." + }, + "placeBeach": "Beach", + "@placeBeach": { + "description": "Title for Beach location." + }, + "placeFisherman": "Fisherman", + "@placeFisherman": { + "description": "Title for an image of a fisherman." + }, + "starterAppTitle": "Starter app", + "@starterAppTitle": { + "description": "The title and name for the starter app." + }, + "starterAppDescription": "A responsive starter layout", + "@starterAppDescription": { + "description": "The description for the starter app." + }, + "starterAppGenericButton": "BUTTON", + "@starterAppGenericButton": { + "description": "Generic placeholder for button." + }, + "starterAppTooltipAdd": "Add", + "@starterAppTooltipAdd": { + "description": "Tooltip on add icon." + }, + "starterAppTooltipFavorite": "Favorite", + "@starterAppTooltipFavorite": { + "description": "Tooltip on favorite icon." + }, + "starterAppTooltipShare": "Share", + "@starterAppTooltipShare": { + "description": "Tooltip on share icon." + }, + "starterAppTooltipSearch": "Search", + "@starterAppTooltipSearch": { + "description": "Tooltip on search icon." + }, + "starterAppGenericTitle": "Title", + "@starterAppGenericTitle": { + "description": "Generic placeholder for title in app bar." + }, + "starterAppGenericSubtitle": "Subtitle", + "@starterAppGenericSubtitle": { + "description": "Generic placeholder for subtitle in drawer." + }, + "starterAppGenericHeadline": "Headline", + "@starterAppGenericHeadline": { + "description": "Generic placeholder for headline in drawer." + }, + "starterAppGenericBody": "Body", + "@starterAppGenericBody": { + "description": "Generic placeholder for body text in drawer." + }, + "starterAppDrawerItem": "Item {value}", + "@starterAppDrawerItem": { + "description": "Generic placeholder drawer item.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "shrineMenuCaption": "MENU", + "@shrineMenuCaption": { + "description": "Caption for a menu page." + }, + "shrineCategoryNameAll": "ALL", + "@shrineCategoryNameAll": { + "description": "A tab showing products from all categories." + }, + "shrineCategoryNameAccessories": "ACCESSORIES", + "@shrineCategoryNameAccessories": { + "description": "A category of products consisting of accessories (clothing items)." + }, + "shrineCategoryNameClothing": "CLOTHING", + "@shrineCategoryNameClothing": { + "description": "A category of products consisting of clothing." + }, + "shrineCategoryNameHome": "HOME", + "@shrineCategoryNameHome": { + "description": "A category of products consisting of items used at home." + }, + "shrineLogoutButtonCaption": "LOGOUT", + "@shrineLogoutButtonCaption": { + "description": "Label for a logout button." + }, + "shrineLoginUsernameLabel": "Username", + "@shrineLoginUsernameLabel": { + "description": "On the login screen, a label for a textfield for the user to input their username." + }, + "shrineLoginPasswordLabel": "Password", + "@shrineLoginPasswordLabel": { + "description": "On the login screen, a label for a textfield for the user to input their password." + }, + "shrineCancelButtonCaption": "CANCEL", + "@shrineCancelButtonCaption": { + "description": "On the login screen, the caption for a button to cancel login." + }, + "shrineNextButtonCaption": "NEXT", + "@shrineNextButtonCaption": { + "description": "On the login screen, the caption for a button to proceed login." + }, + "shrineCartPageCaption": "CART", + "@shrineCartPageCaption": { + "description": "Caption for a shopping cart page." + }, + "shrineProductQuantity": "Quantity: {quantity}", + "@shrineProductQuantity": { + "description": "A text showing the number of items for a specific product.", + "placeholders": { + "quantity": { + "example": "3" + } + } + }, + "shrineProductPrice": "x {price}", + "@shrineProductPrice": { + "description": "A text showing the unit price of each product. Used as: 'Quantity: 3 x $129'. The currency will be handled by the formatter.", + "placeholders": { + "price": { + "example": "$129" + } + } + }, + "shrineCartItemCount": "{quantity, plural, =0{NO ITEMS} =1{1 ITEM} other{{quantity} ITEMS}}", + "@shrineCartItemCount": { + "description": "A text showing the total number of items in the cart.", + "placeholders": { + "quantity": { + "example": "3" + } + } + }, + "shrineCartClearButtonCaption": "CLEAR CART", + "@shrineCartClearButtonCaption": { + "description": "Caption for a button used to clear the cart." + }, + "shrineCartTotalCaption": "TOTAL", + "@shrineCartTotalCaption": { + "description": "Label for a text showing total price of the items in the cart." + }, + "shrineCartSubtotalCaption": "Subtotal:", + "@shrineCartSubtotalCaption": { + "description": "Label for a text showing the subtotal price of the items in the cart (excluding shipping and tax)." + }, + "shrineCartShippingCaption": "Shipping:", + "@shrineCartShippingCaption": { + "description": "Label for a text showing the shipping cost for the items in the cart." + }, + "shrineCartTaxCaption": "Tax:", + "@shrineCartTaxCaption": { + "description": "Label for a text showing the tax for the items in the cart." + }, + "shrineProductVagabondSack": "Vagabond sack", + "@shrineProductVagabondSack": { + "description": "Name of the product 'Vagabond sack'." + }, + "shrineProductStellaSunglasses": "Stella sunglasses", + "@shrineProductStellaSunglasses": { + "description": "Name of the product 'Stella sunglasses'." + }, + "shrineProductWhitneyBelt": "Whitney belt", + "@shrineProductWhitneyBelt": { + "description": "Name of the product 'Whitney belt'." + }, + "shrineProductGardenStrand": "Garden strand", + "@shrineProductGardenStrand": { + "description": "Name of the product 'Garden strand'." + }, + "shrineProductStrutEarrings": "Strut earrings", + "@shrineProductStrutEarrings": { + "description": "Name of the product 'Strut earrings'." + }, + "shrineProductVarsitySocks": "Varsity socks", + "@shrineProductVarsitySocks": { + "description": "Name of the product 'Varsity socks'." + }, + "shrineProductWeaveKeyring": "Weave keyring", + "@shrineProductWeaveKeyring": { + "description": "Name of the product 'Weave keyring'." + }, + "shrineProductGatsbyHat": "Gatsby hat", + "@shrineProductGatsbyHat": { + "description": "Name of the product 'Gatsby hat'." + }, + "shrineProductShrugBag": "Shrug bag", + "@shrineProductShrugBag": { + "description": "Name of the product 'Shrug bag'." + }, + "shrineProductGiltDeskTrio": "Gilt desk trio", + "@shrineProductGiltDeskTrio": { + "description": "Name of the product 'Gilt desk trio'." + }, + "shrineProductCopperWireRack": "Copper wire rack", + "@shrineProductCopperWireRack": { + "description": "Name of the product 'Copper wire rack'." + }, + "shrineProductSootheCeramicSet": "Soothe ceramic set", + "@shrineProductSootheCeramicSet": { + "description": "Name of the product 'Soothe ceramic set'." + }, + "shrineProductHurrahsTeaSet": "Hurrahs tea set", + "@shrineProductHurrahsTeaSet": { + "description": "Name of the product 'Hurrahs tea set'." + }, + "shrineProductBlueStoneMug": "Blue stone mug", + "@shrineProductBlueStoneMug": { + "description": "Name of the product 'Blue stone mug'." + }, + "shrineProductRainwaterTray": "Rainwater tray", + "@shrineProductRainwaterTray": { + "description": "Name of the product 'Rainwater tray'." + }, + "shrineProductChambrayNapkins": "Chambray napkins", + "@shrineProductChambrayNapkins": { + "description": "Name of the product 'Chambray napkins'." + }, + "shrineProductSucculentPlanters": "Succulent planters", + "@shrineProductSucculentPlanters": { + "description": "Name of the product 'Succulent planters'." + }, + "shrineProductQuartetTable": "Quartet table", + "@shrineProductQuartetTable": { + "description": "Name of the product 'Quartet table'." + }, + "shrineProductKitchenQuattro": "Kitchen quattro", + "@shrineProductKitchenQuattro": { + "description": "Name of the product 'Kitchen quattro'." + }, + "shrineProductClaySweater": "Clay sweater", + "@shrineProductClaySweater": { + "description": "Name of the product 'Clay sweater'." + }, + "shrineProductSeaTunic": "Sea tunic", + "@shrineProductSeaTunic": { + "description": "Name of the product 'Sea tunic'." + }, + "shrineProductPlasterTunic": "Plaster tunic", + "@shrineProductPlasterTunic": { + "description": "Name of the product 'Plaster tunic'." + }, + "shrineProductWhitePinstripeShirt": "White pinstripe shirt", + "@shrineProductWhitePinstripeShirt": { + "description": "Name of the product 'White pinstripe shirt'." + }, + "shrineProductChambrayShirt": "Chambray shirt", + "@shrineProductChambrayShirt": { + "description": "Name of the product 'Chambray shirt'." + }, + "shrineProductSeabreezeSweater": "Seabreeze sweater", + "@shrineProductSeabreezeSweater": { + "description": "Name of the product 'Seabreeze sweater'." + }, + "shrineProductGentryJacket": "Gentry jacket", + "@shrineProductGentryJacket": { + "description": "Name of the product 'Gentry jacket'." + }, + "shrineProductNavyTrousers": "Navy trousers", + "@shrineProductNavyTrousers": { + "description": "Name of the product 'Navy trousers'." + }, + "shrineProductWalterHenleyWhite": "Walter henley (white)", + "@shrineProductWalterHenleyWhite": { + "description": "Name of the product 'Walter henley (white)'." + }, + "shrineProductSurfAndPerfShirt": "Surf and perf shirt", + "@shrineProductSurfAndPerfShirt": { + "description": "Name of the product 'Surf and perf shirt'." + }, + "shrineProductGingerScarf": "Ginger scarf", + "@shrineProductGingerScarf": { + "description": "Name of the product 'Ginger scarf'." + }, + "shrineProductRamonaCrossover": "Ramona crossover", + "@shrineProductRamonaCrossover": { + "description": "Name of the product 'Ramona crossover'." + }, + "shrineProductChambrayShirt": "Chambray shirt", + "@shrineProductChambrayShirt": { + "description": "Name of the product 'Chambray shirt'." + }, + "shrineProductClassicWhiteCollar": "Classic white collar", + "@shrineProductClassicWhiteCollar": { + "description": "Name of the product 'Classic white collar'." + }, + "shrineProductCeriseScallopTee": "Cerise scallop tee", + "@shrineProductCeriseScallopTee": { + "description": "Name of the product 'Cerise scallop tee'." + }, + "shrineProductShoulderRollsTee": "Shoulder rolls tee", + "@shrineProductShoulderRollsTee": { + "description": "Name of the product 'Shoulder rolls tee'." + }, + "shrineProductGreySlouchTank": "Grey slouch tank", + "@shrineProductGreySlouchTank": { + "description": "Name of the product 'Grey slouch tank'." + }, + "shrineProductSunshirtDress": "Sunshirt dress", + "@shrineProductSunshirtDress": { + "description": "Name of the product 'Sunshirt dress'." + }, + "shrineProductFineLinesTee": "Fine lines tee", + "@shrineProductFineLinesTee": { + "description": "Name of the product 'Fine lines tee'." + }, + "shrineTooltipSearch": "Search", + "@shrineTooltipSearch": { + "description": "The tooltip text for a search button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "shrineTooltipSettings": "Settings", + "@shrineTooltipSettings": { + "description": "The tooltip text for a settings button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "shrineTooltipOpenMenu": "Open menu", + "@shrineTooltipOpenMenu": { + "description": "The tooltip text for a menu button. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "shrineTooltipCloseMenu": "Close menu", + "@shrineTooltipCloseMenu": { + "description": "The tooltip text for a button to close a menu. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "shrineTooltipCloseCart": "Close cart", + "@shrineTooltipCloseCart": { + "description": "The tooltip text for a button to close the shopping cart page. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "shrineScreenReaderCart": "{quantity, plural, =0{Shopping cart, no items} =1{Shopping cart, 1 item} other{Shopping cart, {quantity} items}}", + "@shrineScreenReaderCart": { + "description": "The description of a shopping cart button containing some products. Used by screen readers, such as TalkBack and VoiceOver.", + "placeholders": { + "quantity": { + "example": "3" + } + } + }, + "shrineScreenReaderProductAddToCart": "Add to cart", + "@shrineScreenReaderProductAddToCart": { + "description": "An announcement made by screen readers, such as TalkBack and VoiceOver to indicate the action of a button for adding a product to the cart." + }, + "shrineScreenReaderRemoveProductButton": "Remove {product}", + "@shrineScreenReaderRemoveProductButton": { + "description": "A tooltip for a button to remove a product. This will be read by screen readers, such as TalkBack and VoiceOver when a product is added to the shopping cart.", + "placeholders": { + "product": { + "example": "Ginger scarf" + } + } + }, + "shrineTooltipRemoveItem": "Remove item", + "@shrineTooltipRemoveItem": { + "description": "The tooltip text for a button to remove an item (a product) in a shopping cart. Also used as a semantic label, used by screen readers, such as TalkBack and VoiceOver." + }, + "craneFormDiners": "Diners", + "@craneFormDiners": { + "description": "Form field label to enter the number of diners." + }, + "craneFormDate": "Select Date", + "@craneFormDate": { + "description": "Form field label to select a date." + }, + "craneFormTime": "Select Time", + "@craneFormTime": { + "description": "Form field label to select a time." + }, + "craneFormLocation": "Select Location", + "@craneFormLocation": { + "description": "Form field label to select a location." + }, + "craneFormTravelers": "Travelers", + "@craneFormTravelers": { + "description": "Form field label to select the number of travellers." + }, + "craneFormOrigin": "Choose Origin", + "@craneFormOrigin": { + "description": "Form field label to choose a travel origin." + }, + "craneFormDestination": "Choose Destination", + "@craneFormDestination": { + "description": "Form field label to choose a travel destination." + }, + "craneFormDates": "Select Dates", + "@craneFormDates": { + "description": "Form field label to select multiple dates." + }, + "craneHours": "{hours, plural, =1{1h} other{{hours}h}}", + "@craneHours": { + "description": "Generic text for an amount of hours, abbreviated to the shortest form. For example 1h. {hours} should remain untranslated.", + "placeholders": { + "hours": { + "example": "1" + } + } + }, + "craneMinutes": "{minutes, plural, =1{1m} other{{minutes}m}}", + "@craneMinutes": { + "description": "Generic text for an amount of minutes, abbreviated to the shortest form. For example 15m. {minutes} should remain untranslated.", + "placeholders": { + "minutes": { + "example": "15" + } + } + }, + "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", + "@craneFlightDuration": { + "description": "A pattern to define the layout of a flight duration string. For example in English one might say 1h 15m. Translation should only rearrange the inputs. {hoursShortForm} would for example be replaced by 1h, already translated to the given locale. {minutesShortForm} would for example be replaced by 15m, already translated to the given locale.", + "placeholders": { + "hoursShortForm": { + "example": "1h" + }, + "minutesShortForm": { + "example": "15m" + } + } + }, + "craneFly": "FLY", + "@craneFly": { + "description": "Title for FLY tab." + }, + "craneSleep": "SLEEP", + "@craneSleep": { + "description": "Title for SLEEP tab." + }, + "craneEat": "EAT", + "@craneEat": { + "description": "Title for EAT tab." + }, + "craneFlySubhead": "Explore Flights by Destination", + "@craneFlySubhead": { + "description": "Subhead for FLY tab." + }, + "craneSleepSubhead": "Explore Properties by Destination", + "@craneSleepSubhead": { + "description": "Subhead for SLEEP tab." + }, + "craneEatSubhead": "Explore Restaurants by Destination", + "@craneEatSubhead": { + "description": "Subhead for EAT tab." + }, + "craneFlyStops": "{numberOfStops, plural, =0{Nonstop} =1{1 stop} other{{numberOfStops} stops}}", + "@craneFlyStops": { + "description": "Label indicating if a flight is nonstop or how many layovers it includes.", + "placeholders": { + "numberOfStops": { + "example": "2" + } + } + }, + "craneSleepProperties": "{totalProperties, plural, =0{No Available Properties} =1{1 Available Properties} other{{totalProperties} Available Properties}}", + "@craneSleepProperties": { + "description": "Text indicating the number of available properties (temporary rentals). Always plural.", + "placeholders": { + "totalProperties": { + "example": "100" + } + } + }, + "craneEatRestaurants": "{totalRestaurants, plural, =0{No Restaurants} =1{1 Restaurant} other{{totalRestaurants} Restaurants}}", + "@craneEatRestaurants": { + "description": "Text indicating the number of restaurants. Always plural.", + "placeholders": { + "totalRestaurants": { + "example": "100" + } + } + }, + "craneFly0": "Aspen, United States", + "@craneFly0": { + "description": "Label for city." + }, + "craneFly1": "Big Sur, United States", + "@craneFly1": { + "description": "Label for city." + }, + "craneFly2": "Khumbu Valley, Nepal", + "@craneFly2": { + "description": "Label for city." + }, + "craneFly3": "Machu Picchu, Peru", + "@craneFly3": { + "description": "Label for city." + }, + "craneFly4": "Malé, Maldives", + "@craneFly4": { + "description": "Label for city." + }, + "craneFly5": "Vitznau, Switzerland", + "@craneFly5": { + "description": "Label for city." + }, + "craneFly6": "Mexico City, Mexico", + "@craneFly6": { + "description": "Label for city." + }, + "craneFly7": "Mount Rushmore, United States", + "@craneFly7": { + "description": "Label for city." + }, + "craneFly8": "Singapore", + "@craneFly8": { + "description": "Label for city." + }, + "craneFly9": "Havana, Cuba", + "@craneFly9": { + "description": "Label for city." + }, + "craneFly10": "Cairo, Egypt", + "@craneFly10": { + "description": "Label for city." + }, + "craneFly11": "Lisbon, Portugal", + "@craneFly11": { + "description": "Label for city." + }, + "craneFly12": "Napa, United States", + "@craneFly12": { + "description": "Label for city." + }, + "craneFly13": "Bali, Indonesia", + "@craneFly13": { + "description": "Label for city." + }, + "craneSleep0": "Malé, Maldives", + "@craneSleep0": { + "description": "Label for city." + }, + "craneSleep1": "Aspen, United States", + "@craneSleep1": { + "description": "Label for city." + }, + "craneSleep2": "Machu Picchu, Peru", + "@craneSleep2": { + "description": "Label for city." + }, + "craneSleep3": "Havana, Cuba", + "@craneSleep3": { + "description": "Label for city." + }, + "craneSleep4": "Vitznau, Switzerland", + "@craneSleep4": { + "description": "Label for city." + }, + "craneSleep5": "Big Sur, United States", + "@craneSleep5": { + "description": "Label for city." + }, + "craneSleep6": "Napa, United States", + "@craneSleep6": { + "description": "Label for city." + }, + "craneSleep7": "Porto, Portugal", + "@craneSleep7": { + "description": "Label for city." + }, + "craneSleep8": "Tulum, Mexico", + "@craneSleep8": { + "description": "Label for city." + }, + "craneSleep9": "Lisbon, Portugal", + "@craneSleep9": { + "description": "Label for city." + }, + "craneSleep10": "Cairo, Egypt", + "@craneSleep10": { + "description": "Label for city." + }, + "craneSleep11": "Taipei, Taiwan", + "@craneSleep11": { + "description": "Label for city." + }, + "craneEat0": "Naples, Italy", + "@craneEat0": { + "description": "Label for city." + }, + "craneEat1": "Dallas, United States", + "@craneEat1": { + "description": "Label for city." + }, + "craneEat2": "Córdoba, Argentina", + "@craneEat2": { + "description": "Label for city." + }, + "craneEat3": "Portland, United States", + "@craneEat3": { + "description": "Label for city." + }, + "craneEat4": "Paris, France", + "@craneEat4": { + "description": "Label for city." + }, + "craneEat5": "Seoul, South Korea", + "@craneEat5": { + "description": "Label for city." + }, + "craneEat6": "Seattle, United States", + "@craneEat6": { + "description": "Label for city." + }, + "craneEat7": "Nashville, United States", + "@craneEat7": { + "description": "Label for city." + }, + "craneEat8": "Atlanta, United States", + "@craneEat8": { + "description": "Label for city." + }, + "craneEat9": "Madrid, Spain", + "@craneEat9": { + "description": "Label for city." + }, + "craneEat10": "Lisbon, Portugal", + "@craneEat10": { + "description": "Label for city." + }, + "craneFly0SemanticLabel": "Chalet in a snowy landscape with evergreen trees", + "@craneFly0SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly1SemanticLabel": "Tent in a field", + "@craneFly1SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly2SemanticLabel": "Prayer flags in front of snowy mountain", + "@craneFly2SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly3SemanticLabel": "Machu Picchu citadel", + "@craneFly3SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly4SemanticLabel": "Overwater bungalows", + "@craneFly4SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly5SemanticLabel": "Lake-side hotel in front of mountains", + "@craneFly5SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly6SemanticLabel": "Aerial view of Palacio de Bellas Artes", + "@craneFly6SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly7SemanticLabel": "Mount Rushmore", + "@craneFly7SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly8SemanticLabel": "Supertree Grove", + "@craneFly8SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly9SemanticLabel": "Man leaning on an antique blue car", + "@craneFly9SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly10SemanticLabel": "Al-Azhar Mosque towers during sunset", + "@craneFly10SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly11SemanticLabel": "Brick lighthouse at sea", + "@craneFly11SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly12SemanticLabel": "Pool with palm trees", + "@craneFly12SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneFly13SemanticLabel": "Sea-side pool with palm trees", + "@craneFly13SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep0SemanticLabel": "Overwater bungalows", + "@craneSleep0SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep1SemanticLabel": "Chalet in a snowy landscape with evergreen trees", + "@craneSleep1SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep2SemanticLabel": "Machu Picchu citadel", + "@craneSleep2SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep3SemanticLabel": "Man leaning on an antique blue car", + "@craneSleep3SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep4SemanticLabel": "Lake-side hotel in front of mountains", + "@craneSleep4SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep5SemanticLabel": "Tent in a field", + "@craneSleep5SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep6SemanticLabel": "Pool with palm trees", + "@craneSleep6SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep7SemanticLabel": "Colorful apartments at Riberia Square", + "@craneSleep7SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep8SemanticLabel": "Mayan ruins on a cliff above a beach", + "@craneSleep8SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep9SemanticLabel": "Brick lighthouse at sea", + "@craneSleep9SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep10SemanticLabel": "Al-Azhar Mosque towers during sunset", + "@craneSleep10SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneSleep11SemanticLabel": "Taipei 101 skyscraper", + "@craneSleep11SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat0SemanticLabel": "Pizza in a wood-fired oven", + "@craneEat0SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat1SemanticLabel": "Empty bar with diner-style stools", + "@craneEat1SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat2SemanticLabel": "Burger", + "@craneEat2SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat3SemanticLabel": "Korean taco", + "@craneEat3SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat4SemanticLabel": "Chocolate dessert", + "@craneEat4SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat5SemanticLabel": "Artsy restaurant seating area", + "@craneEat5SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat6SemanticLabel": "Shrimp dish", + "@craneEat6SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat7SemanticLabel": "Bakery entrance", + "@craneEat7SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat8SemanticLabel": "Plate of crawfish", + "@craneEat8SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat9SemanticLabel": "Cafe counter with pastries", + "@craneEat9SemanticLabel": { + "description": "Semantic label for an image." + }, + "craneEat10SemanticLabel": "Woman holding huge pastrami sandwich", + "@craneEat10SemanticLabel": { + "description": "Semantic label for an image." + }, + "fortnightlyMenuFrontPage": "Front Page", + "@fortnightlyMenuFrontPage": { + "description": "Menu item for the front page of the news app." + }, + "fortnightlyMenuWorld": "World", + "@fortnightlyMenuWorld": { + "description": "Menu item for the world news section of the news app." + }, + "fortnightlyMenuUS": "US", + "@fortnightlyMenuUS": { + "description": "Menu item for the United States news section of the news app." + }, + "fortnightlyMenuPolitics": "Politics", + "@fortnightlyMenuPolitics": { + "description": "Menu item for the political news section of the news app." + }, + "fortnightlyMenuBusiness": "Business", + "@fortnightlyMenuBusiness": { + "description": "Menu item for the business news section of the news app." + }, + "fortnightlyMenuTech": "Tech", + "@fortnightlyMenuTech": { + "description": "Menu item for the tech news section of the news app." + }, + "fortnightlyMenuScience": "Science", + "@fortnightlyMenuScience": { + "description": "Menu item for the science news section of the news app." + }, + "fortnightlyMenuSports": "Sports", + "@fortnightlyMenuSports": { + "description": "Menu item for the sports news section of the news app." + }, + "fortnightlyMenuTravel": "Travel", + "@fortnightlyMenuTravel": { + "description": "Menu item for the travel news section of the news app." + }, + "fortnightlyMenuCulture": "Culture", + "@fortnightlyMenuCulture": { + "description": "Menu item for the culture news section of the news app." + }, + "fortnightlyTrendingTechDesign": "TechDesign", + "@fortnightlyTrendingTechDesign": { + "description": "Hashtag for the tech design trending topic of the news app." + }, + "fortnightlyTrendingReform": "Reform", + "@fortnightlyTrendingReform": { + "description": "Hashtag for the reform trending topic of the news app." + }, + "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", + "@fortnightlyTrendingHealthcareRevolution": { + "description": "Hashtag for the healthcare revolution trending topic of the news app." + }, + "fortnightlyTrendingGreenArmy": "GreenArmy", + "@fortnightlyTrendingGreenArmy": { + "description": "Hashtag for the green army trending topic of the news app." + }, + "fortnightlyTrendingStocks": "Stocks", + "@fortnightlyTrendingStocks": { + "description": "Hashtag for the stocks trending topic of the news app." + }, + "fortnightlyLatestUpdates": "Latest Updates", + "@fortnightlyLatestUpdates": { + "description": "Title for news section regarding the latest updates." + }, + "fortnightlyHeadlineHealthcare": "The Quiet, Yet Powerful Healthcare Revolution", + "@fortnightlyHeadlineHealthcare": { + "description": "Headline for a news article about healthcare." + }, + "fortnightlyHeadlineWar": "Divided American Lives During War", + "@fortnightlyHeadlineWar": { + "description": "Headline for a news article about war." + }, + "fortnightlyHeadlineGasoline": "The Future of Gasoline", + "@fortnightlyHeadlineGasoline": { + "description": "Headline for a news article about gasoline." + }, + "fortnightlyHeadlineArmy": "Reforming The Green Army From Within", + "@fortnightlyHeadlineArmy": { + "description": "Headline for a news article about the green army." + }, + "fortnightlyHeadlineStocks": "As Stocks Stagnate, Many Look To Currency", + "@fortnightlyHeadlineStocks": { + "description": "Headline for a news article about stocks." + }, + "fortnightlyHeadlineFabrics": "Designers Use Tech To Make Futuristic Fabrics", + "@fortnightlyHeadlineFabrics": { + "description": "Headline for a news article about fabric." + }, + "fortnightlyHeadlineFeminists": "Feminists Take On Partisanship", + "@fortnightlyHeadlineFeminists": { + "description": "Headline for a news article about feminists and partisanship." + }, + "fortnightlyHeadlineBees": "Farmland Bees In Short Supply", + "@fortnightlyHeadlineBees": { + "description": "Headline for a news article about bees." + }, + "replyInboxLabel": "Inbox", + "@replyInboxLabel": { + "description": "Text label for Inbox destination." + }, + "replyStarredLabel": "Starred", + "@replyStarredLabel": { + "description": "Text label for Starred destination." + }, + "replySentLabel": "Sent", + "@replySentLabel": { + "description": "Text label for Sent destination." + }, + "replyTrashLabel": "Trash", + "@replyTrashLabel": { + "description": "Text label for Trash destination." + }, + "replySpamLabel": "Spam", + "@replySpamLabel": { + "description": "Text label for Spam destination." + }, + "replyDraftsLabel": "Drafts", + "@replyDraftsLabel": { + "description": "Text label for Drafts destination." + }, + "demoTwoPaneFoldableLabel": "Foldable", + "@demoTwoPaneFoldableLabel": { + "description": "Option title for TwoPane demo on foldable devices." + }, + "demoTwoPaneFoldableDescription": "This is how TwoPane behaves on a foldable device.", + "@demoTwoPaneFoldableDescription": { + "description": "Description for the foldable option configuration on the TwoPane demo." + }, + "demoTwoPaneSmallScreenLabel": "Small Screen", + "@demoTwoPaneSmallScreenLabel": { + "description": "Option title for TwoPane demo in small screen mode. Counterpart of the foldable option." + }, + "demoTwoPaneSmallScreenDescription": "This is how TwoPane behaves on a small screen device.", + "@demoTwoPaneSmallScreenDescription": { + "description": "Description for the small screen option configuration on the TwoPane demo." + }, + "demoTwoPaneTabletLabel": "Tablet / Desktop", + "@demoTwoPaneTabletLabel": { + "description": "Option title for TwoPane demo in tablet or desktop mode." + }, + "demoTwoPaneTabletDescription": "This is how TwoPane behaves on a larger screen like a tablet or desktop.", + "@demoTwoPaneTabletDescription": { + "description": "Description for the tablet / desktop option configuration on the TwoPane demo." + }, + "demoTwoPaneTitle": "TwoPane", + "@demoTwoPaneTitle": { + "description": "Title for the TwoPane widget demo." + }, + "demoTwoPaneSubtitle": "Responsive layouts on foldable, large, and small screens", + "@demoTwoPaneSubtitle": { + "description": "Subtitle for the TwoPane widget demo." + }, + "splashSelectDemo": "Select a demo", + "@splashSelectDemo": { + "description": "Tip for user, visible on the right side of the splash screen when Gallery runs on a foldable device." + }, + "demoTwoPaneList": "List", + "@demoTwoPaneList": { + "description": "Title of one of the panes in the TwoPane demo. It sits on top of a list of items." + }, + "demoTwoPaneDetails": "Details", + "@demoTwoPaneDetails": { + "description": "Title of one of the panes in the TwoPane demo, which shows details of the currently selected item." + }, + "demoTwoPaneSelectItem": "Select an item", + "@demoTwoPaneSelectItem": { + "description": "Tip for user, visible on the right side of the TwoPane widget demo in the foldable configuration." + }, + "demoTwoPaneItem": "Item {value}", + "@demoTwoPaneItem": { + "description": "Generic item placeholder visible in the TwoPane widget demo.", + "placeholders": { + "value": { + "example": "1" + } + } + }, + "demoTwoPaneItemDetails": "Item {value} details", + "@demoTwoPaneItemDetails": { + "description": "Generic item description or details visible in the TwoPane widget demo.", + "placeholders": { + "value": { + "example": "1" + } + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en_IS.arb b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en_IS.arb new file mode 100644 index 0000000000000000000000000000000000000000..49d03c35a85ec9006ce9e21e45b4e2471976c9b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/l10n/intl_en_IS.arb @@ -0,0 +1,828 @@ +{ + "loading": "Loading", + "deselect": "Deselect", + "select": "Select", + "selectable": "Selectable (long press)", + "selected": "Selected", + "demo": "Demo", + "bottomAppBar": "Bottom app bar", + "notSelected": "Not selected", + "demoCupertinoSearchTextFieldTitle": "Search text field", + "demoCupertinoPicker": "Picker", + "demoCupertinoSearchTextFieldSubtitle": "iOS-style search text field", + "demoCupertinoSearchTextFieldDescription": "A search text field that lets the user search by entering text and that can offer and filter suggestions.", + "demoCupertinoSearchTextFieldPlaceholder": "Enter some text", + "demoCupertinoScrollbarTitle": "Scrollbar", + "demoCupertinoScrollbarSubtitle": "iOS-style scrollbar", + "demoCupertinoScrollbarDescription": "A scrollbar that wraps the given child", + "demoTwoPaneItem": "Item {value}", + "demoTwoPaneList": "List", + "demoTwoPaneFoldableLabel": "Foldable", + "demoTwoPaneSmallScreenLabel": "Small screen", + "demoTwoPaneSmallScreenDescription": "This is how TwoPane behaves on a small screen device.", + "demoTwoPaneTabletLabel": "Tablet/Desktop", + "demoTwoPaneTabletDescription": "This is how TwoPane behaves on a larger screen like a tablet or desktop.", + "demoTwoPaneTitle": "TwoPane", + "demoTwoPaneSubtitle": "Responsive layouts on foldable, large and small screens", + "splashSelectDemo": "Select a demo", + "demoTwoPaneFoldableDescription": "This is how TwoPane behaves on a foldable device.", + "demoTwoPaneDetails": "Details", + "demoTwoPaneSelectItem": "Select an item", + "demoTwoPaneItemDetails": "Item {value} details", + "demoCupertinoContextMenuActionText": "Tap and hold the Flutter logo to see the context menu.", + "demoCupertinoContextMenuDescription": "An iOS-style full screen contextual menu that appears when an element is long-pressed.", + "demoAppBarTitle": "App bar", + "demoAppBarDescription": "The app bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation and actions", + "demoDividerTitle": "Divider", + "demoDividerSubtitle": "A divider is a thin line that groups content in lists and layouts.", + "demoDividerDescription": "Dividers can be used in lists, drawers and elsewhere to separate content.", + "demoVerticalDividerTitle": "Vertical divider", + "demoCupertinoContextMenuTitle": "Context menu", + "demoCupertinoContextMenuSubtitle": "iOS-style context menu", + "demoAppBarSubtitle": "Displays information and actions relating to the current screen", + "demoCupertinoContextMenuActionOne": "Action one", + "demoCupertinoContextMenuActionTwo": "Action two", + "demoDateRangePickerDescription": "Shows a dialogue containing a Material Design date range picker.", + "demoDateRangePickerTitle": "Date range picker", + "demoNavigationDrawerUserName": "User name", + "demoNavigationDrawerUserEmail": "user.name@example.com", + "demoNavigationDrawerText": "Swipe from the edge or tap the upper-left icon to see the drawer", + "demoNavigationRailTitle": "Navigation rail", + "demoNavigationRailSubtitle": "Displaying a navigation rail within an app", + "demoNavigationRailDescription": "A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.", + "demoNavigationRailFirst": "First", + "demoNavigationDrawerTitle": "Navigation drawer", + "demoNavigationRailThird": "Third", + "replyStarredLabel": "Starred", + "demoTextButtonDescription": "A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogues and inline with padding", + "demoElevatedButtonTitle": "Elevated button", + "demoElevatedButtonDescription": "Elevated buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.", + "demoOutlinedButtonTitle": "Outlined button", + "demoOutlinedButtonDescription": "Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", + "demoContainerTransformDemoInstructions": "Cards, lists and FAB", + "demoNavigationDrawerSubtitle": "Displaying a drawer within app bar", + "replyDescription": "An efficient, focused email app", + "demoNavigationDrawerDescription": "A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.", + "replyDraftsLabel": "Drafts", + "demoNavigationDrawerToPageOne": "Item one", + "replyInboxLabel": "Inbox", + "demoSharedXAxisDemoInstructions": "Next and back buttons", + "replySpamLabel": "Spam", + "replyTrashLabel": "Bin", + "replySentLabel": "Sent", + "demoNavigationRailSecond": "Second", + "demoNavigationDrawerToPageTwo": "Item two", + "demoFadeScaleDemoInstructions": "Modal and FAB", + "demoFadeThroughDemoInstructions": "Bottom navigation", + "demoSharedZAxisDemoInstructions": "Settings icon button", + "demoSharedYAxisDemoInstructions": "Sort by 'Recently played'", + "demoTextButtonTitle": "Text button", + "demoSharedZAxisBeefSandwichRecipeTitle": "Beef sandwich", + "demoSharedZAxisDessertRecipeDescription": "Dessert recipe", + "demoSharedYAxisAlbumTileSubtitle": "Artist", + "demoSharedYAxisAlbumTileTitle": "Album", + "demoSharedYAxisRecentSortTitle": "Recently played", + "demoSharedYAxisAlphabeticalSortTitle": "A–Z", + "demoSharedYAxisAlbumCount": "268 albums", + "demoSharedYAxisTitle": "Shared y-axis", + "demoSharedXAxisCreateAccountButtonText": "CREATE ACCOUNT", + "demoFadeScaleAlertDialogDiscardButton": "DISCARD", + "demoSharedXAxisSignInTextFieldLabel": "Email or phone number", + "demoSharedXAxisSignInSubtitleText": "Sign in with your account", + "demoSharedXAxisSignInWelcomeText": "Hi David Park", + "demoSharedXAxisIndividualCourseSubtitle": "Shown individually", + "demoSharedXAxisBundledCourseSubtitle": "Bundled", + "demoFadeThroughAlbumsDestination": "Albums", + "demoSharedXAxisDesignCourseTitle": "Design", + "demoSharedXAxisIllustrationCourseTitle": "Illustration", + "demoSharedXAxisBusinessCourseTitle": "Business", + "demoSharedXAxisArtsAndCraftsCourseTitle": "Arts and crafts", + "demoMotionPlaceholderSubtitle": "Secondary text", + "demoFadeScaleAlertDialogCancelButton": "CANCEL", + "demoFadeScaleAlertDialogHeader": "Alert dialogue", + "demoFadeScaleHideFabButton": "HIDE FAB", + "demoFadeScaleShowFabButton": "SHOW FAB", + "demoFadeScaleShowAlertDialogButton": "SHOW MODAL", + "demoFadeScaleDescription": "The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialogue that fades in the centre of the screen.", + "demoFadeScaleTitle": "Fade", + "demoFadeThroughTextPlaceholder": "123 photos", + "demoFadeThroughSearchDestination": "Search", + "demoFadeThroughPhotosDestination": "Photos", + "demoSharedXAxisCoursePageSubtitle": "Bundled categories appear as groups in your feed. You can always change this later.", + "demoFadeThroughDescription": "The fade-through pattern is used for transitions between UI elements that do not have a strong relationship to each other.", + "demoFadeThroughTitle": "Fade through", + "demoSharedZAxisHelpSettingLabel": "Help", + "demoMotionSubtitle": "All of the predefined transition patterns", + "demoSharedZAxisNotificationSettingLabel": "Notifications", + "demoSharedZAxisProfileSettingLabel": "Profile", + "demoSharedZAxisSavedRecipesListTitle": "Saved recipes", + "demoSharedZAxisBeefSandwichRecipeDescription": "Beef sandwich recipe", + "demoSharedZAxisCrabPlateRecipeDescription": "Crab plate recipe", + "demoSharedXAxisCoursePageTitle": "Streamline your courses", + "demoSharedZAxisCrabPlateRecipeTitle": "Crab", + "demoSharedZAxisShrimpPlateRecipeDescription": "Shrimp plate recipe", + "demoSharedZAxisShrimpPlateRecipeTitle": "Shrimp", + "demoContainerTransformTypeFadeThrough": "FADE THROUGH", + "demoSharedZAxisDessertRecipeTitle": "Dessert", + "demoSharedZAxisSandwichRecipeDescription": "Sandwich recipe", + "demoSharedZAxisSandwichRecipeTitle": "Sandwich", + "demoSharedZAxisBurgerRecipeDescription": "Burger recipe", + "demoSharedZAxisBurgerRecipeTitle": "Burger", + "demoSharedZAxisSettingsPageTitle": "Settings", + "demoSharedZAxisTitle": "Shared z-axis", + "demoSharedZAxisPrivacySettingLabel": "Privacy", + "demoMotionTitle": "Motion", + "demoContainerTransformTitle": "Container transform", + "demoContainerTransformDescription": "The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements", + "demoContainerTransformModalBottomSheetTitle": "Fade mode", + "demoContainerTransformTypeFade": "FADE", + "demoSharedYAxisAlbumTileDurationUnit": "min", + "demoMotionPlaceholderTitle": "Title", + "demoSharedXAxisForgotEmailButtonText": "FORGOT EMAIL?", + "demoMotionSmallPlaceholderSubtitle": "Secondary", + "demoMotionDetailsPageTitle": "Details page", + "demoMotionListTileTitle": "List item", + "demoSharedAxisDescription": "The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y or z axis to reinforce the relationship between elements.", + "demoSharedXAxisTitle": "Shared x-axis", + "demoSharedXAxisBackButtonText": "BACK", + "demoSharedXAxisNextButtonText": "NEXT", + "demoSharedXAxisCulinaryCourseTitle": "Culinary", + "githubRepo": "{repoName} GitHub repository", + "fortnightlyMenuUS": "US", + "fortnightlyMenuBusiness": "Business", + "fortnightlyMenuScience": "Science", + "fortnightlyMenuSports": "Sport", + "fortnightlyMenuTravel": "Travel", + "fortnightlyMenuCulture": "Culture", + "fortnightlyTrendingTechDesign": "TechDesign", + "rallyBudgetDetailAmountLeft": "Amount left", + "fortnightlyHeadlineArmy": "Reforming The Green Army from Within", + "fortnightlyDescription": "A content-focused news app", + "rallyBillDetailAmountDue": "Amount due", + "rallyBudgetDetailTotalCap": "Total cap", + "rallyBudgetDetailAmountUsed": "Amount used", + "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", + "fortnightlyMenuFrontPage": "Front page", + "fortnightlyMenuWorld": "World", + "rallyBillDetailAmountPaid": "Amount paid", + "fortnightlyMenuPolitics": "Politics", + "fortnightlyHeadlineBees": "Farmland Bees in Short Supply", + "fortnightlyHeadlineGasoline": "The Future of Petrol", + "fortnightlyTrendingGreenArmy": "GreenArmy", + "fortnightlyHeadlineFeminists": "Feminists take on Partisanship", + "fortnightlyHeadlineFabrics": "Designers use Tech to make Futuristic Fabrics", + "fortnightlyHeadlineStocks": "As Stocks Stagnate, many Look to Currency", + "fortnightlyTrendingReform": "Reform", + "fortnightlyMenuTech": "Tech", + "fortnightlyHeadlineWar": "Divided American Lives During War", + "fortnightlyHeadlineHealthcare": "The Quiet, yet Powerful Healthcare Revolution", + "fortnightlyLatestUpdates": "Latest updates", + "fortnightlyTrendingStocks": "Stocks", + "rallyBillDetailTotalAmount": "Total amount", + "demoCupertinoPickerDateTime": "Date and time", + "signIn": "SIGN IN", + "dataTableRowWithSugar": "{value} with sugar", + "dataTableRowApplePie": "Apple pie", + "dataTableRowDonut": "Doughnut", + "dataTableRowHoneycomb": "Honeycomb", + "dataTableRowLollipop": "Lollipop", + "dataTableRowJellyBean": "Jelly bean", + "dataTableRowGingerbread": "Gingerbread", + "dataTableRowCupcake": "Cupcake", + "dataTableRowEclair": "Eclair", + "dataTableRowIceCreamSandwich": "Ice cream sandwich", + "dataTableRowFrozenYogurt": "Frozen yogurt", + "dataTableColumnIron": "Iron (%)", + "dataTableColumnCalcium": "Calcium (%)", + "dataTableColumnSodium": "Sodium (mg)", + "demoTimePickerTitle": "Time picker", + "demo2dTransformationsResetTooltip": "Reset transformations", + "dataTableColumnFat": "Fat (gm)", + "dataTableColumnCalories": "Calories", + "dataTableColumnDessert": "Dessert (1 serving)", + "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", + "demoTimePickerDescription": "Shows a dialogue containing a material design time picker.", + "demoPickersShowPicker": "SHOW PICKER", + "demoTabsScrollingTitle": "Scrolling", + "demoTabsNonScrollingTitle": "Non-scrolling", + "craneHours": "{hours,plural,=1{1 h}other{{hours}h}}", + "craneMinutes": "{minutes,plural,=1{1 m}other{{minutes}m}}", + "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", + "dataTableHeader": "Nutrition", + "demoDatePickerTitle": "Date picker", + "demoPickersSubtitle": "Date and time selection", + "demoPickersTitle": "Pickers", + "demo2dTransformationsEditTooltip": "Edit tile", + "demoDataTableDescription": "Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights.", + "demo2dTransformationsDescription": "Tap to edit tiles, and use gestures to move around the scene. Drag to pan, pinch to zoom, rotate with two fingers. Press the reset button to return to the starting orientation.", + "demo2dTransformationsSubtitle": "Pan, zoom, rotate", + "demo2dTransformationsTitle": "2D transformations", + "demoCupertinoTextFieldPIN": "PIN", + "demoCupertinoTextFieldDescription": "A text field allows the user to enter text, either with a hardware keyboard or with an on-screen keyboard.", + "demoCupertinoTextFieldSubtitle": "iOS-style text fields", + "demoCupertinoTextFieldTitle": "Text fields", + "demoDatePickerDescription": "Shows a dialogue containing a material design date picker.", + "demoCupertinoPickerTime": "Time", + "demoCupertinoPickerDate": "Date", + "demoCupertinoPickerTimer": "Timer", + "demoCupertinoPickerDescription": "An iOS-style picker widget that can be used to select strings, dates, times or both date and time.", + "demoCupertinoPickerSubtitle": "iOS-style pickers", + "demoCupertinoPickerTitle": "Pickers", + "dataTableRowWithHoney": "{value} with honey", + "cardsDemoTravelDestinationCity2": "Chettinad", + "bannerDemoResetText": "Reset the banner", + "bannerDemoMultipleText": "Multiple actions", + "bannerDemoLeadingText": "Leading icon", + "dismiss": "DISMISS", + "cardsDemoTappable": "Tappable", + "cardsDemoSelectable": "Selectable (long press)", + "cardsDemoExplore": "Explore", + "cardsDemoExploreSemantics": "Explore {destinationName}", + "cardsDemoShareSemantics": "Share {destinationName}", + "cardsDemoTravelDestinationTitle1": "Top 10 cities to visit in Tamil Nadu", + "cardsDemoTravelDestinationDescription1": "Number 10", + "cardsDemoTravelDestinationCity1": "Thanjavur", + "dataTableColumnProtein": "Protein (gm)", + "cardsDemoTravelDestinationTitle2": "Artisans of Southern India", + "cardsDemoTravelDestinationDescription2": "Silk spinners", + "bannerDemoText": "Your password was updated on your other device. Please sign in again.", + "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", + "cardsDemoTravelDestinationTitle3": "Brihadisvara Temple", + "cardsDemoTravelDestinationDescription3": "Temples", + "demoBannerTitle": "Banner", + "demoBannerSubtitle": "Displaying a banner within a list", + "demoBannerDescription": "A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.", + "demoCardTitle": "Cards", + "demoCardSubtitle": "Baseline cards with rounded corners", + "demoCardDescription": "A card is a sheet of material used to represent some related information, for example, an album, a geographical location, a meal, contact details, etc.", + "demoDataTableTitle": "Data tables", + "demoDataTableSubtitle": "Rows and columns of information", + "dataTableColumnCarbs": "Carbs (gm)", + "placeTanjore": "Tanjore", + "demoGridListsTitle": "Grid lists", + "placeFlowerMarket": "Flower market", + "placeBronzeWorks": "Bronze works", + "placeMarket": "Market", + "placeThanjavurTemple": "Thanjavur Temple", + "placeSaltFarm": "Salt farm", + "placeScooters": "Scooters", + "placeSilkMaker": "Silk maker", + "placeLunchPrep": "Lunch prep", + "placeBeach": "Beach", + "placeFisherman": "Fisherman", + "demoMenuSelected": "Selected: {value}", + "demoMenuRemove": "Remove", + "demoMenuGetLink": "Get link", + "demoMenuShare": "Share", + "demoBottomAppBarSubtitle": "Displays navigation and actions at the bottom", + "demoMenuAnItemWithASectionedMenu": "An item with a sectioned menu", + "demoMenuADisabledMenuItem": "Disabled menu item", + "demoLinearProgressIndicatorTitle": "Linear progress indicator", + "demoMenuContextMenuItemOne": "Context menu item one", + "demoMenuAnItemWithASimpleMenu": "An item with a simple menu", + "demoCustomSlidersTitle": "Custom sliders", + "demoMenuAnItemWithAChecklistMenu": "An item with a checklist menu", + "demoCupertinoActivityIndicatorTitle": "Activity indicator", + "demoCupertinoActivityIndicatorSubtitle": "iOS-style activity indicators", + "demoCupertinoActivityIndicatorDescription": "An iOS-style activity indicator that spins clockwise.", + "demoCupertinoNavigationBarTitle": "Navigation bar", + "demoCupertinoNavigationBarSubtitle": "iOS-style navigation bar", + "demoCupertinoNavigationBarDescription": "An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.", + "demoCupertinoPullToRefreshTitle": "Pull to refresh", + "demoCupertinoPullToRefreshSubtitle": "iOS-style pull to refresh control", + "demoCupertinoPullToRefreshDescription": "A widget implementing the iOS-style pull to refresh content control.", + "demoProgressIndicatorTitle": "Progress indicators", + "demoProgressIndicatorSubtitle": "Linear, circular, indeterminate", + "demoCircularProgressIndicatorTitle": "Circular progress indicator", + "demoCircularProgressIndicatorDescription": "A material design circular progress indicator, which spins to indicate that the application is busy.", + "demoMenuFour": "Four", + "demoLinearProgressIndicatorDescription": "A material design linear progress indicator, also known as a progress bar.", + "demoTooltipTitle": "Tooltips", + "demoTooltipSubtitle": "Short message displayed on long press or hover", + "demoTooltipDescription": "Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.", + "demoTooltipInstructions": "Long press or hover to display the tooltip.", + "placeChennai": "Chennai", + "demoMenuChecked": "Checked: {value}", + "placeChettinad": "Chettinad", + "demoMenuPreview": "Preview", + "demoBottomAppBarTitle": "Bottom app bar", + "demoBottomAppBarDescription": "Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.", + "bottomAppBarNotch": "Notch", + "bottomAppBarPosition": "Floating action button position", + "bottomAppBarPositionDockedEnd": "Docked - End", + "bottomAppBarPositionDockedCenter": "Docked - Centre", + "bottomAppBarPositionFloatingEnd": "Floating - End", + "bottomAppBarPositionFloatingCenter": "Floating - Centre", + "demoSlidersEditableNumericalValue": "Editable numerical value", + "demoGridListsSubtitle": "Row and column layout", + "demoGridListsDescription": "Grid lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.", + "demoGridListsImageOnlyTitle": "Image only", + "demoGridListsHeaderTitle": "With header", + "demoGridListsFooterTitle": "With footer", + "demoSlidersTitle": "Sliders", + "demoSlidersSubtitle": "Widgets for selecting a value by swiping", + "demoSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness or applying image filters.", + "demoRangeSlidersTitle": "Range sliders", + "demoRangeSlidersDescription": "Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness or applying image filters.", + "demoMenuAnItemWithAContextMenuButton": "An item with a context menu", + "demoCustomSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customised.", + "demoSlidersContinuousWithEditableNumericalValue": "Continuous with editable numerical value", + "demoSlidersDiscrete": "Discrete", + "demoSlidersDiscreteSliderWithCustomTheme": "Discrete slider with custom theme", + "demoSlidersContinuousRangeSliderWithCustomTheme": "Continuous range slider with custom theme", + "demoSlidersContinuous": "Continuous", + "placePondicherry": "Pondicherry", + "demoMenuTitle": "Menu", + "demoContextMenuTitle": "Context menu", + "demoSectionedMenuTitle": "Sectioned menu", + "demoSimpleMenuTitle": "Simple menu", + "demoChecklistMenuTitle": "Checklist menu", + "demoMenuSubtitle": "Menu buttons and simple menus", + "demoMenuDescription": "A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action or other control.", + "demoMenuItemValueOne": "Menu item one", + "demoMenuItemValueTwo": "Menu item two", + "demoMenuItemValueThree": "Menu item three", + "demoMenuOne": "One", + "demoMenuTwo": "Two", + "demoMenuThree": "Three", + "demoMenuContextMenuItemThree": "Context menu item three", + "demoCupertinoSwitchSubtitle": "iOS-style switch", + "demoSnackbarsText": "This is a snackbar.", + "demoCupertinoSliderSubtitle": "iOS-style slider", + "demoCupertinoSliderDescription": "A slider can be used to select from either a continuous or a discrete set of values.", + "demoCupertinoSliderContinuous": "Continuous: {value}", + "demoCupertinoSliderDiscrete": "Discrete: {value}", + "demoSnackbarsAction": "You pressed the snackbar action.", + "backToGallery": "Back to Gallery", + "demoCupertinoTabBarTitle": "Tab bar", + "demoCupertinoSwitchDescription": "A switch is used to toggle the on/off state of a single setting.", + "demoSnackbarsActionButtonLabel": "ACTION", + "cupertinoTabBarProfileTab": "Profile", + "demoSnackbarsButtonLabel": "SHOW A SNACKBAR", + "demoSnackbarsDescription": "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear.", + "demoSnackbarsSubtitle": "Snackbars show messages at the bottom of the screen", + "demoSnackbarsTitle": "Snackbars", + "demoCupertinoSliderTitle": "Slider", + "cupertinoTabBarChatTab": "Chat", + "cupertinoTabBarHomeTab": "Home", + "demoCupertinoTabBarDescription": "An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.", + "demoCupertinoTabBarSubtitle": "iOS-style bottom tab bar", + "demoOptionsFeatureTitle": "View options", + "demoOptionsFeatureDescription": "Tap here to view available options for this demo.", + "demoCodeViewerCopyAll": "COPY ALL", + "shrineScreenReaderRemoveProductButton": "Remove {product}", + "shrineScreenReaderProductAddToCart": "Add to basket", + "shrineScreenReaderCart": "{quantity,plural,=0{Shopping basket, no items}=1{Shopping basket, 1 item}other{Shopping basket, {quantity} items}}", + "demoCodeViewerFailedToCopyToClipboardMessage": "Failed to copy to clipboard: {error}", + "demoCodeViewerCopiedToClipboardMessage": "Copied to clipboard.", + "craneSleep8SemanticLabel": "Mayan ruins on a cliff above a beach", + "craneSleep4SemanticLabel": "Lake-side hotel in front of mountains", + "craneSleep2SemanticLabel": "Machu Picchu citadel", + "craneSleep1SemanticLabel": "Chalet in a snowy landscape with evergreen trees", + "craneSleep0SemanticLabel": "Overwater bungalows", + "craneFly13SemanticLabel": "Seaside pool with palm trees", + "craneFly12SemanticLabel": "Pool with palm trees", + "craneFly11SemanticLabel": "Brick lighthouse at sea", + "craneFly10SemanticLabel": "Al-Azhar Mosque towers during sunset", + "craneFly9SemanticLabel": "Man leaning on an antique blue car", + "craneFly8SemanticLabel": "Supertree Grove", + "craneEat9SemanticLabel": "Café counter with pastries", + "craneEat2SemanticLabel": "Burger", + "craneFly5SemanticLabel": "Lake-side hotel in front of mountains", + "demoSelectionControlsSubtitle": "Tick boxes, radio buttons and switches", + "craneEat10SemanticLabel": "Woman holding huge pastrami sandwich", + "craneFly4SemanticLabel": "Overwater bungalows", + "craneEat7SemanticLabel": "Bakery entrance", + "craneEat6SemanticLabel": "Shrimp dish", + "craneEat5SemanticLabel": "Artsy restaurant seating area", + "craneEat4SemanticLabel": "Chocolate dessert", + "craneEat3SemanticLabel": "Korean taco", + "craneFly3SemanticLabel": "Machu Picchu citadel", + "craneEat1SemanticLabel": "Empty bar with diner-style stools", + "craneEat0SemanticLabel": "Pizza in a wood-fired oven", + "craneSleep11SemanticLabel": "Taipei 101 skyscraper", + "craneSleep10SemanticLabel": "Al-Azhar Mosque towers during sunset", + "craneSleep9SemanticLabel": "Brick lighthouse at sea", + "craneEat8SemanticLabel": "Plate of crawfish", + "craneSleep7SemanticLabel": "Colourful apartments at Ribeira Square", + "craneSleep6SemanticLabel": "Pool with palm trees", + "craneSleep5SemanticLabel": "Tent in a field", + "settingsButtonCloseLabel": "Close settings", + "demoSelectionControlsCheckboxDescription": "Tick boxes allow the user to select multiple options from a set. A normal tick box's value is true or false and a tristate tick box's value can also be null.", + "settingsButtonLabel": "Settings", + "demoListsTitle": "Lists", + "demoListsSubtitle": "Scrolling list layouts", + "demoListsDescription": "A single fixed-height row that typically contains some text as well as a leading or trailing icon.", + "demoOneLineListsTitle": "One line", + "demoTwoLineListsTitle": "Two lines", + "demoListsSecondary": "Secondary text", + "demoSelectionControlsTitle": "Selection controls", + "craneFly7SemanticLabel": "Mount Rushmore", + "demoSelectionControlsCheckboxTitle": "Tick box", + "craneSleep3SemanticLabel": "Man leaning on an antique blue car", + "demoSelectionControlsRadioTitle": "Radio", + "demoSelectionControlsRadioDescription": "Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side by side.", + "demoSelectionControlsSwitchTitle": "Switch", + "demoSelectionControlsSwitchDescription": "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label.", + "craneFly0SemanticLabel": "Chalet in a snowy landscape with evergreen trees", + "craneFly1SemanticLabel": "Tent in a field", + "craneFly2SemanticLabel": "Prayer flags in front of snowy mountain", + "craneFly6SemanticLabel": "Aerial view of Palacio de Bellas Artes", + "rallySeeAllAccounts": "See all accounts", + "rallyBillAmount": "{billName} bill due {date} for {amount}.", + "shrineTooltipCloseCart": "Close basket", + "shrineTooltipCloseMenu": "Close menu", + "shrineTooltipOpenMenu": "Open menu", + "shrineTooltipSettings": "Settings", + "shrineTooltipSearch": "Search", + "demoTabsDescription": "Tabs organise content across different screens, data sets and other interactions.", + "demoTabsSubtitle": "Tabs with independently scrollable views", + "demoTabsTitle": "Tabs", + "rallyBudgetAmount": "{budgetName} budget with {amountUsed} used of {amountTotal}, {amountLeft} left", + "shrineTooltipRemoveItem": "Remove item", + "rallyAccountAmount": "{accountName} account {accountNumber} with {amount}.", + "rallySeeAllBudgets": "See all budgets", + "rallySeeAllBills": "See all bills", + "craneFormDate": "Select date", + "craneFormOrigin": "Choose origin", + "craneFly2": "Khumbu Valley, Nepal", + "craneFly3": "Machu Picchu, Peru", + "craneFly4": "Malé, Maldives", + "craneFly5": "Vitznau, Switzerland", + "craneFly6": "Mexico City, Mexico", + "craneFly7": "Mount Rushmore, United States", + "settingsTextDirectionLocaleBased": "Based on locale", + "craneFly9": "Havana, Cuba", + "craneFly10": "Cairo, Egypt", + "craneFly11": "Lisbon, Portugal", + "craneFly12": "Napa, United States", + "craneFly13": "Bali, Indonesia", + "craneSleep0": "Malé, Maldives", + "craneSleep1": "Aspen, United States", + "craneSleep2": "Machu Picchu, Peru", + "demoCupertinoSegmentedControlTitle": "Segmented control", + "craneSleep4": "Vitznau, Switzerland", + "craneSleep5": "Big Sur, United States", + "craneSleep6": "Napa, United States", + "craneSleep7": "Porto, Portugal", + "craneSleep8": "Tulum, Mexico", + "craneEat5": "Seoul, South Korea", + "demoChipTitle": "Chips", + "demoChipSubtitle": "Compact elements that represent an input, attribute or action", + "demoActionChipTitle": "Action chip", + "demoActionChipDescription": "Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.", + "demoChoiceChipTitle": "Choice chip", + "demoChoiceChipDescription": "Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.", + "demoFilterChipTitle": "Filter chip", + "demoFilterChipDescription": "Filter chips use tags or descriptive words as a way to filter content.", + "demoInputChipTitle": "Input chip", + "demoInputChipDescription": "Input chips represent a complex piece of information, such as an entity (person, place or thing) or conversational text, in a compact form.", + "craneSleep9": "Lisbon, Portugal", + "craneEat10": "Lisbon, Portugal", + "demoCupertinoSegmentedControlDescription": "Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.", + "chipTurnOnLights": "Turn on lights", + "chipSmall": "Small", + "chipMedium": "Medium", + "chipLarge": "Large", + "chipElevator": "Lift", + "chipWasher": "Washing machine", + "chipFireplace": "Fireplace", + "chipBiking": "Cycling", + "craneFormDiners": "Diners", + "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Increase your potential tax deduction! Assign categories to 1 unassigned transaction.}other{Increase your potential tax deduction! Assign categories to {count} unassigned transactions.}}", + "craneFormTime": "Select time", + "craneFormLocation": "Select location", + "craneFormTravelers": "Travellers", + "craneEat8": "Atlanta, United States", + "craneFormDestination": "Choose destination", + "craneFormDates": "Select dates", + "craneFly": "FLY", + "craneSleep": "SLEEP", + "craneEat": "EAT", + "craneFlySubhead": "Explore flights by destination", + "craneSleepSubhead": "Explore properties by destination", + "craneEatSubhead": "Explore restaurants by destination", + "craneFlyStops": "{numberOfStops,plural,=0{Non-stop}=1{1 stop}other{{numberOfStops} stops}}", + "craneSleepProperties": "{totalProperties,plural,=0{No available properties}=1{1 available property}other{{totalProperties} available properties}}", + "craneEatRestaurants": "{totalRestaurants,plural,=0{No restaurants}=1{1 restaurant}other{{totalRestaurants} restaurants}}", + "craneFly0": "Aspen, United States", + "demoCupertinoSegmentedControlSubtitle": "iOS-style segmented control", + "craneSleep10": "Cairo, Egypt", + "craneEat9": "Madrid, Spain", + "craneFly1": "Big Sur, United States", + "craneEat7": "Nashville, United States", + "craneEat6": "Seattle, United States", + "craneFly8": "Singapore", + "craneEat4": "Paris, France", + "craneEat3": "Portland, United States", + "craneEat2": "Córdoba, Argentina", + "craneEat1": "Dallas, United States", + "craneEat0": "Naples, Italy", + "craneSleep11": "Taipei, Taiwan", + "craneSleep3": "Havana, Cuba", + "shrineLogoutButtonCaption": "LOGOUT", + "rallyTitleBills": "BILLS", + "rallyTitleAccounts": "ACCOUNTS", + "shrineProductVagabondSack": "Vagabond sack", + "rallyAccountDetailDataInterestYtd": "Interest YTD", + "shrineProductWhitneyBelt": "Whitney belt", + "shrineProductGardenStrand": "Garden strand", + "shrineProductStrutEarrings": "Strut earrings", + "shrineProductVarsitySocks": "Varsity socks", + "shrineProductWeaveKeyring": "Weave keyring", + "shrineProductGatsbyHat": "Gatsby hat", + "shrineProductShrugBag": "Shrug bag", + "shrineProductGiltDeskTrio": "Gilt desk trio", + "shrineProductCopperWireRack": "Copper wire rack", + "shrineProductSootheCeramicSet": "Soothe ceramic set", + "shrineProductHurrahsTeaSet": "Hurrahs tea set", + "shrineProductBlueStoneMug": "Blue stone mug", + "shrineProductRainwaterTray": "Rainwater tray", + "shrineProductChambrayNapkins": "Chambray napkins", + "shrineProductSucculentPlanters": "Succulent planters", + "shrineProductQuartetTable": "Quartet table", + "shrineProductKitchenQuattro": "Kitchen quattro", + "shrineProductClaySweater": "Clay sweater", + "shrineProductSeaTunic": "Sea tunic", + "shrineProductPlasterTunic": "Plaster tunic", + "rallyBudgetCategoryRestaurants": "Restaurants", + "shrineProductChambrayShirt": "Chambray shirt", + "shrineProductSeabreezeSweater": "Seabreeze sweater", + "shrineProductGentryJacket": "Gentry jacket", + "shrineProductNavyTrousers": "Navy trousers", + "shrineProductWalterHenleyWhite": "Walter henley (white)", + "shrineProductSurfAndPerfShirt": "Surf and perf shirt", + "shrineProductGingerScarf": "Ginger scarf", + "shrineProductRamonaCrossover": "Ramona crossover", + "shrineProductClassicWhiteCollar": "Classic white collar", + "shrineProductSunshirtDress": "Sunshirt dress", + "rallyAccountDetailDataInterestRate": "Interest rate", + "rallyAccountDetailDataAnnualPercentageYield": "Annual percentage yield", + "rallyAccountDataVacation": "Holiday", + "shrineProductFineLinesTee": "Fine lines tee", + "rallyAccountDataHomeSavings": "Home savings", + "rallyAccountDataChecking": "Current", + "rallyAccountDetailDataInterestPaidLastYear": "Interest paid last year", + "rallyAccountDetailDataNextStatement": "Next statement", + "rallyAccountDetailDataAccountOwner": "Account owner", + "rallyBudgetCategoryCoffeeShops": "Coffee shops", + "rallyBudgetCategoryGroceries": "Groceries", + "shrineProductCeriseScallopTee": "Cerise scallop tee", + "rallyBudgetCategoryClothing": "Clothing", + "rallySettingsManageAccounts": "Manage accounts", + "rallyAccountDataCarSavings": "Car savings", + "rallySettingsTaxDocuments": "Tax documents", + "rallySettingsPasscodeAndTouchId": "Passcode and Touch ID", + "rallySettingsNotifications": "Notifications", + "rallySettingsPersonalInformation": "Personal information", + "rallySettingsPaperlessSettings": "Paperless settings", + "rallySettingsFindAtms": "Find ATMs", + "rallySettingsHelp": "Help", + "rallySettingsSignOut": "Sign out", + "rallyAccountTotal": "Total", + "rallyBillsDue": "Due", + "rallyBudgetLeft": "Left", + "rallyAccounts": "Accounts", + "rallyBills": "Bills", + "rallyBudgets": "Budgets", + "rallyAlerts": "Alerts", + "rallySeeAll": "SEE ALL", + "rallyFinanceLeft": "LEFT", + "rallyTitleOverview": "OVERVIEW", + "shrineProductShoulderRollsTee": "Shoulder rolls tee", + "shrineNextButtonCaption": "NEXT", + "rallyTitleBudgets": "BUDGETS", + "rallyTitleSettings": "SETTINGS", + "rallyLoginLoginToRally": "Log in to Rally", + "rallyLoginNoAccount": "Don't have an account?", + "rallyLoginSignUp": "SIGN UP", + "rallyLoginUsername": "Username", + "rallyLoginPassword": "Password", + "rallyLoginLabelLogin": "Log in", + "rallyLoginRememberMe": "Remember me", + "rallyLoginButtonLogin": "LOGIN", + "rallyAlertsMessageHeadsUpShopping": "Heads up: you've used up {percent} of your shopping budget for this month.", + "rallyAlertsMessageSpentOnRestaurants": "You've spent {amount} on restaurants this week.", + "rallyAlertsMessageATMFees": "You've spent {amount} in ATM fees this month", + "rallyAlertsMessageCheckingAccount": "Good work! Your current account is {percent} higher than last month.", + "shrineMenuCaption": "MENU", + "shrineCategoryNameAll": "ALL", + "shrineCategoryNameAccessories": "ACCESSORIES", + "shrineCategoryNameClothing": "CLOTHING", + "shrineCategoryNameHome": "HOME", + "shrineLoginUsernameLabel": "Username", + "shrineLoginPasswordLabel": "Password", + "shrineCancelButtonCaption": "CANCEL", + "shrineCartTaxCaption": "Tax:", + "shrineCartPageCaption": "BASKET", + "shrineProductQuantity": "Quantity: {quantity}", + "shrineProductPrice": "x {price}", + "shrineCartItemCount": "{quantity,plural,=0{NO ITEMS}=1{1 ITEM}other{{quantity} ITEMS}}", + "shrineCartClearButtonCaption": "CLEAR BASKET", + "shrineCartTotalCaption": "TOTAL", + "shrineCartSubtotalCaption": "Subtotal:", + "shrineCartShippingCaption": "Delivery:", + "shrineProductGreySlouchTank": "Grey slouch tank top", + "shrineProductStellaSunglasses": "Stella sunglasses", + "shrineProductWhitePinstripeShirt": "White pinstripe shirt", + "demoTextFieldWhereCanWeReachYou": "Where can we contact you?", + "settingsTextDirectionLTR": "LTR", + "settingsTextScalingLarge": "Large", + "demoBottomSheetHeader": "Header", + "demoBottomSheetItem": "Item {value}", + "demoBottomTextFieldsTitle": "Text fields", + "demoTextFieldTitle": "Text fields", + "demoTextFieldSubtitle": "Single line of editable text and numbers", + "demoTextFieldDescription": "Text fields allow users to enter text into a UI. They typically appear in forms and dialogues.", + "demoTextFieldShowPasswordLabel": "Show password", + "demoTextFieldHidePasswordLabel": "Hide password", + "demoTextFieldFormErrors": "Please fix the errors in red before submitting.", + "demoTextFieldNameRequired": "Name is required.", + "demoTextFieldOnlyAlphabeticalChars": "Please enter only alphabetical characters.", + "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### – Enter a US phone number.", + "demoTextFieldEnterPassword": "Please enter a password.", + "demoTextFieldPasswordsDoNotMatch": "The passwords don't match", + "demoTextFieldWhatDoPeopleCallYou": "What do people call you?", + "demoTextFieldNameField": "Name*", + "demoBottomSheetButtonText": "SHOW BOTTOM SHEET", + "demoTextFieldPhoneNumber": "Phone number*", + "demoBottomSheetTitle": "Bottom sheet", + "demoTextFieldEmail": "Email", + "demoTextFieldTellUsAboutYourself": "Tell us about yourself (e.g. write down what you do or what hobbies you have)", + "demoTextFieldKeepItShort": "Keep it short, this is just a demo.", + "starterAppGenericButton": "BUTTON", + "demoTextFieldLifeStory": "Life story", + "demoTextFieldSalary": "Salary", + "demoTextFieldUSD": "USD", + "demoTextFieldNoMoreThan": "No more than 8 characters.", + "demoTextFieldPassword": "Password*", + "demoTextFieldRetypePassword": "Re-type password*", + "demoTextFieldSubmit": "SUBMIT", + "demoBottomNavigationSubtitle": "Bottom navigation with cross-fading views", + "demoBottomSheetAddLabel": "Add", + "demoBottomSheetModalDescription": "A modal bottom sheet is an alternative to a menu or a dialogue and prevents the user from interacting with the rest of the app.", + "demoBottomSheetModalTitle": "Modal bottom sheet", + "demoBottomSheetPersistentDescription": "A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.", + "demoBottomSheetPersistentTitle": "Persistent bottom sheet", + "demoBottomSheetSubtitle": "Persistent and modal bottom sheets", + "demoTextFieldNameHasPhoneNumber": "{name} phone number is {phoneNumber}", + "buttonText": "BUTTON", + "demoTypographyDescription": "Definitions for the various typographical styles found in Material Design.", + "demoTypographySubtitle": "All of the predefined text styles", + "demoTypographyTitle": "Typography", + "demoFullscreenDialogDescription": "The fullscreenDialog property specifies whether the incoming page is a full-screen modal dialogue", + "demoFlatButtonDescription": "A flat button displays an ink splash on press but does not lift. Use flat buttons on toolbars, in dialogues and inline with padding", + "demoBottomNavigationDescription": "Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.", + "demoBottomNavigationSelectedLabel": "Selected label", + "demoBottomNavigationPersistentLabels": "Persistent labels", + "starterAppDrawerItem": "Item {value}", + "demoTextFieldRequiredField": "* indicates required field", + "demoBottomNavigationTitle": "Bottom navigation", + "settingsLightTheme": "Light", + "settingsTheme": "Theme", + "settingsPlatformIOS": "iOS", + "settingsPlatformAndroid": "Android", + "settingsTextDirectionRTL": "RTL", + "settingsTextScalingHuge": "Huge", + "cupertinoButton": "Button", + "settingsTextScalingNormal": "Normal", + "settingsTextScalingSmall": "Small", + "settingsSystemDefault": "System", + "settingsTitle": "Settings", + "rallyDescription": "A personal finance app", + "aboutDialogDescription": "To see the source code for this app, please visit the {repoLink}.", + "bottomNavigationCommentsTab": "Comments", + "starterAppGenericBody": "Body", + "starterAppGenericHeadline": "Headline", + "starterAppGenericSubtitle": "Subtitle", + "starterAppGenericTitle": "Title", + "starterAppTooltipSearch": "Search", + "starterAppTooltipShare": "Share", + "starterAppTooltipFavorite": "Favourite", + "starterAppTooltipAdd": "Add", + "bottomNavigationCalendarTab": "Calendar", + "starterAppDescription": "A responsive starter layout", + "starterAppTitle": "Starter app", + "aboutFlutterSamplesRepo": "Flutter samples GitHub repo", + "bottomNavigationContentPlaceholder": "Placeholder for {title} tab", + "bottomNavigationCameraTab": "Camera", + "bottomNavigationAlarmTab": "Alarm", + "bottomNavigationAccountTab": "Account", + "demoTextFieldYourEmailAddress": "Your email address", + "demoToggleButtonDescription": "Toggle buttons can be used to group related options. To emphasise groups of related toggle buttons, a group should share a common container", + "colorsGrey": "GREY", + "colorsBrown": "BROWN", + "colorsDeepOrange": "DEEP ORANGE", + "colorsOrange": "ORANGE", + "colorsAmber": "AMBER", + "colorsYellow": "YELLOW", + "colorsLime": "LIME", + "colorsLightGreen": "LIGHT GREEN", + "colorsGreen": "GREEN", + "homeHeaderGallery": "Gallery", + "homeHeaderCategories": "Categories", + "shrineDescription": "A fashionable retail app", + "craneDescription": "A personalised travel app", + "homeCategoryReference": "STYLES AND OTHER", + "demoInvalidURL": "Couldn't display URL:", + "demoOptionsTooltip": "Options", + "demoInfoTooltip": "Info", + "demoCodeTooltip": "Demo code", + "demoDocumentationTooltip": "API Documentation", + "demoFullscreenTooltip": "Full screen", + "settingsTextScaling": "Text scaling", + "settingsTextDirection": "Text direction", + "settingsLocale": "Locale", + "settingsPlatformMechanics": "Platform mechanics", + "settingsDarkTheme": "Dark", + "settingsSlowMotion": "Slow motion", + "settingsAbout": "About Flutter Gallery", + "settingsFeedback": "Send feedback", + "settingsAttribution": "Designed by TOASTER in London", + "demoButtonTitle": "Buttons", + "demoButtonSubtitle": "Text, elevated, outlined and more", + "demoFlatButtonTitle": "Flat Button", + "demoRaisedButtonDescription": "Raised buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.", + "demoRaisedButtonTitle": "Raised Button", + "demoOutlineButtonTitle": "Outline Button", + "demoOutlineButtonDescription": "Outline buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", + "demoToggleButtonTitle": "Toggle Buttons", + "colorsTeal": "TEAL", + "demoFloatingButtonTitle": "Floating Action Button", + "demoFloatingButtonDescription": "A floating action button is a circular icon button that hovers over content to promote a primary action in the application.", + "demoDialogTitle": "Dialogues", + "demoDialogSubtitle": "Simple, alert and full-screen", + "demoAlertDialogTitle": "Alert", + "demoAlertDialogDescription": "An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title and an optional list of actions.", + "demoAlertTitleDialogTitle": "Alert With Title", + "demoSimpleDialogTitle": "Simple", + "demoSimpleDialogDescription": "A simple dialogue offers the user a choice between several options. A simple dialogue has an optional title that is displayed above the choices.", + "demoFullscreenDialogTitle": "Full screen", + "demoCupertinoButtonsTitle": "Buttons", + "demoCupertinoButtonsSubtitle": "iOS-style buttons", + "demoCupertinoButtonsDescription": "An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.", + "demoCupertinoAlertsTitle": "Alerts", + "demoCupertinoAlertsSubtitle": "iOS-style alert dialogues", + "demoCupertinoAlertTitle": "Alert", + "demoCupertinoAlertDescription": "An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title, optional content and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.", + "demoCupertinoAlertWithTitleTitle": "Alert with title", + "demoCupertinoAlertButtonsTitle": "Alert With Buttons", + "demoCupertinoAlertButtonsOnlyTitle": "Alert Buttons Only", + "demoCupertinoActionSheetTitle": "Action Sheet", + "demoCupertinoActionSheetDescription": "An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message and a list of actions.", + "demoColorsTitle": "Colours", + "demoColorsSubtitle": "All of the predefined colours", + "demoColorsDescription": "Colour and colour swatch constants which represent Material Design's colour palette.", + "buttonTextEnabled": "ENABLED", + "buttonTextDisabled": "DISABLED", + "buttonTextCreate": "Create", + "dialogSelectedOption": "You selected: '{value}'", + "dialogDiscardTitle": "Discard draft?", + "dialogLocationTitle": "Use Google's location service?", + "dialogLocationDescription": "Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.", + "dialogCancel": "CANCEL", + "dialogDiscard": "DISCARD", + "dialogDisagree": "DISAGREE", + "dialogAgree": "AGREE", + "dialogSetBackup": "Set backup account", + "colorsBlueGrey": "BLUE GREY", + "dialogShow": "SHOW DIALOGUE", + "dialogFullscreenTitle": "Full-Screen Dialogue", + "dialogFullscreenSave": "SAVE", + "dialogFullscreenDescription": "A full-screen dialogue demo", + "cupertinoButtonEnabled": "Enabled", + "cupertinoButtonDisabled": "Disabled", + "cupertinoButtonWithBackground": "With background", + "cupertinoAlertCancel": "Cancel", + "cupertinoAlertDiscard": "Discard", + "cupertinoAlertLocationTitle": "Allow 'Maps' to access your location while you are using the app?", + "cupertinoAlertLocationDescription": "Your current location will be displayed on the map and used for directions, nearby search results and estimated travel times.", + "cupertinoAlertAllow": "Allow", + "cupertinoAlertDontAllow": "Don't allow", + "cupertinoAlertFavoriteDessert": "Select Favourite Dessert", + "cupertinoAlertDessertDescription": "Please select your favourite type of dessert from the list below. Your selection will be used to customise the suggested list of eateries in your area.", + "cupertinoAlertCheesecake": "Cheesecake", + "cupertinoAlertTiramisu": "Tiramisu", + "cupertinoAlertApplePie": "Apple Pie", + "cupertinoAlertChocolateBrownie": "Chocolate brownie", + "cupertinoShowAlert": "Show alert", + "colorsRed": "RED", + "colorsPink": "PINK", + "colorsPurple": "PURPLE", + "colorsDeepPurple": "DEEP PURPLE", + "colorsIndigo": "INDIGO", + "colorsBlue": "BLUE", + "colorsLightBlue": "LIGHT BLUE", + "colorsCyan": "CYAN", + "dialogAddAccount": "Add account", + "Gallery": "Gallery", + "Categories": "Categories", + "SHRINE": "SHRINE", + "Basic shopping app": "Basic shopping app", + "RALLY": "RALLY", + "CRANE": "CRANE", + "Travel app": "Travel app", + "MATERIAL": "MATERIAL", + "CUPERTINO": "CUPERTINO", + "REFERENCE STYLES & MEDIA": "REFERENCE STYLES & MEDIA" +} \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart new file mode 100644 index 0000000000000000000000000000000000000000..283c018f357e1703d06c74c40a8b20271a46343d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart @@ -0,0 +1,26 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:adaptive_breakpoints/adaptive_breakpoints.dart'; +import 'package:flutter/material.dart'; + +/// The maximum width taken up by each item on the home screen. +const double maxHomeItemWidth = 1400.0; + +/// Returns a boolean value whether the window is considered medium or large size. +/// +/// Widgets using this method might consider the display is +/// large enough for certain layouts, which is not the case on foldable devices, +/// where only part of the display is available to said widgets. +/// +/// Used to build adaptive and responsive layouts. +bool isDisplayDesktop(BuildContext context) => + getWindowType(context) >= AdaptiveWindowType.medium; + +/// Returns boolean value whether the window is considered medium size. +/// +/// Used to build adaptive and responsive layouts. +bool isDisplaySmallDesktop(BuildContext context) { + return getWindowType(context) == AdaptiveWindowType.medium; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart new file mode 100644 index 0000000000000000000000000000000000000000..43773e65c48ef4b8cf9966b147d3fc84cf907b53 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart @@ -0,0 +1,98 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// [HighlightFocus] is a helper widget for giving a child focus +/// allowing tab-navigation. +/// Wrap your widget as [child] of a [HighlightFocus] widget. +class HighlightFocus extends StatefulWidget { + const HighlightFocus({ + super.key, + required this.onPressed, + required this.child, + this.highlightColor, + this.borderColor, + this.hasFocus = true, + this.debugLabel, + }); + + /// [onPressed] is called when you press space, enter, or numpad-enter + /// when the widget is focused. + final VoidCallback onPressed; + + /// [child] is your widget. + final Widget child; + + /// [highlightColor] is the color filled in the border when the widget + /// is focused. + /// Use [Colors.transparent] if you do not want one. + /// Use an opacity less than 1 to make the underlying widget visible. + final Color? highlightColor; + + /// [borderColor] is the color of the border when the widget is focused. + final Color? borderColor; + + /// [hasFocus] is true when focusing on the widget is allowed. + /// Set to false if you want the child to skip focus. + final bool hasFocus; + + final String? debugLabel; + + @override + State createState() => _HighlightFocusState(); +} + +class _HighlightFocusState extends State { + late bool isFocused; + + @override + void initState() { + isFocused = false; + super.initState(); + } + + @override + Widget build(BuildContext context) { + final Color highlightColor = widget.highlightColor ?? + Theme.of(context).colorScheme.primary.withOpacity(0.5); + final Color borderColor = + widget.borderColor ?? Theme.of(context).colorScheme.onPrimary; + + final BoxDecoration highlightedDecoration = BoxDecoration( + color: highlightColor, + border: Border.all( + color: borderColor, + width: 2, + strokeAlign: BorderSide.strokeAlignOutside, + ), + ); + + return Focus( + canRequestFocus: widget.hasFocus, + debugLabel: widget.debugLabel, + onFocusChange: (bool newValue) { + setState(() { + isFocused = newValue; + }); + }, + onKeyEvent: (FocusNode node, KeyEvent event) { + if ((event is KeyDownEvent || event is KeyRepeatEvent) && + (event.logicalKey == LogicalKeyboardKey.space || + event.logicalKey == LogicalKeyboardKey.enter || + event.logicalKey == LogicalKeyboardKey.numpadEnter)) { + widget.onPressed(); + return KeyEventResult.handled; + } else { + return KeyEventResult.ignored; + } + }, + child: Container( + foregroundDecoration: isFocused ? highlightedDecoration : null, + child: widget.child, + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/image_placeholder.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/image_placeholder.dart new file mode 100644 index 0000000000000000000000000000000000000000..aa3461a9e53f07a490a36f2c28ff99e8448adb97 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/image_placeholder.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// An image that shows a [placeholder] widget while the target [image] is +/// loading, then fades in the new image when it loads. +/// +/// This is similar to [FadeInImage] but the difference is that it allows you +/// to specify a widget as a [placeholder], instead of just an [ImageProvider]. +/// It also lets you override the [child] argument, in case you want to wrap +/// the image with another widget, for example an [Ink.image]. +class FadeInImagePlaceholder extends StatelessWidget { + const FadeInImagePlaceholder({ + super.key, + required this.image, + required this.placeholder, + this.child, + this.duration = const Duration(milliseconds: 500), + this.excludeFromSemantics = false, + this.width, + this.height, + this.fit, + }); + + /// The target image that we are loading into memory. + final ImageProvider image; + + /// Widget displayed while the target [image] is loading. + final Widget placeholder; + + /// What widget you want to display instead of [placeholder] after [image] is + /// loaded. + /// + /// Defaults to display the [image]. + final Widget? child; + + /// The duration for how long the fade out of the placeholder and + /// fade in of [child] should take. + final Duration duration; + + /// See [Image.excludeFromSemantics]. + final bool excludeFromSemantics; + + /// See [Image.width]. + final double? width; + + /// See [Image.height]. + final double? height; + + /// See [Image.fit]. + final BoxFit? fit; + + @override + Widget build(BuildContext context) { + return Image( + image: image, + excludeFromSemantics: excludeFromSemantics, + width: width, + height: height, + fit: fit, + frameBuilder: (BuildContext context, Widget child, int? frame, bool wasSynchronouslyLoaded) { + if (wasSynchronouslyLoaded) { + return this.child ?? child; + } else { + return AnimatedSwitcher( + duration: duration, + child: frame != null ? this.child ?? child : placeholder, + ); + } + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c573752f091551fc84f0ed0a07816a118fb7a22 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; + +/// Using letter spacing in Flutter for Web can cause a performance drop, +/// see https://github.com/flutter/flutter/issues/51234. +double letterSpacingOrNone(double letterSpacing) => + kIsWeb ? 0.0 : letterSpacing; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/text_scale.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/text_scale.dart new file mode 100644 index 0000000000000000000000000000000000000000..20183af2ecccd1596e1ee61b3b6e4199a007cbe7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/layout/text_scale.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../data/gallery_options.dart'; + +double _textScaleFactor(BuildContext context) { + return GalleryOptions.of(context).textScaleFactor(context); +} + +// When text is larger, this factor becomes larger, but at half the rate. +// +// | Text scaling | Text scale factor | reducedTextScale(context) | +// |--------------|-------------------|---------------------------| +// | Small | 0.8 | 1.0 | +// | Normal | 1.0 | 1.0 | +// | Large | 2.0 | 1.5 | +// | Huge | 3.0 | 2.0 | + +double reducedTextScale(BuildContext context) { + final double textScaleFactor = _textScaleFactor(context); + return textScaleFactor >= 1 ? (1 + textScaleFactor) / 2 : 1; +} + +// When text is larger, this factor becomes larger at the same rate. +// But when text is smaller, this factor stays at 1. +// +// | Text scaling | Text scale factor | cappedTextScale(context) | +// |--------------|-------------------|---------------------------| +// | Small | 0.8 | 1.0 | +// | Normal | 1.0 | 1.0 | +// | Large | 2.0 | 2.0 | +// | Huge | 3.0 | 3.0 | + +double cappedTextScale(BuildContext context) { + final double textScaleFactor = _textScaleFactor(context); + return max(textScaleFactor, 1); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..315fe00b8fb8f0e6d6bd6beeb28bde0a3e21b355 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/main.dart @@ -0,0 +1,100 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart' show timeDilation; +import 'package:flutter_localized_locales/flutter_localized_locales.dart'; +import 'package:google_fonts/google_fonts.dart'; + +import 'constants.dart'; +import 'data/gallery_options.dart'; +import 'gallery_localizations.dart'; +import 'layout/adaptive.dart'; +import 'pages/backdrop.dart'; +import 'pages/splash.dart'; +import 'routes.dart'; +import 'themes/gallery_theme_data.dart'; + +export 'package:gallery/data/demos.dart' show pumpDeferredLibraries; + +void main() async { + GoogleFonts.config.allowRuntimeFetching = false; + runApp(const GalleryApp()); +} + +class GalleryApp extends StatelessWidget { + const GalleryApp({ + super.key, + this.initialRoute, + this.isTestMode = false, + }); + + final String? initialRoute; + final bool isTestMode; + + @override + Widget build(BuildContext context) { + return ModelBinding( + initialModel: GalleryOptions( + themeMode: ThemeMode.system, + textScaleFactor: systemTextScaleFactorOption, + customTextDirection: CustomTextDirection.localeBased, + locale: null, + timeDilation: timeDilation, + platform: defaultTargetPlatform, + isTestMode: isTestMode, + ), + child: Builder( + builder: (BuildContext context) { + final GalleryOptions options = GalleryOptions.of(context); + return MaterialApp( + restorationScopeId: 'rootGallery', + title: 'Flutter Gallery', + debugShowCheckedModeBanner: false, + themeMode: options.themeMode, + theme: GalleryThemeData.lightThemeData.copyWith( + platform: options.platform, + ), + darkTheme: GalleryThemeData.darkThemeData.copyWith( + platform: options.platform, + ), + localizationsDelegates: const >[ + ...GalleryLocalizations.localizationsDelegates, + LocaleNamesLocalizationsDelegate() + ], + initialRoute: initialRoute, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: options.locale, + localeListResolutionCallback: (List? locales, Iterable supportedLocales) { + deviceLocale = locales?.first; + return basicLocaleListResolution(locales, supportedLocales); + }, + onGenerateRoute: (RouteSettings settings) => + RouteConfiguration.onGenerateRoute(settings), + ); + }, + ), + ); + } +} + +// ignore: unreachable_from_main +class RootPage extends StatelessWidget { + // ignore: unreachable_from_main + const RootPage({ + super.key, + }); + + @override + Widget build(BuildContext context) { + return ApplyTextOptions( + child: SplashPage( + child: Backdrop( + isDesktop: isDisplayDesktop(context), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart new file mode 100644 index 0000000000000000000000000000000000000000..7a7b2ce1199e32c3ef2993bcb86fda727eac1165 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart @@ -0,0 +1,130 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import '../gallery_localizations.dart'; + +void showAboutDialog({ + required BuildContext context, +}) { + showDialog( + context: context, + builder: (BuildContext context) { + return _AboutDialog(); + }, + ); +} + +Future getVersionNumber() async { + return '2.10.2+021002'; +} + +class _AboutDialog extends StatelessWidget { + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final TextTheme textTheme = Theme.of(context).textTheme; + final TextStyle bodyTextStyle = + textTheme.bodyLarge!.apply(color: colorScheme.onPrimary); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + const String name = 'Flutter Gallery'; // Don't need to localize. + const String legalese = '© 2021 The Flutter team'; // Don't need to localize. + final String repoText = localizations.githubRepo(name); + final String seeSource = localizations.aboutDialogDescription(repoText); + final int repoLinkIndex = seeSource.indexOf(repoText); + final int repoLinkIndexEnd = repoLinkIndex + repoText.length; + final String seeSourceFirst = seeSource.substring(0, repoLinkIndex); + final String seeSourceSecond = seeSource.substring(repoLinkIndexEnd); + + return AlertDialog( + backgroundColor: colorScheme.background, + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), + content: Container( + constraints: const BoxConstraints(maxWidth: 400), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + FutureBuilder( + future: getVersionNumber(), + builder: (BuildContext context, AsyncSnapshot snapshot) => SelectableText( + snapshot.hasData ? '$name ${snapshot.data}' : name, + style: textTheme.headlineMedium!.apply( + color: colorScheme.onPrimary, + ), + ), + ), + const SizedBox(height: 24), + SelectableText.rich( + TextSpan( + children: [ + TextSpan( + style: bodyTextStyle, + text: seeSourceFirst, + ), + TextSpan( + style: bodyTextStyle.copyWith( + color: colorScheme.primary, + ), + text: repoText, + recognizer: TapGestureRecognizer() + ..onTap = () async { + final Uri url = + Uri.parse('https://github.com/flutter/gallery/'); + if (await canLaunchUrl(url)) { + await launchUrl(url); + } + }, + ), + TextSpan( + style: bodyTextStyle, + text: seeSourceSecond, + ), + ], + ), + ), + const SizedBox(height: 18), + SelectableText( + legalese, + style: bodyTextStyle, + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: () { + Navigator.of(context).push(MaterialPageRoute( + builder: (BuildContext context) => Theme( + data: Theme.of(context).copyWith( + textTheme: Typography.material2018( + platform: Theme.of(context).platform, + ).black, + cardColor: Colors.white, + ), + child: const LicensePage( + applicationName: name, + applicationLegalese: legalese, + ), + ), + )); + }, + child: Text( + MaterialLocalizations.of(context).viewLicensesButtonLabel, + ), + ), + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: Text(MaterialLocalizations.of(context).closeButtonLabel), + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart new file mode 100644 index 0000000000000000000000000000000000000000..d39c5536f1ecbc283ab6e52a78348d6773a7ab37 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart @@ -0,0 +1,304 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; + +import '../constants.dart'; +import '../data/gallery_options.dart'; +import '../gallery_localizations.dart'; +import '../layout/adaptive.dart'; +import 'home.dart'; +import 'settings.dart'; +import 'settings_icon/icon.dart' as settings_icon; + +const double _settingsButtonWidth = 64; +const double _settingsButtonHeightDesktop = 56; +const double _settingsButtonHeightMobile = 40; + +class Backdrop extends StatefulWidget { + const Backdrop({ + super.key, + required this.isDesktop, + this.settingsPage, + this.homePage, + }); + + final bool isDesktop; + final Widget? settingsPage; + final Widget? homePage; + + @override + State createState() => _BackdropState(); +} + +class _BackdropState extends State with TickerProviderStateMixin { + late AnimationController _settingsPanelController; + late AnimationController _iconController; + late FocusNode _settingsPageFocusNode; + late ValueNotifier _isSettingsOpenNotifier; + late Widget _settingsPage; + late Widget _homePage; + + @override + void initState() { + super.initState(); + _settingsPanelController = AnimationController( + vsync: this, + duration: widget.isDesktop + ? settingsPanelMobileAnimationDuration + : settingsPanelDesktopAnimationDuration); + _iconController = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 500), + ); + _settingsPageFocusNode = FocusNode(); + _isSettingsOpenNotifier = ValueNotifier(false); + _settingsPage = widget.settingsPage ?? + SettingsPage( + animationController: _settingsPanelController, + ); + _homePage = widget.homePage ?? const HomePage(); + } + + @override + void dispose() { + _settingsPanelController.dispose(); + _iconController.dispose(); + _settingsPageFocusNode.dispose(); + _isSettingsOpenNotifier.dispose(); + super.dispose(); + } + + void _toggleSettings() { + // Animate the settings panel to open or close. + if (_isSettingsOpenNotifier.value) { + _settingsPanelController.reverse(); + _iconController.reverse(); + } else { + _settingsPanelController.forward(); + _iconController.forward(); + } + _isSettingsOpenNotifier.value = !_isSettingsOpenNotifier.value; + } + + Animation _slideDownSettingsPageAnimation( + BoxConstraints constraints) { + return RelativeRectTween( + begin: RelativeRect.fromLTRB(0, -constraints.maxHeight, 0, 0), + end: RelativeRect.fill, + ).animate( + CurvedAnimation( + parent: _settingsPanelController, + curve: const Interval( + 0.0, + 0.4, + curve: Curves.ease, + ), + ), + ); + } + + Animation _slideDownHomePageAnimation( + BoxConstraints constraints) { + return RelativeRectTween( + begin: RelativeRect.fill, + end: RelativeRect.fromLTRB( + 0, + constraints.biggest.height - galleryHeaderHeight, + 0, + -galleryHeaderHeight, + ), + ).animate( + CurvedAnimation( + parent: _settingsPanelController, + curve: const Interval( + 0.0, + 0.4, + curve: Curves.ease, + ), + ), + ); + } + + Widget _buildStack(BuildContext context, BoxConstraints constraints) { + final bool isDesktop = isDisplayDesktop(context); + + final Widget settingsPage = ValueListenableBuilder( + valueListenable: _isSettingsOpenNotifier, + builder: (BuildContext context, bool isSettingsOpen, Widget? child) { + return ExcludeSemantics( + excluding: !isSettingsOpen, + child: isSettingsOpen + ? KeyboardListener( + includeSemantics: false, + focusNode: _settingsPageFocusNode, + onKeyEvent: (KeyEvent event) { + if (event.logicalKey == LogicalKeyboardKey.escape) { + _toggleSettings(); + } + }, + child: FocusScope(child: _settingsPage), + ) + : ExcludeFocus(child: _settingsPage), + ); + }, + ); + + final Widget homePage = ValueListenableBuilder( + valueListenable: _isSettingsOpenNotifier, + builder: (BuildContext context, bool isSettingsOpen, Widget? child) { + return ExcludeSemantics( + excluding: isSettingsOpen, + child: FocusTraversalGroup(child: _homePage), + ); + }, + ); + + return AnnotatedRegion( + value: GalleryOptions.of(context).resolvedSystemUiOverlayStyle(), + child: Stack( + children: [ + if (!isDesktop) ...[ + // Slides the settings page up and down from the top of the + // screen. + PositionedTransition( + rect: _slideDownSettingsPageAnimation(constraints), + child: settingsPage, + ), + // Slides the home page up and down below the bottom of the + // screen. + PositionedTransition( + rect: _slideDownHomePageAnimation(constraints), + child: homePage, + ), + ], + if (isDesktop) ...[ + Semantics(sortKey: const OrdinalSortKey(2), child: homePage), + ValueListenableBuilder( + valueListenable: _isSettingsOpenNotifier, + builder: (BuildContext context, bool isSettingsOpen, Widget? child) { + if (isSettingsOpen) { + return ExcludeSemantics( + child: Listener( + onPointerDown: (_) => _toggleSettings(), + child: const ModalBarrier(dismissible: false), + ), + ); + } else { + return Container(); + } + }, + ), + Semantics( + sortKey: const OrdinalSortKey(3), + child: ScaleTransition( + alignment: Directionality.of(context) == TextDirection.ltr + ? Alignment.topRight + : Alignment.topLeft, + scale: CurvedAnimation( + parent: _settingsPanelController, + curve: Curves.fastOutSlowIn, + ), + child: Align( + alignment: AlignmentDirectional.topEnd, + child: Material( + elevation: 7, + clipBehavior: Clip.antiAlias, + borderRadius: BorderRadius.circular(40), + color: Theme.of(context).colorScheme.secondaryContainer, + child: Container( + constraints: const BoxConstraints( + maxHeight: 560, + maxWidth: desktopSettingsWidth, + minWidth: desktopSettingsWidth, + ), + child: settingsPage, + ), + ), + ), + ), + ), + ], + _SettingsIcon( + animationController: _iconController, + toggleSettings: _toggleSettings, + isSettingsOpenNotifier: _isSettingsOpenNotifier, + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return LayoutBuilder( + builder: _buildStack, + ); + } +} + +class _SettingsIcon extends AnimatedWidget { + const _SettingsIcon({ + required this.animationController, + required this.toggleSettings, + required this.isSettingsOpenNotifier, + }) : super(listenable: animationController); + + final AnimationController animationController; + final VoidCallback toggleSettings; + final ValueNotifier isSettingsOpenNotifier; + + String _settingsSemanticLabel(bool isOpen, BuildContext context) { + return isOpen + ? GalleryLocalizations.of(context)!.settingsButtonCloseLabel + : GalleryLocalizations.of(context)!.settingsButtonLabel; + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final double safeAreaTopPadding = MediaQuery.of(context).padding.top; + + return Align( + alignment: AlignmentDirectional.topEnd, + child: Semantics( + sortKey: const OrdinalSortKey(1), + button: true, + enabled: true, + label: _settingsSemanticLabel(isSettingsOpenNotifier.value, context), + child: SizedBox( + width: _settingsButtonWidth, + height: isDesktop + ? _settingsButtonHeightDesktop + : _settingsButtonHeightMobile + safeAreaTopPadding, + child: Material( + borderRadius: const BorderRadiusDirectional.only( + bottomStart: Radius.circular(10), + ), + color: + isSettingsOpenNotifier.value & !animationController.isAnimating + ? Colors.transparent + : Theme.of(context).colorScheme.secondaryContainer, + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: () { + toggleSettings(); + SemanticsService.announce( + _settingsSemanticLabel(isSettingsOpenNotifier.value, context), + GalleryOptions.of(context).resolvedTextDirection()!, + ); + }, + child: Padding( + padding: const EdgeInsetsDirectional.only(start: 3, end: 18), + child: settings_icon.SettingsIcon(animationController.value), + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart new file mode 100644 index 0000000000000000000000000000000000000000..09437fc0010cc662a1adbae209f98a4e19e7f234 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart @@ -0,0 +1,335 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../constants.dart'; +import '../data/demos.dart'; +import '../gallery_localizations.dart'; +import '../layout/adaptive.dart'; +import 'demo.dart'; + +typedef CategoryHeaderTapCallback = void Function(bool shouldOpenList); + +class CategoryListItem extends StatefulWidget { + const CategoryListItem({ + super.key, + this.restorationId, + required this.category, + required this.imageString, + this.demos = const [], + this.initiallyExpanded = false, + this.onTap, + }); + + final GalleryDemoCategory category; + final String? restorationId; + final String imageString; + final List demos; + final bool initiallyExpanded; + final CategoryHeaderTapCallback? onTap; + + @override + State createState() => _CategoryListItemState(); +} + +class _CategoryListItemState extends State + with SingleTickerProviderStateMixin { + static final Animatable _easeInTween = + CurveTween(curve: Curves.easeIn); + static const Duration _expandDuration = Duration(milliseconds: 200); + late AnimationController _controller; + late Animation _childrenHeightFactor; + late Animation _headerChevronOpacity; + late Animation _headerHeight; + late Animation _headerMargin; + late Animation _headerImagePadding; + late Animation _childrenPadding; + late Animation _headerBorderRadius; + + @override + void initState() { + super.initState(); + + _controller = AnimationController(duration: _expandDuration, vsync: this); + _controller.addStatusListener((AnimationStatus status) { + setState(() {}); + }); + + _childrenHeightFactor = _controller.drive(_easeInTween); + _headerChevronOpacity = _controller.drive(_easeInTween); + _headerHeight = Tween( + begin: 80, + end: 96, + ).animate(_controller); + _headerMargin = EdgeInsetsGeometryTween( + begin: const EdgeInsets.fromLTRB(32, 8, 32, 8), + end: EdgeInsets.zero, + ).animate(_controller); + _headerImagePadding = EdgeInsetsGeometryTween( + begin: const EdgeInsets.all(8), + end: const EdgeInsetsDirectional.fromSTEB(16, 8, 8, 8), + ).animate(_controller); + _childrenPadding = EdgeInsetsGeometryTween( + begin: const EdgeInsets.symmetric(horizontal: 32), + end: EdgeInsets.zero, + ).animate(_controller); + _headerBorderRadius = BorderRadiusTween( + begin: BorderRadius.circular(10), + end: BorderRadius.zero, + ).animate(_controller); + + if (widget.initiallyExpanded) { + _controller.value = 1.0; + } + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + void _handleTap() { + if (_controller.isDismissed) { + _controller.forward(); + if (widget.onTap != null) { + widget.onTap!(true); + } + } else { + _controller.reverse(); + if (widget.onTap != null) { + widget.onTap!(false); + } + } + } + + Widget _buildHeaderWithChildren(BuildContext context, Widget? child) { + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + _CategoryHeader( + margin: _headerMargin.value, + imagePadding: _headerImagePadding.value, + borderRadius: _headerBorderRadius.value!, + height: _headerHeight.value, + chevronOpacity: _headerChevronOpacity.value, + imageString: widget.imageString, + category: widget.category, + onTap: _handleTap, + ), + Padding( + padding: _childrenPadding.value, + child: ClipRect( + child: Align( + heightFactor: _childrenHeightFactor.value, + child: child, + ), + ), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + return AnimatedBuilder( + animation: _controller.view, + builder: _buildHeaderWithChildren, + child: _controller.isDismissed + ? null + : _ExpandedCategoryDemos( + category: widget.category, + demos: widget.demos, + ), + ); + } +} + +class _CategoryHeader extends StatelessWidget { + const _CategoryHeader({ + this.margin, + required this.imagePadding, + required this.borderRadius, + this.height, + required this.chevronOpacity, + required this.imageString, + required this.category, + this.onTap, + }); + + final EdgeInsetsGeometry? margin; + final EdgeInsetsGeometry imagePadding; + final double? height; + final BorderRadiusGeometry borderRadius; + final String imageString; + final GalleryDemoCategory category; + final double chevronOpacity; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return Container( + margin: margin, + child: Material( + shape: RoundedRectangleBorder(borderRadius: borderRadius), + color: colorScheme.onBackground, + clipBehavior: Clip.antiAlias, + child: SizedBox( + width: MediaQuery.of(context).size.width, + child: InkWell( + // Makes integration tests possible. + key: ValueKey('${category.name}CategoryHeader'), + onTap: onTap, + child: Row( + children: [ + Expanded( + child: Wrap( + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + Padding( + padding: imagePadding, + child: FadeInImage( + image: AssetImage( + imageString, + package: 'flutter_gallery_assets', + ), + placeholder: MemoryImage(kTransparentImage), + fadeInDuration: entranceAnimationDuration, + width: 64, + height: 64, + excludeFromSemantics: true, + ), + ), + Padding( + padding: const EdgeInsetsDirectional.only(start: 8), + child: Text( + category.displayTitle( + GalleryLocalizations.of(context)!, + )!, + style: + Theme.of(context).textTheme.headlineSmall!.apply( + color: colorScheme.onSurface, + ), + ), + ), + ], + ), + ), + Opacity( + opacity: chevronOpacity, + child: chevronOpacity != 0 + ? Padding( + padding: const EdgeInsetsDirectional.only( + start: 8, + end: 32, + ), + child: Icon( + Icons.keyboard_arrow_up, + color: colorScheme.onSurface, + ), + ) + : null, + ), + ], + ), + ), + ), + ), + ); + } +} + +class _ExpandedCategoryDemos extends StatelessWidget { + const _ExpandedCategoryDemos({ + required this.category, + required this.demos, + }); + + final GalleryDemoCategory category; + final List demos; + + @override + Widget build(BuildContext context) { + return Column( + // Makes integration tests possible. + key: ValueKey('${category.name}DemoList'), + children: [ + for (final GalleryDemo demo in demos) + CategoryDemoItem( + demo: demo, + ), + const SizedBox(height: 12), // Extra space below. + ], + ); + } +} + +class CategoryDemoItem extends StatelessWidget { + const CategoryDemoItem({super.key, required this.demo}); + + final GalleryDemo demo; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return Material( + // Makes integration tests possible. + key: ValueKey(demo.describe), + color: Theme.of(context).colorScheme.surface, + child: MergeSemantics( + child: InkWell( + onTap: () { + Navigator.of(context).restorablePushNamed( + '${DemoPage.baseRoute}/${demo.slug}', + ); + }, + child: Padding( + padding: EdgeInsetsDirectional.only( + start: 32, + top: 20, + end: isDisplayDesktop(context) ? 16 : 8, + ), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon( + demo.icon, + color: colorScheme.primary, + ), + const SizedBox(width: 40), + Flexible( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + demo.title, + style: textTheme.titleMedium! + .apply(color: colorScheme.onSurface), + ), + Text( + demo.subtitle, + style: textTheme.labelSmall!.apply( + color: colorScheme.onSurface.withOpacity(0.5), + ), + ), + const SizedBox(height: 20), + Divider( + thickness: 1, + height: 1, + color: Theme.of(context).colorScheme.background, + ), + ], + ), + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart new file mode 100644 index 0000000000000000000000000000000000000000..937a1cb7beb87c19521b80aa7087a5f67a7a85ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart @@ -0,0 +1,803 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:url_launcher/url_launcher_string.dart'; + +import '../codeviewer/code_displayer.dart'; +import '../codeviewer/code_style.dart'; +import '../constants.dart'; +import '../data/demos.dart'; +import '../data/gallery_options.dart'; +import '../feature_discovery/feature_discovery.dart'; +import '../gallery_localizations.dart'; +import '../layout/adaptive.dart'; +import '../themes/gallery_theme_data.dart'; +import '../themes/material_demo_theme_data.dart'; +import 'splash.dart'; + +enum _DemoState { + normal, + options, + info, + code, + fullscreen, +} + +class DemoPage extends StatefulWidget { + const DemoPage({ + super.key, + required this.slug, + }); + + static const String baseRoute = '/demo'; + final String? slug; + + @override + State createState() => _DemoPageState(); +} + +class _DemoPageState extends State { + late Map slugToDemoMap; + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + // To make sure that we do not rebuild the map for every update to the demo + // page, we save it in a variable. The cost of running `slugToDemo` is + // still only close to constant, as it's just iterating over all of the + // demos. + slugToDemoMap = Demos.asSlugToDemoMap(context); + } + + @override + Widget build(BuildContext context) { + if (widget.slug == null || !slugToDemoMap.containsKey(widget.slug)) { + // Return to root if invalid slug. + Navigator.of(context).pop(); + } + return ScaffoldMessenger( + child: GalleryDemoPage( + restorationId: widget.slug!, + demo: slugToDemoMap[widget.slug]!, + )); + } +} + +class GalleryDemoPage extends StatefulWidget { + const GalleryDemoPage({ + super.key, + required this.restorationId, + required this.demo, + }); + + final String restorationId; + final GalleryDemo demo; + + @override + State createState() => _GalleryDemoPageState(); +} + +class _GalleryDemoPageState extends State + with RestorationMixin, TickerProviderStateMixin { + final RestorableInt _demoStateIndex = RestorableInt(_DemoState.normal.index); + final RestorableInt _configIndex = RestorableInt(0); + + bool? _isDesktop; + + late AnimationController _codeBackgroundColorController; + + @override + String get restorationId => widget.restorationId; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_demoStateIndex, 'demo_state'); + registerForRestoration(_configIndex, 'configuration_index'); + } + + GalleryDemoConfiguration get _currentConfig { + return widget.demo.configurations[_configIndex.value]; + } + + bool get _hasOptions => widget.demo.configurations.length > 1; + + @override + void initState() { + super.initState(); + _codeBackgroundColorController = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 300), + ); + } + + @override + void dispose() { + _demoStateIndex.dispose(); + _configIndex.dispose(); + _codeBackgroundColorController.dispose(); + super.dispose(); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _isDesktop ??= isDisplayDesktop(context); + } + + /// Sets state and updates the background color for code. + void setStateAndUpdate(VoidCallback callback) { + setState(() { + callback(); + if (_demoStateIndex.value == _DemoState.code.index) { + _codeBackgroundColorController.forward(); + } else { + _codeBackgroundColorController.reverse(); + } + }); + } + + void _handleTap(_DemoState newState) { + final int newStateIndex = newState.index; + + // Do not allow normal state for desktop. + if (_demoStateIndex.value == newStateIndex && isDisplayDesktop(context)) { + if (_demoStateIndex.value == _DemoState.fullscreen.index) { + setStateAndUpdate(() { + _demoStateIndex.value = + _hasOptions ? _DemoState.options.index : _DemoState.info.index; + }); + } + return; + } + + setStateAndUpdate(() { + _demoStateIndex.value = _demoStateIndex.value == newStateIndex + ? _DemoState.normal.index + : newStateIndex; + }); + } + + Future _showDocumentation(BuildContext context) async { + final String url = _currentConfig.documentationUrl; + + if (await canLaunchUrlString(url)) { + await launchUrlString(url); + } else if (context.mounted) { + await showDialog( + context: context, + builder: (BuildContext context) { + return SimpleDialog( + title: Text(GalleryLocalizations.of(context)!.demoInvalidURL), + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Text(url), + ), + ], + ); + }, + ); + } + } + + void _resolveState(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + if (_DemoState.values[_demoStateIndex.value] == _DemoState.fullscreen && + !isDesktop) { + // Do not allow fullscreen state for mobile. + _demoStateIndex.value = _DemoState.normal.index; + } else if (_DemoState.values[_demoStateIndex.value] == _DemoState.normal && + isDesktop) { + // Do not allow normal state for desktop. + _demoStateIndex.value = + _hasOptions ? _DemoState.options.index : _DemoState.info.index; + } else if (isDesktop != _isDesktop) { + _isDesktop = isDesktop; + // When going from desktop to mobile, return to normal state. + if (!isDesktop) { + _demoStateIndex.value = _DemoState.normal.index; + } + } + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + _resolveState(context); + + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color iconColor = colorScheme.onSurface; + final Color selectedIconColor = colorScheme.primary; + final double appBarPadding = isDesktop ? 20.0 : 0.0; + final _DemoState currentDemoState = _DemoState.values[_demoStateIndex.value]; + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final GalleryOptions options = GalleryOptions.of(context); + + final AppBar appBar = AppBar( + systemOverlayStyle: options.resolvedSystemUiOverlayStyle(), + backgroundColor: Colors.transparent, + leading: Padding( + padding: EdgeInsetsDirectional.only(start: appBarPadding), + child: IconButton( + key: const ValueKey('Back'), + icon: const BackButtonIcon(), + tooltip: MaterialLocalizations.of(context).backButtonTooltip, + onPressed: () { + Navigator.maybePop(context); + }, + ), + ), + actions: [ + if (_hasOptions) + IconButton( + icon: FeatureDiscovery( + title: localizations.demoOptionsFeatureTitle, + description: localizations.demoOptionsFeatureDescription, + showOverlay: !isDisplayDesktop(context) && !options.isTestMode, + color: colorScheme.primary, + onTap: () => _handleTap(_DemoState.options), + child: Icon( + Icons.tune, + color: currentDemoState == _DemoState.options + ? selectedIconColor + : iconColor, + ), + ), + tooltip: localizations.demoOptionsTooltip, + onPressed: () => _handleTap(_DemoState.options), + ), + IconButton( + icon: const Icon(Icons.info), + tooltip: localizations.demoInfoTooltip, + color: currentDemoState == _DemoState.info + ? selectedIconColor + : iconColor, + onPressed: () => _handleTap(_DemoState.info), + ), + IconButton( + icon: const Icon(Icons.code), + tooltip: localizations.demoCodeTooltip, + color: currentDemoState == _DemoState.code + ? selectedIconColor + : iconColor, + onPressed: () => _handleTap(_DemoState.code), + ), + IconButton( + icon: const Icon(Icons.library_books), + tooltip: localizations.demoDocumentationTooltip, + color: iconColor, + onPressed: () => _showDocumentation(context), + ), + if (isDesktop) + IconButton( + icon: const Icon(Icons.fullscreen), + tooltip: localizations.demoFullscreenTooltip, + color: currentDemoState == _DemoState.fullscreen + ? selectedIconColor + : iconColor, + onPressed: () => _handleTap(_DemoState.fullscreen), + ), + SizedBox(width: appBarPadding), + ], + ); + + final MediaQueryData mediaQuery = MediaQuery.of(context); + final double bottomSafeArea = mediaQuery.padding.bottom; + final double contentHeight = mediaQuery.size.height - + mediaQuery.padding.top - + mediaQuery.padding.bottom - + appBar.preferredSize.height; + final double maxSectionHeight = isDesktop ? contentHeight : contentHeight - 64; + final double horizontalPadding = isDesktop ? mediaQuery.size.width * 0.12 : 0.0; + const double maxSectionWidth = 420.0; + + Widget section; + switch (currentDemoState) { + case _DemoState.options: + section = _DemoSectionOptions( + maxHeight: maxSectionHeight, + maxWidth: maxSectionWidth, + configurations: widget.demo.configurations, + configIndex: _configIndex.value, + onConfigChanged: (int index) { + setStateAndUpdate(() { + _configIndex.value = index; + if (!isDesktop) { + _demoStateIndex.value = _DemoState.normal.index; + } + }); + }, + ); + case _DemoState.info: + section = _DemoSectionInfo( + maxHeight: maxSectionHeight, + maxWidth: maxSectionWidth, + title: _currentConfig.title, + description: _currentConfig.description, + ); + case _DemoState.code: + final TextStyle codeTheme = GoogleFonts.robotoMono( + fontSize: 12 * options.textScaleFactor(context), + ); + section = CodeStyle( + baseStyle: codeTheme.copyWith(color: const Color(0xFFFAFBFB)), + numberStyle: codeTheme.copyWith(color: const Color(0xFFBD93F9)), + commentStyle: codeTheme.copyWith(color: const Color(0xFF808080)), + keywordStyle: codeTheme.copyWith(color: const Color(0xFF1CDEC9)), + stringStyle: codeTheme.copyWith(color: const Color(0xFFFFA65C)), + punctuationStyle: codeTheme.copyWith(color: const Color(0xFF8BE9FD)), + classStyle: codeTheme.copyWith(color: const Color(0xFFD65BAD)), + constantStyle: codeTheme.copyWith(color: const Color(0xFFFF8383)), + child: _DemoSectionCode( + maxHeight: maxSectionHeight, + codeWidget: CodeDisplayPage( + _currentConfig.code, + ), + ), + ); + case _DemoState.normal: + case _DemoState.fullscreen: + section = Container(); + } + + Widget body; + Widget demoContent = ScaffoldMessenger( + child: DemoWrapper( + height: contentHeight, + buildRoute: _currentConfig.buildRoute, + ), + ); + if (isDesktop) { + final bool isFullScreen = currentDemoState == _DemoState.fullscreen; + final Widget sectionAndDemo = Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (!isFullScreen) Expanded(child: section), + SizedBox(width: !isFullScreen ? 48.0 : 0), + Expanded(child: demoContent), + ], + ); + + body = SafeArea( + child: Padding( + padding: const EdgeInsets.only(top: 56), + child: sectionAndDemo, + ), + ); + } else { + section = AnimatedSize( + duration: const Duration(milliseconds: 200), + alignment: Alignment.topCenter, + curve: Curves.easeIn, + child: section, + ); + + final bool isDemoNormal = currentDemoState == _DemoState.normal; + // Add a tap gesture to collapse the currently opened section. + demoContent = Semantics( + label: + '${GalleryLocalizations.of(context)!.demo}, ${widget.demo.title}', + child: MouseRegion( + cursor: isDemoNormal ? MouseCursor.defer : SystemMouseCursors.click, + child: GestureDetector( + onTap: isDemoNormal + ? null + : () { + setStateAndUpdate(() { + _demoStateIndex.value = _DemoState.normal.index; + }); + }, + child: Semantics( + excludeSemantics: !isDemoNormal, + child: demoContent, + ), + ), + ), + ); + + body = SafeArea( + bottom: false, + child: ListView( + // Use a non-scrollable ListView to enable animation of shifting the + // demo offscreen. + physics: const NeverScrollableScrollPhysics(), + children: [ + section, + demoContent, + // Fake the safe area to ensure the animation looks correct. + SizedBox(height: bottomSafeArea), + ], + ), + ); + } + + Widget page; + + if (isDesktop) { + page = AnimatedBuilder( + animation: _codeBackgroundColorController, + builder: (BuildContext context, Widget? child) { + final Brightness themeBrightness = switch (GalleryOptions.of(context).themeMode) { + ThemeMode.system => MediaQuery.of(context).platformBrightness, + ThemeMode.light => Brightness.light, + ThemeMode.dark => Brightness.dark, + }; + + Widget contents = Container( + padding: EdgeInsets.symmetric(horizontal: horizontalPadding), + child: ApplyTextOptions( + child: Scaffold( + appBar: appBar, + body: body, + backgroundColor: Colors.transparent, + ), + ), + ); + + if (themeBrightness == Brightness.light) { + // If it is currently in light mode, add a + // dark background for code. + final Widget codeBackground = SafeArea( + child: Container( + padding: const EdgeInsets.only(top: 56), + child: Container( + color: ColorTween( + begin: Colors.transparent, + end: GalleryThemeData.darkThemeData.canvasColor, + ).animate(_codeBackgroundColorController).value, + ), + ), + ); + + contents = Stack( + children: [ + codeBackground, + contents, + ], + ); + } + + return ColoredBox( + color: colorScheme.background, + child: contents, + ); + }); + } else { + page = ColoredBox( + color: colorScheme.background, + child: ApplyTextOptions( + child: Scaffold( + appBar: appBar, + body: body, + resizeToAvoidBottomInset: false, + ), + ), + ); + } + + // Add the splash page functionality for desktop. + if (isDesktop) { + page = MediaQuery.removePadding( + removeTop: true, + context: context, + child: SplashPage( + child: page, + ), + ); + } + + return FeatureDiscoveryController(page); + } +} + +class _DemoSectionOptions extends StatelessWidget { + const _DemoSectionOptions({ + required this.maxHeight, + required this.maxWidth, + required this.configurations, + required this.configIndex, + required this.onConfigChanged, + }); + + final double maxHeight; + final double maxWidth; + final List configurations; + final int configIndex; + final ValueChanged onConfigChanged; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return Align( + alignment: AlignmentDirectional.topStart, + child: Container( + constraints: BoxConstraints(maxHeight: maxHeight, maxWidth: maxWidth), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Padding( + padding: const EdgeInsetsDirectional.only( + start: 24, + top: 12, + end: 24, + ), + child: Text( + GalleryLocalizations.of(context)!.demoOptionsTooltip, + style: textTheme.headlineMedium!.apply( + color: colorScheme.onSurface, + fontSizeDelta: + isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + ), + ), + ), + Divider( + thickness: 1, + height: 16, + color: colorScheme.onSurface, + ), + Flexible( + child: ListView( + shrinkWrap: true, + children: [ + for (final GalleryDemoConfiguration configuration in configurations) + _DemoSectionOptionsItem( + title: configuration.title, + isSelected: configuration == configurations[configIndex], + onTap: () { + onConfigChanged(configurations.indexOf(configuration)); + }, + ), + ], + ), + ), + const SizedBox(height: 12), + ], + ), + ), + ); + } +} + +class _DemoSectionOptionsItem extends StatelessWidget { + const _DemoSectionOptionsItem({ + required this.title, + required this.isSelected, + this.onTap, + }); + + final String title; + final bool isSelected; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return Material( + color: isSelected ? colorScheme.surface : null, + child: InkWell( + onTap: onTap, + child: Container( + constraints: const BoxConstraints(minWidth: double.infinity), + padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 8), + child: Text( + title, + style: Theme.of(context).textTheme.bodyMedium!.apply( + color: + isSelected ? colorScheme.primary : colorScheme.onSurface, + ), + ), + ), + ), + ); + } +} + +class _DemoSectionInfo extends StatelessWidget { + const _DemoSectionInfo({ + required this.maxHeight, + required this.maxWidth, + required this.title, + required this.description, + }); + + final double maxHeight; + final double maxWidth; + final String title; + final String description; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return Align( + alignment: AlignmentDirectional.topStart, + child: Container( + padding: const EdgeInsetsDirectional.only( + start: 24, + top: 12, + end: 24, + bottom: 32, + ), + constraints: BoxConstraints(maxHeight: maxHeight, maxWidth: maxWidth), + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + SelectableText( + title, + style: textTheme.headlineMedium!.apply( + color: colorScheme.onSurface, + fontSizeDelta: + isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + ), + ), + const SizedBox(height: 12), + SelectableText( + description, + style: textTheme.bodyMedium!.apply( + color: colorScheme.onSurface, + ), + ), + ], + ), + ), + ), + ); + } +} + +class DemoWrapper extends StatelessWidget { + const DemoWrapper({ + super.key, + required this.height, + required this.buildRoute, + }); + + final double height; + final WidgetBuilder buildRoute; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16), + height: height, + child: ClipRRect( + clipBehavior: Clip.antiAliasWithSaveLayer, + borderRadius: const BorderRadius.vertical( + top: Radius.circular(10.0), + bottom: Radius.circular(2.0), + ), + child: Theme( + data: MaterialDemoThemeData.themeData.copyWith( + platform: GalleryOptions.of(context).platform, + ), + child: CupertinoTheme( + data: const CupertinoThemeData() + .copyWith(brightness: Brightness.light), + child: ApplyTextOptions( + child: Builder(builder: buildRoute), + ), + ), + ), + ), + ); + } +} + +class _DemoSectionCode extends StatelessWidget { + const _DemoSectionCode({ + this.maxHeight, + this.codeWidget, + }); + + final double? maxHeight; + final Widget? codeWidget; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return Theme( + data: GalleryThemeData.darkThemeData, + child: Padding( + padding: const EdgeInsets.only(bottom: 16), + child: Container( + color: isDesktop ? null : GalleryThemeData.darkThemeData.canvasColor, + padding: const EdgeInsets.symmetric(horizontal: 16), + height: maxHeight, + child: codeWidget, + ), + ), + ); + } +} + +class CodeDisplayPage extends StatelessWidget { + const CodeDisplayPage(this.code, {super.key}); + + final CodeDisplayer code; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + final TextSpan richTextCode = code(context); + final String plainTextCode = richTextCode.toPlainText(); + + void showSnackBarOnCopySuccess(dynamic result) { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text( + GalleryLocalizations.of(context)! + .demoCodeViewerCopiedToClipboardMessage, + ), + ), + ); + } + + void showSnackBarOnCopyFailure(Object exception) { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text( + GalleryLocalizations.of(context)! + .demoCodeViewerFailedToCopyToClipboardMessage(exception), + ), + ), + ); + } + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: isDesktop + ? const EdgeInsets.only(bottom: 8) + : const EdgeInsets.symmetric(vertical: 8), + child: ElevatedButton( + style: ElevatedButton.styleFrom( + backgroundColor: Colors.white.withOpacity(0.15), + padding: const EdgeInsets.symmetric(horizontal: 8), + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(4)), + ), + ), + onPressed: () async { + await Clipboard.setData(ClipboardData(text: plainTextCode)) + .then(showSnackBarOnCopySuccess) + .catchError(showSnackBarOnCopyFailure); + }, + child: Text( + GalleryLocalizations.of(context)!.demoCodeViewerCopyAll, + style: Theme.of(context).textTheme.labelLarge!.copyWith( + color: Colors.white, + fontWeight: FontWeight.w500, + ), + ), + ), + ), + Expanded( + child: SingleChildScrollView( + child: Container( + padding: const EdgeInsets.symmetric(vertical: 8), + child: SelectableText.rich( + richTextCode, + textDirection: TextDirection.ltr, + ), + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..cf77e9e0e5c32d6aa09719e5a19424aa09ae5451 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart @@ -0,0 +1,1211 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import '../constants.dart'; +import '../data/demos.dart'; +import '../data/gallery_options.dart'; +import '../gallery_localizations.dart'; +import '../layout/adaptive.dart'; +import '../studies/crane/colors.dart'; +import '../studies/crane/routes.dart' as crane_routes; +import '../studies/fortnightly/routes.dart' as fortnightly_routes; +import '../studies/rally/colors.dart'; +import '../studies/rally/routes.dart' as rally_routes; +import '../studies/reply/routes.dart' as reply_routes; +import '../studies/shrine/colors.dart'; +import '../studies/shrine/routes.dart' as shrine_routes; +import '../studies/starter/routes.dart' as starter_app_routes; +import 'category_list_item.dart'; +import 'settings.dart'; +import 'splash.dart'; + +const double _horizontalPadding = 32.0; +const double _horizontalDesktopPadding = 81.0; +const double _carouselHeightMin = 240.0; +const double _carouselItemDesktopMargin = 8.0; +const double _carouselItemMobileMargin = 4.0; +const double _carouselItemWidth = 296.0; + +class ToggleSplashNotification extends Notification {} + +class HomePage extends StatelessWidget { + const HomePage({super.key}); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final Map studyDemos = Demos.studies(localizations); + final List carouselCards = [ + _CarouselCard( + demo: studyDemos['reply'], + asset: const AssetImage( + 'assets/studies/reply_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: const Color(0xFF344955), + assetDark: const AssetImage( + 'assets/studies/reply_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF1D2327), + textColor: Colors.white, + studyRoute: reply_routes.homeRoute, + ), + _CarouselCard( + demo: studyDemos['shrine'], + asset: const AssetImage( + 'assets/studies/shrine_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: const Color(0xFFFEDBD0), + assetDark: const AssetImage( + 'assets/studies/shrine_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF543B3C), + textColor: shrineBrown900, + studyRoute: shrine_routes.loginRoute, + ), + _CarouselCard( + demo: studyDemos['rally'], + textColor: RallyColors.accountColors[0], + asset: const AssetImage( + 'assets/studies/rally_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: const Color(0xFFD1F2E6), + assetDark: const AssetImage( + 'assets/studies/rally_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF253538), + studyRoute: rally_routes.loginRoute, + ), + _CarouselCard( + demo: studyDemos['crane'], + asset: const AssetImage( + 'assets/studies/crane_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: const Color(0xFFFBF6F8), + assetDark: const AssetImage( + 'assets/studies/crane_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF591946), + textColor: cranePurple700, + studyRoute: crane_routes.defaultRoute, + ), + _CarouselCard( + demo: studyDemos['fortnightly'], + asset: const AssetImage( + 'assets/studies/fortnightly_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: Colors.white, + assetDark: const AssetImage( + 'assets/studies/fortnightly_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF1F1F1F), + studyRoute: fortnightly_routes.defaultRoute, + ), + _CarouselCard( + demo: studyDemos['starterApp'], + asset: const AssetImage( + 'assets/studies/starter_card.png', + package: 'flutter_gallery_assets', + ), + assetColor: const Color(0xFFFAF6FE), + assetDark: const AssetImage( + 'assets/studies/starter_card_dark.png', + package: 'flutter_gallery_assets', + ), + assetDarkColor: const Color(0xFF3F3D45), + textColor: Colors.black, + studyRoute: starter_app_routes.defaultRoute, + ), + ]; + + if (isDesktop) { + // Desktop layout + final List<_DesktopCategoryItem> desktopCategoryItems = <_DesktopCategoryItem>[ + _DesktopCategoryItem( + category: GalleryDemoCategory.material, + asset: const AssetImage( + 'assets/icons/material/material.png', + package: 'flutter_gallery_assets', + ), + demos: Demos.materialDemos(localizations), + ), + _DesktopCategoryItem( + category: GalleryDemoCategory.cupertino, + asset: const AssetImage( + 'assets/icons/cupertino/cupertino.png', + package: 'flutter_gallery_assets', + ), + demos: Demos.cupertinoDemos(localizations), + ), + _DesktopCategoryItem( + category: GalleryDemoCategory.other, + asset: const AssetImage( + 'assets/icons/reference/reference.png', + package: 'flutter_gallery_assets', + ), + demos: Demos.otherDemos(localizations), + ), + ]; + + return Scaffold( + body: ListView( + // Makes integration tests possible. + key: const ValueKey('HomeListView'), + primary: true, + padding: const EdgeInsetsDirectional.only( + top: firstHeaderDesktopTopPadding, + ), + children: [ + _DesktopHomeItem(child: _GalleryHeader()), + _DesktopCarousel( + height: _carouselHeight(0.7, context), + children: carouselCards, + ), + _DesktopHomeItem(child: _CategoriesHeader()), + SizedBox( + height: 585, + child: _DesktopHomeItem( + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: spaceBetween(28, desktopCategoryItems), + ), + ), + ), + const SizedBox(height: 81), + _DesktopHomeItem( + child: Row( + children: [ + MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () async { + final Uri url = Uri.parse('https://flutter.dev'); + if (await canLaunchUrl(url)) { + await launchUrl(url); + } + }, + excludeFromSemantics: true, + child: FadeInImage( + image: Theme.of(context).colorScheme.brightness == + Brightness.dark + ? const AssetImage( + 'assets/logo/flutter_logo.png', + package: 'flutter_gallery_assets', + ) + : const AssetImage( + 'assets/logo/flutter_logo_color.png', + package: 'flutter_gallery_assets', + ), + placeholder: MemoryImage(kTransparentImage), + fadeInDuration: entranceAnimationDuration, + ), + ), + ), + const Expanded( + child: Wrap( + crossAxisAlignment: WrapCrossAlignment.center, + alignment: WrapAlignment.end, + children: [ + SettingsAbout(), + SettingsFeedback(), + SettingsAttribution(), + ], + ), + ), + ], + ), + ), + const SizedBox(height: 109), + ], + ), + ); + } else { + // Mobile layout + return Scaffold( + body: _AnimatedHomePage( + restorationId: 'animated_page', + isSplashPageAnimationFinished: + SplashPageAnimation.of(context)!.isFinished, + carouselCards: carouselCards, + ), + ); + } + } + + List spaceBetween(double paddingBetween, List children) { + return [ + for (int index = 0; index < children.length; index++) ...[ + Flexible( + child: children[index], + ), + if (index < children.length - 1) SizedBox(width: paddingBetween), + ], + ]; + } +} + +class _GalleryHeader extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Header( + color: Theme.of(context).colorScheme.primaryContainer, + text: GalleryLocalizations.of(context)!.homeHeaderGallery, + ); + } +} + +class _CategoriesHeader extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Header( + color: Theme.of(context).colorScheme.primary, + text: GalleryLocalizations.of(context)!.homeHeaderCategories, + ); + } +} + +class Header extends StatelessWidget { + const Header({super.key, required this.color, required this.text}); + + final Color color; + final String text; + + @override + Widget build(BuildContext context) { + return Align( + alignment: AlignmentDirectional.centerStart, + child: Padding( + padding: EdgeInsets.only( + top: isDisplayDesktop(context) ? 63 : 15, + bottom: isDisplayDesktop(context) ? 21 : 11, + ), + child: SelectableText( + text, + style: Theme.of(context).textTheme.headlineMedium!.apply( + color: color, + fontSizeDelta: + isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + ), + ), + ), + ); + } +} + +class _AnimatedHomePage extends StatefulWidget { + const _AnimatedHomePage({ + required this.restorationId, + required this.carouselCards, + required this.isSplashPageAnimationFinished, + }); + + final String restorationId; + final List carouselCards; + final bool isSplashPageAnimationFinished; + + @override + _AnimatedHomePageState createState() => _AnimatedHomePageState(); +} + +class _AnimatedHomePageState extends State<_AnimatedHomePage> + with RestorationMixin, SingleTickerProviderStateMixin { + late AnimationController _animationController; + Timer? _launchTimer; + final RestorableBool _isMaterialListExpanded = RestorableBool(false); + final RestorableBool _isCupertinoListExpanded = RestorableBool(false); + final RestorableBool _isOtherListExpanded = RestorableBool(false); + + @override + String get restorationId => widget.restorationId; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_isMaterialListExpanded, 'material_list'); + registerForRestoration(_isCupertinoListExpanded, 'cupertino_list'); + registerForRestoration(_isOtherListExpanded, 'other_list'); + } + + @override + void initState() { + super.initState(); + _animationController = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 800), + ); + + if (widget.isSplashPageAnimationFinished) { + // To avoid the animation from running when changing the window size from + // desktop to mobile, we do not animate our widget if the + // splash page animation is finished on initState. + _animationController.value = 1.0; + } else { + // Start our animation halfway through the splash page animation. + _launchTimer = Timer( + halfSplashPageAnimationDuration, + () { + _animationController.forward(); + }, + ); + } + } + + @override + void dispose() { + _animationController.dispose(); + _launchTimer?.cancel(); + _launchTimer = null; + _isMaterialListExpanded.dispose(); + _isCupertinoListExpanded.dispose(); + _isOtherListExpanded.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final bool isTestMode = GalleryOptions.of(context).isTestMode; + return Stack( + children: [ + ListView( + // Makes integration tests possible. + key: const ValueKey('HomeListView'), + primary: true, + restorationId: 'home_list_view', + children: [ + const SizedBox(height: 8), + Container( + margin: + const EdgeInsets.symmetric(horizontal: _horizontalPadding), + child: _GalleryHeader(), + ), + _MobileCarousel( + animationController: _animationController, + restorationId: 'home_carousel', + children: widget.carouselCards, + ), + Container( + margin: + const EdgeInsets.symmetric(horizontal: _horizontalPadding), + child: _CategoriesHeader(), + ), + _AnimatedCategoryItem( + startDelayFraction: 0.00, + controller: _animationController, + child: CategoryListItem( + key: const PageStorageKey( + GalleryDemoCategory.material, + ), + restorationId: 'home_material_category_list', + category: GalleryDemoCategory.material, + imageString: 'assets/icons/material/material.png', + demos: Demos.materialDemos(localizations), + initiallyExpanded: + _isMaterialListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isMaterialListExpanded.value = shouldOpenList; + }), + ), + _AnimatedCategoryItem( + startDelayFraction: 0.05, + controller: _animationController, + child: CategoryListItem( + key: const PageStorageKey( + GalleryDemoCategory.cupertino, + ), + restorationId: 'home_cupertino_category_list', + category: GalleryDemoCategory.cupertino, + imageString: 'assets/icons/cupertino/cupertino.png', + demos: Demos.cupertinoDemos(localizations), + initiallyExpanded: + _isCupertinoListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isCupertinoListExpanded.value = shouldOpenList; + }), + ), + _AnimatedCategoryItem( + startDelayFraction: 0.10, + controller: _animationController, + child: CategoryListItem( + key: const PageStorageKey( + GalleryDemoCategory.other, + ), + restorationId: 'home_other_category_list', + category: GalleryDemoCategory.other, + imageString: 'assets/icons/reference/reference.png', + demos: Demos.otherDemos(localizations), + initiallyExpanded: _isOtherListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isOtherListExpanded.value = shouldOpenList; + }), + ), + ], + ), + Align( + alignment: Alignment.topCenter, + child: GestureDetector( + onVerticalDragEnd: (DragEndDetails details) { + if (details.velocity.pixelsPerSecond.dy > 200) { + ToggleSplashNotification().dispatch(context); + } + }, + child: SafeArea( + child: Container( + height: 40, + // If we don't set the color, gestures are not detected. + color: Colors.transparent, + ), + ), + ), + ), + ], + ); + } +} + +class _DesktopHomeItem extends StatelessWidget { + const _DesktopHomeItem({required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) { + return Align( + child: Container( + constraints: const BoxConstraints(maxWidth: maxHomeItemWidth), + padding: const EdgeInsets.symmetric( + horizontal: _horizontalDesktopPadding, + ), + child: child, + ), + ); + } +} + +class _DesktopCategoryItem extends StatelessWidget { + const _DesktopCategoryItem({ + required this.category, + required this.asset, + required this.demos, + }); + + final GalleryDemoCategory category; + final ImageProvider asset; + final List demos; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return Material( + borderRadius: BorderRadius.circular(10), + clipBehavior: Clip.antiAlias, + color: colorScheme.surface, + child: Semantics( + container: true, + child: FocusTraversalGroup( + policy: WidgetOrderTraversalPolicy(), + child: Column( + children: [ + _DesktopCategoryHeader( + category: category, + asset: asset, + ), + Divider( + height: 2, + thickness: 2, + color: colorScheme.background, + ), + Flexible( + child: ListView.builder( + // Makes integration tests possible. + key: ValueKey('${category.name}DemoList'), + primary: false, + itemBuilder: (BuildContext context, int index) => + CategoryDemoItem(demo: demos[index]), + itemCount: demos.length, + ), + ), + ], + ), + ), + ), + ); + } +} + +class _DesktopCategoryHeader extends StatelessWidget { + const _DesktopCategoryHeader({ + required this.category, + required this.asset, + }); + + final GalleryDemoCategory category; + final ImageProvider asset; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return Material( + // Makes integration tests possible. + key: ValueKey('${category.name}CategoryHeader'), + color: colorScheme.onBackground, + child: Row( + children: [ + Padding( + padding: const EdgeInsets.all(10), + child: FadeInImage( + image: asset, + placeholder: MemoryImage(kTransparentImage), + fadeInDuration: entranceAnimationDuration, + width: 64, + height: 64, + excludeFromSemantics: true, + ), + ), + Flexible( + child: Padding( + padding: const EdgeInsetsDirectional.only(start: 8), + child: Semantics( + header: true, + child: SelectableText( + category.displayTitle(GalleryLocalizations.of(context)!)!, + style: Theme.of(context).textTheme.headlineSmall!.apply( + color: colorScheme.onSurface, + ), + ), + ), + ), + ), + ], + ), + ); + } +} + +/// Animates the category item to stagger in. The [_AnimatedCategoryItem.startDelayFraction] +/// gives a delay in the unit of a fraction of the whole animation duration, +/// which is defined in [_AnimatedHomePageState]. +class _AnimatedCategoryItem extends StatelessWidget { + _AnimatedCategoryItem({ + required double startDelayFraction, + required this.controller, + required this.child, + }) : topPaddingAnimation = Tween( + begin: 60.0, + end: 0.0, + ).animate( + CurvedAnimation( + parent: controller, + curve: Interval( + 0.000 + startDelayFraction, + 0.400 + startDelayFraction, + curve: Curves.ease, + ), + ), + ); + + final Widget child; + final AnimationController controller; + final Animation topPaddingAnimation; + + @override + Widget build(BuildContext context) { + return AnimatedBuilder( + animation: controller, + builder: (BuildContext context, Widget? child) { + return Padding( + padding: EdgeInsets.only(top: topPaddingAnimation.value), + child: child, + ); + }, + child: child, + ); + } +} + +/// Animates the carousel to come in from the right. +class _AnimatedCarousel extends StatelessWidget { + _AnimatedCarousel({ + required this.child, + required this.controller, + }) : startPositionAnimation = Tween( + begin: 1.0, + end: 0.0, + ).animate( + CurvedAnimation( + parent: controller, + curve: const Interval( + 0.200, + 0.800, + curve: Curves.ease, + ), + ), + ); + + final Widget child; + final AnimationController controller; + final Animation startPositionAnimation; + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Stack( + children: [ + SizedBox(height: _carouselHeight(.4, context)), + AnimatedBuilder( + animation: controller, + builder: (BuildContext context, Widget? child) { + return PositionedDirectional( + start: constraints.maxWidth * startPositionAnimation.value, + child: child!, + ); + }, + child: SizedBox( + height: _carouselHeight(.4, context), + width: constraints.maxWidth, + child: child, + ), + ), + ], + ); + }); + } +} + +/// Animates a carousel card to come in from the right. +class _AnimatedCarouselCard extends StatelessWidget { + _AnimatedCarouselCard({ + required this.child, + required this.controller, + }) : startPaddingAnimation = Tween( + begin: _horizontalPadding, + end: 0.0, + ).animate( + CurvedAnimation( + parent: controller, + curve: const Interval( + 0.900, + 1.000, + curve: Curves.ease, + ), + ), + ); + + final Widget child; + final AnimationController controller; + final Animation startPaddingAnimation; + + @override + Widget build(BuildContext context) { + return AnimatedBuilder( + animation: controller, + builder: (BuildContext context, Widget? child) { + return Padding( + padding: EdgeInsetsDirectional.only( + start: startPaddingAnimation.value, + ), + child: child, + ); + }, + child: child, + ); + } +} + +class _MobileCarousel extends StatefulWidget { + const _MobileCarousel({ + required this.animationController, + this.restorationId, + required this.children, + }); + + final AnimationController animationController; + final String? restorationId; + final List children; + + @override + _MobileCarouselState createState() => _MobileCarouselState(); +} + +class _MobileCarouselState extends State<_MobileCarousel> + with RestorationMixin, SingleTickerProviderStateMixin { + late PageController _controller; + + final RestorableInt _currentPage = RestorableInt(0); + + @override + String? get restorationId => widget.restorationId; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_currentPage, 'carousel_page'); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + // The viewPortFraction is calculated as the width of the device minus the + // padding. + final double width = MediaQuery.of(context).size.width; + const double padding = _carouselItemMobileMargin * 2; + _controller = PageController( + initialPage: _currentPage.value, + viewportFraction: (_carouselItemWidth + padding) / width, + ); + } + + @override + void dispose() { + _controller.dispose(); + _currentPage.dispose(); + super.dispose(); + } + + Widget builder(int index) { + final AnimatedBuilder carouselCard = AnimatedBuilder( + animation: _controller, + builder: (BuildContext context, Widget? child) { + double value; + if (_controller.position.haveDimensions) { + value = _controller.page! - index; + } else { + // If haveDimensions is false, use _currentPage to calculate value. + value = (_currentPage.value - index).toDouble(); + } + // .3 is an approximation of the curve used in the design. + value = (1 - (value.abs() * .3)).clamp(0, 1).toDouble(); + value = Curves.easeOut.transform(value); + + return Transform.scale( + scale: value, + child: child, + ); + }, + child: widget.children[index], + ); + + // We only want the second card to be animated. + if (index == 1) { + return _AnimatedCarouselCard( + controller: widget.animationController, + child: carouselCard, + ); + } else { + return carouselCard; + } + } + + @override + Widget build(BuildContext context) { + return _AnimatedCarousel( + controller: widget.animationController, + child: PageView.builder( + // Makes integration tests possible. + key: const ValueKey('studyDemoList'), + onPageChanged: (int value) { + setState(() { + _currentPage.value = value; + }); + }, + controller: _controller, + pageSnapping: false, + itemCount: widget.children.length, + itemBuilder: (BuildContext context, int index) => builder(index), + allowImplicitScrolling: true, + ), + ); + } +} + +/// This creates a horizontally scrolling [ListView] of items. +/// +/// This class uses a [ListView] with a custom [ScrollPhysics] to enable +/// snapping behavior. A [PageView] was considered but does not allow for +/// multiple pages visible without centering the first page. +class _DesktopCarousel extends StatefulWidget { + const _DesktopCarousel({required this.height, required this.children}); + + final double height; + final List children; + + @override + _DesktopCarouselState createState() => _DesktopCarouselState(); +} + +class _DesktopCarouselState extends State<_DesktopCarousel> { + late ScrollController _controller; + + @override + void initState() { + super.initState(); + _controller = ScrollController(); + _controller.addListener(() { + setState(() {}); + }); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + bool showPreviousButton = false; + bool showNextButton = true; + // Only check this after the _controller has been attached to the ListView. + if (_controller.hasClients) { + showPreviousButton = _controller.offset > 0; + showNextButton = + _controller.offset < _controller.position.maxScrollExtent; + } + + final bool isDesktop = isDisplayDesktop(context); + + return Align( + child: Container( + height: widget.height, + constraints: const BoxConstraints(maxWidth: maxHomeItemWidth), + child: Stack( + children: [ + ListView.builder( + padding: EdgeInsets.symmetric( + horizontal: isDesktop + ? _horizontalDesktopPadding - _carouselItemDesktopMargin + : _horizontalPadding - _carouselItemMobileMargin, + ), + scrollDirection: Axis.horizontal, + primary: false, + physics: const _SnappingScrollPhysics(), + controller: _controller, + itemExtent: _carouselItemWidth, + itemCount: widget.children.length, + itemBuilder: (BuildContext context, int index) => Padding( + padding: const EdgeInsets.symmetric(vertical: 8.0), + child: widget.children[index], + ), + ), + if (showPreviousButton) + _DesktopPageButton( + onTap: () { + _controller.animateTo( + _controller.offset - _carouselItemWidth, + duration: const Duration(milliseconds: 200), + curve: Curves.easeInOut, + ); + }, + ), + if (showNextButton) + _DesktopPageButton( + isEnd: true, + onTap: () { + _controller.animateTo( + _controller.offset + _carouselItemWidth, + duration: const Duration(milliseconds: 200), + curve: Curves.easeInOut, + ); + }, + ), + ], + ), + ), + ); + } +} + +/// Scrolling physics that snaps to the new item in the [_DesktopCarousel]. +class _SnappingScrollPhysics extends ScrollPhysics { + const _SnappingScrollPhysics({super.parent}); + + @override + _SnappingScrollPhysics applyTo(ScrollPhysics? ancestor) { + return _SnappingScrollPhysics(parent: buildParent(ancestor)); + } + + double _getTargetPixels( + ScrollMetrics position, + Tolerance tolerance, + double velocity, + ) { + final double itemWidth = position.viewportDimension / 4; + double item = position.pixels / itemWidth; + if (velocity < -tolerance.velocity) { + item -= 0.5; + } else if (velocity > tolerance.velocity) { + item += 0.5; + } + return math.min( + item.roundToDouble() * itemWidth, + position.maxScrollExtent, + ); + } + + @override + Simulation? createBallisticSimulation( + ScrollMetrics position, + double velocity, + ) { + if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) || + (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) { + return super.createBallisticSimulation(position, velocity); + } + final Tolerance tolerance = toleranceFor(position); + final double target = _getTargetPixels(position, tolerance, velocity); + if (target != position.pixels) { + return ScrollSpringSimulation( + spring, + position.pixels, + target, + velocity, + tolerance: tolerance, + ); + } + return null; + } + + @override + bool get allowImplicitScrolling => true; +} + +class _DesktopPageButton extends StatelessWidget { + const _DesktopPageButton({ + this.isEnd = false, + this.onTap, + }); + + final bool isEnd; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + const double buttonSize = 58.0; + const double padding = _horizontalDesktopPadding - buttonSize / 2; + return ExcludeSemantics( + child: Align( + alignment: isEnd + ? AlignmentDirectional.centerEnd + : AlignmentDirectional.centerStart, + child: Container( + width: buttonSize, + height: buttonSize, + margin: EdgeInsetsDirectional.only( + start: isEnd ? 0 : padding, + end: isEnd ? padding : 0, + ), + child: Tooltip( + message: isEnd + ? MaterialLocalizations.of(context).nextPageTooltip + : MaterialLocalizations.of(context).previousPageTooltip, + child: Material( + color: Colors.black.withOpacity(0.5), + shape: const CircleBorder(), + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: onTap, + child: Icon( + isEnd ? Icons.arrow_forward_ios : Icons.arrow_back_ios, + color: Colors.white, + ), + ), + ), + ), + ), + ), + ); + } +} + +class _CarouselCard extends StatelessWidget { + const _CarouselCard({ + required this.demo, + this.asset, + this.assetDark, + this.assetColor, + this.assetDarkColor, + this.textColor, + required this.studyRoute, + }); + + final GalleryDemo? demo; + final ImageProvider? asset; + final ImageProvider? assetDark; + final Color? assetColor; + final Color? assetDarkColor; + final Color? textColor; + final String studyRoute; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final bool isDark = Theme.of(context).colorScheme.brightness == Brightness.dark; + final ImageProvider? asset = isDark ? assetDark : this.asset; + final Color? assetColor = isDark ? assetDarkColor : this.assetColor; + final Color? textColor = isDark ? Colors.white.withOpacity(0.87) : this.textColor; + final bool isDesktop = isDisplayDesktop(context); + + return Container( + padding: EdgeInsets.symmetric( + horizontal: isDesktop + ? _carouselItemDesktopMargin + : _carouselItemMobileMargin), + margin: const EdgeInsets.symmetric(vertical: 16.0), + height: _carouselHeight(0.7, context), + width: _carouselItemWidth, + child: Material( + // Makes integration tests possible. + key: ValueKey(demo!.describe), + color: assetColor, + elevation: 4, + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), + clipBehavior: Clip.antiAlias, + child: Stack( + fit: StackFit.expand, + children: [ + if (asset != null) + FadeInImage( + image: asset, + placeholder: MemoryImage(kTransparentImage), + fit: BoxFit.cover, + height: _carouselHeightMin, + fadeInDuration: entranceAnimationDuration, + ), + Padding( + padding: const EdgeInsetsDirectional.fromSTEB(16, 0, 16, 16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Text( + demo!.title, + style: textTheme.bodySmall!.apply(color: textColor), + maxLines: 3, + overflow: TextOverflow.visible, + ), + Text( + demo!.subtitle, + style: textTheme.labelSmall!.apply(color: textColor), + maxLines: 5, + overflow: TextOverflow.visible, + ), + ], + ), + ), + Positioned.fill( + child: Material( + color: Colors.transparent, + child: InkWell( + onTap: () { + Navigator.of(context) + .popUntil((Route route) => route.settings.name == '/'); + Navigator.of(context).restorablePushNamed(studyRoute); + }, + ), + ), + ), + ], + ), + ), + ); + } +} + +double _carouselHeight(double scaleFactor, BuildContext context) => math.max( + _carouselHeightMin * + GalleryOptions.of(context).textScaleFactor(context) * + scaleFactor, + _carouselHeightMin); + +/// Wrap the studies with this to display a back button and allow the user to +/// exit them at any time. +class StudyWrapper extends StatefulWidget { + const StudyWrapper({ + super.key, + required this.study, + this.alignment = AlignmentDirectional.bottomStart, + this.hasBottomNavBar = false, + }); + + final Widget study; + final bool hasBottomNavBar; + final AlignmentDirectional alignment; + + @override + State createState() => _StudyWrapperState(); +} + +class _StudyWrapperState extends State { + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final TextTheme textTheme = Theme.of(context).textTheme; + return ApplyTextOptions( + child: Stack( + children: [ + Semantics( + sortKey: const OrdinalSortKey(1), + child: RestorationScope( + restorationId: 'study_wrapper', + child: widget.study, + ), + ), + SafeArea( + child: Align( + alignment: widget.alignment, + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: 16.0, + vertical: widget.hasBottomNavBar + ? kBottomNavigationBarHeight + 16.0 + : 16.0), + child: Semantics( + sortKey: const OrdinalSortKey(0), + label: GalleryLocalizations.of(context)!.backToGallery, + button: true, + enabled: true, + excludeSemantics: true, + child: FloatingActionButton.extended( + heroTag: _BackButtonHeroTag(), + key: const ValueKey('Back'), + onPressed: () { + Navigator.of(context) + .popUntil((Route route) => route.settings.name == '/'); + }, + icon: IconTheme( + data: IconThemeData(color: colorScheme.onPrimary), + child: const BackButtonIcon(), + ), + label: Text( + MaterialLocalizations.of(context).backButtonTooltip, + style: textTheme.labelLarge! + .apply(color: colorScheme.onPrimary), + ), + ), + ), + ), + ), + ), + ], + ), + ); + } +} + +class _BackButtonHeroTag {} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart new file mode 100644 index 0000000000000000000000000000000000000000..74bbf85f29e61425275281d5bd92215debea78f2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart @@ -0,0 +1,472 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:collection'; + +import 'package:collection/collection.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_localized_locales/flutter_localized_locales.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import '../constants.dart'; +import '../data/gallery_options.dart'; +import '../gallery_localizations.dart'; +import '../layout/adaptive.dart'; +import 'about.dart' as about; +import 'home.dart'; +import 'settings_list_item.dart'; + +enum _ExpandableSetting { + textScale, + textDirection, + locale, + platform, + theme, +} + +class SettingsPage extends StatefulWidget { + const SettingsPage({ + super.key, + required this.animationController, + }); + + final AnimationController animationController; + + @override + State createState() => _SettingsPageState(); +} + +class _SettingsPageState extends State { + _ExpandableSetting? _expandedSettingId; + late Animation _staggerSettingsItemsAnimation; + + void onTapSetting(_ExpandableSetting settingId) { + setState(() { + if (_expandedSettingId == settingId) { + _expandedSettingId = null; + } else { + _expandedSettingId = settingId; + } + }); + } + + void _closeSettingId(AnimationStatus status) { + if (status.isDismissed) { + setState(() { + _expandedSettingId = null; + }); + } + } + + @override + void initState() { + super.initState(); + + // When closing settings, also shrink expanded setting. + widget.animationController.addStatusListener(_closeSettingId); + + _staggerSettingsItemsAnimation = CurvedAnimation( + parent: widget.animationController, + curve: const Interval( + 0.4, + 1.0, + curve: Curves.ease, + ), + ); + } + + @override + void dispose() { + super.dispose(); + widget.animationController.removeStatusListener(_closeSettingId); + } + + /// Given a [Locale], returns a [DisplayOption] with its native name for a + /// title and its name in the currently selected locale for a subtitle. If the + /// native name can't be determined, it is omitted. If the locale can't be + /// determined, the locale code is used. + DisplayOption _getLocaleDisplayOption(BuildContext context, Locale? locale) { + final String localeCode = locale.toString(); + final String? localeName = LocaleNames.of(context)!.nameOf(localeCode); + if (localeName != null) { + final String? localeNativeName = + LocaleNamesLocalizationsDelegate.nativeLocaleNames[localeCode]; + return localeNativeName != null + ? DisplayOption(localeNativeName, subtitle: localeName) + : DisplayOption(localeName); + } else { + // gsw, fil, and es_419 aren't in flutter_localized_countries' dataset + // so we handle them separately + switch (localeCode) { + case 'gsw': + return DisplayOption('Schwiizertüütsch', subtitle: 'Swiss German'); + case 'fil': + return DisplayOption('Filipino', subtitle: 'Filipino'); + case 'es_419': + return DisplayOption( + 'español (Latinoamérica)', + subtitle: 'Spanish (Latin America)', + ); + } + } + + return DisplayOption(localeCode); + } + + /// Create a sorted — by native name – map of supported locales to their + /// intended display string, with a system option as the first element. + LinkedHashMap _getLocaleOptions() { + final LinkedHashMap localeOptions = LinkedHashMap.of({ + systemLocaleOption: DisplayOption( + GalleryLocalizations.of(context)!.settingsSystemDefault + + (deviceLocale != null + ? ' - ${_getLocaleDisplayOption(context, deviceLocale).title}' + : ''), + ), + }); + final List supportedLocales = + List.from(GalleryLocalizations.supportedLocales); + supportedLocales.removeWhere((Locale locale) => locale == deviceLocale); + + final List> displayLocales = Map.fromIterable( + supportedLocales, + value: (dynamic locale) => + _getLocaleDisplayOption(context, locale as Locale?), + ).entries.toList() + ..sort((MapEntry l1, MapEntry l2) => compareAsciiUpperCase(l1.value.title, l2.value.title)); + + localeOptions.addAll(LinkedHashMap.fromEntries(displayLocales)); + return localeOptions; + } + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final GalleryOptions options = GalleryOptions.of(context); + final bool isDesktop = isDisplayDesktop(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + final List settingsListItems = [ + SettingsListItem( + title: localizations.settingsTextScaling, + selectedOption: options.textScaleFactor( + context, + useSentinel: true, + ), + optionsMap: LinkedHashMap.of({ + systemTextScaleFactorOption: DisplayOption( + localizations.settingsSystemDefault, + ), + 0.8: DisplayOption( + localizations.settingsTextScalingSmall, + ), + 1.0: DisplayOption( + localizations.settingsTextScalingNormal, + ), + 2.0: DisplayOption( + localizations.settingsTextScalingLarge, + ), + 3.0: DisplayOption( + localizations.settingsTextScalingHuge, + ), + }), + onOptionChanged: (double? newTextScale) => GalleryOptions.update( + context, + options.copyWith(textScaleFactor: newTextScale), + ), + onTapSetting: () => onTapSetting(_ExpandableSetting.textScale), + isExpanded: _expandedSettingId == _ExpandableSetting.textScale, + ), + SettingsListItem( + title: localizations.settingsTextDirection, + selectedOption: options.customTextDirection, + optionsMap: LinkedHashMap.of({ + CustomTextDirection.localeBased: DisplayOption( + localizations.settingsTextDirectionLocaleBased, + ), + CustomTextDirection.ltr: DisplayOption( + localizations.settingsTextDirectionLTR, + ), + CustomTextDirection.rtl: DisplayOption( + localizations.settingsTextDirectionRTL, + ), + }), + onOptionChanged: (CustomTextDirection? newTextDirection) => GalleryOptions.update( + context, + options.copyWith(customTextDirection: newTextDirection), + ), + onTapSetting: () => onTapSetting(_ExpandableSetting.textDirection), + isExpanded: _expandedSettingId == _ExpandableSetting.textDirection, + ), + SettingsListItem( + title: localizations.settingsLocale, + selectedOption: options.locale == deviceLocale + ? systemLocaleOption + : options.locale, + optionsMap: _getLocaleOptions(), + onOptionChanged: (Locale? newLocale) { + if (newLocale == systemLocaleOption) { + newLocale = deviceLocale; + } + GalleryOptions.update( + context, + options.copyWith(locale: newLocale), + ); + }, + onTapSetting: () => onTapSetting(_ExpandableSetting.locale), + isExpanded: _expandedSettingId == _ExpandableSetting.locale, + ), + SettingsListItem( + title: localizations.settingsPlatformMechanics, + selectedOption: options.platform, + optionsMap: LinkedHashMap.of({ + TargetPlatform.android: DisplayOption('Android'), + TargetPlatform.iOS: DisplayOption('iOS'), + TargetPlatform.macOS: DisplayOption('macOS'), + TargetPlatform.linux: DisplayOption('Linux'), + TargetPlatform.windows: DisplayOption('Windows'), + }), + onOptionChanged: (TargetPlatform? newPlatform) => GalleryOptions.update( + context, + options.copyWith(platform: newPlatform), + ), + onTapSetting: () => onTapSetting(_ExpandableSetting.platform), + isExpanded: _expandedSettingId == _ExpandableSetting.platform, + ), + SettingsListItem( + title: localizations.settingsTheme, + selectedOption: options.themeMode, + optionsMap: LinkedHashMap.of({ + ThemeMode.system: DisplayOption( + localizations.settingsSystemDefault, + ), + ThemeMode.dark: DisplayOption( + localizations.settingsDarkTheme, + ), + ThemeMode.light: DisplayOption( + localizations.settingsLightTheme, + ), + }), + onOptionChanged: (ThemeMode? newThemeMode) => GalleryOptions.update( + context, + options.copyWith(themeMode: newThemeMode), + ), + onTapSetting: () => onTapSetting(_ExpandableSetting.theme), + isExpanded: _expandedSettingId == _ExpandableSetting.theme, + ), + ToggleSetting( + text: GalleryLocalizations.of(context)!.settingsSlowMotion, + value: options.timeDilation != 1.0, + onChanged: (bool isOn) => GalleryOptions.update( + context, + options.copyWith(timeDilation: isOn ? 5.0 : 1.0), + ), + ), + ]; + + return Material( + color: colorScheme.secondaryContainer, + child: Padding( + padding: isDesktop + ? EdgeInsets.zero + : const EdgeInsets.only( + bottom: galleryHeaderHeight, + ), + // Remove ListView top padding as it is already accounted for. + child: MediaQuery.removePadding( + removeTop: isDesktop, + context: context, + child: ListView( + children: [ + if (isDesktop) + const SizedBox(height: firstHeaderDesktopTopPadding), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 32), + child: ExcludeSemantics( + child: Header( + color: Theme.of(context).colorScheme.onSurface, + text: localizations.settingsTitle, + ), + ), + ), + if (isDesktop) + ...settingsListItems + else ...[ + _AnimateSettingsListItems( + animation: _staggerSettingsItemsAnimation, + children: settingsListItems, + ), + const SizedBox(height: 16), + Divider(thickness: 2, height: 0, color: colorScheme.outline), + const SizedBox(height: 12), + const SettingsAbout(), + const SettingsFeedback(), + const SizedBox(height: 12), + Divider(thickness: 2, height: 0, color: colorScheme.outline), + const SettingsAttribution(), + ], + ], + ), + ), + ), + ); + } +} + +class SettingsAbout extends StatelessWidget { + const SettingsAbout({super.key}); + + @override + Widget build(BuildContext context) { + return _SettingsLink( + title: GalleryLocalizations.of(context)!.settingsAbout, + icon: Icons.info_outline, + onTap: () { + about.showAboutDialog(context: context); + }, + ); + } +} + +class SettingsFeedback extends StatelessWidget { + const SettingsFeedback({super.key}); + + @override + Widget build(BuildContext context) { + return _SettingsLink( + title: GalleryLocalizations.of(context)!.settingsFeedback, + icon: Icons.feedback, + onTap: () async { + final Uri url = + Uri.parse('https://github.com/flutter/gallery/issues/new/choose/'); + if (await canLaunchUrl(url)) { + await launchUrl(url); + } + }, + ); + } +} + +class SettingsAttribution extends StatelessWidget { + const SettingsAttribution({super.key}); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final double verticalPadding = isDesktop ? 0.0 : 28.0; + return MergeSemantics( + child: Padding( + padding: EdgeInsetsDirectional.only( + start: isDesktop ? 24 : 32, + end: isDesktop ? 0 : 32, + top: verticalPadding, + bottom: verticalPadding, + ), + child: SelectableText( + GalleryLocalizations.of(context)!.settingsAttribution, + style: Theme.of(context).textTheme.bodyLarge!.copyWith( + fontSize: 12, + color: Theme.of(context).colorScheme.onSecondary, + ), + textAlign: isDesktop ? TextAlign.end : TextAlign.start, + ), + ), + ); + } +} + +class _SettingsLink extends StatelessWidget { + + const _SettingsLink({ + required this.title, + this.icon, + this.onTap, + }); + final String title; + final IconData? icon; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final bool isDesktop = isDisplayDesktop(context); + + return InkWell( + onTap: onTap, + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: isDesktop ? 24 : 32, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + icon, + color: colorScheme.onSecondary.withOpacity(0.5), + size: 24, + ), + Flexible( + child: Padding( + padding: const EdgeInsetsDirectional.only( + start: 16, + top: 12, + bottom: 12, + ), + child: Text( + title, + style: textTheme.titleSmall!.apply( + color: colorScheme.onSecondary, + ), + textAlign: isDesktop ? TextAlign.end : TextAlign.start, + ), + ), + ), + ], + ), + ), + ); + } +} + +/// Animate the settings list items to stagger in from above. +class _AnimateSettingsListItems extends StatelessWidget { + const _AnimateSettingsListItems({ + required this.animation, + required this.children, + }); + + final Animation animation; + final List children; + + @override + Widget build(BuildContext context) { + const double dividingPadding = 4.0; + final Tween dividerTween = Tween( + begin: 0, + end: dividingPadding, + ); + + return Padding( + padding: const EdgeInsets.symmetric(vertical: 16.0), + child: Column( + children: [ + for (final Widget child in children) + AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + return Padding( + padding: EdgeInsets.only( + top: dividerTween.animate(animation).value, + ), + child: child, + ); + }, + child: child, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart new file mode 100644 index 0000000000000000000000000000000000000000..5a5cb6c4ea797800dcf127c8a465e06b781a3c07 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart @@ -0,0 +1,191 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; +import 'package:flutter/material.dart'; +import 'metrics.dart'; + +class SettingsIcon extends StatelessWidget { + const SettingsIcon(this.time, {super.key}); + + final double time; + + @override + Widget build(BuildContext context) { + return CustomPaint( + painter: _SettingsIconPainter(time: time, context: context), + ); + } +} + +class _SettingsIconPainter extends CustomPainter { + _SettingsIconPainter({required this.time, required this.context}); + + final double time; + final BuildContext context; + + late Offset _center; + late double _scaling; + late Canvas _canvas; + + /// Computes [_center] and [_scaling], parameters used to convert offsets + /// and lengths in relative units into logical pixels. + /// + /// The icon is aligned to the bottom-start corner. + void _computeCenterAndScaling(Size size) { + _scaling = min(size.width / unitWidth, size.height / unitHeight); + final double dx = switch (Directionality.of(context)) { + TextDirection.rtl => size.width - unitWidth * _scaling / 2, + TextDirection.ltr => unitWidth * _scaling / 2, + }; + _center = Offset(dx, size.height - unitHeight * _scaling / 2); + } + + /// Transforms an offset in relative units into an offset in logical pixels. + Offset _transform(Offset offset) { + return _center + offset * _scaling; + } + + /// Transforms a length in relative units into a dimension in logical pixels. + double _size(double length) { + return length * _scaling; + } + + /// A rectangle with a fixed location, used to locate gradients. + Rect get _fixedRect { + final Offset topLeft = Offset(-_size(stickLength / 2), -_size(stickWidth / 2)); + final Offset bottomRight = Offset(_size(stickLength / 2), _size(stickWidth / 2)); + return Rect.fromPoints(topLeft, bottomRight); + } + + /// Black or white paint, depending on brightness. + Paint get _monoPaint { + final Color monoColor = + Theme.of(context).colorScheme.brightness == Brightness.light + ? Colors.black + : Colors.white; + return Paint()..color = monoColor; + } + + /// Pink paint with horizontal gradient. + Paint get _pinkPaint { + const LinearGradient shader = LinearGradient(colors: [pinkLeft, pinkRight]); + final Rect shaderRect = _fixedRect.translate( + _size(-(stickLength - colorLength(time)) / 2), + 0, + ); + + return Paint()..shader = shader.createShader(shaderRect); + } + + /// Teal paint with horizontal gradient. + Paint get _tealPaint { + const LinearGradient shader = LinearGradient(colors: [tealLeft, tealRight]); + final Rect shaderRect = _fixedRect.translate( + _size((stickLength - colorLength(time)) / 2), + 0, + ); + + return Paint()..shader = shader.createShader(shaderRect); + } + + /// Paints a stadium-shaped stick. + void _paintStick({ + required Offset center, + required double length, + required double width, + double angle = 0, + required Paint paint, + }) { + // Convert to pixels. + center = _transform(center); + length = _size(length); + width = _size(width); + + // Paint. + width = min(width, length); + final double stretch = length / 2; + final double radius = width / 2; + + _canvas.save(); + + _canvas.translate(center.dx, center.dy); + _canvas.rotate(angle); + + final Rect leftOval = Rect.fromCircle( + center: Offset(-stretch + radius, 0), + radius: radius, + ); + + final Rect rightOval = Rect.fromCircle( + center: Offset(stretch - radius, 0), + radius: radius, + ); + + _canvas.drawPath( + Path() + ..arcTo(leftOval, pi / 2, pi, false) + ..arcTo(rightOval, -pi / 2, pi, false), + paint, + ); + + _canvas.restore(); + } + + @override + void paint(Canvas canvas, Size size) { + _computeCenterAndScaling(size); + _canvas = canvas; + + if (isTransitionPhase(time)) { + _paintStick( + center: upperColorOffset(time), + length: colorLength(time), + width: stickWidth, + paint: _pinkPaint, + ); + + _paintStick( + center: lowerColorOffset(time), + length: colorLength(time), + width: stickWidth, + paint: _tealPaint, + ); + + _paintStick( + center: upperMonoOffset(time), + length: monoLength(time), + width: knobDiameter, + paint: _monoPaint, + ); + + _paintStick( + center: lowerMonoOffset(time), + length: monoLength(time), + width: knobDiameter, + paint: _monoPaint, + ); + } else { + _paintStick( + center: upperKnobCenter, + length: stickLength, + width: knobDiameter, + angle: -knobRotation(time), + paint: _monoPaint, + ); + + _paintStick( + center: knobCenter(time), + length: stickLength, + width: knobDiameter, + angle: knobRotation(time), + paint: _monoPaint, + ); + } + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) => + oldDelegate is! _SettingsIconPainter || oldDelegate.time != time; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart new file mode 100644 index 0000000000000000000000000000000000000000..ffd59a8697ad98c325ecc6d8da4b196f6dbd9a0d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart @@ -0,0 +1,113 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; +import 'package:flutter/material.dart'; + +// Color gradients. +const Color pinkLeft = Color(0xFFFF5983); +const Color pinkRight = Color(0xFFFF8383); + +const Color tealLeft = Color(0xFF1CDDC8); +const Color tealRight = Color(0xFF00A5B3); + +// Dimensions. +const int unitHeight = 1; +const int unitWidth = 1; + +const double stickLength = 5 / 9; +const double stickWidth = 5 / 36; +const double stickRadius = stickWidth / 2; +const double knobDiameter = 5 / 54; +const double knobRadius = knobDiameter / 2; +const double stickGap = 5 / 54; + +// Locations. +const double knobDistanceFromCenter = stickGap / 2 + stickWidth / 2; +const Offset lowerKnobCenter = Offset(0, knobDistanceFromCenter); +const Offset upperKnobCenter = Offset(0, -knobDistanceFromCenter); + +const double knobDeviation = stickLength / 2 - stickRadius; + +// Key moments in animation. +const double _colorKnobContractionBegins = 1 / 23; +const double _monoKnobExpansionEnds = 11 / 23; +const double _colorKnobContractionEnds = 14 / 23; + +// Stages. +bool isTransitionPhase(double time) => time < _colorKnobContractionEnds; + +// Curve easing. +const Cubic _curve = Curves.easeInOutCubic; + +double _progress( + double time, { + required double begin, + required double end, +}) => + _curve.transform(((time - begin) / (end - begin)).clamp(0, 1).toDouble()); + +double _monoKnobProgress(double time) => _progress( + time, + begin: 0, + end: _monoKnobExpansionEnds, + ); + +double _colorKnobProgress(double time) => _progress( + time, + begin: _colorKnobContractionBegins, + end: _colorKnobContractionEnds, + ); + +double _rotationProgress(double time) => _progress( + time, + begin: _colorKnobContractionEnds, + end: 1, + ); + +// Changing lengths: mono. +double monoLength(double time) => + _monoKnobProgress(time) * (stickLength - knobDiameter) + knobDiameter; + +double _monoLengthLeft(double time) => + min(monoLength(time) - knobRadius, stickRadius); + +double _monoLengthRight(double time) => + monoLength(time) - _monoLengthLeft(time); + +double _monoHorizontalOffset(double time) => + (_monoLengthRight(time) - _monoLengthLeft(time)) / 2 - knobDeviation; + +Offset upperMonoOffset(double time) => + upperKnobCenter + Offset(_monoHorizontalOffset(time), 0); + +Offset lowerMonoOffset(double time) => + lowerKnobCenter + Offset(-_monoHorizontalOffset(time), 0); + +// Changing lengths: color. +double colorLength(double time) => (1 - _colorKnobProgress(time)) * stickLength; + +Offset upperColorOffset(double time) => + upperKnobCenter + Offset(stickLength / 2 - colorLength(time) / 2, 0); + +Offset lowerColorOffset(double time) => + lowerKnobCenter + Offset(-stickLength / 2 + colorLength(time) / 2, 0); + +// Moving objects. +double knobRotation(double time) => _rotationProgress(time) * pi / 4; + +Offset knobCenter(double time) { + final double progress = _rotationProgress(time); + if (progress == 0) { + return lowerKnobCenter; + } else if (progress == 1) { + return upperKnobCenter; + } else { + // Calculates the current location. + final Offset center = Offset(knobDistanceFromCenter / tan(pi / 8), 0); + final double radius = (lowerKnobCenter - center).distance; + final double angle = pi + (progress - 1 / 2) * pi / 4; + return center + Offset.fromDirection(angle, radius); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart new file mode 100644 index 0000000000000000000000000000000000000000..6fcfebe761567c176b2ba42199b721705868ec1e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart @@ -0,0 +1,340 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:collection'; + +import 'package:flutter/material.dart'; + +// Common constants between SlowMotionSetting and SettingsListItem. +final BorderRadius settingItemBorderRadius = BorderRadius.circular(10); +const EdgeInsetsDirectional settingItemHeaderMargin = EdgeInsetsDirectional.fromSTEB(32, 0, 32, 8); + +class DisplayOption { + + DisplayOption(this.title, {this.subtitle}); + final String title; + final String? subtitle; +} + +class ToggleSetting extends StatelessWidget { + + const ToggleSetting({ + super.key, + required this.text, + required this.value, + required this.onChanged, + }); + final String text; + final bool value; + final void Function(bool) onChanged; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final TextTheme textTheme = Theme.of(context).textTheme; + + return Semantics( + container: true, + child: Container( + margin: settingItemHeaderMargin, + child: Material( + shape: RoundedRectangleBorder(borderRadius: settingItemBorderRadius), + color: colorScheme.secondary, + clipBehavior: Clip.antiAlias, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Padding( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SelectableText( + text, + style: textTheme.titleMedium!.apply( + color: colorScheme.onSurface, + ), + ), + ], + ), + ), + ), + Padding( + padding: const EdgeInsetsDirectional.only(end: 8), + child: Switch( + activeColor: colorScheme.primary, + value: value, + onChanged: onChanged, + ), + ), + ], + ), + ), + ), + ); + } +} + +class SettingsListItem extends StatefulWidget { + const SettingsListItem({ + super.key, + required this.optionsMap, + required this.title, + required this.selectedOption, + required this.onOptionChanged, + required this.onTapSetting, + required this.isExpanded, + }); + + final LinkedHashMap optionsMap; + final String title; + final T selectedOption; + final ValueChanged onOptionChanged; + final void Function() onTapSetting; + final bool isExpanded; + + @override + State> createState() => _SettingsListItemState(); +} + +class _SettingsListItemState extends State> + with SingleTickerProviderStateMixin { + static final Animatable _easeInTween = + CurveTween(curve: Curves.easeIn); + static const Duration _expandDuration = Duration(milliseconds: 150); + late AnimationController _controller; + late Animation _childrenHeightFactor; + late Animation _headerChevronRotation; + late Animation _headerSubtitleHeight; + late Animation _headerMargin; + late Animation _headerPadding; + late Animation _childrenPadding; + late Animation _headerBorderRadius; + + // For ease of use. Correspond to the keys and values of `widget.optionsMap`. + late Iterable _options; + late Iterable _displayOptions; + + @override + void initState() { + super.initState(); + _controller = AnimationController(duration: _expandDuration, vsync: this); + _childrenHeightFactor = _controller.drive(_easeInTween); + _headerChevronRotation = + Tween(begin: 0, end: 0.5).animate(_controller); + _headerMargin = EdgeInsetsGeometryTween( + begin: settingItemHeaderMargin, + end: EdgeInsets.zero, + ).animate(_controller); + _headerPadding = EdgeInsetsGeometryTween( + begin: const EdgeInsetsDirectional.fromSTEB(16, 10, 0, 10), + end: const EdgeInsetsDirectional.fromSTEB(32, 18, 32, 20), + ).animate(_controller); + _headerSubtitleHeight = + _controller.drive(Tween(begin: 1.0, end: 0.0)); + _childrenPadding = EdgeInsetsGeometryTween( + begin: const EdgeInsets.symmetric(horizontal: 32), + end: EdgeInsets.zero, + ).animate(_controller); + _headerBorderRadius = BorderRadiusTween( + begin: settingItemBorderRadius, + end: BorderRadius.zero, + ).animate(_controller); + + if (widget.isExpanded) { + _controller.value = 1.0; + } + + _options = widget.optionsMap.keys; + _displayOptions = widget.optionsMap.values; + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + void _handleExpansion() { + if (widget.isExpanded) { + _controller.forward(); + } else { + _controller.reverse().then((void value) { + if (!mounted) { + return; + } + }); + } + } + + Widget _buildHeaderWithChildren(BuildContext context, Widget? child) { + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + _CategoryHeader( + margin: _headerMargin.value, + padding: _headerPadding.value, + borderRadius: _headerBorderRadius.value!, + subtitleHeight: _headerSubtitleHeight, + chevronRotation: _headerChevronRotation, + title: widget.title, + subtitle: widget.optionsMap[widget.selectedOption]?.title ?? '', + onTap: () => widget.onTapSetting(), + ), + Padding( + padding: _childrenPadding.value, + child: ClipRect( + child: Align( + heightFactor: _childrenHeightFactor.value, + child: child, + ), + ), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + _handleExpansion(); + final ThemeData theme = Theme.of(context); + + return AnimatedBuilder( + animation: _controller.view, + builder: _buildHeaderWithChildren, + child: Container( + constraints: const BoxConstraints(maxHeight: 384), + margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40), + decoration: BoxDecoration( + border: BorderDirectional( + start: BorderSide( + width: 2, + color: theme.colorScheme.background, + ), + ), + ), + child: ListView.builder( + shrinkWrap: true, + itemCount: widget.isExpanded ? _options.length : 0, + itemBuilder: (BuildContext context, int index) { + final DisplayOption displayOption = _displayOptions.elementAt(index); + return RadioListTile( + value: _options.elementAt(index), + title: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + displayOption.title, + style: theme.textTheme.bodyLarge!.copyWith( + color: Theme.of(context).colorScheme.onPrimary, + ), + ), + if (displayOption.subtitle != null) + Text( + displayOption.subtitle!, + style: theme.textTheme.bodyLarge!.copyWith( + fontSize: 12, + color: Theme.of(context) + .colorScheme + .onPrimary + .withOpacity(0.8), + ), + ), + ], + ), + groupValue: widget.selectedOption, + onChanged: (T? newOption) => widget.onOptionChanged(newOption), + activeColor: Theme.of(context).colorScheme.primary, + dense: true, + ); + }, + ), + ), + ); + } +} + +class _CategoryHeader extends StatelessWidget { + const _CategoryHeader({ + this.margin, + required this.padding, + required this.borderRadius, + required this.subtitleHeight, + required this.chevronRotation, + required this.title, + required this.subtitle, + this.onTap, + }); + + final EdgeInsetsGeometry? margin; + final EdgeInsetsGeometry padding; + final BorderRadiusGeometry borderRadius; + final String title; + final String subtitle; + final Animation subtitleHeight; + final Animation chevronRotation; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final TextTheme textTheme = Theme.of(context).textTheme; + return Container( + margin: margin, + child: Material( + shape: RoundedRectangleBorder(borderRadius: borderRadius), + color: colorScheme.secondary, + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: onTap, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Padding( + padding: padding, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + title, + style: textTheme.titleMedium!.apply( + color: colorScheme.onSurface, + ), + ), + SizeTransition( + sizeFactor: subtitleHeight, + child: Text( + subtitle, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: textTheme.labelSmall!.apply( + color: colorScheme.primary, + ), + ), + ) + ], + ), + ), + ), + Padding( + padding: const EdgeInsetsDirectional.only( + start: 8, + end: 24, + ), + child: RotationTransition( + turns: chevronRotation, + child: const Icon(Icons.arrow_drop_down), + ), + ) + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart new file mode 100644 index 0000000000000000000000000000000000000000..d7914048fafd802ce4279a8eb50b43531d21859d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart @@ -0,0 +1,231 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../constants.dart'; +import '../layout/adaptive.dart'; +import 'home.dart'; + +const double homePeekDesktop = 210.0; +const double homePeekMobile = 60.0; + +class SplashPageAnimation extends InheritedWidget { + const SplashPageAnimation({ + super.key, + required this.isFinished, + required super.child, + }); + + final bool isFinished; + + static SplashPageAnimation? of(BuildContext context) { + return context.dependOnInheritedWidgetOfExactType(); + } + + @override + bool updateShouldNotify(SplashPageAnimation oldWidget) => true; +} + +class SplashPage extends StatefulWidget { + const SplashPage({ + super.key, + required this.child, + }); + + final Widget child; + + @override + State createState() => _SplashPageState(); +} + +class _SplashPageState extends State + with SingleTickerProviderStateMixin { + late AnimationController _controller; + late int _effect; + final Random _random = Random(); + + // A map of the effect index to its duration. This duration is used to + // determine how long to display the splash animation at launch. + // + // If a new effect is added, this map should be updated. + final Map _effectDurations = { + 1: 5, + 2: 4, + 3: 4, + 4: 5, + 5: 5, + 6: 4, + 7: 4, + 8: 4, + 9: 3, + 10: 6, + }; + + bool get _isSplashVisible { + return _controller.status == AnimationStatus.completed || + _controller.status == AnimationStatus.forward; + } + + @override + void initState() { + super.initState(); + + // If the number of included effects changes, this number should be changed. + _effect = _random.nextInt(_effectDurations.length) + 1; + + _controller = + AnimationController(duration: splashPageAnimationDuration, vsync: this) + ..addListener(() { + setState(() {}); + }); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + Animation _getPanelAnimation( + BuildContext context, + BoxConstraints constraints, + ) { + final double height = constraints.biggest.height - + (isDisplayDesktop(context) ? homePeekDesktop : homePeekMobile); + return RelativeRectTween( + begin: RelativeRect.fill, + end: RelativeRect.fromLTRB(0, height, 0, 0), + ).animate(CurvedAnimation(parent: _controller, curve: Curves.easeInOut)); + } + + @override + Widget build(BuildContext context) { + return NotificationListener( + onNotification: (_) { + _controller.forward(); + return true; + }, + child: SplashPageAnimation( + isFinished: _controller.isDismissed, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final Animation animation = _getPanelAnimation(context, constraints); + Widget frontLayer = widget.child; + if (_isSplashVisible) { + frontLayer = MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: _controller.reverse, + onVerticalDragEnd: (DragEndDetails details) { + if (details.velocity.pixelsPerSecond.dy < -200) { + _controller.reverse(); + } + }, + child: IgnorePointer(child: frontLayer), + ), + ); + } + + if (isDisplayDesktop(context)) { + frontLayer = Padding( + padding: const EdgeInsets.only(top: 136), + child: ClipRRect( + borderRadius: const BorderRadius.vertical( + top: Radius.circular(40), + ), + child: frontLayer, + ), + ); + } + + return Stack( + children: [ + _SplashBackLayer( + isSplashCollapsed: !_isSplashVisible, + effect: _effect, + onTap: _controller.forward, + ), + PositionedTransition( + rect: animation, + child: frontLayer, + ), + ], + ); + }, + ), + ), + ); + } +} + +class _SplashBackLayer extends StatelessWidget { + const _SplashBackLayer({ + required this.isSplashCollapsed, + required this.effect, + this.onTap, + }); + + final bool isSplashCollapsed; + final int effect; + final GestureTapCallback? onTap; + + @override + Widget build(BuildContext context) { + final String effectAsset = 'splash_effects/splash_effect_$effect.gif'; + final Image flutterLogo = Image.asset( + 'assets/logo/flutter_logo.png', + package: 'flutter_gallery_assets', + ); + + Widget? child; + if (isSplashCollapsed) { + if (isDisplayDesktop(context)) { + child = Padding( + padding: const EdgeInsets.only(top: 50), + child: Align( + alignment: Alignment.topCenter, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: onTap, + child: flutterLogo, + ), + ), + ), + ); + } + } else { + child = Stack( + children: [ + Center( + child: Image.asset( + effectAsset, + package: 'flutter_gallery_assets', + ), + ), + Center(child: flutterLogo), + ], + ); + } + + return ExcludeSemantics( + child: Material( + // This is the background color of the gifs. + color: const Color(0xFF030303), + child: Padding( + padding: EdgeInsets.only( + bottom: isDisplayDesktop(context) + ? homePeekDesktop + : homePeekMobile, + ), + child: child, + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..d5cc07f1f06c74b072285c62125eda1ce69e99ad --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/routes.dart @@ -0,0 +1,166 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'deferred_widget.dart'; +import 'main.dart'; +import 'pages/demo.dart'; +import 'pages/home.dart'; +import 'studies/crane/app.dart' deferred as crane; +import 'studies/crane/routes.dart' as crane_routes; +import 'studies/fortnightly/app.dart' deferred as fortnightly; +import 'studies/fortnightly/routes.dart' as fortnightly_routes; +import 'studies/rally/app.dart' deferred as rally; +import 'studies/rally/routes.dart' as rally_routes; +import 'studies/reply/app.dart' as reply; +import 'studies/reply/routes.dart' as reply_routes; +import 'studies/shrine/app.dart' deferred as shrine; +import 'studies/shrine/routes.dart' as shrine_routes; +import 'studies/starter/app.dart' as starter_app; +import 'studies/starter/routes.dart' as starter_app_routes; + +typedef PathWidgetBuilder = Widget Function(BuildContext, String?); + +class Path { + const Path(this.pattern, this.builder); + + /// A RegEx string for route matching. + final String pattern; + + /// The builder for the associated pattern route. The first argument is the + /// [BuildContext] and the second argument a RegEx match if that is included + /// in the pattern. + /// + /// ```dart + /// Path( + /// 'r'^/demo/([\w-]+)$', + /// (context, matches) => Page(argument: match), + /// ) + /// ``` + final PathWidgetBuilder builder; +} + +class RouteConfiguration { + /// List of [Path] to for route matching. When a named route is pushed with + /// [Navigator.pushNamed], the route name is matched with the [Path.pattern] + /// in the list below. As soon as there is a match, the associated builder + /// will be returned. This means that the paths higher up in the list will + /// take priority. + static List paths = [ + Path( + r'^' + DemoPage.baseRoute + r'/([\w-]+)$', + (BuildContext context, String? match) => DemoPage(slug: match), + ), + Path( + r'^' + rally_routes.homeRoute, + (BuildContext context, String? match) => StudyWrapper( + study: DeferredWidget(rally.loadLibrary, + () => rally.RallyApp()), // ignore: prefer_const_constructors + ), + ), + Path( + r'^' + shrine_routes.homeRoute, + (BuildContext context, String? match) => StudyWrapper( + study: DeferredWidget(shrine.loadLibrary, + () => shrine.ShrineApp()), // ignore: prefer_const_constructors + ), + ), + Path( + r'^' + crane_routes.defaultRoute, + (BuildContext context, String? match) => StudyWrapper( + study: DeferredWidget(crane.loadLibrary, + () => crane.CraneApp(), // ignore: prefer_const_constructors + placeholder: const DeferredLoadingPlaceholder(name: 'Crane')), + ), + ), + Path( + r'^' + fortnightly_routes.defaultRoute, + (BuildContext context, String? match) => StudyWrapper( + study: DeferredWidget( + fortnightly.loadLibrary, + // ignore: prefer_const_constructors + () => fortnightly.FortnightlyApp()), + ), + ), + Path( + r'^' + reply_routes.homeRoute, + // ignore: prefer_const_constructors + (BuildContext context, String? match) => + const StudyWrapper(study: reply.ReplyApp(), hasBottomNavBar: true), + ), + Path( + r'^' + starter_app_routes.defaultRoute, + (BuildContext context, String? match) => const StudyWrapper( + study: starter_app.StarterApp(), + ), + ), + Path( + r'^/', + (BuildContext context, String? match) => const RootPage(), + ), + ]; + + /// The route generator callback used when the app is navigated to a named + /// route. Set it on the [MaterialApp.onGenerateRoute] or + /// [WidgetsApp.onGenerateRoute] to make use of the [paths] for route + /// matching. + static Route? onGenerateRoute( + RouteSettings settings, + ) { + for (final Path path in paths) { + final RegExp regExpPattern = RegExp(path.pattern); + if (regExpPattern.hasMatch(settings.name!)) { + final RegExpMatch firstMatch = regExpPattern.firstMatch(settings.name!)!; + final String? match = (firstMatch.groupCount == 1) ? firstMatch.group(1) : null; + if (kIsWeb) { + return NoAnimationMaterialPageRoute( + builder: (BuildContext context) => path.builder(context, match), + settings: settings, + ); + } + return MaterialPageRoute( + builder: (BuildContext context) => path.builder(context, match), + settings: settings, + ); + } + } + + // If no match was found, we let [WidgetsApp.onUnknownRoute] handle it. + return null; + } +} + +class NoAnimationMaterialPageRoute extends MaterialPageRoute { + NoAnimationMaterialPageRoute({ + required super.builder, + super.settings, + }); + + @override + Widget buildTransitions( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { + return child; + } +} + +class TwoPanePageRoute extends OverlayRoute { + TwoPanePageRoute({ + required this.builder, + super.settings, + }); + + final WidgetBuilder builder; + + @override + Iterable createOverlayEntries() sync* { + yield OverlayEntry(builder: (BuildContext context) { + return builder.call(context); + }); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..c576b734efcf1ab9a71d94a8729223287f5c84ed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import 'backdrop.dart'; +import 'backlayer.dart'; +import 'eat_form.dart'; +import 'fly_form.dart'; +import 'routes.dart' as routes; +import 'sleep_form.dart'; +import 'theme.dart'; + +class CraneApp extends StatelessWidget { + const CraneApp({super.key}); + + static const String defaultRoute = routes.defaultRoute; + + @override + Widget build(BuildContext context) { + return MaterialApp( + restorationScopeId: 'crane_app', + title: 'Crane', + debugShowCheckedModeBanner: false, + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + initialRoute: CraneApp.defaultRoute, + routes: { + CraneApp.defaultRoute: (BuildContext context) => const _Home(), + }, + theme: craneTheme.copyWith( + platform: GalleryOptions.of(context).platform, + ), + ); + } +} + +class _Home extends StatelessWidget { + const _Home(); + + @override + Widget build(BuildContext context) { + return const ApplyTextOptions( + child: Backdrop( + frontLayer: SizedBox(), + backLayerItems: [ + FlyForm(), + SleepForm(), + EatForm(), + ], + frontTitle: Text('CRANE'), + backTitle: Text('MENU'), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart new file mode 100644 index 0000000000000000000000000000000000000000..3252a71817578b247e81e2508029f7394a5daf60 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart @@ -0,0 +1,394 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/image_placeholder.dart'; +import 'backlayer.dart'; +import 'border_tab_indicator.dart'; +import 'colors.dart'; +import 'header_form.dart'; +import 'item_cards.dart'; +import 'model/data.dart'; +import 'model/destination.dart'; + +class _FrontLayer extends StatefulWidget { + const _FrontLayer({ + required this.title, + required this.index, + required this.mobileTopOffset, + required this.restorationId, + }); + + final String title; + final int index; + final double mobileTopOffset; + final String restorationId; + + @override + _FrontLayerState createState() => _FrontLayerState(); +} + +class _FrontLayerState extends State<_FrontLayer> { + List? destinations; + + static const double frontLayerBorderRadius = 16.0; + static const EdgeInsets bottomPadding = EdgeInsets.only(bottom: 120); + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + // We use didChangeDependencies because the initialization involves an + // InheritedWidget (for localization). However, we don't need to get + // destinations again when, say, resizing the window. + if (destinations == null) { + if (widget.index == 0) { + destinations = getFlyDestinations(context); + } + if (widget.index == 1) { + destinations = getSleepDestinations(context); + } + if (widget.index == 2) { + destinations = getEatDestinations(context); + } + } + } + + Widget _header() { + return Align( + alignment: AlignmentDirectional.centerStart, + child: Padding( + padding: const EdgeInsets.only( + top: 20, + bottom: 22, + ), + child: SelectableText( + widget.title, + style: Theme.of(context).textTheme.titleSmall, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final bool isSmallDesktop = isDisplaySmallDesktop(context); + final int crossAxisCount = isDesktop ? 4 : 1; + + return FocusTraversalGroup( + policy: ReadingOrderTraversalPolicy(), + child: Padding( + padding: isDesktop + ? EdgeInsets.zero + : EdgeInsets.only(top: widget.mobileTopOffset), + child: PhysicalShape( + elevation: 16, + color: cranePrimaryWhite, + clipper: const ShapeBorderClipper( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.only( + topLeft: Radius.circular(frontLayerBorderRadius), + topRight: Radius.circular(frontLayerBorderRadius), + ), + ), + ), + child: Padding( + padding: isDesktop + ? EdgeInsets.symmetric( + horizontal: + isSmallDesktop ? appPaddingSmall : appPaddingLarge) + .add(bottomPadding) + : const EdgeInsets.symmetric(horizontal: 20).add(bottomPadding), + child: Column( + children: [ + _header(), + Expanded( + child: MasonryGridView.count( + key: ValueKey('CraneListView-${widget.index}'), + restorationId: widget.restorationId, + crossAxisCount: crossAxisCount, + crossAxisSpacing: 16.0, + itemBuilder: (BuildContext context, int index) => + DestinationCard(destination: destinations![index]), + itemCount: destinations!.length, + ), + ), + ], + ), + ), + ), + ), + ); + } +} + +/// Builds a Backdrop. +/// +/// A Backdrop widget has two layers, front and back. The front layer is shown +/// by default, and slides down to show the back layer, from which a user +/// can make a selection. The user can also configure the titles for when the +/// front or back layer is showing. +class Backdrop extends StatefulWidget { + + const Backdrop({ + super.key, + required this.frontLayer, + required this.backLayerItems, + required this.frontTitle, + required this.backTitle, + }); + final Widget frontLayer; + final List backLayerItems; + final Widget frontTitle; + final Widget backTitle; + + @override + State createState() => _BackdropState(); +} + +class _BackdropState extends State + with TickerProviderStateMixin, RestorationMixin { + final RestorableInt tabIndex = RestorableInt(0); + late TabController _tabController; + late Animation _flyLayerHorizontalOffset; + late Animation _sleepLayerHorizontalOffset; + late Animation _eatLayerHorizontalOffset; + + // How much the 'sleep' front layer is vertically offset relative to other + // front layers, in pixels, with the mobile layout. + static const double _sleepLayerTopOffset = 60.0; + + @override + String get restorationId => 'tab_non_scrollable_demo'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(tabIndex, 'tab_index'); + _tabController.index = tabIndex.value; + } + + @override + void initState() { + super.initState(); + _tabController = TabController(length: 3, vsync: this); + _tabController.addListener(() { + // When the tab controller's value is updated, make sure to update the + // tab index value, which is state restorable. + setState(() { + tabIndex.value = _tabController.index; + }); + }); + + // Offsets to create a horizontal gap between front layers. + final Animation tabControllerAnimation = _tabController.animation!; + + _flyLayerHorizontalOffset = tabControllerAnimation.drive( + Tween(begin: Offset.zero, end: const Offset(-0.05, 0))); + + _sleepLayerHorizontalOffset = tabControllerAnimation.drive( + Tween(begin: const Offset(0.05, 0), end: Offset.zero)); + + _eatLayerHorizontalOffset = tabControllerAnimation.drive(Tween( + begin: const Offset(0.10, 0), end: const Offset(0.05, 0))); + } + + @override + void dispose() { + _tabController.dispose(); + tabIndex.dispose(); + super.dispose(); + } + + void _handleTabs(int tabIndex) { + _tabController.animateTo(tabIndex, + duration: const Duration(milliseconds: 300)); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final double textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Material( + color: cranePurple800, + child: Padding( + padding: const EdgeInsets.only(top: 12), + child: FocusTraversalGroup( + policy: ReadingOrderTraversalPolicy(), + child: Scaffold( + backgroundColor: cranePurple800, + appBar: AppBar( + automaticallyImplyLeading: false, + systemOverlayStyle: SystemUiOverlayStyle.light, + elevation: 0, + titleSpacing: 0, + flexibleSpace: CraneAppBar( + tabController: _tabController, + tabHandler: _handleTabs, + ), + ), + body: Stack( + children: [ + BackLayer( + tabController: _tabController, + backLayerItems: widget.backLayerItems, + ), + Container( + margin: EdgeInsets.only( + top: isDesktop + ? (isDisplaySmallDesktop(context) + ? textFieldHeight * 3 + : textFieldHeight * 2) + + 20 * textScaleFactor / 2 + : 175 + 140 * textScaleFactor / 2, + ), + // To display the middle front layer higher than the others, + // we allow the TabBarView to overflow by an offset + // (doubled because it technically overflows top & bottom). + // The other front layers are top padded by this offset. + child: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return OverflowBox( + maxHeight: + constraints.maxHeight + _sleepLayerTopOffset * 2, + child: TabBarView( + physics: isDesktop + ? const NeverScrollableScrollPhysics() + : null, // use default TabBarView physics + controller: _tabController, + children: [ + SlideTransition( + position: _flyLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneFlySubhead, + index: 0, + mobileTopOffset: _sleepLayerTopOffset, + restorationId: 'fly-subhead', + ), + ), + SlideTransition( + position: _sleepLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneSleepSubhead, + index: 1, + mobileTopOffset: 0, + restorationId: 'sleep-subhead', + ), + ), + SlideTransition( + position: _eatLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneEatSubhead, + index: 2, + mobileTopOffset: _sleepLayerTopOffset, + restorationId: 'eat-subhead', + ), + ), + ], + ), + ); + }), + ), + ], + ), + ), + ), + ), + ); + } +} + +class CraneAppBar extends StatefulWidget { + + const CraneAppBar({ + super.key, + this.tabHandler, + required this.tabController, + }); + final void Function(int)? tabHandler; + final TabController tabController; + + @override + State createState() => _CraneAppBarState(); +} + +class _CraneAppBarState extends State { + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final bool isSmallDesktop = isDisplaySmallDesktop(context); + final double textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return SafeArea( + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: + isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + const ExcludeSemantics( + child: FadeInImagePlaceholder( + image: ResizeImage( + AssetImage( + 'crane/logo/logo.png', + package: 'flutter_gallery_assets', + ), + width: 40, + height: 60, + ), + placeholder: SizedBox( + width: 40, + height: 60, + ), + width: 40, + height: 60, + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsetsDirectional.only(start: 24), + child: Theme( + data: Theme.of(context).copyWith( + splashColor: Colors.transparent, + ), + child: TabBar( + indicator: BorderTabIndicator( + indicatorHeight: isDesktop ? 28 : 32, + textScaleFactor: textScaleFactor, + ), + controller: widget.tabController, + labelPadding: const EdgeInsets.symmetric(horizontal: 32), + isScrollable: true, + // left-align tabs on desktop + labelStyle: Theme.of(context).textTheme.labelLarge, + labelColor: cranePrimaryWhite, + physics: const BouncingScrollPhysics(), + unselectedLabelColor: cranePrimaryWhite.withOpacity(.6), + onTap: (int index) => widget.tabController.animateTo( + index, + duration: const Duration(milliseconds: 300), + ), + tabs: [ + Tab(text: localizations.craneFly), + Tab(text: localizations.craneSleep), + Tab(text: localizations.craneEat), + ], + ), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart new file mode 100644 index 0000000000000000000000000000000000000000..14eb6db2b4ded72fb3e8fa8f6e21e35be0fa6452 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +abstract class BackLayerItem extends StatefulWidget { + + const BackLayerItem({super.key, required this.index}); + final int index; +} + +class BackLayer extends StatefulWidget { + + const BackLayer({ + super.key, + required this.backLayerItems, + required this.tabController, + }); + final List backLayerItems; + final TabController tabController; + + @override + State createState() => _BackLayerState(); +} + +class _BackLayerState extends State { + @override + void initState() { + super.initState(); + widget.tabController.addListener(() => setState(() {})); + } + + @override + Widget build(BuildContext context) { + final int tabIndex = widget.tabController.index; + return IndexedStack( + index: tabIndex, + children: [ + for (final BackLayerItem backLayerItem in widget.backLayerItems) + ExcludeFocus( + excluding: backLayerItem.index != tabIndex, + child: backLayerItem, + ) + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart new file mode 100644 index 0000000000000000000000000000000000000000..7b5eb055980bbbdf66092f4eedcfc116d84ea873 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class BorderTabIndicator extends Decoration { + const BorderTabIndicator({ + required this.indicatorHeight, + required this.textScaleFactor, + }) : super(); + + final double indicatorHeight; + final double textScaleFactor; + + @override + BorderPainter createBoxPainter([VoidCallback? onChanged]) { + return BorderPainter(this, indicatorHeight, textScaleFactor, onChanged); + } +} + +class BorderPainter extends BoxPainter { + BorderPainter( + this.decoration, + this.indicatorHeight, + this.textScaleFactor, + VoidCallback? onChanged, + ) : assert(indicatorHeight >= 0), + super(onChanged); + + final BorderTabIndicator decoration; + final double indicatorHeight; + final double textScaleFactor; + + @override + void paint(Canvas canvas, Offset offset, ImageConfiguration configuration) { + assert(configuration.size != null); + final double horizontalInset = 16 - 4 * textScaleFactor; + final Rect rect = Offset(offset.dx + horizontalInset, + (configuration.size!.height / 2) - indicatorHeight / 2 - 1) & + Size(configuration.size!.width - 2 * horizontalInset, indicatorHeight); + final Paint paint = Paint(); + paint.color = Colors.white; + paint.style = PaintingStyle.stroke; + paint.strokeWidth = 2; + canvas.drawRRect( + RRect.fromRectAndRadius(rect, const Radius.circular(56)), + paint, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/colors.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/colors.dart new file mode 100644 index 0000000000000000000000000000000000000000..d6f69baab5dbd18efab914a5358404b5138e9172 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/colors.dart @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +const Color cranePurple700 = Color(0xFF720D5D); +const Color cranePurple800 = Color(0xFF5D1049); +const Color cranePurple900 = Color(0xFF4E0D3A); + +const Color craneRed700 = Color(0xFFE30425); + +const Color craneWhite60 = Color(0x99FFFFFF); +const Color cranePrimaryWhite = Color(0xFFFFFFFF); +const Color craneErrorOrange = Color(0xFFFF9100); + +const Color craneAlpha = Color(0x00FFFFFF); + +const Color craneGrey = Color(0xFF747474); +const Color craneBlack = Color(0xFF1E252D); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/eat_form.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/eat_form.dart new file mode 100644 index 0000000000000000000000000000000000000000..097727bacba0cc608a22f7dc8f633d65bac80306 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/eat_form.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'backlayer.dart'; +import 'header_form.dart'; + +class EatForm extends BackLayerItem { + const EatForm({super.key}) : super(index: 2); + + @override + State createState() => _EatFormState(); +} + +class _EatFormState extends State with RestorationMixin { + final RestorableTextEditingController dinerController = RestorableTextEditingController(); + final RestorableTextEditingController dateController = RestorableTextEditingController(); + final RestorableTextEditingController timeController = RestorableTextEditingController(); + final RestorableTextEditingController locationController = RestorableTextEditingController(); + + @override + String get restorationId => 'eat_form'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(dinerController, 'diner_controller'); + registerForRestoration(dateController, 'date_controller'); + registerForRestoration(timeController, 'time_controller'); + registerForRestoration(locationController, 'location_controller'); + } + + @override + void dispose() { + dinerController.dispose(); + dateController.dispose(); + timeController.dispose(); + locationController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return HeaderForm( + fields: [ + HeaderFormField( + index: 0, + iconData: Icons.person, + title: localizations.craneFormDiners, + textController: dinerController.value, + ), + HeaderFormField( + index: 1, + iconData: Icons.date_range, + title: localizations.craneFormDate, + textController: dateController.value, + ), + HeaderFormField( + index: 2, + iconData: Icons.access_time, + title: localizations.craneFormTime, + textController: timeController.value, + ), + HeaderFormField( + index: 3, + iconData: Icons.restaurant_menu, + title: localizations.craneFormLocation, + textController: locationController.value, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart new file mode 100644 index 0000000000000000000000000000000000000000..9a69842acdac4a994745a2a2a664a908803b05d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'backlayer.dart'; +import 'header_form.dart'; + +class FlyForm extends BackLayerItem { + const FlyForm({super.key}) : super(index: 0); + + @override + State createState() => _FlyFormState(); +} + +class _FlyFormState extends State with RestorationMixin { + final RestorableTextEditingController travelerController = RestorableTextEditingController(); + final RestorableTextEditingController countryDestinationController = RestorableTextEditingController(); + final RestorableTextEditingController destinationController = RestorableTextEditingController(); + final RestorableTextEditingController dateController = RestorableTextEditingController(); + + @override + String get restorationId => 'fly_form'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(travelerController, 'diner_controller'); + registerForRestoration(countryDestinationController, 'date_controller'); + registerForRestoration(destinationController, 'time_controller'); + registerForRestoration(dateController, 'location_controller'); + } + + @override + void dispose() { + travelerController.dispose(); + countryDestinationController.dispose(); + destinationController.dispose(); + dateController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return HeaderForm( + fields: [ + HeaderFormField( + index: 0, + iconData: Icons.person, + title: localizations.craneFormTravelers, + textController: travelerController.value, + ), + HeaderFormField( + index: 1, + iconData: Icons.place, + title: localizations.craneFormOrigin, + textController: countryDestinationController.value, + ), + HeaderFormField( + index: 2, + iconData: Icons.airplanemode_active, + title: localizations.craneFormDestination, + textController: destinationController.value, + ), + HeaderFormField( + index: 3, + iconData: Icons.date_range, + title: localizations.craneFormDates, + textController: dateController.value, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart new file mode 100644 index 0000000000000000000000000000000000000000..70d5202671bedfdf2c9f276d9ad60bcd4dd0261b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart @@ -0,0 +1,110 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../layout/adaptive.dart'; +import 'colors.dart'; + +const double textFieldHeight = 60.0; +const double appPaddingLarge = 120.0; +const double appPaddingSmall = 24.0; + +class HeaderFormField { + + const HeaderFormField({ + required this.index, + required this.iconData, + required this.title, + required this.textController, + }); + final int index; + final IconData iconData; + final String title; + final TextEditingController textController; +} + +class HeaderForm extends StatelessWidget { + + const HeaderForm({super.key, required this.fields}); + final List fields; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final bool isSmallDesktop = isDisplaySmallDesktop(context); + + return Padding( + padding: EdgeInsets.symmetric( + horizontal: + isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, + ), + child: isDesktop + ? LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + int crossAxisCount = isSmallDesktop ? 2 : 4; + if (fields.length < crossAxisCount) { + crossAxisCount = fields.length; + } + final double itemWidth = constraints.maxWidth / crossAxisCount; + return GridView.count( + crossAxisCount: crossAxisCount, + childAspectRatio: itemWidth / textFieldHeight, + physics: const NeverScrollableScrollPhysics(), + children: [ + for (final HeaderFormField field in fields) + if ((field.index + 1) % crossAxisCount == 0) + _HeaderTextField(field: field) + else + Padding( + padding: const EdgeInsetsDirectional.only(end: 16), + child: _HeaderTextField(field: field), + ), + ], + ); + }) + : Column( + mainAxisSize: MainAxisSize.min, + children: [ + for (final HeaderFormField field in fields) + Padding( + padding: const EdgeInsets.only(bottom: 8), + child: _HeaderTextField(field: field), + ) + ], + ), + ); + } +} + +class _HeaderTextField extends StatelessWidget { + + const _HeaderTextField({required this.field}); + final HeaderFormField field; + + @override + Widget build(BuildContext context) { + return TextField( + controller: field.textController, + cursorColor: Theme.of(context).colorScheme.secondary, + style: + Theme.of(context).textTheme.bodyLarge!.copyWith(color: Colors.white), + onTap: () {}, + decoration: InputDecoration( + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(4), + borderSide: BorderSide.none, + ), + contentPadding: const EdgeInsets.all(16), + fillColor: cranePurple700, + filled: true, + hintText: field.title, + floatingLabelBehavior: FloatingLabelBehavior.never, + prefixIcon: Icon( + field.iconData, + size: 24, + color: Theme.of(context).iconTheme.color, + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart new file mode 100644 index 0000000000000000000000000000000000000000..c5abd5f5224fb8718de9aa84731bca94f76b65ed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart @@ -0,0 +1,126 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/highlight_focus.dart'; +import '../../layout/image_placeholder.dart'; +import 'model/destination.dart'; + +// Width and height for thumbnail images. +const double mobileThumbnailSize = 60.0; + +class DestinationCard extends StatelessWidget { + const DestinationCard({ + super.key, + required this.destination, + }); + + final Destination destination; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final TextTheme textTheme = Theme.of(context).textTheme; + + final Widget card = isDesktop + ? Padding( + padding: const EdgeInsets.only(bottom: 40), + child: Semantics( + container: true, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(4)), + child: _DestinationImage(destination: destination), + ), + Padding( + padding: const EdgeInsets.only(top: 20, bottom: 10), + child: SelectableText( + destination.destination, + style: textTheme.titleMedium, + ), + ), + SelectableText( + destination.subtitle(context), + semanticsLabel: destination.subtitleSemantics(context), + style: textTheme.titleSmall, + ), + ], + ), + ), + ) + : Column( + mainAxisSize: MainAxisSize.min, + children: [ + ListTile( + contentPadding: const EdgeInsetsDirectional.only(end: 8), + leading: ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(4)), + child: SizedBox( + width: mobileThumbnailSize, + height: mobileThumbnailSize, + child: _DestinationImage(destination: destination), + ), + ), + title: SelectableText(destination.destination, + style: textTheme.titleMedium), + subtitle: SelectableText( + destination.subtitle(context), + semanticsLabel: destination.subtitleSemantics(context), + style: textTheme.titleSmall, + ), + ), + const Divider(thickness: 1), + ], + ); + + return HighlightFocus( + debugLabel: 'DestinationCard: ${destination.destination}', + highlightColor: Colors.red.withOpacity(0.1), + onPressed: () {}, + child: card, + ); + } +} + +class _DestinationImage extends StatelessWidget { + const _DestinationImage({ + required this.destination, + }); + + final Destination destination; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return Semantics( + label: destination.assetSemanticLabel, + child: ExcludeSemantics( + child: FadeInImagePlaceholder( + image: ResizeImage( + AssetImage( + destination.assetName, + package: 'flutter_gallery_assets', + ), + width: isDesktop ? null : mobileThumbnailSize.toInt(), + height: isDesktop ? null : mobileThumbnailSize.toInt(), + ), + fit: BoxFit.cover, + width: isDesktop ? null : mobileThumbnailSize, + height: isDesktop ? null : mobileThumbnailSize, + placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / destination.imageAspectRatio, + ); + }), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/data.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/data.dart new file mode 100644 index 0000000000000000000000000000000000000000..9ea2105069951114f5070bf6e893d3e6fcb413a5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/data.dart @@ -0,0 +1,296 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../../gallery_localizations.dart'; +import 'destination.dart'; + +List getFlyDestinations(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + FlyDestination( + id: 0, + destination: localizations.craneFly0, + stops: 1, + duration: const Duration(hours: 6, minutes: 15), + assetSemanticLabel: localizations.craneFly0SemanticLabel, + ), + FlyDestination( + id: 1, + destination: localizations.craneFly1, + stops: 0, + duration: const Duration(hours: 13, minutes: 30), + assetSemanticLabel: localizations.craneFly1SemanticLabel, + imageAspectRatio: 400 / 410, + ), + FlyDestination( + id: 2, + destination: localizations.craneFly2, + stops: 0, + duration: const Duration(hours: 5, minutes: 16), + assetSemanticLabel: localizations.craneFly2SemanticLabel, + imageAspectRatio: 400 / 394, + ), + FlyDestination( + id: 3, + destination: localizations.craneFly3, + stops: 2, + duration: const Duration(hours: 19, minutes: 40), + assetSemanticLabel: localizations.craneFly3SemanticLabel, + imageAspectRatio: 400 / 377, + ), + FlyDestination( + id: 4, + destination: localizations.craneFly4, + stops: 0, + duration: const Duration(hours: 8, minutes: 24), + assetSemanticLabel: localizations.craneFly4SemanticLabel, + imageAspectRatio: 400 / 308, + ), + FlyDestination( + id: 5, + destination: localizations.craneFly5, + stops: 1, + duration: const Duration(hours: 14, minutes: 12), + assetSemanticLabel: localizations.craneFly5SemanticLabel, + imageAspectRatio: 400 / 418, + ), + FlyDestination( + id: 6, + destination: localizations.craneFly6, + stops: 0, + duration: const Duration(hours: 5, minutes: 24), + assetSemanticLabel: localizations.craneFly6SemanticLabel, + imageAspectRatio: 400 / 345, + ), + FlyDestination( + id: 7, + destination: localizations.craneFly7, + stops: 1, + duration: const Duration(hours: 5, minutes: 43), + assetSemanticLabel: localizations.craneFly7SemanticLabel, + imageAspectRatio: 400 / 408, + ), + FlyDestination( + id: 8, + destination: localizations.craneFly8, + stops: 0, + duration: const Duration(hours: 8, minutes: 25), + assetSemanticLabel: localizations.craneFly8SemanticLabel, + imageAspectRatio: 400 / 399, + ), + FlyDestination( + id: 9, + destination: localizations.craneFly9, + stops: 1, + duration: const Duration(hours: 15, minutes: 52), + assetSemanticLabel: localizations.craneFly9SemanticLabel, + imageAspectRatio: 400 / 379, + ), + FlyDestination( + id: 10, + destination: localizations.craneFly10, + stops: 0, + duration: const Duration(hours: 5, minutes: 57), + assetSemanticLabel: localizations.craneFly10SemanticLabel, + imageAspectRatio: 400 / 307, + ), + FlyDestination( + id: 11, + destination: localizations.craneFly11, + stops: 1, + duration: const Duration(hours: 13, minutes: 24), + assetSemanticLabel: localizations.craneFly11SemanticLabel, + imageAspectRatio: 400 / 369, + ), + FlyDestination( + id: 12, + destination: localizations.craneFly12, + stops: 2, + duration: const Duration(hours: 10, minutes: 20), + assetSemanticLabel: localizations.craneFly12SemanticLabel, + imageAspectRatio: 400 / 394, + ), + FlyDestination( + id: 13, + destination: localizations.craneFly13, + stops: 0, + duration: const Duration(hours: 7, minutes: 15), + assetSemanticLabel: localizations.craneFly13SemanticLabel, + imageAspectRatio: 400 / 433, + ), + ]; +} + +List getSleepDestinations(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + SleepDestination( + id: 0, + destination: localizations.craneSleep0, + total: 2241, + assetSemanticLabel: localizations.craneSleep0SemanticLabel, + imageAspectRatio: 400 / 308, + ), + SleepDestination( + id: 1, + destination: localizations.craneSleep1, + total: 876, + assetSemanticLabel: localizations.craneSleep1SemanticLabel, + ), + SleepDestination( + id: 2, + destination: localizations.craneSleep2, + total: 1286, + assetSemanticLabel: localizations.craneSleep2SemanticLabel, + imageAspectRatio: 400 / 377, + ), + SleepDestination( + id: 3, + destination: localizations.craneSleep3, + total: 496, + assetSemanticLabel: localizations.craneSleep3SemanticLabel, + imageAspectRatio: 400 / 379, + ), + SleepDestination( + id: 4, + destination: localizations.craneSleep4, + total: 390, + assetSemanticLabel: localizations.craneSleep4SemanticLabel, + imageAspectRatio: 400 / 418, + ), + SleepDestination( + id: 5, + destination: localizations.craneSleep5, + total: 876, + assetSemanticLabel: localizations.craneSleep5SemanticLabel, + imageAspectRatio: 400 / 410, + ), + SleepDestination( + id: 6, + destination: localizations.craneSleep6, + total: 989, + assetSemanticLabel: localizations.craneSleep6SemanticLabel, + imageAspectRatio: 400 / 394, + ), + SleepDestination( + id: 7, + destination: localizations.craneSleep7, + total: 306, + assetSemanticLabel: localizations.craneSleep7SemanticLabel, + imageAspectRatio: 400 / 266, + ), + SleepDestination( + id: 8, + destination: localizations.craneSleep8, + total: 385, + assetSemanticLabel: localizations.craneSleep8SemanticLabel, + imageAspectRatio: 400 / 376, + ), + SleepDestination( + id: 9, + destination: localizations.craneSleep9, + total: 989, + assetSemanticLabel: localizations.craneSleep9SemanticLabel, + imageAspectRatio: 400 / 369, + ), + SleepDestination( + id: 10, + destination: localizations.craneSleep10, + total: 1380, + assetSemanticLabel: localizations.craneSleep10SemanticLabel, + imageAspectRatio: 400 / 307, + ), + SleepDestination( + id: 11, + destination: localizations.craneSleep11, + total: 1109, + assetSemanticLabel: localizations.craneSleep11SemanticLabel, + imageAspectRatio: 400 / 456, + ), + ]; +} + +List getEatDestinations(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + EatDestination( + id: 0, + destination: localizations.craneEat0, + total: 354, + assetSemanticLabel: localizations.craneEat0SemanticLabel, + imageAspectRatio: 400 / 444, + ), + EatDestination( + id: 1, + destination: localizations.craneEat1, + total: 623, + assetSemanticLabel: localizations.craneEat1SemanticLabel, + imageAspectRatio: 400 / 340, + ), + EatDestination( + id: 2, + destination: localizations.craneEat2, + total: 124, + assetSemanticLabel: localizations.craneEat2SemanticLabel, + imageAspectRatio: 400 / 406, + ), + EatDestination( + id: 3, + destination: localizations.craneEat3, + total: 495, + assetSemanticLabel: localizations.craneEat3SemanticLabel, + imageAspectRatio: 400 / 323, + ), + EatDestination( + id: 4, + destination: localizations.craneEat4, + total: 683, + assetSemanticLabel: localizations.craneEat4SemanticLabel, + imageAspectRatio: 400 / 404, + ), + EatDestination( + id: 5, + destination: localizations.craneEat5, + total: 786, + assetSemanticLabel: localizations.craneEat5SemanticLabel, + imageAspectRatio: 400 / 407, + ), + EatDestination( + id: 6, + destination: localizations.craneEat6, + total: 323, + assetSemanticLabel: localizations.craneEat6SemanticLabel, + imageAspectRatio: 400 / 431, + ), + EatDestination( + id: 7, + destination: localizations.craneEat7, + total: 285, + assetSemanticLabel: localizations.craneEat7SemanticLabel, + imageAspectRatio: 400 / 422, + ), + EatDestination( + id: 8, + destination: localizations.craneEat8, + total: 323, + assetSemanticLabel: localizations.craneEat8SemanticLabel, + imageAspectRatio: 400 / 300, + ), + EatDestination( + id: 9, + destination: localizations.craneEat9, + total: 1406, + assetSemanticLabel: localizations.craneEat9SemanticLabel, + imageAspectRatio: 400 / 451, + ), + EatDestination( + id: 10, + destination: localizations.craneEat10, + total: 849, + assetSemanticLabel: localizations.craneEat10SemanticLabel, + imageAspectRatio: 400 / 266, + ), + ]; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart new file mode 100644 index 0000000000000000000000000000000000000000..ac09c42438d15bd0a722e3529e159a13df36c600 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart @@ -0,0 +1,118 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../../data/gallery_options.dart'; +import '../../../gallery_localizations.dart'; +import 'formatters.dart'; + +abstract class Destination { + const Destination({ + required this.id, + required this.destination, + required this.assetSemanticLabel, + required this.imageAspectRatio, + }); + + final int id; + final String destination; + final String assetSemanticLabel; + final double imageAspectRatio; + + String get assetName; + + String subtitle(BuildContext context); + + String subtitleSemantics(BuildContext context) => subtitle(context); + + @override + String toString() => '$destination (id=$id)'; +} + +class FlyDestination extends Destination { + const FlyDestination({ + required super.id, + required super.destination, + required super.assetSemanticLabel, + required this.stops, + super.imageAspectRatio = 1, + this.duration, + }); + + final int stops; + final Duration? duration; + + @override + String get assetName => 'crane/destinations/fly_$id.jpg'; + + @override + String subtitle(BuildContext context) { + final String stopsText = GalleryLocalizations.of(context)!.craneFlyStops(stops); + + if (duration == null) { + return stopsText; + } else { + final TextDirection? textDirection = GalleryOptions.of(context).resolvedTextDirection(); + final String durationText = + formattedDuration(context, duration!, abbreviated: true); + return textDirection == TextDirection.ltr + ? '$stopsText · $durationText' + : '$durationText · $stopsText'; + } + } + + @override + String subtitleSemantics(BuildContext context) { + final String stopsText = GalleryLocalizations.of(context)!.craneFlyStops(stops); + + if (duration == null) { + return stopsText; + } else { + final String durationText = + formattedDuration(context, duration!, abbreviated: false); + return '$stopsText, $durationText'; + } + } +} + +class SleepDestination extends Destination { + const SleepDestination({ + required super.id, + required super.destination, + required super.assetSemanticLabel, + required this.total, + super.imageAspectRatio = 1, + }); + + final int total; + + @override + String get assetName => 'crane/destinations/sleep_$id.jpg'; + + @override + String subtitle(BuildContext context) { + return GalleryLocalizations.of(context)!.craneSleepProperties(total); + } +} + +class EatDestination extends Destination { + const EatDestination({ + required super.id, + required super.destination, + required super.assetSemanticLabel, + required this.total, + super.imageAspectRatio = 1, + }); + + final int total; + + @override + String get assetName => 'crane/destinations/eat_$id.jpg'; + + @override + String subtitle(BuildContext context) { + return GalleryLocalizations.of(context)!.craneEatRestaurants(total); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart new file mode 100644 index 0000000000000000000000000000000000000000..cacc0f9636dcb231efbeb3ac02b4fb7b15e3e90d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../../gallery_localizations.dart'; + +// Duration of time (e.g. 16h 12m) +String formattedDuration(BuildContext context, Duration duration, + {bool? abbreviated}) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + final String hoursShortForm = localizations.craneHours(duration.inHours); + final String minutesShortForm = localizations.craneMinutes(duration.inMinutes % 60); + return localizations.craneFlightDuration(hoursShortForm, minutesShortForm); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..6cf67d61d504810817ce6833be588010a753fd53 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/routes.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String defaultRoute = '/crane'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/sleep_form.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/sleep_form.dart new file mode 100644 index 0000000000000000000000000000000000000000..31fc912f80356570cf6ea8147bfc9b5f629c6900 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/sleep_form.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../gallery_localizations.dart'; + +import 'backlayer.dart'; +import 'header_form.dart'; + +class SleepForm extends BackLayerItem { + const SleepForm({super.key}) : super(index: 1); + + @override + State createState() => _SleepFormState(); +} + +class _SleepFormState extends State with RestorationMixin { + final RestorableTextEditingController travelerController = RestorableTextEditingController(); + final RestorableTextEditingController dateController = RestorableTextEditingController(); + final RestorableTextEditingController locationController = RestorableTextEditingController(); + + @override + String get restorationId => 'sleep_form'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(travelerController, 'diner_controller'); + registerForRestoration(dateController, 'date_controller'); + registerForRestoration(locationController, 'time_controller'); + } + + @override + void dispose() { + travelerController.dispose(); + dateController.dispose(); + locationController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return HeaderForm( + fields: [ + HeaderFormField( + index: 0, + iconData: Icons.person, + title: localizations.craneFormTravelers, + textController: travelerController.value, + ), + HeaderFormField( + index: 1, + iconData: Icons.date_range, + title: localizations.craneFormDates, + textController: dateController.value, + ), + HeaderFormField( + index: 2, + iconData: Icons.hotel, + title: localizations.craneFormLocation, + textController: locationController.value, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart new file mode 100644 index 0000000000000000000000000000000000000000..c6b4fc98ef49ab8f238f12735aafe2a7dc73500a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart @@ -0,0 +1,102 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; + +import '../../layout/letter_spacing.dart'; +import 'colors.dart'; + +final ThemeData craneTheme = _buildCraneTheme(); + +IconThemeData _customIconTheme(IconThemeData original, Color color) { + return original.copyWith(color: color); +} + +ThemeData _buildCraneTheme() { + final ThemeData base = ThemeData.light(); + + return base.copyWith( + colorScheme: const ColorScheme.light().copyWith( + primary: cranePurple800, + secondary: craneRed700, + error: craneErrorOrange, + ), + hintColor: craneWhite60, + indicatorColor: cranePrimaryWhite, + scaffoldBackgroundColor: cranePrimaryWhite, + cardColor: cranePrimaryWhite, + highlightColor: Colors.transparent, + textTheme: _buildCraneTextTheme(base.textTheme), + textSelectionTheme: const TextSelectionThemeData( + selectionColor: cranePurple700, + ), + primaryTextTheme: _buildCraneTextTheme(base.primaryTextTheme), + iconTheme: _customIconTheme(base.iconTheme, craneWhite60), + primaryIconTheme: _customIconTheme(base.iconTheme, cranePrimaryWhite), + ); +} + +TextTheme _buildCraneTextTheme(TextTheme base) { + return GoogleFonts.ralewayTextTheme( + base.copyWith( + displayLarge: base.displayLarge!.copyWith( + fontWeight: FontWeight.w300, + fontSize: 96, + ), + displayMedium: base.displayMedium!.copyWith( + fontWeight: FontWeight.w400, + fontSize: 60, + ), + displaySmall: base.displaySmall!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 48, + ), + headlineMedium: base.headlineMedium!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 34, + ), + headlineSmall: base.headlineSmall!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 24, + ), + titleLarge: base.titleLarge!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 20, + ), + titleMedium: base.titleMedium!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 16, + letterSpacing: letterSpacingOrNone(0.5), + ), + titleSmall: base.titleSmall!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 12, + color: craneGrey, + ), + bodyLarge: base.bodyLarge!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 16, + ), + bodyMedium: base.bodyMedium!.copyWith( + fontWeight: FontWeight.w400, + fontSize: 14, + ), + labelLarge: base.labelLarge!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 13, + letterSpacing: letterSpacingOrNone(0.8), + ), + bodySmall: base.bodySmall!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 12, + color: craneGrey, + ), + labelSmall: base.labelSmall!.copyWith( + fontWeight: FontWeight.w600, + fontSize: 12, + ), + ), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..3aa46e9183a69412cb7973158001d04abacfdff9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart @@ -0,0 +1,181 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/image_placeholder.dart'; +import '../../layout/text_scale.dart'; +import 'routes.dart' as routes; +import 'shared.dart'; + +const String _fortnightlyTitle = 'Fortnightly'; + +class FortnightlyApp extends StatelessWidget { + const FortnightlyApp({super.key}); + + static const String defaultRoute = routes.defaultRoute; + + @override + Widget build(BuildContext context) { + final StatelessWidget home = isDisplayDesktop(context) + ? const _FortnightlyHomeDesktop() + : const _FortnightlyHomeMobile(); + return MaterialApp( + restorationScopeId: 'fortnightly_app', + title: _fortnightlyTitle, + debugShowCheckedModeBanner: false, + theme: buildTheme(context).copyWith( + platform: GalleryOptions.of(context).platform, + ), + home: ApplyTextOptions(child: home), + routes: { + FortnightlyApp.defaultRoute: (BuildContext context) => ApplyTextOptions(child: home), + }, + initialRoute: FortnightlyApp.defaultRoute, + // L10n settings. + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + ); + } +} + +class _FortnightlyHomeMobile extends StatelessWidget { + const _FortnightlyHomeMobile(); + + @override + Widget build(BuildContext context) { + return Scaffold( + drawer: const Drawer( + child: SafeArea( + child: NavigationMenu(isCloseable: true), + ), + ), + appBar: AppBar( + automaticallyImplyLeading: false, + title: Semantics( + label: _fortnightlyTitle, + child: const FadeInImagePlaceholder( + image: AssetImage( + 'fortnightly/fortnightly_title.png', + package: 'flutter_gallery_assets', + ), + placeholder: SizedBox.shrink(), + excludeFromSemantics: true, + ), + ), + actions: [ + IconButton( + icon: const Icon(Icons.search), + tooltip: GalleryLocalizations.of(context)!.shrineTooltipSearch, + onPressed: () {}, + ), + ], + ), + body: SafeArea( + child: ListView( + restorationId: 'list_view', + children: [ + const HashtagBar(), + for (final Widget item in buildArticlePreviewItems(context)) + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: item, + ), + ], + ), + ), + ); + } +} + +class _FortnightlyHomeDesktop extends StatelessWidget { + const _FortnightlyHomeDesktop(); + + @override + Widget build(BuildContext context) { + const double menuWidth = 200.0; + const SizedBox spacer = SizedBox(width: 20); + final double headerHeight = 40 * reducedTextScale(context); + + return Scaffold( + body: Padding( + padding: const EdgeInsets.all(16), + child: Column( + children: [ + SizedBox( + height: headerHeight, + child: Row( + children: [ + Container( + width: menuWidth, + alignment: AlignmentDirectional.centerStart, + margin: const EdgeInsets.only(left: 12), + child: Semantics( + label: _fortnightlyTitle, + child: Image.asset( + 'fortnightly/fortnightly_title.png', + package: 'flutter_gallery_assets', + excludeFromSemantics: true, + ), + ), + ), + spacer, + const Flexible( + flex: 2, + child: HashtagBar(), + ), + spacer, + Flexible( + fit: FlexFit.tight, + child: Container( + alignment: AlignmentDirectional.centerEnd, + child: IconButton( + icon: const Icon(Icons.search), + tooltip: GalleryLocalizations.of(context)! + .shrineTooltipSearch, + onPressed: () {}, + ), + ), + ), + ], + ), + ), + Flexible( + child: Row( + children: [ + const SizedBox( + width: menuWidth, + child: NavigationMenu(), + ), + spacer, + Flexible( + flex: 2, + child: ListView( + children: buildArticlePreviewItems(context), + ), + ), + spacer, + Flexible( + fit: FlexFit.tight, + child: ListView( + children: [ + ...buildStockItems(context), + const SizedBox(height: 32), + ...buildVideoPreviewItems(context), + ], + ), + ), + ], + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..1587de133d73111ba580173c9ca3de1eb29adce4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/routes.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String defaultRoute = '/fortnightly'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart new file mode 100644 index 0000000000000000000000000000000000000000..d8cc8b4709d3e13ef70180a154cac376887edec9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart @@ -0,0 +1,621 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:intl/intl.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/image_placeholder.dart'; +import '../../layout/text_scale.dart'; + +class ArticleData { + ArticleData({ + required this.imageUrl, + required this.imageAspectRatio, + required this.category, + required this.title, + this.snippet, + }); + + final String imageUrl; + final double imageAspectRatio; + final String category; + final String title; + final String? snippet; +} + +class HorizontalArticlePreview extends StatelessWidget { + const HorizontalArticlePreview({ + super.key, + required this.data, + this.minutes, + }); + + final ArticleData data; + final int? minutes; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SelectableText( + data.category, + style: textTheme.titleMedium, + ), + const SizedBox(height: 12), + SelectableText( + data.title, + style: textTheme.headlineSmall!.copyWith(fontSize: 16), + ), + ], + ), + ), + if (minutes != null) ...[ + SelectableText( + GalleryLocalizations.of(context)!.craneMinutes(minutes!), + style: textTheme.bodyLarge, + ), + const SizedBox(width: 8), + ], + FadeInImagePlaceholder( + image: AssetImage(data.imageUrl, package: 'flutter_gallery_assets'), + placeholder: Container( + color: Colors.black.withOpacity(0.1), + width: 64 / (1 / data.imageAspectRatio), + height: 64, + ), + fit: BoxFit.cover, + excludeFromSemantics: true, + ), + ], + ); + } +} + +class VerticalArticlePreview extends StatelessWidget { + const VerticalArticlePreview({ + super.key, + required this.data, + this.width, + this.headlineTextStyle, + this.showSnippet = false, + }); + + final ArticleData data; + final double? width; + final TextStyle? headlineTextStyle; + final bool showSnippet; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return SizedBox( + width: width ?? double.infinity, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + width: double.infinity, + child: FadeInImagePlaceholder( + image: AssetImage( + data.imageUrl, + package: 'flutter_gallery_assets', + ), + placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / data.imageAspectRatio, + ); + }), + fit: BoxFit.fitWidth, + width: double.infinity, + excludeFromSemantics: true, + ), + ), + const SizedBox(height: 12), + SelectableText( + data.category, + style: textTheme.titleMedium, + ), + const SizedBox(height: 12), + SelectableText( + data.title, + style: headlineTextStyle ?? textTheme.headlineSmall, + ), + if (showSnippet) ...[ + const SizedBox(height: 4), + SelectableText( + data.snippet!, + style: textTheme.bodyMedium, + ), + ], + ], + ), + ); + } +} + +List buildArticlePreviewItems(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final Widget articleDivider = Container( + margin: const EdgeInsets.symmetric(vertical: 16), + color: Colors.black.withOpacity(0.07), + height: 1, + ); + final Widget sectionDivider = Container( + margin: const EdgeInsets.symmetric(vertical: 16), + color: Colors.black.withOpacity(0.2), + height: 1, + ); + final TextTheme textTheme = Theme.of(context).textTheme; + + return [ + VerticalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_healthcare.jpg', + imageAspectRatio: 391 / 248, + category: localizations.fortnightlyMenuWorld.toUpperCase(), + title: localizations.fortnightlyHeadlineHealthcare, + ), + headlineTextStyle: textTheme.headlineSmall!.copyWith(fontSize: 20), + ), + articleDivider, + HorizontalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_war.png', + imageAspectRatio: 1, + category: localizations.fortnightlyMenuPolitics.toUpperCase(), + title: localizations.fortnightlyHeadlineWar, + ), + ), + articleDivider, + HorizontalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_gas.png', + imageAspectRatio: 1, + category: localizations.fortnightlyMenuTech.toUpperCase(), + title: localizations.fortnightlyHeadlineGasoline, + ), + ), + sectionDivider, + SelectableText( + localizations.fortnightlyLatestUpdates, + style: textTheme.titleLarge, + ), + articleDivider, + HorizontalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_army.png', + imageAspectRatio: 1, + category: localizations.fortnightlyMenuPolitics.toUpperCase(), + title: localizations.fortnightlyHeadlineArmy, + ), + minutes: 2, + ), + articleDivider, + HorizontalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_stocks.png', + imageAspectRatio: 77 / 64, + category: localizations.fortnightlyMenuWorld.toUpperCase(), + title: localizations.fortnightlyHeadlineStocks, + ), + minutes: 5, + ), + articleDivider, + HorizontalArticlePreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_fabrics.png', + imageAspectRatio: 76 / 64, + category: localizations.fortnightlyMenuTech.toUpperCase(), + title: localizations.fortnightlyHeadlineFabrics, + ), + minutes: 4, + ), + articleDivider, + ]; +} + +class HashtagBar extends StatelessWidget { + const HashtagBar({super.key}); + + @override + Widget build(BuildContext context) { + final Container verticalDivider = Container( + margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + color: Colors.black.withOpacity(0.1), + width: 1, + ); + final TextTheme textTheme = Theme.of(context).textTheme; + final double height = 32 * reducedTextScale(context); + + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return SizedBox( + height: height, + child: ListView( + restorationId: 'hashtag_bar_list_view', + scrollDirection: Axis.horizontal, + children: [ + const SizedBox(width: 16), + Center( + child: SelectableText( + '#${localizations.fortnightlyTrendingTechDesign}', + style: textTheme.titleSmall, + ), + ), + verticalDivider, + Center( + child: SelectableText( + '#${localizations.fortnightlyTrendingReform}', + style: textTheme.titleSmall, + ), + ), + verticalDivider, + Center( + child: SelectableText( + '#${localizations.fortnightlyTrendingHealthcareRevolution}', + style: textTheme.titleSmall, + ), + ), + verticalDivider, + Center( + child: SelectableText( + '#${localizations.fortnightlyTrendingGreenArmy}', + style: textTheme.titleSmall, + ), + ), + verticalDivider, + Center( + child: SelectableText( + '#${localizations.fortnightlyTrendingStocks}', + style: textTheme.titleSmall, + ), + ), + verticalDivider, + ], + ), + ); + } +} + +class NavigationMenu extends StatelessWidget { + const NavigationMenu({super.key, this.isCloseable = false}); + + final bool isCloseable; + + @override + Widget build(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return ListView( + children: [ + if (isCloseable) + Row( + children: [ + IconButton( + icon: const Icon(Icons.close), + tooltip: MaterialLocalizations.of(context).closeButtonTooltip, + onPressed: () => Navigator.pop(context), + ), + Image.asset( + 'fortnightly/fortnightly_title.png', + package: 'flutter_gallery_assets', + excludeFromSemantics: true, + ), + ], + ), + const SizedBox(height: 32), + MenuItem( + localizations.fortnightlyMenuFrontPage, + header: true, + ), + MenuItem(localizations.fortnightlyMenuWorld), + MenuItem(localizations.fortnightlyMenuUS), + MenuItem(localizations.fortnightlyMenuPolitics), + MenuItem(localizations.fortnightlyMenuBusiness), + MenuItem(localizations.fortnightlyMenuTech), + MenuItem(localizations.fortnightlyMenuScience), + MenuItem(localizations.fortnightlyMenuSports), + MenuItem(localizations.fortnightlyMenuTravel), + MenuItem(localizations.fortnightlyMenuCulture), + ], + ); + } +} + +class MenuItem extends StatelessWidget { + const MenuItem(this.title, {super.key, this.header = false}); + + final String title; + final bool header; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + children: [ + Container( + width: 32, + alignment: Alignment.centerLeft, + child: header ? null : const Icon(Icons.arrow_drop_down), + ), + Expanded( + child: SelectableText( + title, + style: Theme.of(context).textTheme.titleMedium!.copyWith( + fontWeight: header ? FontWeight.w700 : FontWeight.w600, + fontSize: 16, + ), + ), + ), + ], + ), + ); + } +} + +class StockItem extends StatelessWidget { + const StockItem({ + super.key, + required this.ticker, + required this.price, + required this.percent, + }); + + final String ticker; + final String price; + final double percent; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final NumberFormat percentFormat = NumberFormat.decimalPercentPattern( + locale: GalleryOptions.of(context).locale.toString(), + decimalDigits: 2, + ); + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SelectableText(ticker, style: textTheme.titleMedium), + const SizedBox(height: 2), + Row( + children: [ + Expanded( + child: SelectableText( + price, + style: textTheme.titleSmall!.copyWith( + color: textTheme.titleSmall!.color!.withOpacity(0.75), + ), + ), + ), + SelectableText( + percent > 0 ? '+' : '-', + style: textTheme.titleSmall!.copyWith( + fontSize: 12, + color: percent > 0 + ? const Color(0xff20CF63) + : const Color(0xff661FFF), + ), + ), + const SizedBox(width: 4), + SelectableText( + percentFormat.format(percent.abs() / 100), + style: textTheme.bodySmall!.copyWith( + fontSize: 12, + color: textTheme.titleSmall!.color!.withOpacity(0.75), + ), + ), + ], + ) + ], + ); + } +} + +List buildStockItems(BuildContext context) { + final Widget articleDivider = Container( + margin: const EdgeInsets.symmetric(vertical: 16), + color: Colors.black.withOpacity(0.07), + height: 1, + ); + const double imageAspectRatio = 165 / 55; + + return [ + SizedBox( + width: double.infinity, + child: FadeInImagePlaceholder( + image: const AssetImage( + 'fortnightly/fortnightly_chart.png', + package: 'flutter_gallery_assets', + ), + placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / imageAspectRatio, + ); + }), + width: double.infinity, + fit: BoxFit.contain, + excludeFromSemantics: true, + ), + ), + articleDivider, + const StockItem( + ticker: 'DIJA', + price: '7,031.21', + percent: -0.48, + ), + articleDivider, + const StockItem( + ticker: 'SP', + price: '1,967.84', + percent: -0.23, + ), + articleDivider, + const StockItem( + ticker: 'Nasdaq', + price: '6,211.46', + percent: 0.52, + ), + articleDivider, + const StockItem( + ticker: 'Nikkei', + price: '5,891', + percent: 1.16, + ), + articleDivider, + const StockItem( + ticker: 'DJ Total', + price: '89.02', + percent: 0.80, + ), + articleDivider, + ]; +} + +class VideoPreview extends StatelessWidget { + const VideoPreview({ + super.key, + required this.data, + required this.time, + }); + + final ArticleData data; + final String time; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + width: double.infinity, + child: FadeInImagePlaceholder( + image: AssetImage( + data.imageUrl, + package: 'flutter_gallery_assets', + ), + placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / data.imageAspectRatio, + ); + }), + fit: BoxFit.contain, + width: double.infinity, + excludeFromSemantics: true, + ), + ), + const SizedBox(height: 4), + Row( + children: [ + Expanded( + child: SelectableText( + data.category, + style: textTheme.titleMedium, + ), + ), + SelectableText(time, style: textTheme.bodyLarge) + ], + ), + const SizedBox(height: 4), + SelectableText(data.title, + style: textTheme.headlineSmall!.copyWith(fontSize: 16)), + ], + ); + } +} + +List buildVideoPreviewItems(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + VideoPreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_feminists.jpg', + imageAspectRatio: 148 / 88, + category: localizations.fortnightlyMenuPolitics.toUpperCase(), + title: localizations.fortnightlyHeadlineFeminists, + ), + time: '2:31', + ), + const SizedBox(height: 32), + VideoPreview( + data: ArticleData( + imageUrl: 'fortnightly/fortnightly_bees.jpg', + imageAspectRatio: 148 / 88, + category: localizations.fortnightlyMenuUS.toUpperCase(), + title: localizations.fortnightlyHeadlineBees, + ), + time: '1:37', + ), + ]; +} + +ThemeData buildTheme(BuildContext context) { + final TextTheme lightTextTheme = ThemeData.light().textTheme; + return ThemeData( + scaffoldBackgroundColor: Colors.white, + appBarTheme: AppBarTheme( + color: Colors.white, + elevation: 0, + iconTheme: IconTheme.of(context).copyWith(color: Colors.black), + ), + highlightColor: Colors.transparent, + textTheme: TextTheme( + // preview snippet + bodyMedium: GoogleFonts.merriweather( + fontWeight: FontWeight.w300, + fontSize: 16, + textStyle: lightTextTheme.bodyMedium, + ), + // time in latest updates + bodyLarge: GoogleFonts.libreFranklin( + fontWeight: FontWeight.w500, + fontSize: 11, + color: Colors.black.withOpacity(0.5), + textStyle: lightTextTheme.bodyLarge, + ), + // preview headlines + headlineSmall: GoogleFonts.libreFranklin( + fontWeight: FontWeight.w500, + fontSize: 16, + textStyle: lightTextTheme.headlineSmall, + ), + // (caption 2), preview category, stock ticker + titleMedium: GoogleFonts.robotoCondensed( + fontWeight: FontWeight.w700, + fontSize: 16, + ), + titleSmall: GoogleFonts.libreFranklin( + fontWeight: FontWeight.w400, + fontSize: 14, + textStyle: lightTextTheme.titleSmall, + ), + // section titles: Top Highlights, Last Updated... + titleLarge: GoogleFonts.merriweather( + fontWeight: FontWeight.w700, + fontStyle: FontStyle.italic, + fontSize: 14, + textStyle: lightTextTheme.titleLarge, + ), + ), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..0a6c02d894e1bd85b0ba34e80947e558722a0c28 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart @@ -0,0 +1,114 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:google_fonts/google_fonts.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/letter_spacing.dart'; +import 'colors.dart'; +import 'home.dart'; +import 'login.dart'; +import 'routes.dart' as routes; + +/// The RallyApp is a MaterialApp with a theme and 2 routes. +/// +/// The home route is the main page with tabs for sub pages. +/// The login route is the initial route. +class RallyApp extends StatelessWidget { + const RallyApp({super.key}); + + static const String loginRoute = routes.loginRoute; + static const String homeRoute = routes.homeRoute; + + static const SharedAxisPageTransitionsBuilder sharedZAxisTransitionBuilder = SharedAxisPageTransitionsBuilder( + fillColor: RallyColors.primaryBackground, + transitionType: SharedAxisTransitionType.scaled, + ); + + @override + Widget build(BuildContext context) { + return MaterialApp( + restorationScopeId: 'rally_app', + title: 'Rally', + debugShowCheckedModeBanner: false, + theme: _buildRallyTheme().copyWith( + platform: GalleryOptions.of(context).platform, + pageTransitionsTheme: PageTransitionsTheme( + builders: { + for (final TargetPlatform type in TargetPlatform.values) + type: sharedZAxisTransitionBuilder, + }, + ), + ), + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + initialRoute: loginRoute, + routes: { + homeRoute: (BuildContext context) => const HomePage(), + loginRoute: (BuildContext context) => const LoginPage(), + }, + ); + } + + ThemeData _buildRallyTheme() { + final ThemeData base = ThemeData.dark(); + return ThemeData( + appBarTheme: const AppBarTheme( + systemOverlayStyle: SystemUiOverlayStyle.light, + backgroundColor: RallyColors.primaryBackground, + elevation: 0, + ), + scaffoldBackgroundColor: RallyColors.primaryBackground, + focusColor: RallyColors.focusColor, + textTheme: _buildRallyTextTheme(base.textTheme), + inputDecorationTheme: const InputDecorationTheme( + labelStyle: TextStyle( + color: RallyColors.gray, + fontWeight: FontWeight.w500, + ), + filled: true, + fillColor: RallyColors.inputBackground, + focusedBorder: InputBorder.none, + ), + visualDensity: VisualDensity.standard, + colorScheme: base.colorScheme.copyWith( + primary: RallyColors.primaryBackground, + ), + ); + } + + TextTheme _buildRallyTextTheme(TextTheme base) { + return base + .copyWith( + bodyMedium: GoogleFonts.robotoCondensed( + fontSize: 14, + fontWeight: FontWeight.w400, + letterSpacing: letterSpacingOrNone(0.5), + ), + bodyLarge: GoogleFonts.eczar( + fontSize: 40, + fontWeight: FontWeight.w400, + letterSpacing: letterSpacingOrNone(1.4), + ), + labelLarge: GoogleFonts.robotoCondensed( + fontWeight: FontWeight.w700, + letterSpacing: letterSpacingOrNone(2.8), + ), + headlineSmall: GoogleFonts.eczar( + fontSize: 40, + fontWeight: FontWeight.w600, + letterSpacing: letterSpacingOrNone(1.4), + ), + ) + .apply( + displayColor: Colors.white, + bodyColor: Colors.white, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart new file mode 100644 index 0000000000000000000000000000000000000000..8386e6e94716c8a0bf50a1a7a78f7fd382b8e190 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart @@ -0,0 +1,299 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/semantics.dart'; +import 'package:intl/intl.dart' as intl; + +import '../../../data/gallery_options.dart'; +import '../../../layout/adaptive.dart'; +import '../../../layout/text_scale.dart'; +import '../colors.dart'; +import '../data.dart'; +import '../formatters.dart'; + +class RallyLineChart extends StatelessWidget { + const RallyLineChart({ + super.key, + this.events = const [], + }); + + final List events; + + @override + Widget build(BuildContext context) { + return CustomPaint( + painter: RallyLineChartPainter( + dateFormat: dateFormatMonthYear(context), + numberFormat: usdWithSignFormat(context), + events: events, + labelStyle: Theme.of(context).textTheme.bodyMedium!, + textDirection: GalleryOptions.of(context).resolvedTextDirection(), + textScaleFactor: reducedTextScale(context), + padding: isDisplayDesktop(context) + ? const EdgeInsets.symmetric(vertical: 22) + : EdgeInsets.zero, + ), + ); + } +} + +class RallyLineChartPainter extends CustomPainter { + RallyLineChartPainter({ + required this.dateFormat, + required this.numberFormat, + required this.events, + required this.labelStyle, + required this.textDirection, + required this.textScaleFactor, + required this.padding, + }); + + // The style for the labels. + final TextStyle labelStyle; + + // The text direction for the text. + final TextDirection? textDirection; + + // The text scale factor for the text. + final double textScaleFactor; + + // The padding around the text. + final EdgeInsets padding; + + // The format for the dates. + final intl.DateFormat dateFormat; + + // The currency format. + final intl.NumberFormat numberFormat; + + // Events to plot on the line as points. + final List events; + + // Number of days to plot. + // This is hardcoded to reflect the dummy data, but would be dynamic in a real + // app. + final int numDays = 52; + + // Beginning of window. The end is this plus numDays. + // This is hardcoded to reflect the dummy data, but would be dynamic in a real + // app. + final DateTime startDate = DateTime.utc(2018, 12); + + // Ranges uses to lerp the pixel points. + // This is hardcoded to reflect the dummy data, but would be dynamic in a real + // app. + final double maxAmount = 2000; // minAmount is assumed to be 0 + + // The number of milliseconds in a day. This is the inherit period fot the + // points in this line. + static const int millisInDay = 24 * 60 * 60 * 1000; + + // Amount to shift the tick drawing by so that the Sunday ticks do not start + // on the edge. + final int tickShift = 3; + + // Arbitrary unit of space for absolute positioned painting. + final double space = 16; + + @override + void paint(Canvas canvas, Size size) { + final double labelHeight = space + space * (textScaleFactor - 1); + final double ticksHeight = 3 * space; + final double ticksTop = size.height - labelHeight - ticksHeight - space; + final double labelsTop = size.height - labelHeight; + _drawLine( + canvas, + Rect.fromLTWH(0, 0, size.width, size.height - labelHeight - ticksHeight), + ); + _drawXAxisTicks( + canvas, + Rect.fromLTWH(0, ticksTop, size.width, ticksHeight), + ); + _drawXAxisLabels( + canvas, + Rect.fromLTWH(0, labelsTop, size.width, labelHeight), + ); + } + + // Since we're only using fixed dummy data, we can set this to false. In a + // real app we would have the data as part of the state and repaint when it's + // changed. + @override + bool shouldRepaint(CustomPainter oldDelegate) => false; + + @override + SemanticsBuilderCallback get semanticsBuilder { + return (Size size) { + final List amounts = _amountsPerDay(numDays); + + // We divide the graph and the amounts into [numGroups] groups, with + // [numItemsPerGroup] amounts per group. + const int numGroups = 10; + final int numItemsPerGroup = amounts.length ~/ numGroups; + + // For each group we calculate the median value. + final List medians = List.generate( + numGroups, + (int i) { + final int middleIndex = i * numItemsPerGroup + numItemsPerGroup ~/ 2; + if (numItemsPerGroup.isEven) { + return (amounts[middleIndex] + amounts[middleIndex + 1]) / 2; + } else { + return amounts[middleIndex]; + } + }, + ); + + // Return a list of [CustomPainterSemantics] with the length of + // [numGroups], all have the same width with the median amount as label. + return List.generate(numGroups, (int i) { + return CustomPainterSemantics( + rect: Offset((i / numGroups) * size.width, 0) & + Size(size.width / numGroups, size.height), + properties: SemanticsProperties( + label: numberFormat.format(medians[i]), + textDirection: textDirection, + ), + ); + }); + }; + } + + /// Returns the amount of money in the account for the [numDays] given + /// from the [startDate]. + List _amountsPerDay(int numDays) { + // Arbitrary value for the first point. In a real app, a wider range of + // points would be used that go beyond the boundaries of the screen. + double lastAmount = 600.0; + + // Align the points with equal deltas (1 day) as a cumulative sum. + int startMillis = startDate.millisecondsSinceEpoch; + + final List amounts = []; + for (int i = 0; i < numDays; i++) { + final int endMillis = startMillis + millisInDay * 1; + final List filteredEvents = events.where( + (DetailedEventData e) { + return startMillis <= e.date.millisecondsSinceEpoch && + e.date.millisecondsSinceEpoch < endMillis; + }, + ).toList(); + lastAmount += sumOf(filteredEvents, (DetailedEventData e) => e.amount); + amounts.add(lastAmount); + startMillis = endMillis; + } + return amounts; + } + + void _drawLine(Canvas canvas, Rect rect) { + final Paint linePaint = Paint() + ..color = RallyColors.accountColor(2) + ..style = PaintingStyle.stroke + ..strokeWidth = 2; + + // Try changing this value between 1, 7, 15, etc. + const int smoothing = 1; + + final List amounts = _amountsPerDay(numDays + smoothing); + final List points = []; + for (int i = 0; i < amounts.length; i++) { + final double x = i / numDays * rect.width; + final double y = (maxAmount - amounts[i]) / maxAmount * rect.height; + points.add(Offset(x, y)); + } + + // Add last point of the graph to make sure we take up the full width. + points.add( + Offset( + rect.width, + (maxAmount - amounts[numDays - 1]) / maxAmount * rect.height, + ), + ); + + final Path path = Path(); + path.moveTo(points[0].dx, points[0].dy); + for (int i = 1; i < numDays - smoothing + 2; i += smoothing) { + final double x1 = points[i].dx; + final double y1 = points[i].dy; + final double x2 = (x1 + points[i + smoothing].dx) / 2; + final double y2 = (y1 + points[i + smoothing].dy) / 2; + path.quadraticBezierTo(x1, y1, x2, y2); + } + canvas.drawPath(path, linePaint); + } + + /// Draw the X-axis increment markers at constant width intervals. + void _drawXAxisTicks(Canvas canvas, Rect rect) { + for (int i = 0; i < numDays; i++) { + final double x = rect.width / numDays * i; + canvas.drawRect( + Rect.fromPoints( + Offset(x, i % 7 == tickShift ? rect.top : rect.center.dy), + Offset(x, rect.bottom), + ), + Paint() + ..style = PaintingStyle.stroke + ..strokeWidth = 1 + ..color = RallyColors.gray25, + ); + } + } + + /// Set X-axis labels under the X-axis increment markers. + void _drawXAxisLabels(Canvas canvas, Rect rect) { + final TextStyle selectedLabelStyle = labelStyle.copyWith( + fontWeight: FontWeight.w700, + fontSize: labelStyle.fontSize! * textScaleFactor, + ); + final TextStyle unselectedLabelStyle = labelStyle.copyWith( + fontWeight: FontWeight.w700, + color: RallyColors.gray25, + fontSize: labelStyle.fontSize! * textScaleFactor, + ); + + // We use toUpperCase to format the dates. This function uses the language + // independent Unicode mapping and thus only works in some languages. + final TextPainter leftLabel = TextPainter( + text: TextSpan( + text: dateFormat.format(startDate).toUpperCase(), + style: unselectedLabelStyle, + ), + textDirection: textDirection, + ); + leftLabel.layout(); + leftLabel.paint(canvas, + Offset(rect.left + space / 2 + padding.vertical, rect.topCenter.dy)); + + final TextPainter centerLabel = TextPainter( + text: TextSpan( + text: dateFormat + .format(DateTime(startDate.year, startDate.month + 1)) + .toUpperCase(), + style: selectedLabelStyle, + ), + textDirection: textDirection, + ); + centerLabel.layout(); + final double x = (rect.width - centerLabel.width) / 2; + final double y = rect.topCenter.dy; + centerLabel.paint(canvas, Offset(x, y)); + + final TextPainter rightLabel = TextPainter( + text: TextSpan( + text: dateFormat + .format(DateTime(startDate.year, startDate.month + 2)) + .toUpperCase(), + style: unselectedLabelStyle, + ), + textDirection: textDirection, + ); + rightLabel.layout(); + rightLabel.paint( + canvas, + Offset(rect.right - centerLabel.width - space / 2 - padding.vertical, + rect.topCenter.dy), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart new file mode 100644 index 0000000000000000000000000000000000000000..1e3d896f6cc49dae194927ea75484b3527c0ed48 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart @@ -0,0 +1,292 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +import '../../../data/gallery_options.dart'; +import '../../../layout/letter_spacing.dart'; +import '../../../layout/text_scale.dart'; +import '../colors.dart'; +import '../data.dart'; +import '../formatters.dart'; + +/// A colored piece of the [RallyPieChart]. +class RallyPieChartSegment { + const RallyPieChartSegment({ + required this.color, + required this.value, + }); + + final Color color; + final double value; +} + +/// The max height and width of the [RallyPieChart]. +const double pieChartMaxSize = 500.0; + +List buildSegmentsFromAccountItems( + List items) { + return List.generate( + items.length, + (int i) { + return RallyPieChartSegment( + color: RallyColors.accountColor(i), + value: items[i].primaryAmount, + ); + }, + ); +} + +List buildSegmentsFromBillItems(List items) { + return List.generate( + items.length, + (int i) { + return RallyPieChartSegment( + color: RallyColors.billColor(i), + value: items[i].primaryAmount, + ); + }, + ); +} + +List buildSegmentsFromBudgetItems( + List items) { + return List.generate( + items.length, + (int i) { + return RallyPieChartSegment( + color: RallyColors.budgetColor(i), + value: items[i].primaryAmount - items[i].amountUsed, + ); + }, + ); +} + +/// An animated circular pie chart to represent pieces of a whole, which can +/// have empty space. +class RallyPieChart extends StatefulWidget { + const RallyPieChart({ + super.key, + required this.heroLabel, + required this.heroAmount, + required this.wholeAmount, + required this.segments, + }); + + final String heroLabel; + final double heroAmount; + final double wholeAmount; + final List segments; + + @override + State createState() => _RallyPieChartState(); +} + +class _RallyPieChartState extends State + with SingleTickerProviderStateMixin { + late AnimationController controller; + late Animation animation; + + @override + void initState() { + super.initState(); + controller = AnimationController( + duration: const Duration(milliseconds: 600), + vsync: this, + ); + animation = CurvedAnimation( + parent: TweenSequence(>[ + TweenSequenceItem( + tween: Tween(begin: 0, end: 0), + weight: 1, + ), + TweenSequenceItem( + tween: Tween(begin: 0, end: 1), + weight: 1.5, + ), + ]).animate(controller), + curve: Curves.decelerate); + controller.forward(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MergeSemantics( + child: _AnimatedRallyPieChart( + animation: animation, + centerLabel: widget.heroLabel, + centerAmount: widget.heroAmount, + total: widget.wholeAmount, + segments: widget.segments, + ), + ); + } +} + +class _AnimatedRallyPieChart extends AnimatedWidget { + const _AnimatedRallyPieChart({ + required this.animation, + required this.centerLabel, + required this.centerAmount, + required this.total, + required this.segments, + }) : super(listenable: animation); + + final Animation animation; + final String centerLabel; + final double centerAmount; + final double total; + final List segments; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final TextStyle labelTextStyle = textTheme.bodyMedium!.copyWith( + fontSize: 14, + letterSpacing: letterSpacingOrNone(0.5), + ); + + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + // When the widget is larger, we increase the font size. + TextStyle? headlineStyle = constraints.maxHeight >= pieChartMaxSize + ? textTheme.headlineSmall!.copyWith(fontSize: 70) + : textTheme.headlineSmall; + + // With a large text scale factor, we set a max font size. + if (GalleryOptions.of(context).textScaleFactor(context) > 1.0) { + headlineStyle = headlineStyle!.copyWith( + fontSize: headlineStyle.fontSize! / reducedTextScale(context), + ); + } + + return DecoratedBox( + decoration: _RallyPieChartOutlineDecoration( + maxFraction: animation.value, + total: total, + segments: segments, + ), + child: Container( + height: constraints.maxHeight, + alignment: Alignment.center, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + centerLabel, + style: labelTextStyle, + ), + SelectableText( + usdWithSignFormat(context).format(centerAmount), + style: headlineStyle, + ), + ], + ), + ), + ); + }); + } +} + +class _RallyPieChartOutlineDecoration extends Decoration { + const _RallyPieChartOutlineDecoration({ + required this.maxFraction, + required this.total, + required this.segments, + }); + + final double maxFraction; + final double total; + final List segments; + + @override + BoxPainter createBoxPainter([VoidCallback? onChanged]) { + return _RallyPieChartOutlineBoxPainter( + maxFraction: maxFraction, + wholeAmount: total, + segments: segments, + ); + } +} + +class _RallyPieChartOutlineBoxPainter extends BoxPainter { + _RallyPieChartOutlineBoxPainter({ + required this.maxFraction, + required this.wholeAmount, + required this.segments, + }); + + final double maxFraction; + final double wholeAmount; + final List segments; + static const double wholeRadians = 2 * math.pi; + static const double spaceRadians = wholeRadians / 180; + + @override + void paint(Canvas canvas, Offset offset, ImageConfiguration configuration) { + // Create two padded reacts to draw arcs in: one for colored arcs and one for + // inner bg arc. + const double strokeWidth = 4.0; + final double outerRadius = math.min( + configuration.size!.width, + configuration.size!.height, + ) / + 2; + final Rect outerRect = Rect.fromCircle( + center: configuration.size!.center(offset), + radius: outerRadius - strokeWidth * 3, + ); + final Rect innerRect = Rect.fromCircle( + center: configuration.size!.center(offset), + radius: outerRadius - strokeWidth * 4, + ); + + // Paint each arc with spacing. + double cumulativeSpace = 0.0; + double cumulativeTotal = 0.0; + for (final RallyPieChartSegment segment in segments) { + final Paint paint = Paint()..color = segment.color; + final double startAngle = _calculateStartAngle(cumulativeTotal, cumulativeSpace); + final double sweepAngle = _calculateSweepAngle(segment.value, 0); + canvas.drawArc(outerRect, startAngle, sweepAngle, true, paint); + cumulativeTotal += segment.value; + cumulativeSpace += spaceRadians; + } + + // Paint any remaining space black (e.g. budget amount remaining). + final double remaining = wholeAmount - cumulativeTotal; + if (remaining > 0) { + final Paint paint = Paint()..color = Colors.black; + final double startAngle = + _calculateStartAngle(cumulativeTotal, spaceRadians * segments.length); + final double sweepAngle = _calculateSweepAngle(remaining, -spaceRadians); + canvas.drawArc(outerRect, startAngle, sweepAngle, true, paint); + } + + // Paint a smaller inner circle to cover the painted arcs, so they are + // display as segments. + final Paint bgPaint = Paint()..color = RallyColors.primaryBackground; + canvas.drawArc(innerRect, 0, 2 * math.pi, true, bgPaint); + } + + double _calculateAngle(double amount, double offset) { + final double wholeMinusSpacesRadians = + wholeRadians - (segments.length * spaceRadians); + return maxFraction * + (amount / wholeAmount * wholeMinusSpacesRadians + offset); + } + + double _calculateStartAngle(double total, double offset) => + _calculateAngle(total, offset) - math.pi / 2; + + double _calculateSweepAngle(double total, double offset) => + _calculateAngle(total, offset); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart new file mode 100644 index 0000000000000000000000000000000000000000..4fe85b8537bd8f7fa3481763249aa0c7dc0824b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class VerticalFractionBar extends StatelessWidget { + const VerticalFractionBar({ + super.key, + this.color, + required this.fraction, + }); + + final Color? color; + final double fraction; + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return SizedBox( + height: constraints.maxHeight, + width: 4, + child: Column( + children: [ + SizedBox( + height: (1 - fraction) * constraints.maxHeight, + child: Container( + color: Colors.black, + ), + ), + SizedBox( + height: fraction * constraints.maxHeight, + child: Container(color: color), + ), + ], + ), + ); + }); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/colors.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/colors.dart new file mode 100644 index 0000000000000000000000000000000000000000..a96aa51afe34d9b80ca2b052ed4e89d32f7e081e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/colors.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +/// Most color assignments in Rally are not like the typical color +/// assignments that are common in other apps. Instead of primarily mapping to +/// component type and part, they are assigned round robin based on layout. +class RallyColors { + static const List accountColors = [ + Color(0xFF005D57), + Color(0xFF04B97F), + Color(0xFF37EFBA), + Color(0xFF007D51), + ]; + + static const List billColors = [ + Color(0xFFFFDC78), + Color(0xFFFF6951), + Color(0xFFFFD7D0), + Color(0xFFFFAC12), + ]; + + static const List budgetColors = [ + Color(0xFFB2F2FF), + Color(0xFFB15DFF), + Color(0xFF72DEFF), + Color(0xFF0082FB), + ]; + + static const Color gray = Color(0xFFD8D8D8); + static const Color gray60 = Color(0x99D8D8D8); + static const Color gray25 = Color(0x40D8D8D8); + static const Color white60 = Color(0x99FFFFFF); + static const Color primaryBackground = Color(0xFF33333D); + static const Color inputBackground = Color(0xFF26282F); + static const Color cardBackground = Color(0x03FEFEFE); + static const Color buttonColor = Color(0xFF09AF79); + static const Color focusColor = Color(0xCCFFFFFF); + static const Color dividerColor = Color(0xAA282828); + + /// Convenience method to get a single account color with position i. + static Color accountColor(int i) { + return cycledColor(accountColors, i); + } + + /// Convenience method to get a single bill color with position i. + static Color billColor(int i) { + return cycledColor(billColors, i); + } + + /// Convenience method to get a single budget color with position i. + static Color budgetColor(int i) { + return cycledColor(budgetColors, i); + } + + /// Gets a color from a list that is considered to be infinitely repeating. + static Color cycledColor(List colors, int i) { + return colors[i % colors.length]; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart new file mode 100644 index 0000000000000000000000000000000000000000..9aa675e134c93330dd66bdf687e8fd0fcff77977 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart @@ -0,0 +1,382 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import 'formatters.dart'; + +/// Calculates the sum of the primary amounts of a list of [AccountData]. +double sumAccountDataPrimaryAmount(List items) => + sumOf(items, (AccountData item) => item.primaryAmount); + +/// Calculates the sum of the primary amounts of a list of [BillData]. +double sumBillDataPrimaryAmount(List items) => + sumOf(items, (BillData item) => item.primaryAmount); + +/// Calculates the sum of the primary amounts of a list of [BillData]. +double sumBillDataPaidAmount(List items) => sumOf( + items.where((BillData item) => item.isPaid).toList(), + (BillData item) => item.primaryAmount, + ); + +/// Calculates the sum of the primary amounts of a list of [BudgetData]. +double sumBudgetDataPrimaryAmount(List items) => + sumOf(items, (BudgetData item) => item.primaryAmount); + +/// Calculates the sum of the amounts used of a list of [BudgetData]. +double sumBudgetDataAmountUsed(List items) => + sumOf(items, (BudgetData item) => item.amountUsed); + +/// Utility function to sum up values in a list. +double sumOf(List list, double Function(T elt) getValue) { + double sum = 0.0; + for (final T elt in list) { + sum += getValue(elt); + } + return sum; +} + +/// A data model for an account. +/// +/// The [primaryAmount] is the balance of the account in USD. +class AccountData { + const AccountData({ + required this.name, + required this.primaryAmount, + required this.accountNumber, + }); + + /// The display name of this entity. + final String name; + + /// The primary amount or value of this entity. + final double primaryAmount; + + /// The full displayable account number. + final String accountNumber; +} + +/// A data model for a bill. +/// +/// The [primaryAmount] is the amount due in USD. +class BillData { + const BillData({ + required this.name, + required this.primaryAmount, + required this.dueDate, + this.isPaid = false, + }); + + /// The display name of this entity. + final String name; + + /// The primary amount or value of this entity. + final double primaryAmount; + + /// The due date of this bill. + final String dueDate; + + /// If this bill has been paid. + final bool isPaid; +} + +/// A data model for a budget. +/// +/// The [primaryAmount] is the budget cap in USD. +class BudgetData { + const BudgetData({ + required this.name, + required this.primaryAmount, + required this.amountUsed, + }); + + /// The display name of this entity. + final String name; + + /// The primary amount or value of this entity. + final double primaryAmount; + + /// Amount of the budget that is consumed or used. + final double amountUsed; +} + +/// A data model for an alert. +class AlertData { + AlertData({this.message, this.iconData}); + + /// The alert message to display. + final String? message; + + /// The icon to display with the alert. + final IconData? iconData; +} + +class DetailedEventData { + const DetailedEventData({ + required this.title, + required this.date, + required this.amount, + }); + + final String title; + final DateTime date; + final double amount; +} + +/// A data model for data displayed to the user. +class UserDetailData { + UserDetailData({ + required this.title, + required this.value, + }); + + /// The display name of this entity. + final String title; + + /// The value of this entity. + final String value; +} + +/// Class to return dummy data lists. +/// +/// In a real app, this might be replaced with some asynchronous service. +class DummyDataService { + static List getAccountDataList(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + AccountData( + name: localizations.rallyAccountDataChecking, + primaryAmount: 2215.13, + accountNumber: '1234561234', + ), + AccountData( + name: localizations.rallyAccountDataHomeSavings, + primaryAmount: 8678.88, + accountNumber: '8888885678', + ), + AccountData( + name: localizations.rallyAccountDataCarSavings, + primaryAmount: 987.48, + accountNumber: '8888889012', + ), + AccountData( + name: localizations.rallyAccountDataVacation, + primaryAmount: 253, + accountNumber: '1231233456', + ), + ]; + } + + static List getAccountDetailList(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + UserDetailData( + title: localizations.rallyAccountDetailDataAnnualPercentageYield, + value: percentFormat(context).format(0.001), + ), + UserDetailData( + title: localizations.rallyAccountDetailDataInterestRate, + value: usdWithSignFormat(context).format(1676.14), + ), + UserDetailData( + title: localizations.rallyAccountDetailDataInterestYtd, + value: usdWithSignFormat(context).format(81.45), + ), + UserDetailData( + title: localizations.rallyAccountDetailDataInterestPaidLastYear, + value: usdWithSignFormat(context).format(987.12), + ), + UserDetailData( + title: localizations.rallyAccountDetailDataNextStatement, + value: shortDateFormat(context).format(DateTime.utc(2019, 12, 25)), + ), + UserDetailData( + title: localizations.rallyAccountDetailDataAccountOwner, + value: 'Philip Cao', + ), + ]; + } + + static List getDetailedEventItems() { + // The following titles are not localized as they're product/brand names. + return [ + DetailedEventData( + title: 'Genoe', + date: DateTime.utc(2019, 1, 24), + amount: -16.54, + ), + DetailedEventData( + title: 'Fortnightly Subscribe', + date: DateTime.utc(2019, 1, 5), + amount: -12.54, + ), + DetailedEventData( + title: 'Circle Cash', + date: DateTime.utc(2019, 1, 5), + amount: 365.65, + ), + DetailedEventData( + title: 'Crane Hospitality', + date: DateTime.utc(2019, 1, 4), + amount: -705.13, + ), + DetailedEventData( + title: 'ABC Payroll', + date: DateTime.utc(2018, 12, 15), + amount: 1141.43, + ), + DetailedEventData( + title: 'Shrine', + date: DateTime.utc(2018, 12, 15), + amount: -88.88, + ), + DetailedEventData( + title: 'Foodmates', + date: DateTime.utc(2018, 12, 4), + amount: -11.69, + ), + ]; + } + + static List getBillDataList(BuildContext context) { + // The following names are not localized as they're product/brand names. + return [ + BillData( + name: 'RedPay Credit', + primaryAmount: 45.36, + dueDate: dateFormatAbbreviatedMonthDay(context) + .format(DateTime.utc(2019, 1, 29)), + ), + BillData( + name: 'Rent', + primaryAmount: 1200, + dueDate: dateFormatAbbreviatedMonthDay(context) + .format(DateTime.utc(2019, 2, 9)), + isPaid: true, + ), + BillData( + name: 'TabFine Credit', + primaryAmount: 87.33, + dueDate: dateFormatAbbreviatedMonthDay(context) + .format(DateTime.utc(2019, 2, 22)), + ), + BillData( + name: 'ABC Loans', + primaryAmount: 400, + dueDate: dateFormatAbbreviatedMonthDay(context) + .format(DateTime.utc(2019, 2, 29)), + ), + ]; + } + + static List getBillDetailList(BuildContext context, + {required double dueTotal, required double paidTotal}) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + UserDetailData( + title: localizations.rallyBillDetailTotalAmount, + value: usdWithSignFormat(context).format(paidTotal + dueTotal), + ), + UserDetailData( + title: localizations.rallyBillDetailAmountPaid, + value: usdWithSignFormat(context).format(paidTotal), + ), + UserDetailData( + title: localizations.rallyBillDetailAmountDue, + value: usdWithSignFormat(context).format(dueTotal), + ), + ]; + } + + static List getBudgetDataList(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + BudgetData( + name: localizations.rallyBudgetCategoryCoffeeShops, + primaryAmount: 70, + amountUsed: 45.49, + ), + BudgetData( + name: localizations.rallyBudgetCategoryGroceries, + primaryAmount: 170, + amountUsed: 16.45, + ), + BudgetData( + name: localizations.rallyBudgetCategoryRestaurants, + primaryAmount: 170, + amountUsed: 123.25, + ), + BudgetData( + name: localizations.rallyBudgetCategoryClothing, + primaryAmount: 70, + amountUsed: 19.45, + ), + ]; + } + + static List getBudgetDetailList(BuildContext context, + {required double capTotal, required double usedTotal}) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + UserDetailData( + title: localizations.rallyBudgetDetailTotalCap, + value: usdWithSignFormat(context).format(capTotal), + ), + UserDetailData( + title: localizations.rallyBudgetDetailAmountUsed, + value: usdWithSignFormat(context).format(usedTotal), + ), + UserDetailData( + title: localizations.rallyBudgetDetailAmountLeft, + value: usdWithSignFormat(context).format(capTotal - usedTotal), + ), + ]; + } + + static List getSettingsTitles(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + localizations.rallySettingsManageAccounts, + localizations.rallySettingsTaxDocuments, + localizations.rallySettingsPasscodeAndTouchId, + localizations.rallySettingsNotifications, + localizations.rallySettingsPersonalInformation, + localizations.rallySettingsPaperlessSettings, + localizations.rallySettingsFindAtms, + localizations.rallySettingsHelp, + localizations.rallySettingsSignOut, + ]; + } + + static List getAlerts(BuildContext context) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + AlertData( + message: localizations.rallyAlertsMessageHeadsUpShopping( + percentFormat(context, decimalDigits: 0).format(0.9)), + iconData: Icons.sort, + ), + AlertData( + message: localizations.rallyAlertsMessageSpentOnRestaurants( + usdWithSignFormat(context, decimalDigits: 0).format(120)), + iconData: Icons.sort, + ), + AlertData( + message: localizations.rallyAlertsMessageATMFees( + usdWithSignFormat(context, decimalDigits: 0).format(24)), + iconData: Icons.credit_card, + ), + AlertData( + message: localizations.rallyAlertsMessageCheckingAccount( + percentFormat(context, decimalDigits: 0).format(0.04)), + iconData: Icons.attach_money, + ), + AlertData( + message: localizations.rallyAlertsMessageUnassignedTransactions(16), + iconData: Icons.not_interested, + ), + ]; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart new file mode 100644 index 0000000000000000000000000000000000000000..669bf71cd825a91ac52fb69e66cc408a7a2e5b97 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart @@ -0,0 +1,483 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/text_scale.dart'; +import 'charts/line_chart.dart'; +import 'charts/pie_chart.dart'; +import 'charts/vertical_fraction_bar.dart'; +import 'colors.dart'; +import 'data.dart'; +import 'formatters.dart'; + +class FinancialEntityView extends StatelessWidget { + const FinancialEntityView({ + super.key, + required this.heroLabel, + required this.heroAmount, + required this.wholeAmount, + required this.segments, + required this.financialEntityCards, + }) : assert(segments.length == financialEntityCards.length); + + /// The amounts to assign each item. + final List segments; + final String heroLabel; + final double heroAmount; + final double wholeAmount; + final List financialEntityCards; + + @override + Widget build(BuildContext context) { + final double maxWidth = pieChartMaxSize + (cappedTextScale(context) - 1.0) * 100.0; + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return Column( + children: [ + ConstrainedBox( + constraints: BoxConstraints( + // We decrease the max height to ensure the [RallyPieChart] does + // not take up the full height when it is smaller than + // [kPieChartMaxSize]. + maxHeight: math.min( + constraints.biggest.shortestSide * 0.9, + maxWidth, + ), + ), + child: RallyPieChart( + heroLabel: heroLabel, + heroAmount: heroAmount, + wholeAmount: wholeAmount, + segments: segments, + ), + ), + const SizedBox(height: 24), + Container( + height: 1, + constraints: BoxConstraints(maxWidth: maxWidth), + color: RallyColors.inputBackground, + ), + Container( + constraints: BoxConstraints(maxWidth: maxWidth), + color: RallyColors.cardBackground, + child: Column( + children: financialEntityCards, + ), + ), + ], + ); + }); + } +} + +/// A reusable widget to show balance information of a single entity as a card. +class FinancialEntityCategoryView extends StatelessWidget { + const FinancialEntityCategoryView({ + super.key, + required this.indicatorColor, + required this.indicatorFraction, + required this.title, + required this.subtitle, + required this.semanticsLabel, + required this.amount, + required this.suffix, + }); + + final Color indicatorColor; + final double indicatorFraction; + final String title; + final String subtitle; + final String semanticsLabel; + final String amount; + final Widget suffix; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Semantics.fromProperties( + properties: SemanticsProperties( + button: true, + enabled: true, + label: semanticsLabel, + ), + excludeSemantics: true, + // TODO(x): State restoration of FinancialEntityCategoryDetailsPage on mobile is blocked because OpenContainer does not support restorablePush, https://github.com/flutter/gallery/issues/570. + child: OpenContainer( + transitionDuration: const Duration(milliseconds: 350), + openBuilder: (BuildContext context, void Function() openContainer) => + FinancialEntityCategoryDetailsPage(), + openColor: RallyColors.primaryBackground, + closedColor: RallyColors.primaryBackground, + closedElevation: 0, + closedBuilder: (BuildContext context, void Function() openContainer) { + return TextButton( + style: TextButton.styleFrom(foregroundColor: Colors.black), + onPressed: openContainer, + child: Column( + children: [ + Container( + padding: + const EdgeInsets.symmetric(vertical: 16, horizontal: 8), + child: Row( + children: [ + Container( + alignment: Alignment.center, + height: 32 + 60 * (cappedTextScale(context) - 1), + padding: const EdgeInsets.symmetric(horizontal: 12), + child: VerticalFractionBar( + color: indicatorColor, + fraction: indicatorFraction, + ), + ), + Expanded( + child: Wrap( + alignment: WrapAlignment.spaceBetween, + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: textTheme.bodyMedium! + .copyWith(fontSize: 16), + ), + Text( + subtitle, + style: textTheme.bodyMedium! + .copyWith(color: RallyColors.gray60), + ), + ], + ), + Text( + amount, + style: textTheme.bodyLarge!.copyWith( + fontSize: 20, + color: RallyColors.gray, + ), + ), + ], + ), + ), + Container( + constraints: const BoxConstraints(minWidth: 32), + padding: const EdgeInsetsDirectional.only(start: 12), + child: suffix, + ), + ], + ), + ), + const Divider( + height: 1, + indent: 16, + endIndent: 16, + color: RallyColors.dividerColor, + ), + ], + ), + ); + }, + ), + ); + } +} + +/// Data model for [FinancialEntityCategoryView]. +class FinancialEntityCategoryModel { + const FinancialEntityCategoryModel( + this.indicatorColor, + this.indicatorFraction, + this.title, + this.subtitle, + this.usdAmount, + this.suffix, + ); + + final Color indicatorColor; + final double indicatorFraction; + final String title; + final String subtitle; + final double usdAmount; + final Widget suffix; +} + +FinancialEntityCategoryView buildFinancialEntityFromAccountData( + AccountData model, + int accountDataIndex, + BuildContext context, +) { + final String amount = usdWithSignFormat(context).format(model.primaryAmount); + final String shortAccountNumber = model.accountNumber.substring(6); + return FinancialEntityCategoryView( + suffix: const Icon(Icons.chevron_right, color: Colors.grey), + title: model.name, + subtitle: '• • • • • • $shortAccountNumber', + semanticsLabel: GalleryLocalizations.of(context)!.rallyAccountAmount( + model.name, + shortAccountNumber, + amount, + ), + indicatorColor: RallyColors.accountColor(accountDataIndex), + indicatorFraction: 1, + amount: amount, + ); +} + +FinancialEntityCategoryView buildFinancialEntityFromBillData( + BillData model, + int billDataIndex, + BuildContext context, +) { + final String amount = usdWithSignFormat(context).format(model.primaryAmount); + return FinancialEntityCategoryView( + suffix: const Icon(Icons.chevron_right, color: Colors.grey), + title: model.name, + subtitle: model.dueDate, + semanticsLabel: GalleryLocalizations.of(context)!.rallyBillAmount( + model.name, + model.dueDate, + amount, + ), + indicatorColor: RallyColors.billColor(billDataIndex), + indicatorFraction: 1, + amount: amount, + ); +} + +FinancialEntityCategoryView buildFinancialEntityFromBudgetData( + BudgetData model, + int budgetDataIndex, + BuildContext context, +) { + final String amountUsed = usdWithSignFormat(context).format(model.amountUsed); + final String primaryAmount = usdWithSignFormat(context).format(model.primaryAmount); + final String amount = + usdWithSignFormat(context).format(model.primaryAmount - model.amountUsed); + + return FinancialEntityCategoryView( + suffix: Text( + GalleryLocalizations.of(context)!.rallyFinanceLeft, + style: Theme.of(context) + .textTheme + .bodyMedium! + .copyWith(color: RallyColors.gray60, fontSize: 10), + ), + title: model.name, + subtitle: '$amountUsed / $primaryAmount', + semanticsLabel: GalleryLocalizations.of(context)!.rallyBudgetAmount( + model.name, + model.amountUsed, + model.primaryAmount, + amount, + ), + indicatorColor: RallyColors.budgetColor(budgetDataIndex), + indicatorFraction: model.amountUsed / model.primaryAmount, + amount: amount, + ); +} + +List buildAccountDataListViews( + List items, + BuildContext context, +) { + return List.generate( + items.length, + (int i) => buildFinancialEntityFromAccountData(items[i], i, context), + ); +} + +List buildBillDataListViews( + List items, + BuildContext context, +) { + return List.generate( + items.length, + (int i) => buildFinancialEntityFromBillData(items[i], i, context), + ); +} + +List buildBudgetDataListViews( + List items, + BuildContext context, +) { + return [ + for (int i = 0; i < items.length; i++) + buildFinancialEntityFromBudgetData(items[i], i, context) + ]; +} + +class FinancialEntityCategoryDetailsPage extends StatelessWidget { + FinancialEntityCategoryDetailsPage({super.key}); + + final List items = + DummyDataService.getDetailedEventItems(); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return ApplyTextOptions( + child: Scaffold( + appBar: AppBar( + elevation: 0, + centerTitle: true, + title: Text( + GalleryLocalizations.of(context)!.rallyAccountDataChecking, + style: + Theme.of(context).textTheme.bodyMedium!.copyWith(fontSize: 18), + ), + ), + body: Column( + children: [ + SizedBox( + height: 200, + width: double.infinity, + child: RallyLineChart(events: items), + ), + Expanded( + child: Padding( + padding: isDesktop ? const EdgeInsets.all(40) : EdgeInsets.zero, + child: ListView( + shrinkWrap: true, + children: [ + for (final DetailedEventData detailedEventData in items) + _DetailedEventCard( + title: detailedEventData.title, + date: detailedEventData.date, + amount: detailedEventData.amount, + ), + ], + ), + ), + ), + ], + ), + ), + ); + } +} + +class _DetailedEventCard extends StatelessWidget { + const _DetailedEventCard({ + required this.title, + required this.date, + required this.amount, + }); + + final String title; + final DateTime date; + final double amount; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + return TextButton( + style: TextButton.styleFrom( + foregroundColor: Colors.black, + padding: const EdgeInsets.symmetric(horizontal: 16), + ), + onPressed: () {}, + child: Column( + children: [ + Container( + padding: const EdgeInsets.symmetric(vertical: 16), + width: double.infinity, + child: isDesktop + ? Row( + children: [ + Expanded( + child: _EventTitle(title: title), + ), + _EventDate(date: date), + Expanded( + child: Align( + alignment: AlignmentDirectional.centerEnd, + child: _EventAmount(amount: amount), + ), + ), + ], + ) + : Wrap( + alignment: WrapAlignment.spaceBetween, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _EventTitle(title: title), + _EventDate(date: date), + ], + ), + _EventAmount(amount: amount), + ], + ), + ), + SizedBox( + height: 1, + child: Container( + color: RallyColors.dividerColor, + ), + ), + ], + ), + ); + } +} + +class _EventAmount extends StatelessWidget { + const _EventAmount({required this.amount}); + + final double amount; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Text( + usdWithSignFormat(context).format(amount), + style: textTheme.bodyLarge!.copyWith( + fontSize: 20, + color: RallyColors.gray, + ), + ); + } +} + +class _EventDate extends StatelessWidget { + const _EventDate({required this.date}); + + final DateTime date; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Text( + shortDateFormat(context).format(date), + semanticsLabel: longDateFormat(context).format(date), + style: textTheme.bodyMedium!.copyWith(color: RallyColors.gray60), + ); + } +} + +class _EventTitle extends StatelessWidget { + const _EventTitle({required this.title}); + + final String title; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Text( + title, + style: textTheme.bodyMedium!.copyWith(fontSize: 16), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart new file mode 100644 index 0000000000000000000000000000000000000000..0e5a066d640d388cfa7eedc986a1c32c1c055378 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart @@ -0,0 +1,45 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; + +import '../../data/gallery_options.dart'; + +/// Get the locale string for the context. +String locale(BuildContext context) => + GalleryOptions.of(context).locale.toString(); + +/// Currency formatter for USD. +NumberFormat usdWithSignFormat(BuildContext context, {int decimalDigits = 2}) { + return NumberFormat.currency( + locale: locale(context), + name: r'$', + decimalDigits: decimalDigits, + ); +} + +/// Percent formatter with two decimal points. +NumberFormat percentFormat(BuildContext context, {int decimalDigits = 2}) { + return NumberFormat.decimalPercentPattern( + locale: locale(context), + decimalDigits: decimalDigits, + ); +} + +/// Date formatter with year / number month / day. +DateFormat shortDateFormat(BuildContext context) => + DateFormat.yMd(locale(context)); + +/// Date formatter with year / month / day. +DateFormat longDateFormat(BuildContext context) => + DateFormat.yMMMMd(locale(context)); + +/// Date formatter with abbreviated month and day. +DateFormat dateFormatAbbreviatedMonthDay(BuildContext context) => + DateFormat.MMMd(locale(context)); + +/// Date formatter with year and abbreviated month. +DateFormat dateFormatMonthYear(BuildContext context) => + DateFormat.yMMM(locale(context)); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..ee933100281adb9c42d68f142dd39ee0e219825b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart @@ -0,0 +1,383 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/text_scale.dart'; +import 'tabs/accounts.dart'; +import 'tabs/bills.dart'; +import 'tabs/budgets.dart'; +import 'tabs/overview.dart'; +import 'tabs/settings.dart'; + +const int tabCount = 5; +const int turnsToRotateRight = 1; +const int turnsToRotateLeft = 3; + +class HomePage extends StatefulWidget { + const HomePage({super.key}); + + @override + State createState() => _HomePageState(); +} + +class _HomePageState extends State + with SingleTickerProviderStateMixin, RestorationMixin { + late TabController _tabController; + RestorableInt tabIndex = RestorableInt(0); + + @override + String get restorationId => 'home_page'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(tabIndex, 'tab_index'); + _tabController.index = tabIndex.value; + } + + @override + void initState() { + super.initState(); + _tabController = TabController(length: tabCount, vsync: this) + ..addListener(() { + // Set state to make sure that the [_RallyTab] widgets get updated when changing tabs. + setState(() { + tabIndex.value = _tabController.index; + }); + }); + } + + @override + void dispose() { + _tabController.dispose(); + tabIndex.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final bool isDesktop = isDisplayDesktop(context); + Widget tabBarView; + if (isDesktop) { + final bool isTextDirectionRtl = + GalleryOptions.of(context).resolvedTextDirection() == + TextDirection.rtl; + final int verticalRotation = + isTextDirectionRtl ? turnsToRotateLeft : turnsToRotateRight; + final int revertVerticalRotation = + isTextDirectionRtl ? turnsToRotateRight : turnsToRotateLeft; + tabBarView = Row( + children: [ + Container( + width: 150 + 50 * (cappedTextScale(context) - 1), + alignment: Alignment.topCenter, + padding: const EdgeInsets.symmetric(vertical: 32), + child: Column( + children: [ + const SizedBox(height: 24), + ExcludeSemantics( + child: SizedBox( + height: 80, + child: Image.asset( + 'logo.png', + package: 'rally_assets', + ), + ), + ), + const SizedBox(height: 24), + // Rotate the tab bar, so the animation is vertical for desktops. + RotatedBox( + quarterTurns: verticalRotation, + child: _RallyTabBar( + tabs: _buildTabs( + context: context, theme: theme, isVertical: true) + .map( + (Widget widget) { + // Revert the rotation on the tabs. + return RotatedBox( + quarterTurns: revertVerticalRotation, + child: widget, + ); + }, + ).toList(), + tabController: _tabController, + ), + ), + ], + ), + ), + Expanded( + // Rotate the tab views so we can swipe up and down. + child: RotatedBox( + quarterTurns: verticalRotation, + child: TabBarView( + controller: _tabController, + children: _buildTabViews().map( + (Widget widget) { + // Revert the rotation on the tab views. + return RotatedBox( + quarterTurns: revertVerticalRotation, + child: widget, + ); + }, + ).toList(), + ), + ), + ), + ], + ); + } else { + tabBarView = Column( + children: [ + _RallyTabBar( + tabs: _buildTabs(context: context, theme: theme), + tabController: _tabController, + ), + Expanded( + child: TabBarView( + controller: _tabController, + children: _buildTabViews(), + ), + ), + ], + ); + } + return ApplyTextOptions( + child: Scaffold( + body: SafeArea( + // For desktop layout we do not want to have SafeArea at the top and + // bottom to display 100% height content on the accounts view. + top: !isDesktop, + bottom: !isDesktop, + child: Theme( + // This theme effectively removes the default visual touch + // feedback for tapping a tab, which is replaced with a custom + // animation. + data: theme.copyWith( + splashColor: Colors.transparent, + highlightColor: Colors.transparent, + ), + child: FocusTraversalGroup( + policy: OrderedTraversalPolicy(), + child: tabBarView, + ), + ), + ), + ), + ); + } + + List _buildTabs( + {required BuildContext context, + required ThemeData theme, + bool isVertical = false}) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return [ + _RallyTab( + theme: theme, + iconData: Icons.pie_chart, + title: localizations.rallyTitleOverview, + tabIndex: 0, + tabController: _tabController, + isVertical: isVertical, + ), + _RallyTab( + theme: theme, + iconData: Icons.attach_money, + title: localizations.rallyTitleAccounts, + tabIndex: 1, + tabController: _tabController, + isVertical: isVertical, + ), + _RallyTab( + theme: theme, + iconData: Icons.money_off, + title: localizations.rallyTitleBills, + tabIndex: 2, + tabController: _tabController, + isVertical: isVertical, + ), + _RallyTab( + theme: theme, + iconData: Icons.table_chart, + title: localizations.rallyTitleBudgets, + tabIndex: 3, + tabController: _tabController, + isVertical: isVertical, + ), + _RallyTab( + theme: theme, + iconData: Icons.settings, + title: localizations.rallyTitleSettings, + tabIndex: 4, + tabController: _tabController, + isVertical: isVertical, + ), + ]; + } + + List _buildTabViews() { + return const [ + OverviewView(), + AccountsView(), + BillsView(), + BudgetsView(), + SettingsView(), + ]; + } +} + +class _RallyTabBar extends StatelessWidget { + const _RallyTabBar({ + required this.tabs, + this.tabController, + }); + + final List tabs; + final TabController? tabController; + + @override + Widget build(BuildContext context) { + return FocusTraversalOrder( + order: const NumericFocusOrder(0), + child: TabBar( + // Setting isScrollable to true prevents the tabs from being + // wrapped in [Expanded] widgets, which allows for more + // flexible sizes and size animations among tabs. + isScrollable: true, + labelPadding: EdgeInsets.zero, + tabs: tabs, + controller: tabController, + // This hides the tab indicator. + indicatorColor: Colors.transparent, + ), + ); + } +} + +class _RallyTab extends StatefulWidget { + _RallyTab({ + required ThemeData theme, + IconData? iconData, + required String title, + int? tabIndex, + required TabController tabController, + required this.isVertical, + }) : titleText = Text(title, style: theme.textTheme.labelLarge), + isExpanded = tabController.index == tabIndex, + icon = Icon(iconData, semanticLabel: title); + + final Text titleText; + final Icon icon; + final bool isExpanded; + final bool isVertical; + + @override + _RallyTabState createState() => _RallyTabState(); +} + +class _RallyTabState extends State<_RallyTab> + with SingleTickerProviderStateMixin { + late Animation _titleSizeAnimation; + late Animation _titleFadeAnimation; + late Animation _iconFadeAnimation; + late AnimationController _controller; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(milliseconds: 200), + vsync: this, + ); + _titleSizeAnimation = _controller.view; + _titleFadeAnimation = _controller.drive(CurveTween(curve: Curves.easeOut)); + _iconFadeAnimation = _controller.drive(Tween(begin: 0.6, end: 1)); + if (widget.isExpanded) { + _controller.value = 1; + } + } + + @override + void didUpdateWidget(_RallyTab oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.isExpanded) { + _controller.forward(); + } else { + _controller.reverse(); + } + } + + @override + Widget build(BuildContext context) { + if (widget.isVertical) { + return Column( + children: [ + const SizedBox(height: 18), + FadeTransition( + opacity: _iconFadeAnimation, + child: widget.icon, + ), + const SizedBox(height: 12), + FadeTransition( + opacity: _titleFadeAnimation, + child: SizeTransition( + axisAlignment: -1, + sizeFactor: _titleSizeAnimation, + child: Center(child: ExcludeSemantics(child: widget.titleText)), + ), + ), + const SizedBox(height: 18), + ], + ); + } + + // Calculate the width of each unexpanded tab by counting the number of + // units and dividing it into the screen width. Each unexpanded tab is 1 + // unit, and there is always 1 expanded tab which is 1 unit + any extra + // space determined by the multiplier. + final double width = MediaQuery.of(context).size.width; + const int expandedTitleWidthMultiplier = 2; + final double unitWidth = width / (tabCount + expandedTitleWidthMultiplier); + + return ConstrainedBox( + constraints: const BoxConstraints(minHeight: 56), + child: Row( + children: [ + FadeTransition( + opacity: _iconFadeAnimation, + child: SizedBox( + width: unitWidth, + child: widget.icon, + ), + ), + FadeTransition( + opacity: _titleFadeAnimation, + child: SizeTransition( + axis: Axis.horizontal, + axisAlignment: -1, + sizeFactor: _titleSizeAnimation, + child: SizedBox( + width: unitWidth * expandedTitleWidthMultiplier, + child: Center( + child: ExcludeSemantics(child: widget.titleText), + ), + ), + ), + ), + ], + ), + ); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart new file mode 100644 index 0000000000000000000000000000000000000000..3c6e6482c85e70beef2fec0f71558ae538895bcc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart @@ -0,0 +1,420 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/image_placeholder.dart'; +import '../../layout/text_scale.dart'; +import 'app.dart'; +import 'colors.dart'; + +class LoginPage extends StatefulWidget { + const LoginPage({super.key}); + + @override + State createState() => _LoginPageState(); +} + +class _LoginPageState extends State with RestorationMixin { + final RestorableTextEditingController _usernameController = + RestorableTextEditingController(); + final RestorableTextEditingController _passwordController = + RestorableTextEditingController(); + + @override + String get restorationId => 'login_page'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_usernameController, restorationId); + registerForRestoration(_passwordController, restorationId); + } + + @override + Widget build(BuildContext context) { + return ApplyTextOptions( + child: Scaffold( + body: SafeArea( + child: _MainView( + usernameController: _usernameController.value, + passwordController: _passwordController.value, + ), + ), + ), + ); + } + + @override + void dispose() { + _usernameController.dispose(); + _passwordController.dispose(); + super.dispose(); + } +} + +class _MainView extends StatelessWidget { + const _MainView({ + this.usernameController, + this.passwordController, + }); + + final TextEditingController? usernameController; + final TextEditingController? passwordController; + + void _login(BuildContext context) { + Navigator.of(context).restorablePushNamed(RallyApp.homeRoute); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + List listViewChildren; + + if (isDesktop) { + final double desktopMaxWidth = 400.0 + 100.0 * (cappedTextScale(context) - 1); + listViewChildren = [ + _UsernameInput( + maxWidth: desktopMaxWidth, + usernameController: usernameController, + ), + const SizedBox(height: 12), + _PasswordInput( + maxWidth: desktopMaxWidth, + passwordController: passwordController, + ), + _LoginButton( + maxWidth: desktopMaxWidth, + onTap: () { + _login(context); + }, + ), + ]; + } else { + listViewChildren = [ + const _SmallLogo(), + _UsernameInput( + usernameController: usernameController, + ), + const SizedBox(height: 12), + _PasswordInput( + passwordController: passwordController, + ), + _ThumbButton( + onTap: () { + _login(context); + }, + ), + ]; + } + + return Column( + children: [ + if (isDesktop) const _TopBar(), + Expanded( + child: Align( + alignment: isDesktop ? Alignment.center : Alignment.topCenter, + child: ListView( + restorationId: 'login_list_view', + shrinkWrap: true, + padding: const EdgeInsets.symmetric(horizontal: 24), + children: listViewChildren, + ), + ), + ), + ], + ); + } +} + +class _TopBar extends StatelessWidget { + const _TopBar(); + + @override + Widget build(BuildContext context) { + const SizedBox spacing = SizedBox(width: 30); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Container( + width: double.infinity, + margin: const EdgeInsets.only(top: 8), + padding: const EdgeInsets.symmetric(horizontal: 30), + child: Wrap( + alignment: WrapAlignment.spaceBetween, + children: [ + Row( + mainAxisSize: MainAxisSize.min, + children: [ + ExcludeSemantics( + child: SizedBox( + height: 80, + child: FadeInImagePlaceholder( + image: + const AssetImage('logo.png', package: 'rally_assets'), + placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return SizedBox( + width: constraints.maxHeight, + height: constraints.maxHeight, + ); + }), + ), + ), + ), + spacing, + Text( + localizations.rallyLoginLoginToRally, + style: Theme.of(context).textTheme.bodyLarge!.copyWith( + fontSize: 35 / reducedTextScale(context), + fontWeight: FontWeight.w600, + ), + ), + ], + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + localizations.rallyLoginNoAccount, + style: Theme.of(context).textTheme.titleMedium, + ), + spacing, + _BorderButton( + text: localizations.rallyLoginSignUp, + ), + ], + ), + ], + ), + ); + } +} + +class _SmallLogo extends StatelessWidget { + const _SmallLogo(); + + @override + Widget build(BuildContext context) { + return const Padding( + padding: EdgeInsets.symmetric(vertical: 64), + child: SizedBox( + height: 160, + child: ExcludeSemantics( + child: FadeInImagePlaceholder( + image: AssetImage('logo.png', package: 'rally_assets'), + placeholder: SizedBox.shrink(), + ), + ), + ), + ); + } +} + +class _UsernameInput extends StatelessWidget { + const _UsernameInput({ + this.maxWidth, + this.usernameController, + }); + + final double? maxWidth; + final TextEditingController? usernameController; + + @override + Widget build(BuildContext context) { + return Align( + child: Container( + constraints: BoxConstraints(maxWidth: maxWidth ?? double.infinity), + child: TextField( + autofillHints: const [AutofillHints.username], + textInputAction: TextInputAction.next, + controller: usernameController, + decoration: InputDecoration( + labelText: GalleryLocalizations.of(context)!.rallyLoginUsername, + ), + ), + ), + ); + } +} + +class _PasswordInput extends StatelessWidget { + const _PasswordInput({ + this.maxWidth, + this.passwordController, + }); + + final double? maxWidth; + final TextEditingController? passwordController; + + @override + Widget build(BuildContext context) { + return Align( + child: Container( + constraints: BoxConstraints(maxWidth: maxWidth ?? double.infinity), + child: TextField( + controller: passwordController, + decoration: InputDecoration( + labelText: GalleryLocalizations.of(context)!.rallyLoginPassword, + ), + obscureText: true, + ), + ), + ); + } +} + +class _ThumbButton extends StatefulWidget { + const _ThumbButton({ + required this.onTap, + }); + + final VoidCallback onTap; + + @override + _ThumbButtonState createState() => _ThumbButtonState(); +} + +class _ThumbButtonState extends State<_ThumbButton> { + BoxDecoration? borderDecoration; + + @override + Widget build(BuildContext context) { + return Semantics( + button: true, + enabled: true, + label: GalleryLocalizations.of(context)!.rallyLoginLabelLogin, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: widget.onTap, + child: Focus( + onKeyEvent: (FocusNode node, KeyEvent event) { + if (event is KeyDownEvent || event is KeyRepeatEvent) { + if (event.logicalKey == LogicalKeyboardKey.enter || + event.logicalKey == LogicalKeyboardKey.space) { + widget.onTap(); + return KeyEventResult.handled; + } + } + return KeyEventResult.ignored; + }, + onFocusChange: (bool hasFocus) { + if (hasFocus) { + setState(() { + borderDecoration = BoxDecoration( + border: Border.all( + color: Colors.white.withOpacity(0.5), + width: 2, + ), + ); + }); + } else { + setState(() { + borderDecoration = null; + }); + } + }, + child: Container( + decoration: borderDecoration, + height: 120, + child: ExcludeSemantics( + child: Image.asset( + 'thumb.png', + package: 'rally_assets', + ), + ), + ), + ), + ), + ), + ); + } +} + +class _LoginButton extends StatelessWidget { + const _LoginButton({ + required this.onTap, + this.maxWidth, + }); + + final double? maxWidth; + final VoidCallback onTap; + + @override + Widget build(BuildContext context) { + return Align( + child: Container( + constraints: BoxConstraints(maxWidth: maxWidth ?? double.infinity), + padding: const EdgeInsets.symmetric(vertical: 30), + child: Row( + children: [ + const Icon(Icons.check_circle_outline, + color: RallyColors.buttonColor), + const SizedBox(width: 12), + Text(GalleryLocalizations.of(context)!.rallyLoginRememberMe), + const Expanded(child: SizedBox.shrink()), + _FilledButton( + text: GalleryLocalizations.of(context)!.rallyLoginButtonLogin, + onTap: onTap, + ), + ], + ), + ), + ); + } +} + +class _BorderButton extends StatelessWidget { + const _BorderButton({required this.text}); + + final String text; + + @override + Widget build(BuildContext context) { + return OutlinedButton( + style: OutlinedButton.styleFrom( + foregroundColor: Colors.white, + side: const BorderSide(color: RallyColors.buttonColor), + padding: const EdgeInsets.symmetric(vertical: 14, horizontal: 24), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), + ), + onPressed: () { + Navigator.of(context).restorablePushNamed(RallyApp.homeRoute); + }, + child: Text(text), + ); + } +} + +class _FilledButton extends StatelessWidget { + const _FilledButton({required this.text, required this.onTap}); + + final String text; + final VoidCallback onTap; + + @override + Widget build(BuildContext context) { + return TextButton( + style: TextButton.styleFrom( + foregroundColor: Colors.black, + backgroundColor: RallyColors.buttonColor, + padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 24), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), + ), + onPressed: onTap, + child: Row( + children: [ + const Icon(Icons.lock), + const SizedBox(width: 6), + Text(text), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..b49cf807ab5d93787b825431e79def02de0eff20 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/routes.dart @@ -0,0 +1,6 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String loginRoute = '/rally/login'; +const String homeRoute = '/rally'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart new file mode 100644 index 0000000000000000000000000000000000000000..c7d6a04aff51f365ca09c6993bc5eab9069cca26 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../../gallery_localizations.dart'; +import '../charts/pie_chart.dart'; +import '../data.dart'; +import '../finance.dart'; +import 'sidebar.dart'; + +/// A page that shows a summary of accounts. +class AccountsView extends StatelessWidget { + const AccountsView({super.key}); + + @override + Widget build(BuildContext context) { + final List items = DummyDataService.getAccountDataList(context); + final List detailItems = DummyDataService.getAccountDetailList(context); + final double balanceTotal = sumAccountDataPrimaryAmount(items); + + return TabWithSidebar( + restorationId: 'accounts_view', + mainView: FinancialEntityView( + heroLabel: GalleryLocalizations.of(context)!.rallyAccountTotal, + heroAmount: balanceTotal, + segments: buildSegmentsFromAccountItems(items), + wholeAmount: balanceTotal, + financialEntityCards: buildAccountDataListViews(items, context), + ), + sidebarItems: [ + for (final UserDetailData item in detailItems) + SidebarItem(title: item.title, value: item.value) + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2e205b719e8b5191af2289da7732a472afdc23d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +import '../../../gallery_localizations.dart'; +import '../charts/pie_chart.dart'; +import '../data.dart'; +import '../finance.dart'; +import 'sidebar.dart'; + +/// A page that shows a summary of bills. +class BillsView extends StatefulWidget { + const BillsView({super.key}); + + @override + State createState() => _BillsViewState(); +} + +class _BillsViewState extends State + with SingleTickerProviderStateMixin { + @override + Widget build(BuildContext context) { + final List items = DummyDataService.getBillDataList(context); + final double dueTotal = sumBillDataPrimaryAmount(items); + final double paidTotal = sumBillDataPaidAmount(items); + final List detailItems = DummyDataService.getBillDetailList( + context, + dueTotal: dueTotal, + paidTotal: paidTotal, + ); + + return TabWithSidebar( + restorationId: 'bills_view', + mainView: FinancialEntityView( + heroLabel: GalleryLocalizations.of(context)!.rallyBillsDue, + heroAmount: dueTotal, + segments: buildSegmentsFromBillItems(items), + wholeAmount: dueTotal, + financialEntityCards: buildBillDataListViews(items, context), + ), + sidebarItems: [ + for (final UserDetailData item in detailItems) + SidebarItem(title: item.title, value: item.value) + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart new file mode 100644 index 0000000000000000000000000000000000000000..fef158601642c61bb7d6495a91f85a2e4d332a13 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +import '../../../gallery_localizations.dart'; +import '../charts/pie_chart.dart'; +import '../data.dart'; +import '../finance.dart'; +import 'sidebar.dart'; + +class BudgetsView extends StatefulWidget { + const BudgetsView({super.key}); + + @override + State createState() => _BudgetsViewState(); +} + +class _BudgetsViewState extends State + with SingleTickerProviderStateMixin { + @override + Widget build(BuildContext context) { + final List items = DummyDataService.getBudgetDataList(context); + final double capTotal = sumBudgetDataPrimaryAmount(items); + final double usedTotal = sumBudgetDataAmountUsed(items); + final List detailItems = DummyDataService.getBudgetDetailList( + context, + capTotal: capTotal, + usedTotal: usedTotal, + ); + + return TabWithSidebar( + restorationId: 'budgets_view', + mainView: FinancialEntityView( + heroLabel: GalleryLocalizations.of(context)!.rallyBudgetLeft, + heroAmount: capTotal - usedTotal, + segments: buildSegmentsFromBudgetItems(items), + wholeAmount: capTotal, + financialEntityCards: buildBudgetDataListViews(items, context), + ), + sidebarItems: [ + for (final UserDetailData item in detailItems) + SidebarItem(title: item.title, value: item.value) + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart new file mode 100644 index 0000000000000000000000000000000000000000..f82aa5015be0ae6a3d040413ccd4ad620b40c011 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart @@ -0,0 +1,295 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +import '../../../data/gallery_options.dart'; +import '../../../gallery_localizations.dart'; +import '../../../layout/adaptive.dart'; +import '../../../layout/text_scale.dart'; +import '../colors.dart'; +import '../data.dart'; +import '../finance.dart'; +import '../formatters.dart'; + +/// A page that shows a status overview. +class OverviewView extends StatefulWidget { + const OverviewView({super.key}); + + @override + State createState() => _OverviewViewState(); +} + +class _OverviewViewState extends State { + @override + Widget build(BuildContext context) { + final List alerts = DummyDataService.getAlerts(context); + + if (isDisplayDesktop(context)) { + const String sortKeyName = 'Overview'; + return SingleChildScrollView( + restorationId: 'overview_scroll_view', + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 24), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Flexible( + flex: 7, + child: Semantics( + sortKey: const OrdinalSortKey(1, name: sortKeyName), + child: const _OverviewGrid(spacing: 24), + ), + ), + const SizedBox(width: 24), + Flexible( + flex: 3, + child: SizedBox( + width: 400, + child: Semantics( + sortKey: const OrdinalSortKey(2, name: sortKeyName), + child: FocusTraversalGroup( + child: _AlertsView(alerts: alerts), + ), + ), + ), + ), + ], + ), + ), + ); + } else { + return SingleChildScrollView( + restorationId: 'overview_scroll_view', + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 12), + child: Column( + children: [ + _AlertsView(alerts: alerts.sublist(0, 1)), + const SizedBox(height: 12), + const _OverviewGrid(spacing: 12), + ], + ), + ), + ); + } + } +} + +class _OverviewGrid extends StatelessWidget { + const _OverviewGrid({required this.spacing}); + + final double spacing; + + @override + Widget build(BuildContext context) { + final List accountDataList = DummyDataService.getAccountDataList(context); + final List billDataList = DummyDataService.getBillDataList(context); + final List budgetDataList = DummyDataService.getBudgetDataList(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + final double textScaleFactor = + GalleryOptions.of(context).textScaleFactor(context); + + // Only display multiple columns when the constraints allow it and we + // have a regular text scale factor. + const int minWidthForTwoColumns = 600; + final bool hasMultipleColumns = isDisplayDesktop(context) && + constraints.maxWidth > minWidthForTwoColumns && + textScaleFactor <= 2; + final double boxWidth = hasMultipleColumns + ? constraints.maxWidth / 2 - spacing / 2 + : double.infinity; + + return Wrap( + runSpacing: spacing, + children: [ + SizedBox( + width: boxWidth, + child: _FinancialView( + title: localizations.rallyAccounts, + total: sumAccountDataPrimaryAmount(accountDataList), + financialItemViews: + buildAccountDataListViews(accountDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllAccounts, + order: 1, + ), + ), + if (hasMultipleColumns) SizedBox(width: spacing), + SizedBox( + width: boxWidth, + child: _FinancialView( + title: localizations.rallyBills, + total: sumBillDataPrimaryAmount(billDataList), + financialItemViews: buildBillDataListViews(billDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllBills, + order: 2, + ), + ), + _FinancialView( + title: localizations.rallyBudgets, + total: sumBudgetDataPrimaryAmount(budgetDataList), + financialItemViews: + buildBudgetDataListViews(budgetDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllBudgets, + order: 3, + ), + ], + ); + }); + } +} + +class _AlertsView extends StatelessWidget { + const _AlertsView({this.alerts}); + + final List? alerts; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Container( + padding: const EdgeInsetsDirectional.only(start: 16, top: 4, bottom: 4), + color: RallyColors.cardBackground, + child: Column( + children: [ + Container( + width: double.infinity, + padding: + isDesktop ? const EdgeInsets.symmetric(vertical: 16) : null, + child: MergeSemantics( + child: Wrap( + alignment: WrapAlignment.spaceBetween, + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + Text(localizations.rallyAlerts), + if (!isDesktop) + TextButton( + style: TextButton.styleFrom( + foregroundColor: Colors.white, + ), + onPressed: () {}, + child: Text(localizations.rallySeeAll), + ), + ], + ), + ), + ), + for (final AlertData alert in alerts!) ...[ + Container(color: RallyColors.primaryBackground, height: 1), + _Alert(alert: alert), + ] + ], + ), + ); + } +} + +class _Alert extends StatelessWidget { + const _Alert({required this.alert}); + + final AlertData alert; + + @override + Widget build(BuildContext context) { + return MergeSemantics( + child: Container( + padding: isDisplayDesktop(context) + ? const EdgeInsets.symmetric(vertical: 8) + : null, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: SelectableText(alert.message!), + ), + SizedBox( + width: 100, + child: Align( + alignment: Alignment.topRight, + child: IconButton( + onPressed: () {}, + icon: Icon(alert.iconData, color: RallyColors.white60), + ), + ), + ), + ], + ), + ), + ); + } +} + +class _FinancialView extends StatelessWidget { + const _FinancialView({ + this.title, + this.total, + this.financialItemViews, + this.buttonSemanticsLabel, + this.order, + }); + + final String? title; + final String? buttonSemanticsLabel; + final double? total; + final List? financialItemViews; + final double? order; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return FocusTraversalOrder( + order: NumericFocusOrder(order!), + child: ColoredBox( + color: RallyColors.cardBackground, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + MergeSemantics( + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Padding( + padding: const EdgeInsets.only( + top: 16, + left: 16, + right: 16, + ), + child: SelectableText(title!), + ), + Padding( + padding: const EdgeInsets.only(left: 16, right: 16), + child: SelectableText( + usdWithSignFormat(context).format(total), + style: theme.textTheme.bodyLarge!.copyWith( + fontSize: 44 / reducedTextScale(context), + fontWeight: FontWeight.w600, + ), + ), + ), + ], + ), + ), + ...financialItemViews! + .sublist(0, math.min(financialItemViews!.length, 3)), + TextButton( + style: TextButton.styleFrom(foregroundColor: Colors.white), + onPressed: () {}, + child: Text( + GalleryLocalizations.of(context)!.rallySeeAll, + semanticsLabel: buttonSemanticsLabel, + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart new file mode 100644 index 0000000000000000000000000000000000000000..b9db0de1b691aa10fc35224ef4128b0e7d0ea9b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../../layout/adaptive.dart'; +import '../colors.dart'; +import '../data.dart'; +import '../routes.dart' as rally_route; + +class SettingsView extends StatefulWidget { + const SettingsView({super.key}); + + @override + State createState() => _SettingsViewState(); +} + +class _SettingsViewState extends State { + @override + Widget build(BuildContext context) { + return FocusTraversalGroup( + child: Container( + padding: EdgeInsets.only(top: isDisplayDesktop(context) ? 24 : 0), + child: ListView( + restorationId: 'settings_list_view', + shrinkWrap: true, + children: [ + for (final String title + in DummyDataService.getSettingsTitles(context)) ...[ + _SettingsItem(title), + const Divider( + color: RallyColors.dividerColor, + height: 1, + ) + ] + ], + ), + ), + ); + } +} + +class _SettingsItem extends StatelessWidget { + const _SettingsItem(this.title); + + final String title; + + @override + Widget build(BuildContext context) { + return TextButton( + style: TextButton.styleFrom( + foregroundColor: Colors.white, + padding: EdgeInsets.zero, + ), + onPressed: () { + Navigator.of(context).restorablePushNamed(rally_route.loginRoute); + }, + child: Container( + alignment: AlignmentDirectional.centerStart, + padding: const EdgeInsets.symmetric(vertical: 24, horizontal: 28), + child: Text(title), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart new file mode 100644 index 0000000000000000000000000000000000000000..467fc44a74cd60a3254f14d423f2f1e677bed2c9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart @@ -0,0 +1,95 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import '../../../layout/adaptive.dart'; +import '../colors.dart'; + +class TabWithSidebar extends StatelessWidget { + const TabWithSidebar({ + super.key, + this.restorationId, + required this.mainView, + required this.sidebarItems, + }); + + final Widget mainView; + final List sidebarItems; + final String? restorationId; + + @override + Widget build(BuildContext context) { + if (isDisplayDesktop(context)) { + return Row( + children: [ + Flexible( + flex: 2, + child: SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 24), + child: mainView, + ), + ), + ), + Expanded( + child: Container( + color: RallyColors.inputBackground, + padding: const EdgeInsetsDirectional.only(start: 24), + height: double.infinity, + alignment: AlignmentDirectional.centerStart, + child: ListView( + shrinkWrap: true, + children: sidebarItems, + ), + ), + ), + ], + ); + } else { + return SingleChildScrollView( + restorationId: restorationId, + child: mainView, + ); + } + } +} + +class SidebarItem extends StatelessWidget { + const SidebarItem({ + super.key, + required this.value, + required this.title, + }); + + final String value; + final String title; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const SizedBox(height: 8), + SelectableText( + title, + style: textTheme.bodyMedium!.copyWith( + fontSize: 16, + color: RallyColors.gray60, + ), + ), + const SizedBox(height: 8), + SelectableText( + value, + style: textTheme.bodyLarge!.copyWith(fontSize: 20), + ), + const SizedBox(height: 8), + Container( + color: RallyColors.primaryBackground, + height: 1, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart new file mode 100644 index 0000000000000000000000000000000000000000..088fb3f37db241726714597887367be4bcea3334 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart @@ -0,0 +1,1275 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; +import 'dart:ui' as ui; + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:provider/provider.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import 'app.dart'; +import 'bottom_drawer.dart'; +import 'colors.dart'; +import 'compose_page.dart'; +import 'mailbox_body.dart'; +import 'model/email_model.dart'; +import 'model/email_store.dart'; +import 'profile_avatar.dart'; +import 'search_page.dart'; +import 'waterfall_notched_rectangle.dart'; + +const String _assetsPackage = 'flutter_gallery_assets'; +const String _iconAssetLocation = 'reply/icons'; +const String _folderIconAssetLocation = '$_iconAssetLocation/twotone_folder.png'; +final GlobalKey desktopMailNavKey = GlobalKey(); +final GlobalKey mobileMailNavKey = GlobalKey(); +const double _kFlingVelocity = 2.0; +const Duration _kAnimationDuration = Duration(milliseconds: 300); + +class AdaptiveNav extends StatefulWidget { + const AdaptiveNav({super.key}); + + @override + State createState() => _AdaptiveNavState(); +} + +class _AdaptiveNavState extends State { + @override + void initState() { + super.initState(); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final bool isTablet = isDisplaySmallDesktop(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final List<_Destination> navigationDestinations = <_Destination>[ + _Destination( + type: MailboxPageType.inbox, + textLabel: localizations.replyInboxLabel, + icon: '$_iconAssetLocation/twotone_inbox.png', + ), + _Destination( + type: MailboxPageType.starred, + textLabel: localizations.replyStarredLabel, + icon: '$_iconAssetLocation/twotone_star.png', + ), + _Destination( + type: MailboxPageType.sent, + textLabel: localizations.replySentLabel, + icon: '$_iconAssetLocation/twotone_send.png', + ), + _Destination( + type: MailboxPageType.trash, + textLabel: localizations.replyTrashLabel, + icon: '$_iconAssetLocation/twotone_delete.png', + ), + _Destination( + type: MailboxPageType.spam, + textLabel: localizations.replySpamLabel, + icon: '$_iconAssetLocation/twotone_error.png', + ), + _Destination( + type: MailboxPageType.drafts, + textLabel: localizations.replyDraftsLabel, + icon: '$_iconAssetLocation/twotone_drafts.png', + ), + ]; + + final Map folders = { + 'Receipts': _folderIconAssetLocation, + 'Pine Elementary': _folderIconAssetLocation, + 'Taxes': _folderIconAssetLocation, + 'Vacation': _folderIconAssetLocation, + 'Mortgage': _folderIconAssetLocation, + 'Freelance': _folderIconAssetLocation, + }; + + if (isDesktop) { + return _DesktopNav( + extended: !isTablet, + destinations: navigationDestinations, + folders: folders, + onItemTapped: _onDestinationSelected, + ); + } else { + return _MobileNav( + destinations: navigationDestinations, + folders: folders, + onItemTapped: _onDestinationSelected, + ); + } + } + + void _onDestinationSelected(int index, MailboxPageType destination) { + final EmailStore emailStore = Provider.of( + context, + listen: false, + ); + + final bool isDesktop = isDisplayDesktop(context); + + emailStore.selectedMailboxPage = destination; + + if (isDesktop) { + while (desktopMailNavKey.currentState!.canPop()) { + desktopMailNavKey.currentState!.pop(); + } + } + + if (emailStore.onMailView) { + if (!isDesktop) { + mobileMailNavKey.currentState!.pop(); + } + + emailStore.selectedEmailId = -1; + } + } +} + +class _DesktopNav extends StatefulWidget { + const _DesktopNav({ + required this.extended, + required this.destinations, + required this.folders, + required this.onItemTapped, + }); + + final bool extended; + final List<_Destination> destinations; + final Map folders; + final void Function(int, MailboxPageType) onItemTapped; + + @override + _DesktopNavState createState() => _DesktopNavState(); +} + +class _DesktopNavState extends State<_DesktopNav> + with SingleTickerProviderStateMixin { + late ValueNotifier _isExtended; + + @override + void initState() { + super.initState(); + _isExtended = ValueNotifier(widget.extended); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Row( + children: [ + Consumer( + builder: (BuildContext context, EmailStore model, Widget? child) { + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final int selectedIndex = + widget.destinations.indexWhere((_Destination destination) { + return destination.type == model.selectedMailboxPage; + }); + return Container( + color: + Theme.of(context).navigationRailTheme.backgroundColor, + child: SingleChildScrollView( + clipBehavior: Clip.antiAlias, + child: ConstrainedBox( + constraints: BoxConstraints( + minHeight: constraints.maxHeight, + ), + child: IntrinsicHeight( + child: ValueListenableBuilder( + valueListenable: _isExtended, + builder: (BuildContext context, bool value, Widget? child) { + return NavigationRail( + destinations: [ + for (final _Destination destination in widget.destinations) + NavigationRailDestination( + icon: Material( + key: ValueKey( + 'Reply-${destination.textLabel}', + ), + color: Colors.transparent, + child: ImageIcon( + AssetImage( + destination.icon, + package: _assetsPackage, + ), + ), + ), + label: Text(destination.textLabel), + ), + ], + extended: _isExtended.value, + labelType: NavigationRailLabelType.none, + leading: _NavigationRailHeader( + extended: _isExtended, + ), + trailing: _NavigationRailFolderSection( + folders: widget.folders, + ), + selectedIndex: selectedIndex, + onDestinationSelected: (int index) { + widget.onItemTapped( + index, + widget.destinations[index].type, + ); + }, + ); + }, + ), + ), + ), + ), + ); + }, + ); + }, + ), + const VerticalDivider(thickness: 1, width: 1), + Expanded( + child: Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 1340), + child: const _SharedAxisTransitionSwitcher( + defaultChild: _MailNavigator( + child: MailboxBody(), + ), + ), + ), + ), + ), + ], + ), + ); + } +} + +class _NavigationRailHeader extends StatelessWidget { + const _NavigationRailHeader({required this.extended}); + + final ValueNotifier extended; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final Animation animation = NavigationRail.extendedAnimation(context); + + return AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + return Align( + alignment: AlignmentDirectional.centerStart, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + height: 56, + child: Row( + children: [ + const SizedBox(width: 6), + InkWell( + key: const ValueKey('ReplyLogo'), + borderRadius: const BorderRadius.all(Radius.circular(16)), + onTap: () { + extended.value = !extended.value; + }, + child: Row( + children: [ + Transform.rotate( + angle: animation.value * math.pi, + child: const Icon( + Icons.arrow_left, + color: ReplyColors.white50, + size: 16, + ), + ), + const _ReplyLogo(), + const SizedBox(width: 10), + Align( + alignment: AlignmentDirectional.centerStart, + widthFactor: animation.value, + child: Opacity( + opacity: animation.value, + child: Text( + 'REPLY', + style: textTheme.bodyLarge!.copyWith( + color: ReplyColors.white50, + ), + ), + ), + ), + SizedBox(width: 18 * animation.value), + ], + ), + ), + if (animation.value > 0) + Opacity( + opacity: animation.value, + child: const Row( + children: [ + SizedBox(width: 18), + ProfileAvatar( + avatar: 'reply/avatars/avatar_2.jpg', + radius: 16, + ), + SizedBox(width: 12), + Icon( + Icons.settings, + color: ReplyColors.white50, + ), + ], + ), + ), + ], + ), + ), + const SizedBox(height: 20), + Padding( + padding: const EdgeInsetsDirectional.only( + start: 8, + ), + child: _ReplyFab(extended: extended.value), + ), + const SizedBox(height: 8), + ], + ), + ); + }, + ); + } +} + +class _NavigationRailFolderSection extends StatelessWidget { + const _NavigationRailFolderSection({required this.folders}); + + final Map folders; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextTheme textTheme = theme.textTheme; + final NavigationRailThemeData navigationRailTheme = theme.navigationRailTheme; + final Animation animation = NavigationRail.extendedAnimation(context); + + return AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + return Visibility( + maintainAnimation: true, + maintainState: true, + visible: animation.value > 0, + child: Opacity( + opacity: animation.value, + child: Align( + widthFactor: animation.value, + alignment: AlignmentDirectional.centerStart, + child: SizedBox( + height: 485, + width: 256, + child: ListView( + padding: const EdgeInsets.all(12), + physics: const NeverScrollableScrollPhysics(), + children: [ + const Divider( + color: ReplyColors.blue200, + thickness: 0.4, + indent: 14, + endIndent: 16, + ), + const SizedBox(height: 16), + Padding( + padding: const EdgeInsetsDirectional.only( + start: 16, + ), + child: Text( + 'FOLDERS', + style: textTheme.bodySmall!.copyWith( + color: navigationRailTheme + .unselectedLabelTextStyle!.color, + ), + ), + ), + const SizedBox(height: 8), + for (final String folder in folders.keys) + InkWell( + borderRadius: const BorderRadius.all( + Radius.circular(36), + ), + onTap: () {}, + child: Column( + children: [ + Row( + children: [ + const SizedBox(width: 12), + ImageIcon( + AssetImage( + folders[folder]!, + package: _assetsPackage, + ), + color: navigationRailTheme + .unselectedLabelTextStyle!.color, + ), + const SizedBox(width: 24), + Text( + folder, + style: textTheme.bodyLarge!.copyWith( + color: navigationRailTheme + .unselectedLabelTextStyle!.color, + ), + ), + const SizedBox(height: 72), + ], + ), + ], + ), + ), + ], + ), + ), + ), + ), + ); + }, + ); + } +} + +class _MobileNav extends StatefulWidget { + const _MobileNav({ + required this.destinations, + required this.folders, + required this.onItemTapped, + }); + + final List<_Destination> destinations; + final Map folders; + final void Function(int, MailboxPageType) onItemTapped; + + @override + _MobileNavState createState() => _MobileNavState(); +} + +class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { + final GlobalKey> _bottomDrawerKey = GlobalKey(debugLabel: 'Bottom Drawer'); + late AnimationController _drawerController; + late AnimationController _dropArrowController; + late AnimationController _bottomAppBarController; + late Animation _drawerCurve; + late Animation _dropArrowCurve; + late Animation _bottomAppBarCurve; + + @override + void initState() { + super.initState(); + _drawerController = AnimationController( + duration: _kAnimationDuration, + value: 0, + vsync: this, + )..addListener(() { + if (_drawerController.value < 0.01) { + setState(() { + //Reload state when drawer is at its smallest to toggle visibility + //If state is reloaded before this drawer closes abruptly instead + //of animating. + }); + } + }); + + _dropArrowController = AnimationController( + duration: _kAnimationDuration, + vsync: this, + ); + + _bottomAppBarController = AnimationController( + vsync: this, + value: 1, + duration: const Duration(milliseconds: 250), + ); + + _drawerCurve = CurvedAnimation( + parent: _drawerController, + curve: Easing.legacy, + reverseCurve: Easing.legacy.flipped, + ); + + _dropArrowCurve = CurvedAnimation( + parent: _dropArrowController, + curve: Easing.legacy, + reverseCurve: Easing.legacy.flipped, + ); + + _bottomAppBarCurve = CurvedAnimation( + parent: _bottomAppBarController, + curve: Easing.legacy, + reverseCurve: Easing.legacy.flipped, + ); + } + + @override + void dispose() { + _drawerController.dispose(); + _dropArrowController.dispose(); + _bottomAppBarController.dispose(); + super.dispose(); + } + + bool get _bottomDrawerVisible => _drawerController.isForwardOrCompleted; + + void _toggleBottomDrawerVisibility() { + if (_drawerController.value < 0.4) { + _drawerController.animateTo(0.4, curve: Easing.legacy); + _dropArrowController.animateTo(0.35, curve: Easing.legacy); + return; + } + + _dropArrowController.forward(); + _drawerController.fling( + velocity: _bottomDrawerVisible ? -_kFlingVelocity : _kFlingVelocity, + ); + } + + double get _bottomDrawerHeight { + final RenderBox renderBox = + _bottomDrawerKey.currentContext!.findRenderObject()! as RenderBox; + return renderBox.size.height; + } + + void _handleDragUpdate(DragUpdateDetails details) { + _drawerController.value -= details.primaryDelta! / _bottomDrawerHeight; + } + + void _handleDragEnd(DragEndDetails details) { + if (!_drawerController.isDismissed) { + return; + } + + final double flingVelocity = + details.velocity.pixelsPerSecond.dy / _bottomDrawerHeight; + + if (flingVelocity < 0.0) { + _drawerController.fling( + velocity: math.max(_kFlingVelocity, -flingVelocity), + ); + } else if (flingVelocity > 0.0) { + _dropArrowController.forward(); + _drawerController.fling( + velocity: math.min(-_kFlingVelocity, -flingVelocity), + ); + } else { + if (_drawerController.value < 0.6) { + _dropArrowController.forward(); + } + _drawerController.fling( + velocity: + _drawerController.value < 0.6 ? -_kFlingVelocity : _kFlingVelocity, + ); + } + } + + bool _handleScrollNotification(ScrollNotification notification) { + if (notification.depth == 0) { + if (notification is UserScrollNotification) { + switch (notification.direction) { + case ScrollDirection.forward: + _bottomAppBarController.forward(); + case ScrollDirection.reverse: + _bottomAppBarController.reverse(); + case ScrollDirection.idle: + break; + } + } + } + return false; + } + + Widget _buildStack(BuildContext context, BoxConstraints constraints) { + final ui.Size drawerSize = constraints.biggest; + final double drawerTop = drawerSize.height; + + final Animation drawerAnimation = RelativeRectTween( + begin: RelativeRect.fromLTRB(0.0, drawerTop, 0.0, 0.0), + end: RelativeRect.fill, + ).animate(_drawerCurve); + + return Stack( + clipBehavior: Clip.none, + key: _bottomDrawerKey, + children: [ + NotificationListener( + onNotification: _handleScrollNotification, + child: const _MailNavigator( + child: MailboxBody(), + ), + ), + MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + _drawerController.reverse(); + _dropArrowController.reverse(); + }, + child: Visibility( + maintainAnimation: true, + maintainState: true, + visible: _bottomDrawerVisible, + child: FadeTransition( + opacity: _drawerCurve, + child: Container( + height: MediaQuery.of(context).size.height, + width: MediaQuery.of(context).size.width, + color: + Theme.of(context).bottomSheetTheme.modalBackgroundColor, + ), + ), + ), + ), + ), + PositionedTransition( + rect: drawerAnimation, + child: Visibility( + visible: _bottomDrawerVisible, + child: BottomDrawer( + onVerticalDragUpdate: _handleDragUpdate, + onVerticalDragEnd: _handleDragEnd, + leading: Consumer( + builder: (BuildContext context, EmailStore model, Widget? child) { + return _BottomDrawerDestinations( + destinations: widget.destinations, + drawerController: _drawerController, + dropArrowController: _dropArrowController, + selectedMailbox: model.selectedMailboxPage, + onItemTapped: widget.onItemTapped, + ); + }, + ), + trailing: _BottomDrawerFolderSection(folders: widget.folders), + ), + ), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + return _SharedAxisTransitionSwitcher( + defaultChild: Scaffold( + extendBody: true, + body: LayoutBuilder( + builder: _buildStack, + ), + bottomNavigationBar: Consumer( + builder: (BuildContext context, EmailStore model, Widget? child) { + return _AnimatedBottomAppBar( + bottomAppBarController: _bottomAppBarController, + bottomAppBarCurve: _bottomAppBarCurve, + bottomDrawerVisible: _bottomDrawerVisible, + drawerController: _drawerController, + dropArrowCurve: _dropArrowCurve, + navigationDestinations: widget.destinations, + selectedMailbox: model.selectedMailboxPage, + toggleBottomDrawerVisibility: _toggleBottomDrawerVisibility, + ); + }, + ), + floatingActionButton: _bottomDrawerVisible + ? null + : const Padding( + padding: EdgeInsetsDirectional.only(bottom: 8), + child: _ReplyFab(), + ), + floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, + ), + ); + } +} + +class _AnimatedBottomAppBar extends StatelessWidget { + const _AnimatedBottomAppBar({ + required this.bottomAppBarController, + required this.bottomAppBarCurve, + required this.bottomDrawerVisible, + required this.drawerController, + required this.dropArrowCurve, + required this.navigationDestinations, + this.selectedMailbox, + this.toggleBottomDrawerVisibility, + }); + + final AnimationController bottomAppBarController; + final Animation bottomAppBarCurve; + final bool bottomDrawerVisible; + final AnimationController drawerController; + final Animation dropArrowCurve; + final List<_Destination> navigationDestinations; + final MailboxPageType? selectedMailbox; + final ui.VoidCallback? toggleBottomDrawerVisibility; + + @override + Widget build(BuildContext context) { + final Animation fadeOut = Tween(begin: 1, end: -1).animate( + drawerController.drive(CurveTween(curve: Easing.legacy)), + ); + + return Selector( + selector: (BuildContext context, EmailStore emailStore) => emailStore.onMailView, + builder: (BuildContext context, bool onMailView, Widget? child) { + bottomAppBarController.forward(); + + return SizeTransition( + sizeFactor: bottomAppBarCurve, + axisAlignment: -1, + child: Padding( + padding: const EdgeInsetsDirectional.only(top: 2), + child: BottomAppBar( + shape: const WaterfallNotchedRectangle(), + notchMargin: 6, + child: Container( + color: Colors.transparent, + height: kToolbarHeight, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + InkWell( + key: const ValueKey('navigation_button'), + borderRadius: const BorderRadius.all(Radius.circular(16)), + onTap: toggleBottomDrawerVisibility, + child: Row( + children: [ + const SizedBox(width: 16), + RotationTransition( + turns: Tween( + begin: 0.0, + end: 1.0, + ).animate(dropArrowCurve), + child: const Icon( + Icons.arrow_drop_up, + color: ReplyColors.white50, + ), + ), + const SizedBox(width: 8), + const _ReplyLogo(), + const SizedBox(width: 10), + _FadeThroughTransitionSwitcher( + fillColor: Colors.transparent, + child: onMailView + ? const SizedBox(width: 48) + : FadeTransition( + opacity: fadeOut, + child: Text( + navigationDestinations + .firstWhere((_Destination destination) { + return destination.type == + selectedMailbox; + }).textLabel, + style: Theme.of(context) + .textTheme + .bodyLarge! + .copyWith(color: ReplyColors.white50), + ), + ), + ), + ], + ), + ), + Expanded( + child: ColoredBox( + color: Colors.transparent, + child: _BottomAppBarActionItems( + drawerVisible: bottomDrawerVisible, + ), + ), + ), + ], + ), + ), + ), + ), + ); + }, + ); + } +} + +class _BottomAppBarActionItems extends StatelessWidget { + const _BottomAppBarActionItems({required this.drawerVisible}); + + final bool drawerVisible; + + @override + Widget build(BuildContext context) { + return Consumer( + builder: (BuildContext context, EmailStore model, Widget? child) { + final bool onMailView = model.onMailView; + Color? starIconColor; + + if (onMailView) { + starIconColor = model.isCurrentEmailStarred + ? Theme.of(context).colorScheme.secondary + : ReplyColors.white50; + } + + return _FadeThroughTransitionSwitcher( + fillColor: Colors.transparent, + child: drawerVisible + ? Align( + key: UniqueKey(), + alignment: Alignment.centerRight, + child: IconButton( + icon: const Icon(Icons.settings), + color: ReplyColors.white50, + onPressed: () {}, + ), + ) + : onMailView + ? Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + IconButton( + key: const ValueKey('star_email_button'), + icon: ImageIcon( + const AssetImage( + '$_iconAssetLocation/twotone_star.png', + package: _assetsPackage, + ), + color: starIconColor, + ), + onPressed: () { + final Email currentEmail = model.currentEmail; + if (model.isCurrentEmailStarred) { + model.unstarEmail(currentEmail.id); + } else { + model.starEmail(currentEmail.id); + } + if (model.selectedMailboxPage == + MailboxPageType.starred) { + mobileMailNavKey.currentState!.pop(); + model.selectedEmailId = -1; + } + }, + color: ReplyColors.white50, + ), + IconButton( + icon: const ImageIcon( + AssetImage( + '$_iconAssetLocation/twotone_delete.png', + package: _assetsPackage, + ), + ), + onPressed: () { + model.deleteEmail( + model.selectedEmailId, + ); + + mobileMailNavKey.currentState!.pop(); + model.selectedEmailId = -1; + }, + color: ReplyColors.white50, + ), + IconButton( + icon: const Icon(Icons.more_vert), + onPressed: () {}, + color: ReplyColors.white50, + ), + ], + ) + : Align( + alignment: Alignment.centerRight, + child: IconButton( + key: const ValueKey('ReplySearch'), + icon: const Icon(Icons.search), + color: ReplyColors.white50, + onPressed: () { + Provider.of( + context, + listen: false, + ).onSearchPage = true; + }, + ), + ), + ); + }, + ); + } +} + +class _BottomDrawerDestinations extends StatelessWidget { + const _BottomDrawerDestinations({ + required this.destinations, + required this.drawerController, + required this.dropArrowController, + required this.selectedMailbox, + required this.onItemTapped, + }); + + final List<_Destination> destinations; + final AnimationController drawerController; + final AnimationController dropArrowController; + final MailboxPageType selectedMailbox; + final void Function(int, MailboxPageType) onItemTapped; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final List destinationButtons = []; + + for (int index = 0; index < destinations.length; index += 1) { + final _Destination destination = destinations[index]; + destinationButtons.add( + InkWell( + key: ValueKey('Reply-${destination.textLabel}'), + onTap: () { + drawerController.reverse(); + dropArrowController.forward(); + Future.delayed( + Duration( + milliseconds: (drawerController.value == 1 ? 300 : 120) * + GalleryOptions.of(context).timeDilation.toInt(), + ), + () { + // Wait until animations are complete to reload the state. + // Delay scales with the timeDilation value of the gallery. + onItemTapped(index, destination.type); + }, + ); + }, + child: ListTile( + mouseCursor: SystemMouseCursors.click, + leading: ImageIcon( + AssetImage( + destination.icon, + package: _assetsPackage, + ), + color: destination.type == selectedMailbox + ? theme.colorScheme.secondary + : theme.navigationRailTheme.unselectedLabelTextStyle!.color, + ), + title: Text( + destination.textLabel, + style: theme.textTheme.bodyMedium!.copyWith( + color: destination.type == selectedMailbox + ? theme.colorScheme.secondary + : theme.navigationRailTheme.unselectedLabelTextStyle!.color, + ), + ), + ), + ), + ); + } + + return Column( + children: destinationButtons, + ); + } +} + +class _Destination { + const _Destination({ + required this.type, + required this.textLabel, + required this.icon, + }); + + // Which mailbox page to display. For example, 'Starred' or 'Trash'. + final MailboxPageType type; + + // The localized text label for the inbox. + final String textLabel; + + // The icon that appears next to the text label for the inbox. + final String icon; +} + +class _BottomDrawerFolderSection extends StatelessWidget { + const _BottomDrawerFolderSection({required this.folders}); + + final Map folders; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final NavigationRailThemeData navigationRailTheme = theme.navigationRailTheme; + + return Column( + children: [ + for (final String folder in folders.keys) + InkWell( + onTap: () {}, + child: ListTile( + mouseCursor: SystemMouseCursors.click, + leading: ImageIcon( + AssetImage( + folders[folder]!, + package: _assetsPackage, + ), + color: navigationRailTheme.unselectedLabelTextStyle!.color, + ), + title: Text( + folder, + style: theme.textTheme.bodyMedium!.copyWith( + color: navigationRailTheme.unselectedLabelTextStyle!.color, + ), + ), + ), + ), + ], + ); + } +} + +class _MailNavigator extends StatefulWidget { + const _MailNavigator({ + required this.child, + }); + + final Widget child; + + @override + _MailNavigatorState createState() => _MailNavigatorState(); +} + +class _MailNavigatorState extends State<_MailNavigator> { + static const String inboxRoute = '/reply/inbox'; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return Navigator( + restorationScopeId: 'replyMailNavigator', + key: isDesktop ? desktopMailNavKey : mobileMailNavKey, + initialRoute: inboxRoute, + onGenerateRoute: (RouteSettings settings) { + switch (settings.name) { + case inboxRoute: + return MaterialPageRoute( + builder: (BuildContext context) { + return _FadeThroughTransitionSwitcher( + fillColor: Theme.of(context).scaffoldBackgroundColor, + child: widget.child, + ); + }, + settings: settings, + ); + case ReplyApp.composeRoute: + return ReplyApp.createComposeRoute(settings); + } + return null; + }, + ); + } +} + +class _ReplyLogo extends StatelessWidget { + const _ReplyLogo(); + + @override + Widget build(BuildContext context) { + return const ImageIcon( + AssetImage( + 'reply/reply_logo.png', + package: _assetsPackage, + ), + size: 32, + color: ReplyColors.white50, + ); + } +} + +class _ReplyFab extends StatefulWidget { + const _ReplyFab({this.extended = false}); + + final bool extended; + + @override + _ReplyFabState createState() => _ReplyFabState(); +} + +class _ReplyFabState extends State<_ReplyFab> + with SingleTickerProviderStateMixin { + static final UniqueKey fabKey = UniqueKey(); + static const double _mobileFabDimension = 56; + + void onPressed() { + final bool onSearchPage = Provider.of( + context, + listen: false, + ).onSearchPage; + // Navigator does not have an easy way to access the current + // route when using a GlobalKey to keep track of NavigatorState. + // We can use [Navigator.popUntil] in order to access the current + // route, and check if it is a ComposePage. If it is not a + // ComposePage and we are not on the SearchPage, then we can push + // a ComposePage onto our navigator. We return true at the end + // so nothing is popped. + desktopMailNavKey.currentState!.popUntil( + (Route route) { + final String? currentRoute = route.settings.name; + if (currentRoute != ReplyApp.composeRoute && !onSearchPage) { + desktopMailNavKey.currentState! + .restorablePushNamed(ReplyApp.composeRoute); + } + return true; + }, + ); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final ThemeData theme = Theme.of(context); + const CircleBorder circleFabBorder = CircleBorder(); + + return Selector( + selector: (BuildContext context, EmailStore emailStore) => emailStore.onMailView, + builder: (BuildContext context, bool onMailView, Widget? child) { + final _FadeThroughTransitionSwitcher fabSwitcher = _FadeThroughTransitionSwitcher( + fillColor: Colors.transparent, + child: onMailView + ? Icon( + Icons.reply_all, + key: fabKey, + color: Colors.black, + ) + : const Icon( + Icons.create, + color: Colors.black, + ), + ); + final String tooltip = onMailView ? 'Reply' : 'Compose'; + + if (isDesktop) { + final Animation animation = NavigationRail.extendedAnimation(context); + return Container( + height: 56, + padding: EdgeInsets.symmetric( + vertical: ui.lerpDouble(0, 6, animation.value)!, + ), + child: animation.value == 0 + ? FloatingActionButton( + tooltip: tooltip, + key: const ValueKey('ReplyFab'), + onPressed: onPressed, + child: fabSwitcher, + ) + : Align( + alignment: AlignmentDirectional.centerStart, + child: FloatingActionButton.extended( + key: const ValueKey('ReplyFab'), + label: Row( + children: [ + fabSwitcher, + SizedBox(width: 16 * animation.value), + Align( + alignment: AlignmentDirectional.centerStart, + widthFactor: animation.value, + child: Text( + tooltip.toUpperCase(), + style: Theme.of(context) + .textTheme + .headlineSmall! + .copyWith( + fontSize: 16, + color: theme.colorScheme.onSecondary, + ), + ), + ), + ], + ), + onPressed: onPressed, + ), + ), + ); + } else { + // TODO(x): State restoration of compose page on mobile is blocked because OpenContainer does not support restorablePush, https://github.com/flutter/gallery/issues/570. + return OpenContainer( + openBuilder: (BuildContext context, void Function() closedContainer) { + return const ComposePage(); + }, + openColor: theme.cardColor, + closedShape: circleFabBorder, + closedColor: theme.colorScheme.secondary, + closedElevation: 6, + closedBuilder: (BuildContext context, void Function() openContainer) { + return Tooltip( + message: tooltip, + child: InkWell( + key: const ValueKey('ReplyFab'), + customBorder: circleFabBorder, + onTap: openContainer, + child: SizedBox( + height: _mobileFabDimension, + width: _mobileFabDimension, + child: Center( + child: fabSwitcher, + ), + ), + ), + ); + }, + ); + } + }, + ); + } +} + +class _FadeThroughTransitionSwitcher extends StatelessWidget { + const _FadeThroughTransitionSwitcher({ + required this.fillColor, + required this.child, + }); + + final Widget child; + final Color fillColor; + + @override + Widget build(BuildContext context) { + return PageTransitionSwitcher( + transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + return FadeThroughTransition( + fillColor: fillColor, + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + child: child, + ); + } +} + +class _SharedAxisTransitionSwitcher extends StatelessWidget { + const _SharedAxisTransitionSwitcher({required this.defaultChild}); + + final Widget defaultChild; + + @override + Widget build(BuildContext context) { + return Selector( + selector: (BuildContext context, EmailStore emailStore) => emailStore.onSearchPage, + builder: (BuildContext context, bool onSearchPage, Widget? child) { + return PageTransitionSwitcher( + reverse: !onSearchPage, + transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + return SharedAxisTransition( + fillColor: Theme.of(context).colorScheme.background, + animation: animation, + secondaryAnimation: secondaryAnimation, + transitionType: SharedAxisTransitionType.scaled, + child: child, + ); + }, + child: onSearchPage ? const SearchPage() : defaultChild, + ); + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..7310d676d943350657e7ac406b8890e6e5f89f47 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart @@ -0,0 +1,348 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:nested/nested.dart'; +import 'package:provider/provider.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/letter_spacing.dart'; +import 'adaptive_nav.dart'; +import 'colors.dart'; +import 'compose_page.dart'; +import 'model/email_model.dart'; +import 'model/email_store.dart'; +import 'routes.dart' as routes; + +final GlobalKey rootNavKey = GlobalKey(); + +class ReplyApp extends StatefulWidget { + const ReplyApp({super.key}); + + static const String homeRoute = routes.homeRoute; + static const String composeRoute = routes.composeRoute; + + static Route createComposeRoute(RouteSettings settings) { + return PageRouteBuilder( + pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) => + const ComposePage(), + transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + return FadeThroughTransition( + fillColor: Theme.of(context).cardColor, + animation: animation, + secondaryAnimation: secondaryAnimation, + child: child, + ); + }, + settings: settings, + ); + } + + @override + State createState() => _ReplyAppState(); +} + +class _ReplyAppState extends State with RestorationMixin { + final _RestorableEmailState _appState = _RestorableEmailState(); + + @override + String get restorationId => 'replyState'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_appState, 'state'); + } + + @override + void dispose() { + _appState.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeMode galleryThemeMode = GalleryOptions.of(context).themeMode; + final bool isDark = galleryThemeMode == ThemeMode.system + ? Theme.of(context).brightness == Brightness.dark + : galleryThemeMode == ThemeMode.dark; + + final ThemeData replyTheme = + isDark ? _buildReplyDarkTheme(context) : _buildReplyLightTheme(context); + + return MultiProvider( + providers: [ + ChangeNotifierProvider.value( + value: _appState.value, + ), + ], + child: MaterialApp( + navigatorKey: rootNavKey, + restorationScopeId: 'appNavigator', + title: 'Reply', + debugShowCheckedModeBanner: false, + theme: replyTheme, + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + initialRoute: ReplyApp.homeRoute, + onGenerateRoute: (RouteSettings settings) => switch (settings.name) { + ReplyApp.homeRoute => MaterialPageRoute( + builder: (BuildContext context) => const AdaptiveNav(), + settings: settings, + ), + ReplyApp.composeRoute => ReplyApp.createComposeRoute(settings), + _ => null, + }, + ), + ); + } +} + +class _RestorableEmailState extends RestorableListenable { + @override + EmailStore createDefaultValue() { + return EmailStore(); + } + + @override + EmailStore fromPrimitives(Object? data) { + final EmailStore appState = EmailStore(); + final Map appData = Map.from(data! as Map); + appState.selectedEmailId = appData['selectedEmailId'] as int; + appState.onSearchPage = appData['onSearchPage'] as bool; + + // The index of the MailboxPageType enum is restored. + final int mailboxPageIndex = appData['selectedMailboxPage'] as int; + appState.selectedMailboxPage = MailboxPageType.values[mailboxPageIndex]; + + final List starredEmailIdsList = appData['starredEmailIds'] as List; + appState.starredEmailIds = { + ...starredEmailIdsList.map((dynamic id) => id as int), + }; + final List trashEmailIdsList = appData['trashEmailIds'] as List; + appState.trashEmailIds = { + ...trashEmailIdsList.map((dynamic id) => id as int), + }; + return appState; + } + + @override + Object toPrimitives() { + return { + 'selectedEmailId': value.selectedEmailId, + // The index of the MailboxPageType enum is stored, since the value + // has to be serializable. + 'selectedMailboxPage': value.selectedMailboxPage.index, + 'onSearchPage': value.onSearchPage, + 'starredEmailIds': value.starredEmailIds.toList(), + 'trashEmailIds': value.trashEmailIds.toList(), + }; + } +} + +ThemeData _buildReplyLightTheme(BuildContext context) { + final ThemeData base = ThemeData.light(); + return base.copyWith( + bottomAppBarTheme: const BottomAppBarTheme(color: ReplyColors.blue700), + bottomSheetTheme: BottomSheetThemeData( + backgroundColor: ReplyColors.blue700, + modalBackgroundColor: Colors.white.withOpacity(0.7), + ), + navigationRailTheme: NavigationRailThemeData( + backgroundColor: ReplyColors.blue700, + selectedIconTheme: const IconThemeData(color: ReplyColors.orange500), + selectedLabelTextStyle: + GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.orange500, + ), + unselectedIconTheme: const IconThemeData(color: ReplyColors.blue200), + unselectedLabelTextStyle: + GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.blue200, + ), + ), + canvasColor: ReplyColors.white50, + cardColor: ReplyColors.white50, + chipTheme: _buildChipTheme( + ReplyColors.blue700, + ReplyColors.lightChipBackground, + Brightness.light, + ), + colorScheme: const ColorScheme.light( + primary: ReplyColors.blue700, + primaryContainer: ReplyColors.blue800, + secondary: ReplyColors.orange500, + secondaryContainer: ReplyColors.orange400, + error: ReplyColors.red400, + onError: ReplyColors.black900, + background: ReplyColors.blue50, + ), + textTheme: _buildReplyLightTextTheme(base.textTheme), + scaffoldBackgroundColor: ReplyColors.blue50, + ); +} + +ThemeData _buildReplyDarkTheme(BuildContext context) { + final ThemeData base = ThemeData.dark(); + return base.copyWith( + bottomAppBarTheme: const BottomAppBarTheme( + color: ReplyColors.darkBottomAppBarBackground, + ), + bottomSheetTheme: BottomSheetThemeData( + backgroundColor: ReplyColors.darkDrawerBackground, + modalBackgroundColor: Colors.black.withOpacity(0.7), + ), + navigationRailTheme: NavigationRailThemeData( + backgroundColor: ReplyColors.darkBottomAppBarBackground, + selectedIconTheme: const IconThemeData(color: ReplyColors.orange300), + selectedLabelTextStyle: + GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.orange300, + ), + unselectedIconTheme: const IconThemeData(color: ReplyColors.greyLabel), + unselectedLabelTextStyle: + GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.greyLabel, + ), + ), + canvasColor: ReplyColors.black900, + cardColor: ReplyColors.darkCardBackground, + chipTheme: _buildChipTheme( + ReplyColors.blue200, + ReplyColors.darkChipBackground, + Brightness.dark, + ), + colorScheme: const ColorScheme.dark( + primary: ReplyColors.blue200, + primaryContainer: ReplyColors.blue300, + secondary: ReplyColors.orange300, + secondaryContainer: ReplyColors.orange300, + error: ReplyColors.red200, + background: ReplyColors.black900Alpha087, + ), + textTheme: _buildReplyDarkTextTheme(base.textTheme), + scaffoldBackgroundColor: ReplyColors.black900, + ); +} + +ChipThemeData _buildChipTheme( + Color primaryColor, + Color chipBackground, + Brightness brightness, +) { + return ChipThemeData( + backgroundColor: primaryColor.withOpacity(0.12), + disabledColor: primaryColor.withOpacity(0.87), + selectedColor: primaryColor.withOpacity(0.05), + secondarySelectedColor: chipBackground, + padding: const EdgeInsets.all(4), + shape: const StadiumBorder(), + labelStyle: GoogleFonts.workSansTextTheme().bodyMedium!.copyWith( + color: brightness == Brightness.dark + ? ReplyColors.white50 + : ReplyColors.black900, + ), + secondaryLabelStyle: GoogleFonts.workSansTextTheme().bodyMedium, + brightness: brightness, + ); +} + +TextTheme _buildReplyLightTextTheme(TextTheme base) { + return base.copyWith( + headlineMedium: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 34, + letterSpacing: letterSpacingOrNone(0.4), + height: 0.9, + color: ReplyColors.black900, + ), + headlineSmall: GoogleFonts.workSans( + fontWeight: FontWeight.bold, + fontSize: 24, + letterSpacing: letterSpacingOrNone(0.27), + color: ReplyColors.black900, + ), + titleLarge: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 20, + letterSpacing: letterSpacingOrNone(0.18), + color: ReplyColors.black900, + ), + titleSmall: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 14, + letterSpacing: letterSpacingOrNone(-0.04), + color: ReplyColors.black900, + ), + bodyLarge: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 18, + letterSpacing: letterSpacingOrNone(0.2), + color: ReplyColors.black900, + ), + bodyMedium: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 14, + letterSpacing: letterSpacingOrNone(-0.05), + color: ReplyColors.black900, + ), + bodySmall: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 12, + letterSpacing: letterSpacingOrNone(0.2), + color: ReplyColors.black900, + ), + ); +} + +TextTheme _buildReplyDarkTextTheme(TextTheme base) { + return base.copyWith( + headlineMedium: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 34, + letterSpacing: letterSpacingOrNone(0.4), + height: 0.9, + color: ReplyColors.white50, + ), + headlineSmall: GoogleFonts.workSans( + fontWeight: FontWeight.bold, + fontSize: 24, + letterSpacing: letterSpacingOrNone(0.27), + color: ReplyColors.white50, + ), + titleLarge: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 20, + letterSpacing: letterSpacingOrNone(0.18), + color: ReplyColors.white50, + ), + titleSmall: GoogleFonts.workSans( + fontWeight: FontWeight.w600, + fontSize: 14, + letterSpacing: letterSpacingOrNone(-0.04), + color: ReplyColors.white50, + ), + bodyLarge: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 18, + letterSpacing: letterSpacingOrNone(0.2), + color: ReplyColors.white50, + ), + bodyMedium: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 14, + letterSpacing: letterSpacingOrNone(-0.05), + color: ReplyColors.white50, + ), + bodySmall: GoogleFonts.workSans( + fontWeight: FontWeight.normal, + fontSize: 12, + letterSpacing: letterSpacingOrNone(0.2), + color: ReplyColors.white50, + ), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart new file mode 100644 index 0000000000000000000000000000000000000000..e6b34e7ab3c0f700732dbf776d3668c8d5340517 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart @@ -0,0 +1,67 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'colors.dart'; + +class BottomDrawer extends StatelessWidget { + const BottomDrawer({ + super.key, + this.onVerticalDragUpdate, + this.onVerticalDragEnd, + required this.leading, + required this.trailing, + }); + + final GestureDragUpdateCallback? onVerticalDragUpdate; + final GestureDragEndCallback? onVerticalDragEnd; + final Widget leading; + final Widget trailing; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + return GestureDetector( + behavior: HitTestBehavior.opaque, + onVerticalDragUpdate: onVerticalDragUpdate, + onVerticalDragEnd: onVerticalDragEnd, + child: Material( + color: theme.bottomSheetTheme.backgroundColor, + borderRadius: const BorderRadius.only( + topLeft: Radius.circular(12), + topRight: Radius.circular(12), + ), + child: ListView( + padding: const EdgeInsets.all(12), + physics: const NeverScrollableScrollPhysics(), + children: [ + const SizedBox(height: 28), + leading, + const SizedBox(height: 8), + const Divider( + color: ReplyColors.blue200, + thickness: 0.25, + indent: 18, + endIndent: 160, + ), + const SizedBox(height: 16), + Padding( + padding: const EdgeInsetsDirectional.only(start: 18), + child: Text( + 'FOLDERS', + style: theme.textTheme.bodySmall!.copyWith( + color: + theme.navigationRailTheme.unselectedLabelTextStyle!.color, + ), + ), + ), + const SizedBox(height: 4), + trailing, + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/colors.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/colors.dart new file mode 100644 index 0000000000000000000000000000000000000000..b419eccb5dddd04653095aabe6faaf37a628ea63 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/colors.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class ReplyColors { + static const Color white50 = Color(0xFFFFFFFF); + + static const Color black800 = Color(0xFF121212); + static const Color black900 = Color(0xFF000000); + + static const Color blue50 = Color(0xFFEEF0F2); + static const Color blue100 = Color(0xFFD2DBE0); + static const Color blue200 = Color(0xFFADBBC4); + static const Color blue300 = Color(0xFF8CA2AE); + static const Color blue600 = Color(0xFF4A6572); + static const Color blue700 = Color(0xFF344955); + static const Color blue800 = Color(0xFF232F34); + + static const Color orange300 = Color(0xFFFBD790); + static const Color orange400 = Color(0xFFF9BE64); + static const Color orange500 = Color(0xFFF9AA33); + + static const Color red200 = Color(0xFFCF7779); + static const Color red400 = Color(0xFFFF4C5D); + + static const Color white50Alpha060 = Color(0x99FFFFFF); + + static const Color blue50Alpha060 = Color(0x99EEF0F2); + + static const Color black900Alpha020 = Color(0x33000000); + static const Color black900Alpha087 = Color(0xDE000000); + static const Color black900Alpha060 = Color(0x99000000); + + static const Color greyLabel = Color(0xFFAEAEAE); + static const Color darkBottomAppBarBackground = Color(0xFF2D2D2D); + static const Color darkDrawerBackground = Color(0xFF353535); + static const Color darkCardBackground = Color(0xFF1E1E1E); + static const Color darkChipBackground = Color(0xFF2A2A2A); + static const Color lightChipBackground = Color(0xFFE5E5E5); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..ad93d9b09e2e7e02cece6643f823a814370df8e5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart @@ -0,0 +1,282 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import 'model/email_model.dart'; +import 'model/email_store.dart'; + +class ComposePage extends StatelessWidget { + const ComposePage({super.key}); + + @override + Widget build(BuildContext context) { + const String senderEmail = 'flutterfan@gmail.com'; + String subject = ''; + String? recipient = 'Recipient'; + String recipientAvatar = 'reply/avatars/avatar_0.jpg'; + + final EmailStore emailStore = Provider.of(context); + + if (emailStore.selectedEmailId >= 0) { + final Email currentEmail = emailStore.currentEmail; + subject = currentEmail.subject; + recipient = currentEmail.sender; + recipientAvatar = currentEmail.avatar; + } + + return Scaffold( + body: SafeArea( + bottom: false, + child: SizedBox( + height: double.infinity, + child: Material( + color: Theme.of(context).cardColor, + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + _SubjectRow( + subject: subject, + ), + const _SectionDivider(), + const _SenderAddressRow( + senderEmail: senderEmail, + ), + const _SectionDivider(), + _RecipientsRow( + recipients: recipient, + avatar: recipientAvatar, + ), + const _SectionDivider(), + Padding( + padding: const EdgeInsets.all(12), + child: TextField( + minLines: 6, + maxLines: 20, + decoration: const InputDecoration.collapsed( + hintText: 'New Message...', + ), + style: Theme.of(context).textTheme.bodyMedium, + ), + ), + ], + ), + ), + ), + ), + ), + ); + } +} + +class _SubjectRow extends StatefulWidget { + const _SubjectRow({required this.subject}); + + final String subject; + + @override + _SubjectRowState createState() => _SubjectRowState(); +} + +class _SubjectRowState extends State<_SubjectRow> { + TextEditingController? _subjectController; + + @override + void initState() { + super.initState(); + _subjectController = TextEditingController(text: widget.subject); + } + + @override + void dispose() { + _subjectController!.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final ColorScheme colorScheme = theme.colorScheme; + + return Padding( + padding: const EdgeInsets.only(top: 8), + child: Row( + children: [ + IconButton( + key: const ValueKey('ReplyExit'), + onPressed: () => Navigator.of(context).pop(), + icon: Icon( + Icons.close, + color: colorScheme.onSurface, + ), + ), + Expanded( + child: TextField( + controller: _subjectController, + style: theme.textTheme.titleLarge, + decoration: InputDecoration.collapsed( + hintText: 'Subject', + hintStyle: theme.textTheme.titleLarge!.copyWith( + color: theme.colorScheme.primary.withOpacity(0.5), + ), + ), + ), + ), + IconButton( + onPressed: () => Navigator.of(context).pop(), + icon: IconButton( + icon: ImageIcon( + const AssetImage( + 'reply/icons/twotone_send.png', + package: 'flutter_gallery_assets', + ), + color: colorScheme.onSurface, + ), + onPressed: () => Navigator.of(context).pop(), + ), + ), + ], + ), + ); + } +} + +class _SenderAddressRow extends StatefulWidget { + const _SenderAddressRow({required this.senderEmail}); + + final String senderEmail; + + @override + __SenderAddressRowState createState() => __SenderAddressRowState(); +} + +class __SenderAddressRowState extends State<_SenderAddressRow> { + late String senderEmail; + + @override + void initState() { + super.initState(); + senderEmail = widget.senderEmail; + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextTheme textTheme = theme.textTheme; + final List accounts = [ + 'flutterfan@gmail.com', + 'materialfan@gmail.com', + ]; + + return PopupMenuButton( + padding: EdgeInsets.zero, + onSelected: (String email) { + setState(() { + senderEmail = email; + }); + }, + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: accounts[0], + child: Text( + accounts[0], + style: textTheme.bodyMedium, + ), + ), + PopupMenuItem( + value: accounts[1], + child: Text( + accounts[1], + style: textTheme.bodyMedium, + ), + ), + ], + child: Padding( + padding: const EdgeInsets.only( + left: 12, + top: 16, + right: 10, + bottom: 10, + ), + child: Row( + children: [ + Expanded( + child: Text( + senderEmail, + style: textTheme.bodyMedium, + ), + ), + Icon( + Icons.arrow_drop_down, + color: theme.colorScheme.onSurface, + ), + ], + ), + ), + ); + } +} + +class _RecipientsRow extends StatelessWidget { + const _RecipientsRow({ + required this.recipients, + required this.avatar, + }); + + final String recipients; + final String avatar; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 12), + child: Row( + children: [ + Expanded( + child: Wrap( + children: [ + Chip( + backgroundColor: + Theme.of(context).chipTheme.secondarySelectedColor, + padding: EdgeInsets.zero, + avatar: CircleAvatar( + backgroundImage: AssetImage( + avatar, + package: 'flutter_gallery_assets', + ), + ), + label: Text( + recipients, + ), + ), + ], + ), + ), + InkResponse( + customBorder: const CircleBorder(), + onTap: () {}, + radius: 24, + child: const Icon(Icons.add_circle_outline), + ), + ], + ), + ); + } +} + +class _SectionDivider extends StatelessWidget { + const _SectionDivider(); + + @override + Widget build(BuildContext context) { + return const Divider( + thickness: 1.1, + indent: 10, + endIndent: 10, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart new file mode 100644 index 0000000000000000000000000000000000000000..86058ca5556c8b0a0028db8c5b506e8b5a8d21cd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart @@ -0,0 +1,358 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:animations/animations.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import '../../layout/adaptive.dart'; +import 'colors.dart'; +import 'mail_view_page.dart'; +import 'model/email_model.dart'; +import 'model/email_store.dart'; +import 'profile_avatar.dart'; + +const String _assetsPackage = 'flutter_gallery_assets'; +const String _iconAssetLocation = 'reply/icons'; + +class MailPreviewCard extends StatelessWidget { + const MailPreviewCard({ + super.key, + required this.id, + required this.email, + required this.onDelete, + required this.onStar, + required this.isStarred, + required this.onStarredMailbox, + }); + + final int id; + final Email email; + final VoidCallback onDelete; + final VoidCallback onStar; + final bool isStarred; + final bool onStarredMailbox; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + // TODO(x): State restoration of mail view page is blocked because OpenContainer does not support restorablePush, https://github.com/flutter/gallery/issues/570. + return OpenContainer( + openBuilder: (BuildContext context, void Function() closedContainer) { + return MailViewPage(id: id, email: email); + }, + openColor: theme.cardColor, + closedShape: const RoundedRectangleBorder( + + ), + closedElevation: 0, + closedColor: theme.cardColor, + closedBuilder: (BuildContext context, void Function() openContainer) { + final bool isDesktop = isDisplayDesktop(context); + final ColorScheme colorScheme = theme.colorScheme; + final _MailPreview mailPreview = _MailPreview( + id: id, + email: email, + onTap: openContainer, + onStar: onStar, + onDelete: onDelete, + ); + + if (isDesktop) { + return mailPreview; + } else { + return Dismissible( + key: ObjectKey(email), + dismissThresholds: const { + DismissDirection.startToEnd: 0.8, + DismissDirection.endToStart: 0.4, + }, + onDismissed: (DismissDirection direction) { + switch (direction) { + case DismissDirection.endToStart: + if (onStarredMailbox) { + onStar(); + } + case DismissDirection.startToEnd: + onDelete(); + case DismissDirection.vertical: + case DismissDirection.horizontal: + case DismissDirection.up: + case DismissDirection.down: + case DismissDirection.none: + break; + } + }, + background: _DismissibleContainer( + icon: 'twotone_delete', + backgroundColor: colorScheme.primary, + iconColor: ReplyColors.blue50, + alignment: Alignment.centerLeft, + padding: const EdgeInsetsDirectional.only(start: 20), + ), + confirmDismiss: (DismissDirection direction) async { + if (direction == DismissDirection.endToStart) { + if (onStarredMailbox) { + return true; + } + onStar(); + return false; + } else { + return true; + } + }, + secondaryBackground: _DismissibleContainer( + icon: 'twotone_star', + backgroundColor: isStarred + ? colorScheme.secondary + : theme.scaffoldBackgroundColor, + iconColor: isStarred + ? colorScheme.onSecondary + : colorScheme.onBackground, + alignment: Alignment.centerRight, + padding: const EdgeInsetsDirectional.only(end: 20), + ), + child: mailPreview, + ); + } + }, + ); + } +} + +class _DismissibleContainer extends StatelessWidget { + const _DismissibleContainer({ + required this.icon, + required this.backgroundColor, + required this.iconColor, + required this.alignment, + required this.padding, + }); + + final String icon; + final Color backgroundColor; + final Color iconColor; + final Alignment alignment; + final EdgeInsetsDirectional padding; + + @override + Widget build(BuildContext context) { + return AnimatedContainer( + alignment: alignment, + curve: Easing.legacy, + color: backgroundColor, + duration: kThemeAnimationDuration, + padding: padding, + child: Material( + color: Colors.transparent, + child: ImageIcon( + AssetImage( + 'reply/icons/$icon.png', + package: 'flutter_gallery_assets', + ), + size: 36, + color: iconColor, + ), + ), + ); + } +} + +class _MailPreview extends StatelessWidget { + const _MailPreview({ + required this.id, + required this.email, + required this.onTap, + this.onStar, + this.onDelete, + }); + + final int id; + final Email email; + final VoidCallback onTap; + final VoidCallback? onStar; + final VoidCallback? onDelete; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final EmailStore emailStore = Provider.of( + context, + listen: false, + ); + + return InkWell( + onTap: () { + Provider.of( + context, + listen: false, + ).selectedEmailId = id; + onTap(); + }, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return ConstrainedBox( + constraints: BoxConstraints(maxHeight: constraints.maxHeight), + child: Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text( + '${email.sender} - ${email.time}', + style: textTheme.bodySmall, + ), + const SizedBox(height: 4), + Text(email.subject, style: textTheme.headlineSmall), + const SizedBox(height: 16), + ], + ), + ), + _MailPreviewActionBar( + avatar: email.avatar, + isStarred: emailStore.isEmailStarred(email.id), + onStar: onStar, + onDelete: onDelete, + ), + ], + ), + Padding( + padding: const EdgeInsetsDirectional.only( + end: 20, + ), + child: Text( + email.message, + overflow: TextOverflow.ellipsis, + maxLines: 1, + style: textTheme.bodyMedium, + ), + ), + if (email.containsPictures) ...[ + const Flexible( + child: Column( + children: [ + SizedBox(height: 20), + _PicturePreview(), + ], + ), + ), + ], + ], + ), + ), + ); + }, + ), + ); + } +} + +class _PicturePreview extends StatelessWidget { + const _PicturePreview(); + + bool _shouldShrinkImage() { + switch (defaultTargetPlatform) { + case TargetPlatform.iOS: + case TargetPlatform.android: + return true; + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.macOS: + case TargetPlatform.windows: + return false; + } + } + + @override + Widget build(BuildContext context) { + return SizedBox( + height: 96, + child: ListView.builder( + itemCount: 4, + scrollDirection: Axis.horizontal, + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: const EdgeInsetsDirectional.only(end: 4), + child: Image.asset( + 'reply/attachments/paris_${index + 1}.jpg', + gaplessPlayback: true, + package: 'flutter_gallery_assets', + cacheWidth: _shouldShrinkImage() ? 200 : null, + ), + ); + }, + ), + ); + } +} + +class _MailPreviewActionBar extends StatelessWidget { + const _MailPreviewActionBar({ + required this.avatar, + required this.isStarred, + this.onStar, + this.onDelete, + }); + + final String avatar; + final bool isStarred; + final VoidCallback? onStar; + final VoidCallback? onDelete; + + @override + Widget build(BuildContext context) { + final bool isDark = Theme.of(context).brightness == Brightness.dark; + final Color color = isDark ? ReplyColors.white50 : ReplyColors.blue600; + final bool isDesktop = isDisplayDesktop(context); + final Color starredIconColor = + isStarred ? Theme.of(context).colorScheme.secondary : color; + + return Row( + children: [ + if (isDesktop) ...[ + IconButton( + icon: ImageIcon( + const AssetImage( + '$_iconAssetLocation/twotone_star.png', + package: _assetsPackage, + ), + color: starredIconColor, + ), + onPressed: onStar, + ), + IconButton( + icon: ImageIcon( + const AssetImage( + '$_iconAssetLocation/twotone_delete.png', + package: _assetsPackage, + ), + color: color, + ), + onPressed: onDelete, + ), + IconButton( + icon: Icon( + Icons.more_vert, + color: color, + ), + onPressed: () {}, + ), + const SizedBox(width: 12), + ], + ProfileAvatar(avatar: avatar), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..914394e81375c6c1abbc2fda27ec1958c03e0263 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart @@ -0,0 +1,178 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import 'model/email_model.dart'; +import 'model/email_store.dart'; +import 'profile_avatar.dart'; + +class MailViewPage extends StatelessWidget { + const MailViewPage({ + super.key, + required this.id, + required this.email, + }); + + final int id; + final Email email; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + bottom: false, + child: SizedBox( + height: double.infinity, + child: Material( + color: Theme.of(context).cardColor, + child: SingleChildScrollView( + padding: const EdgeInsetsDirectional.only( + top: 42, + start: 20, + end: 20, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _MailViewHeader(email: email), + const SizedBox(height: 32), + _MailViewBody(message: email.message), + if (email.containsPictures) ...[ + const SizedBox(height: 28), + const _PictureGrid(), + ], + const SizedBox(height: kToolbarHeight), + ], + ), + ), + ), + ), + ), + ); + } +} + +class _MailViewHeader extends StatelessWidget { + const _MailViewHeader({required this.email}); + + final Email email; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return Column( + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: SelectableText( + email.subject, + style: textTheme.headlineMedium!.copyWith(height: 1.1), + ), + ), + IconButton( + key: const ValueKey('ReplyExit'), + icon: const Icon(Icons.keyboard_arrow_down), + onPressed: () { + Provider.of( + context, + listen: false, + ).selectedEmailId = -1; + Navigator.pop(context); + }, + splashRadius: 20, + ), + ], + ), + const SizedBox(height: 16), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + SelectableText('${email.sender} - ${email.time}'), + const SizedBox(height: 4), + SelectableText( + 'To ${email.recipients},', + style: textTheme.bodySmall!.copyWith( + color: Theme.of(context) + .navigationRailTheme + .unselectedLabelTextStyle! + .color, + ), + ), + ], + ), + Padding( + padding: const EdgeInsetsDirectional.only(end: 4), + child: ProfileAvatar(avatar: email.avatar), + ), + ], + ), + ], + ); + } +} + +class _MailViewBody extends StatelessWidget { + const _MailViewBody({required this.message}); + + final String message; + + @override + Widget build(BuildContext context) { + return SelectableText( + message, + style: Theme.of(context).textTheme.bodyMedium!.copyWith(fontSize: 16), + ); + } +} + +class _PictureGrid extends StatelessWidget { + const _PictureGrid(); + + bool _shouldShrinkImage() { + switch (defaultTargetPlatform) { + case TargetPlatform.iOS: + case TargetPlatform.android: + return true; + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.macOS: + case TargetPlatform.windows: + return false; + } + } + + @override + Widget build(BuildContext context) { + return GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + crossAxisSpacing: 4, + mainAxisSpacing: 4, + ), + itemCount: 4, + itemBuilder: (BuildContext context, int index) { + return Image.asset( + 'reply/attachments/paris_${index + 1}.jpg', + gaplessPlayback: true, + package: 'flutter_gallery_assets', + fit: BoxFit.fill, + cacheWidth: _shouldShrinkImage() ? 500 : null, + ); + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart new file mode 100644 index 0000000000000000000000000000000000000000..2e8316ceb7795bae874da58097f9752d09a05e4c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart @@ -0,0 +1,113 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import '../../layout/adaptive.dart'; +import 'mail_card_preview.dart'; +import 'model/email_model.dart'; +import 'model/email_store.dart'; + +class MailboxBody extends StatelessWidget { + const MailboxBody({super.key}); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + final bool isTablet = isDisplaySmallDesktop(context); + final double startPadding = isTablet + ? 60.0 + : isDesktop + ? 120.0 + : 4.0; + final double endPadding = isTablet + ? 30.0 + : isDesktop + ? 60.0 + : 4.0; + + return Consumer( + builder: (BuildContext context, EmailStore model, Widget? child) { + final MailboxPageType destination = model.selectedMailboxPage; + final String destinationString = destination + .toString() + .substring(destination.toString().indexOf('.') + 1); + + final List emails = switch (destination) { + MailboxPageType.inbox => model.inboxEmails, + MailboxPageType.sent => model.outboxEmails, + MailboxPageType.starred => model.starredEmails, + MailboxPageType.trash => model.trashEmails, + MailboxPageType.spam => model.spamEmails, + MailboxPageType.drafts => model.draftEmails, + }; + + return SafeArea( + bottom: false, + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: emails.isEmpty + ? Center(child: Text('Empty in $destinationString')) + : ListView.separated( + itemCount: emails.length, + padding: EdgeInsetsDirectional.only( + start: startPadding, + end: endPadding, + top: isDesktop ? 28 : 0, + bottom: kToolbarHeight, + ), + primary: false, + separatorBuilder: (BuildContext context, int index) => + const SizedBox(height: 4), + itemBuilder: (BuildContext context, int index) { + final Email email = emails[index]; + return MailPreviewCard( + id: email.id, + email: email, + isStarred: model.isEmailStarred(email.id), + onDelete: () => model.deleteEmail(email.id), + onStar: () { + final int emailId = email.id; + if (model.isEmailStarred(emailId)) { + model.unstarEmail(emailId); + } else { + model.starEmail(emailId); + } + }, + onStarredMailbox: model.selectedMailboxPage == + MailboxPageType.starred, + ); + }, + ), + ), + if (isDesktop) ...[ + Padding( + padding: const EdgeInsetsDirectional.only(top: 14), + child: Row( + children: [ + IconButton( + key: const ValueKey('ReplySearch'), + icon: const Icon(Icons.search), + onPressed: () { + Provider.of( + context, + listen: false, + ).onSearchPage = true; + }, + ), + SizedBox(width: isTablet ? 30 : 60), + ], + ), + ), + ] + ], + ), + ); + }, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart new file mode 100644 index 0000000000000000000000000000000000000000..5200fc6bf03fa5143d16ff0819836b82c2bf4355 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +class Email { + Email({ + required this.id, + required this.avatar, + this.sender = '', + this.time = '', + this.subject = '', + this.message = '', + this.recipients = '', + this.containsPictures = false, + }); + + final int id; + final String sender; + final String time; + final String subject; + final String message; + final String avatar; + final String recipients; + final bool containsPictures; +} + +class InboxEmail extends Email { + InboxEmail({ + required super.id, + required super.sender, + super.time, + super.subject, + super.message, + required super.avatar, + super.recipients, + super.containsPictures, + this.inboxType = InboxType.normal, + }); + + InboxType inboxType; +} + +// The different mailbox pages that the Reply app contains. +enum MailboxPageType { + inbox, + starred, + sent, + trash, + spam, + drafts, +} + +// Different types of mail that can be sent to the inbox. +enum InboxType { + normal, + spam, +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart new file mode 100644 index 0000000000000000000000000000000000000000..9afdb347265559cf8cbcc198ab8f90362d95ae82 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart @@ -0,0 +1,253 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +import 'email_model.dart'; + +const String _avatarsLocation = 'reply/avatars'; + +class EmailStore with ChangeNotifier { + static final List _inbox = [ + InboxEmail( + id: 1, + sender: 'Google Express', + time: '15 minutes ago', + subject: 'Package shipped!', + message: 'Cucumber Mask Facial has shipped.\n\n' + "Keep an eye out for a package to arrive between this Thursday and next Tuesday. If for any reason you don't receive your package before the end of next week, please reach out to us for details on your shipment.\n\n" + 'As always, thank you for shopping with us and we hope you love our specially formulated Cucumber Mask!', + avatar: '$_avatarsLocation/avatar_express.png', + recipients: 'Jeff', + ), + InboxEmail( + id: 2, + sender: 'Ali Connors', + time: '4 hrs ago', + subject: 'Brunch this weekend?', + message: + "I'll be in your neighborhood doing errands and was hoping to catch you for a coffee this Saturday. If you don't have anything scheduled, it would be great to see you! It feels like its been forever.\n\n" + 'If we do get a chance to get together, remind me to tell you about Kim. She stopped over at the house to say hey to the kids and told me all about her trip to Mexico.\n\n' + 'Talk to you soon,\n\n' + 'Ali', + avatar: '$_avatarsLocation/avatar_5.jpg', + recipients: 'Jeff', + ), + InboxEmail( + id: 3, + sender: 'Allison Trabucco', + time: '5 hrs ago', + subject: 'Bonjour from Paris', + message: 'Here are some great shots from my trip...', + avatar: '$_avatarsLocation/avatar_3.jpg', + recipients: 'Jeff', + containsPictures: true, + ), + InboxEmail( + id: 4, + sender: 'Trevor Hansen', + time: '9 hrs ago', + subject: 'Brazil trip', + message: + 'Thought we might be able to go over some details about our upcoming vacation.\n\n' + "I've been doing a bit of research and have come across a few paces in Northern Brazil that I think we should check out. " + 'One, the north has some of the most predictable wind on the planet. ' + "I'd love to get out on the ocean and kitesurf for a couple of days if we're going to be anywhere near or around Taiba. " + "I hear it's beautiful there and if you're up for it, I'd love to go. Other than that, I haven't spent too much time looking into places along our road trip route. " + "I'm assuming we can find places to stay and things to do as we drive and find places we think look interesting. But... I know you're more of a planner, so if you have ideas or places in mind, lets jot some ideas down!\n\n" + 'Maybe we can jump on the phone later today if you have a second.', + avatar: '$_avatarsLocation/avatar_8.jpg', + recipients: 'Allison, Kim, Jeff', + ), + InboxEmail( + id: 5, + sender: 'Frank Hawkins', + time: '10 hrs ago', + subject: 'Update to Your Itinerary', + avatar: '$_avatarsLocation/avatar_4.jpg', + recipients: 'Jeff', + ), + InboxEmail( + id: 6, + sender: 'Google Express', + time: '12 hrs ago', + subject: 'Delivered', + message: 'Your shoes should be waiting for you at home!', + avatar: '$_avatarsLocation/avatar_express.png', + recipients: 'Jeff', + ), + InboxEmail( + id: 7, + sender: 'Frank Hawkins', + time: '4 hrs ago', + subject: 'Your update on the Google Play Store is live!', + message: + 'Your update is now live on the Play Store and available for your alpha users to start testing.\n\n' + "Your alpha testers will be automatically notified. If you'd rather send them a link directly, go to your Google Play Console and follow the instructions for obtaining an open alpha testing link.", + avatar: '$_avatarsLocation/avatar_4.jpg', + recipients: 'Jeff', + ), + InboxEmail( + id: 8, + sender: 'Allison Trabucco', + time: '6 hrs ago', + subject: 'Try a free TrailGo account', + message: + 'Looking for the best hiking trails in your area? TrailGo gets you on the path to the outdoors faster than you can pack a sandwich.\n\n' + "Whether you're an experienced hiker or just looking to get outside for the afternoon, there's a segment that suits you.", + avatar: '$_avatarsLocation/avatar_3.jpg', + recipients: 'Jeff', + ), + InboxEmail( + id: 9, + sender: 'Allison Trabucco', + time: '4 hrs ago', + subject: 'Free money', + message: + "You've been selected as a winner in our latest raffle! To claim your prize, click on the link.", + avatar: '$_avatarsLocation/avatar_3.jpg', + recipients: 'Jeff', + inboxType: InboxType.spam, + ), + ]; + + static final List _outbox = [ + Email( + id: 10, + sender: 'Kim Alen', + time: '4 hrs ago', + subject: 'High school reunion?', + message: + "Hi friends,\n\nI was at the grocery store on Sunday night.. when I ran into Genie Williams! I almost didn't recognize her afer 20 years!\n\n" + "Anyway, it turns out she is on the organizing committee for the high school reunion this fall. I don't know if you were planning on going or not, but she could definitely use our help in trying to track down lots of missing alums. " + "If you can make it, we're doing a little phone-tree party at her place next Saturday, hoping that if we can find one person, thee more will...", + avatar: '$_avatarsLocation/avatar_7.jpg', + recipients: 'Jeff', + ), + Email( + id: 11, + sender: 'Sandra Adams', + time: '7 hrs ago', + subject: 'Recipe to try', + message: + 'Raspberry Pie: We should make this pie recipe tonight! The filling is ' + 'very quick to put together.', + avatar: '$_avatarsLocation/avatar_2.jpg', + recipients: 'Jeff', + ), + ]; + + static final List _drafts = [ + Email( + id: 12, + sender: 'Sandra Adams', + time: '2 hrs ago', + subject: '(No subject)', + message: 'Hey,\n\n' + 'Wanted to email and see what you thought of', + avatar: '$_avatarsLocation/avatar_2.jpg', + recipients: 'Jeff', + ), + ]; + + List get _allEmails => [ + ..._inbox, + ..._outbox, + ..._drafts, + ]; + + List get inboxEmails { + return _inbox.where((Email email) { + if (email is InboxEmail) { + return email.inboxType == InboxType.normal && + !trashEmailIds.contains(email.id); + } + return false; + }).toList(); + } + + List get spamEmails { + return _inbox.where((Email email) { + if (email is InboxEmail) { + return email.inboxType == InboxType.spam && + !trashEmailIds.contains(email.id); + } + return false; + }).toList(); + } + + Email get currentEmail => + _allEmails.firstWhere((Email email) => email.id == _selectedEmailId); + + List get outboxEmails => + _outbox.where((Email email) => !trashEmailIds.contains(email.id)).toList(); + + List get draftEmails => + _drafts.where((Email email) => !trashEmailIds.contains(email.id)).toList(); + + Set starredEmailIds = {}; + + bool isEmailStarred(int id) => + _allEmails.any((Email email) => email.id == id && starredEmailIds.contains(id)); + + bool get isCurrentEmailStarred => starredEmailIds.contains(currentEmail.id); + + List get starredEmails { + return _allEmails + .where((Email email) => starredEmailIds.contains(email.id)) + .toList(); + } + + void starEmail(int id) { + starredEmailIds.add(id); + notifyListeners(); + } + + void unstarEmail(int id) { + starredEmailIds.remove(id); + notifyListeners(); + } + + Set trashEmailIds = {7, 8}; + + List get trashEmails { + return _allEmails + .where((Email email) => trashEmailIds.contains(email.id)) + .toList(); + } + + void deleteEmail(int id) { + trashEmailIds.add(id); + notifyListeners(); + } + + int _selectedEmailId = -1; + + int get selectedEmailId => _selectedEmailId; + + set selectedEmailId(int value) { + _selectedEmailId = value; + notifyListeners(); + } + + bool get onMailView => _selectedEmailId > -1; + + MailboxPageType _selectedMailboxPage = MailboxPageType.inbox; + + MailboxPageType get selectedMailboxPage => _selectedMailboxPage; + + set selectedMailboxPage(MailboxPageType mailboxPage) { + _selectedMailboxPage = mailboxPage; + notifyListeners(); + } + + bool _onSearchPage = false; + + bool get onSearchPage => _onSearchPage; + + set onSearchPage(bool value) { + _onSearchPage = value; + notifyListeners(); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart new file mode 100644 index 0000000000000000000000000000000000000000..8be190ca8c8262887d465bc11dc0d33fa4b5ccf4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class ProfileAvatar extends StatelessWidget { + const ProfileAvatar({ + super.key, + required this.avatar, + this.radius = 20, + }); + + final String avatar; + final double radius; + + @override + Widget build(BuildContext context) { + return Material( + color: Colors.transparent, + child: CircleAvatar( + radius: radius, + backgroundColor: Theme.of(context).cardColor, + child: ClipOval( + child: Image.asset( + avatar, + gaplessPlayback: true, + package: 'flutter_gallery_assets', + height: 42, + width: 42, + fit: BoxFit.cover, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..7b26ba144ec5c065ac007ea37da6e6b5e0bc255f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/routes.dart @@ -0,0 +1,6 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String homeRoute = '/reply'; +const String composeRoute = '/reply/compose'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..0938d3376df76b2c84499fccbd4efaa3ac6cf8fc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart @@ -0,0 +1,131 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import 'model/email_store.dart'; + +class SearchPage extends StatelessWidget { + const SearchPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + child: Material( + color: Theme.of(context).colorScheme.surface, + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(8), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + BackButton( + key: const ValueKey('ReplyExit'), + onPressed: () { + Provider.of( + context, + listen: false, + ).onSearchPage = false; + }, + ), + const Expanded( + child: TextField( + decoration: InputDecoration.collapsed( + hintText: 'Search email', + ), + ), + ), + IconButton( + icon: const Icon(Icons.mic), + onPressed: () {}, + ) + ], + ), + ), + const Divider(thickness: 1), + const Expanded( + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _SectionHeader(title: 'YESTERDAY'), + _SearchHistoryTile( + search: '481 Van Brunt Street', + address: 'Brooklyn, NY', + ), + _SearchHistoryTile( + icon: Icons.home, + search: 'Home', + address: '199 Pacific Street, Brooklyn, NY', + ), + _SectionHeader(title: 'THIS WEEK'), + _SearchHistoryTile( + search: 'BEP GA', + address: 'Forsyth Street, New York, NY', + ), + _SearchHistoryTile( + search: 'Sushi Nakazawa', + address: 'Commerce Street, New York, NY', + ), + _SearchHistoryTile( + search: 'IFC Center', + address: '6th Avenue, New York, NY', + ), + ], + ), + ), + ), + ], + ), + ), + ), + ); + } +} + +class _SectionHeader extends StatelessWidget { + const _SectionHeader({required this.title}); + + final String title; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsetsDirectional.only( + start: 16, + top: 16, + bottom: 16, + ), + child: Text( + title, + style: Theme.of(context).textTheme.labelLarge, + ), + ); + } +} + +class _SearchHistoryTile extends StatelessWidget { + const _SearchHistoryTile({ + this.icon = Icons.access_time, + required this.search, + required this.address, + }); + + final IconData icon; + final String search; + final String address; + + @override + Widget build(BuildContext context) { + return ListTile( + leading: Icon(icon), + title: Text(search), + subtitle: Text(address), + onTap: () {}, + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart new file mode 100644 index 0000000000000000000000000000000000000000..fda6f898db3d11eb06439b44a9ed6da1da8eafea --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart @@ -0,0 +1,97 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +/// A rectangle with a smooth circular notch. +/// +/// See also: +/// +/// * [CircleBorder], a [ShapeBorder] that describes a circle. +class WaterfallNotchedRectangle extends NotchedShape { + /// Creates a [WaterfallNotchedRectangle]. + /// + /// The same object can be used to create multiple shapes. + const WaterfallNotchedRectangle(); + + /// Creates a [Path] that describes a rectangle with a smooth circular notch. + /// + /// `host` is the bounding box for the returned shape. Conceptually this is + /// the rectangle to which the notch will be applied. + /// + /// `guest` is the bounding box of a circle that the notch accommodates. All + /// points in the circle bounded by `guest` will be outside of the returned + /// path. + /// + /// The notch is curve that smoothly connects the host's top edge and + /// the guest circle. + @override + Path getOuterPath(Rect host, Rect? guest) { + if (guest == null || !host.overlaps(guest)) { + return Path()..addRect(host); + } + + // The guest's shape is a circle bounded by the guest rectangle. + // So the guest's radius is half the guest width. + final double notchRadius = guest.width / 2.0; + + // We build a path for the notch from 3 segments: + // Segment A - a Bezier curve from the host's top edge to segment B. + // Segment B - an arc with radius notchRadius. + // Segment C - a Bezier curve from segment B back to the host's top edge. + // + // A detailed explanation and the derivation of the formulas below is + // available at: https://goo.gl/Ufzrqn + + // s1, s2 are the two knobs controlling the behavior of the bezier curve. + const double s1 = 21.0; + const double s2 = 6.0; + + final double r = notchRadius; + final double a = -1.0 * r - s2; + final double b = host.top - guest.center.dy; + + final double n2 = math.sqrt(b * b * r * r * (a * a + b * b - r * r)); + final double p2xA = ((a * r * r) - n2) / (a * a + b * b); + final double p2xB = ((a * r * r) + n2) / (a * a + b * b); + final double p2yA = math.sqrt(r * r - p2xA * p2xA); + final double p2yB = math.sqrt(r * r - p2xB * p2xB); + + final List p = List.filled(6, null); + + // p0, p1, and p2 are the control points for segment A. + p[0] = Offset(a - s1, b); + p[1] = Offset(a, b); + final double cmp = b < 0 ? -1.0 : 1.0; + p[2] = cmp * p2yA > cmp * p2yB ? Offset(p2xA, p2yA) : Offset(p2xB, p2yB); + + // p3, p4, and p5 are the control points for segment B, which is a mirror + // of segment A around the y axis. + p[3] = Offset(-1.0 * p[2]!.dx, p[2]!.dy); + p[4] = Offset(-1.0 * p[1]!.dx, p[1]!.dy); + p[5] = Offset(-1.0 * p[0]!.dx, p[0]!.dy); + + // translate all points back to the absolute coordinate system. + for (int i = 0; i < p.length; i += 1) { + p[i] = p[i]! + guest.center; + } + + return Path() + ..moveTo(host.left, host.top) + ..lineTo(p[0]!.dx, p[0]!.dy) + ..quadraticBezierTo(p[1]!.dx, p[1]!.dy, p[2]!.dx, p[2]!.dy) + ..arcToPoint( + p[3]!, + radius: Radius.circular(notchRadius), + clockwise: false, + ) + ..quadraticBezierTo(p[4]!.dx, p[4]!.dy, p[5]!.dx, p[5]!.dy) + ..lineTo(host.right, host.top) + ..lineTo(host.right, host.bottom) + ..lineTo(host.left, host.bottom) + ..close(); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..7d07c2aba4ab7d696b3e9f9e3f02f96a9a27448d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart @@ -0,0 +1,211 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import 'backdrop.dart'; +import 'category_menu_page.dart'; +import 'expanding_bottom_sheet.dart'; +import 'home.dart'; +import 'login.dart'; +import 'model/app_state_model.dart'; +import 'model/product.dart'; +import 'page_status.dart'; +import 'routes.dart' as routes; +import 'scrim.dart'; +import 'supplemental/layout_cache.dart'; +import 'theme.dart'; + +class ShrineApp extends StatefulWidget { + const ShrineApp({super.key}); + + static const String loginRoute = routes.loginRoute; + static const String homeRoute = routes.homeRoute; + + @override + State createState() => _ShrineAppState(); +} + +class _ShrineAppState extends State + with TickerProviderStateMixin, RestorationMixin { + // Controller to coordinate both the opening/closing of backdrop and sliding + // of expanding bottom sheet + late AnimationController _controller; + + // Animation Controller for expanding/collapsing the cart menu. + late AnimationController _expandingController; + + final _RestorableAppStateModel _model = _RestorableAppStateModel(); + final RestorableDouble _expandingTabIndex = RestorableDouble(0); + final RestorableDouble _tabIndex = RestorableDouble(1); + final Map>> _layouts = >>{}; + + @override + String get restorationId => 'shrine_app_state'; + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_model, 'app_state_model'); + registerForRestoration(_tabIndex, 'tab_index'); + registerForRestoration( + _expandingTabIndex, + 'expanding_tab_index', + ); + _controller.value = _tabIndex.value; + _expandingController.value = _expandingTabIndex.value; + } + + @override + void initState() { + super.initState(); + _controller = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 450), + value: 1, + ); + // Save state restoration animation values only when the cart page + // fully opens or closes. + _controller.addStatusListener((AnimationStatus status) { + if (!status.isAnimating) { + _tabIndex.value = _controller.value; + } + }); + _expandingController = AnimationController( + duration: const Duration(milliseconds: 500), + vsync: this, + ); + // Save state restoration animation values only when the menu page + // fully opens or closes. + _expandingController.addStatusListener((AnimationStatus status) { + if (!status.isAnimating) { + _expandingTabIndex.value = _expandingController.value; + } + }); + } + + @override + void dispose() { + _controller.dispose(); + _expandingController.dispose(); + _tabIndex.dispose(); + _expandingTabIndex.dispose(); + super.dispose(); + } + + Widget mobileBackdrop() { + return Backdrop( + frontLayer: const ProductPage(), + backLayer: CategoryMenuPage(onCategoryTap: () => _controller.forward()), + frontTitle: const Text('SHRINE'), + backTitle: Text(GalleryLocalizations.of(context)!.shrineMenuCaption), + controller: _controller, + ); + } + + Widget desktopBackdrop() { + return const DesktopBackdrop( + frontLayer: ProductPage(), + backLayer: CategoryMenuPage(), + ); + } + + // Closes the bottom sheet if it is open. + Future _onWillPop() async { + if (_expandingController.isForwardOrCompleted) { + await _expandingController.reverse(); + return false; + } + + return true; + } + + @override + Widget build(BuildContext context) { + final Widget home = LayoutCache( + layouts: _layouts, + child: PageStatus( + menuController: _controller, + cartController: _expandingController, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) => HomePage( + backdrop: isDisplayDesktop(context) + ? desktopBackdrop() + : mobileBackdrop(), + scrim: Scrim(controller: _expandingController), + expandingBottomSheet: ExpandingBottomSheet( + hideController: _controller, + expandingController: _expandingController, + ), + ), + ), + ), + ); + + return ScopedModel( + model: _model.value, + // ignore: deprecated_member_use + child: WillPopScope( + onWillPop: _onWillPop, + child: MaterialApp( + // By default on desktop, scrollbars are applied by the + // ScrollBehavior. This overrides that. All vertical scrollables in + // the gallery need to be audited before enabling this feature, + // see https://github.com/flutter/gallery/issues/541 + scrollBehavior: + const MaterialScrollBehavior().copyWith(scrollbars: false), + restorationScopeId: 'shrineApp', + title: 'Shrine', + debugShowCheckedModeBanner: false, + initialRoute: ShrineApp.loginRoute, + routes: { + ShrineApp.loginRoute: (BuildContext context) => const LoginPage(), + ShrineApp.homeRoute: (BuildContext context) => home, + }, + theme: shrineTheme.copyWith( + platform: GalleryOptions.of(context).platform, + ), + // L10n settings. + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + ), + ), + ); + } +} + +class _RestorableAppStateModel extends RestorableListenable { + @override + AppStateModel createDefaultValue() => AppStateModel()..loadProducts(); + + @override + AppStateModel fromPrimitives(Object? data) { + final AppStateModel appState = AppStateModel()..loadProducts(); + final Map appData = Map.from(data! as Map); + + // Reset selected category. + final int categoryIndex = appData['category_index'] as int; + appState.setCategory(categories[categoryIndex]); + + // Reset cart items. + final Map cartItems = appData['cart_data'] as Map; + cartItems.forEach((dynamic id, dynamic quantity) { + appState.addMultipleProductsToCart(id as int, quantity as int); + }); + + return appState; + } + + @override + Object toPrimitives() { + return { + 'cart_data': value.productsInCart, + 'category_index': categories.indexOf(value.selectedCategory), + }; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart new file mode 100644 index 0000000000000000000000000000000000000000..4735de88ada554e9f1c2507ce0716e5ea53674fd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart @@ -0,0 +1,393 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import '../../gallery_localizations.dart'; +import 'category_menu_page.dart'; +import 'page_status.dart'; + +const Cubic _accelerateCurve = Cubic(0.548, 0, 0.757, 0.464); +const Cubic _decelerateCurve = Cubic(0.23, 0.94, 0.41, 1); +const double _peakVelocityTime = 0.248210; +const double _peakVelocityProgress = 0.379146; + +class _FrontLayer extends StatelessWidget { + const _FrontLayer({ + this.onTap, + required this.child, + }); + + final VoidCallback? onTap; + final Widget child; + + @override + Widget build(BuildContext context) { + // An area at the top of the product page. + // When the menu page is shown, tapping this area will close the menu + // page and reveal the product page. + final Widget pageTopArea = Container( + height: 40, + alignment: AlignmentDirectional.centerStart, + ); + + return Material( + elevation: 16, + shape: const BeveledRectangleBorder( + borderRadius: + BorderRadiusDirectional.only(topStart: Radius.circular(46)), + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + if (onTap != null) MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + excludeFromSemantics: + true, // Because there is already a "Close Menu" button on screen. + onTap: onTap, + child: pageTopArea, + ), + ) else pageTopArea, + Expanded( + child: child, + ), + ], + ), + ); + } +} + +class _BackdropTitle extends AnimatedWidget { + const _BackdropTitle({ + required Animation super.listenable, + this.onPress, + required this.frontTitle, + required this.backTitle, + }); + + final void Function()? onPress; + final Widget frontTitle; + final Widget backTitle; + + @override + Widget build(BuildContext context) { + final Animation animation = CurvedAnimation( + parent: listenable as Animation, + curve: const Interval(0, 0.78), + ); + + final int textDirectionScalar = + Directionality.of(context) == TextDirection.ltr ? 1 : -1; + + const ImageIcon slantedMenuIcon = + ImageIcon(AssetImage('packages/shrine_images/slanted_menu.png')); + + final Widget directionalSlantedMenuIcon = + Directionality.of(context) == TextDirection.ltr + ? slantedMenuIcon + : Transform( + alignment: Alignment.center, + transform: Matrix4.rotationY(pi), + child: slantedMenuIcon, + ); + + final String? menuButtonTooltip = animation.isCompleted + ? GalleryLocalizations.of(context)!.shrineTooltipOpenMenu + : animation.isDismissed + ? GalleryLocalizations.of(context)!.shrineTooltipCloseMenu + : null; + + return DefaultTextStyle( + style: Theme.of(context).primaryTextTheme.titleLarge!, + softWrap: false, + overflow: TextOverflow.ellipsis, + child: Row(children: [ + // branded icon + SizedBox( + width: 72, + child: Semantics( + container: true, + child: IconButton( + padding: const EdgeInsetsDirectional.only(end: 8), + onPressed: onPress, + tooltip: menuButtonTooltip, + icon: Stack(children: [ + Opacity( + opacity: animation.value, + child: directionalSlantedMenuIcon, + ), + FractionalTranslation( + translation: Tween( + begin: Offset.zero, + end: Offset(1.0 * textDirectionScalar, 0.0), + ).evaluate(animation), + child: const ImageIcon( + AssetImage('packages/shrine_images/diamond.png'), + ), + ), + ]), + ), + ), + ), + // Here, we do a custom cross fade between backTitle and frontTitle. + // This makes a smooth animation between the two texts. + Stack( + children: [ + Opacity( + opacity: CurvedAnimation( + parent: ReverseAnimation(animation), + curve: const Interval(0.5, 1), + ).value, + child: FractionalTranslation( + translation: Tween( + begin: Offset.zero, + end: Offset(0.5 * textDirectionScalar, 0), + ).evaluate(animation), + child: backTitle, + ), + ), + Opacity( + opacity: CurvedAnimation( + parent: animation, + curve: const Interval(0.5, 1), + ).value, + child: FractionalTranslation( + translation: Tween( + begin: Offset(-0.25 * textDirectionScalar, 0), + end: Offset.zero, + ).evaluate(animation), + child: frontTitle, + ), + ), + ], + ), + ]), + ); + } +} + +/// Builds a Backdrop. +/// +/// A Backdrop widget has two layers, front and back. The front layer is shown +/// by default, and slides down to show the back layer, from which a user +/// can make a selection. The user can also configure the titles for when the +/// front or back layer is showing. +class Backdrop extends StatefulWidget { + const Backdrop({ + super.key, + required this.frontLayer, + required this.backLayer, + required this.frontTitle, + required this.backTitle, + required this.controller, + }); + + final Widget frontLayer; + final Widget backLayer; + final Widget frontTitle; + final Widget backTitle; + final AnimationController controller; + + @override + State createState() => _BackdropState(); +} + +class _BackdropState extends State + with SingleTickerProviderStateMixin { + final GlobalKey _backdropKey = GlobalKey(debugLabel: 'Backdrop'); + late AnimationController _controller; + late Animation _layerAnimation; + + @override + void initState() { + super.initState(); + _controller = widget.controller; + } + + bool get _frontLayerVisible { + final AnimationStatus status = _controller.status; + return status == AnimationStatus.completed || + status == AnimationStatus.forward; + } + + void _toggleBackdropLayerVisibility() { + // Call setState here to update layerAnimation if that's necessary + setState(() { + _frontLayerVisible ? _controller.reverse() : _controller.forward(); + }); + } + + // _layerAnimation animates the front layer between open and close. + // _getLayerAnimation adjusts the values in the TweenSequence so the + // curve and timing are correct in both directions. + Animation _getLayerAnimation(Size layerSize, double layerTop) { + Curve firstCurve; // Curve for first TweenSequenceItem + Curve secondCurve; // Curve for second TweenSequenceItem + double firstWeight; // Weight of first TweenSequenceItem + double secondWeight; // Weight of second TweenSequenceItem + Animation animation; // Animation on which TweenSequence runs + + if (_frontLayerVisible) { + firstCurve = _accelerateCurve; + secondCurve = _decelerateCurve; + firstWeight = _peakVelocityTime; + secondWeight = 1 - _peakVelocityTime; + animation = CurvedAnimation( + parent: _controller.view, + curve: const Interval(0, 0.78), + ); + } else { + // These values are only used when the controller runs from t=1.0 to t=0.0 + firstCurve = _decelerateCurve.flipped; + secondCurve = _accelerateCurve.flipped; + firstWeight = 1 - _peakVelocityTime; + secondWeight = _peakVelocityTime; + animation = _controller.view; + } + + return TweenSequence( + >[ + TweenSequenceItem( + tween: RelativeRectTween( + begin: RelativeRect.fromLTRB( + 0, + layerTop, + 0, + layerTop - layerSize.height, + ), + end: RelativeRect.fromLTRB( + 0, + layerTop * _peakVelocityProgress, + 0, + (layerTop - layerSize.height) * _peakVelocityProgress, + ), + ).chain(CurveTween(curve: firstCurve)), + weight: firstWeight, + ), + TweenSequenceItem( + tween: RelativeRectTween( + begin: RelativeRect.fromLTRB( + 0, + layerTop * _peakVelocityProgress, + 0, + (layerTop - layerSize.height) * _peakVelocityProgress, + ), + end: RelativeRect.fill, + ).chain(CurveTween(curve: secondCurve)), + weight: secondWeight, + ), + ], + ).animate(animation); + } + + Widget _buildStack(BuildContext context, BoxConstraints constraints) { + const int layerTitleHeight = 48; + final Size layerSize = constraints.biggest; + final double layerTop = layerSize.height - layerTitleHeight; + + _layerAnimation = _getLayerAnimation(layerSize, layerTop); + + return Stack( + key: _backdropKey, + children: [ + ExcludeSemantics( + excluding: _frontLayerVisible, + child: widget.backLayer, + ), + PositionedTransition( + rect: _layerAnimation, + child: ExcludeSemantics( + excluding: !_frontLayerVisible, + child: AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: (BuildContext context, Widget? child) => _FrontLayer( + onTap: menuPageIsVisible(context) + ? _toggleBackdropLayerVisibility + : null, + child: widget.frontLayer, + ), + ), + ), + ), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + final AppBar appBar = AppBar( + automaticallyImplyLeading: false, + systemOverlayStyle: SystemUiOverlayStyle.dark, + elevation: 0, + titleSpacing: 0, + title: _BackdropTitle( + listenable: _controller.view, + onPress: _toggleBackdropLayerVisibility, + frontTitle: widget.frontTitle, + backTitle: widget.backTitle, + ), + actions: [ + IconButton( + icon: const Icon(Icons.search), + tooltip: GalleryLocalizations.of(context)!.shrineTooltipSearch, + onPressed: () {}, + ), + IconButton( + icon: const Icon(Icons.tune), + tooltip: GalleryLocalizations.of(context)!.shrineTooltipSettings, + onPressed: () {}, + ), + ], + ); + return AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: cartPageIsVisible(context), + child: Scaffold( + appBar: appBar, + body: LayoutBuilder( + builder: _buildStack, + ), + ), + ), + ); + } +} + +class DesktopBackdrop extends StatelessWidget { + const DesktopBackdrop({ + super.key, + required this.frontLayer, + required this.backLayer, + }); + + final Widget frontLayer; + final Widget backLayer; + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + backLayer, + Padding( + padding: EdgeInsetsDirectional.only( + start: desktopCategoryMenuPageWidth(context: context), + ), + child: Material( + elevation: 16, + color: Colors.white, + child: frontLayer, + ), + ) + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart new file mode 100644 index 0000000000000000000000000000000000000000..ad2f37aed5e40c12795350df81ac4ee06e83ac39 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart @@ -0,0 +1,216 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/text_scale.dart'; +import 'app.dart'; +import 'colors.dart'; +import 'model/app_state_model.dart'; +import 'model/product.dart'; +import 'page_status.dart'; +import 'triangle_category_indicator.dart'; + +double desktopCategoryMenuPageWidth({ + required BuildContext context, +}) { + return 232 * reducedTextScale(context); +} + +class CategoryMenuPage extends StatelessWidget { + const CategoryMenuPage({ + super.key, + this.onCategoryTap, + }); + + final VoidCallback? onCategoryTap; + + Widget _buttonText(String caption, TextStyle style) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: Text( + caption, + style: style, + textAlign: TextAlign.center, + ), + ); + } + + Widget _divider({required BuildContext context}) { + return Container( + width: 56 * GalleryOptions.of(context).textScaleFactor(context), + height: 1, + color: const Color(0xFF8F716D), + ); + } + + Widget _buildCategory(Category category, BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + final String categoryString = category.name(context); + + final TextStyle selectedCategoryTextStyle = Theme.of(context) + .textTheme + .bodyLarge! + .copyWith(fontSize: isDesktop ? 17 : 19); + + final TextStyle unselectedCategoryTextStyle = selectedCategoryTextStyle.copyWith( + color: shrineBrown900.withOpacity(0.6)); + + final double indicatorHeight = (isDesktop ? 28 : 30) * + GalleryOptions.of(context).textScaleFactor(context); + final double indicatorWidth = indicatorHeight * 34 / 28; + + return ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) => Semantics( + selected: model.selectedCategory == category, + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + model.setCategory(category); + if (onCategoryTap != null) { + onCategoryTap!(); + } + }, + child: model.selectedCategory == category + ? CustomPaint( + painter: TriangleCategoryIndicator( + indicatorWidth, + indicatorHeight, + ), + child: + _buttonText(categoryString, selectedCategoryTextStyle), + ) + : _buttonText(categoryString, unselectedCategoryTextStyle), + ), + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + final TextStyle logoutTextStyle = Theme.of(context).textTheme.bodyLarge!.copyWith( + fontSize: isDesktop ? 17 : 19, + color: shrineBrown900.withOpacity(0.6), + ); + + if (isDesktop) { + return AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !menuPageIsVisible(context), + child: Material( + child: Container( + color: shrinePink100, + width: desktopCategoryMenuPageWidth(context: context), + child: Column( + children: [ + const SizedBox(height: 64), + Image.asset( + 'packages/shrine_images/diamond.png', + excludeFromSemantics: true, + ), + const SizedBox(height: 16), + Semantics( + container: true, + child: Text( + 'SHRINE', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + const Spacer(), + for (final Category category in categories) + _buildCategory(category, context), + _divider(context: context), + Semantics( + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + Navigator.of(context) + .restorablePushNamed(ShrineApp.loginRoute); + }, + child: _buttonText( + GalleryLocalizations.of(context)! + .shrineLogoutButtonCaption, + logoutTextStyle, + ), + ), + ), + ), + const Spacer(), + IconButton( + icon: const Icon(Icons.search), + tooltip: + GalleryLocalizations.of(context)!.shrineTooltipSearch, + onPressed: () {}, + ), + const SizedBox(height: 72), + ], + ), + ), + ), + ), + ); + } else { + return AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !menuPageIsVisible(context), + child: Center( + child: Container( + padding: const EdgeInsets.only(top: 40), + color: shrinePink100, + child: ListView( + children: [ + for (final Category category in categories) + _buildCategory(category, context), + Center( + child: _divider(context: context), + ), + Semantics( + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + if (onCategoryTap != null) { + onCategoryTap!(); + } + Navigator.of(context) + .restorablePushNamed(ShrineApp.loginRoute); + }, + child: _buttonText( + GalleryLocalizations.of(context)! + .shrineLogoutButtonCaption, + logoutTextStyle, + ), + ), + ), + ), + ], + ), + ), + ), + ), + ), + ); + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/colors.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/colors.dart new file mode 100644 index 0000000000000000000000000000000000000000..caea6bb088e2cefee519452ee6368e356807d744 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/colors.dart @@ -0,0 +1,18 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +const Color shrinePink50 = Color(0xFFFEEAE6); +const Color shrinePink100 = Color(0xFFFEDBD0); +const Color shrinePink300 = Color(0xFFFBB8AC); +const Color shrinePink400 = Color(0xFFEAA4A4); + +const Color shrineBrown900 = Color(0xFF442B2D); +const Color shrineBrown600 = Color(0xFF7D4F52); + +const Color shrineErrorRed = Color(0xFFC5032B); + +const Color shrineSurfaceWhite = Color(0xFFFFFBFA); +const Color shrineBackgroundWhite = Colors.white; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart new file mode 100644 index 0000000000000000000000000000000000000000..4310243ec486aa90e79864c5b63dc3c1ea325185 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart @@ -0,0 +1,811 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/text_scale.dart'; +import 'colors.dart'; +import 'model/app_state_model.dart'; +import 'model/product.dart'; +import 'page_status.dart'; +import 'shopping_cart.dart'; + +// These curves define the emphasized easing curve. +const Cubic _accelerateCurve = Cubic(0.548, 0, 0.757, 0.464); +const Cubic _decelerateCurve = Cubic(0.23, 0.94, 0.41, 1); +// The time at which the accelerate and decelerate curves switch off +const double _peakVelocityTime = 0.248210; +// Percent (as a decimal) of animation that should be completed at _peakVelocityTime +const double _peakVelocityProgress = 0.379146; +// Radius of the shape on the top start of the sheet for mobile layouts. +const double _mobileCornerRadius = 24.0; +// Radius of the shape on the top start and bottom start of the sheet for mobile layouts. +const double _desktopCornerRadius = 12.0; +// Width for just the cart icon and no thumbnails. +const double _cartIconWidth = 64.0; +// Height for just the cart icon and no thumbnails. +const double _cartIconHeight = 56.0; +// Height of a thumbnail. +const double _defaultThumbnailHeight = 40.0; +// Gap between thumbnails. +const double _thumbnailGap = 16.0; + +// Maximum number of thumbnails shown in the cart. +const int _maxThumbnailCount = 3; + +double _thumbnailHeight(BuildContext context) { + return _defaultThumbnailHeight * reducedTextScale(context); +} + +double _paddedThumbnailHeight(BuildContext context) { + return _thumbnailHeight(context) + _thumbnailGap; +} + +class ExpandingBottomSheet extends StatefulWidget { + const ExpandingBottomSheet({ + super.key, + required this.hideController, + required this.expandingController, + }); + + final AnimationController hideController; + final AnimationController expandingController; + + @override + ExpandingBottomSheetState createState() => ExpandingBottomSheetState(); + + static ExpandingBottomSheetState? of(BuildContext context, + {bool isNullOk = false}) { + final ExpandingBottomSheetState? result = context.findAncestorStateOfType(); + if (isNullOk || result != null) { + return result; + } + throw FlutterError( + 'ExpandingBottomSheet.of() called with a context that does not contain a ExpandingBottomSheet.\n'); + } +} + +// Emphasized Easing is a motion curve that has an organic, exciting feeling. +// It's very fast to begin with and then very slow to finish. Unlike standard +// curves, like [Curves.fastOutSlowIn], it can't be expressed in a cubic bezier +// curve formula. It's quintic, not cubic. But it _can_ be expressed as one +// curve followed by another, which we do here. +Animation _getEmphasizedEasingAnimation({ + required T begin, + required T peak, + required T end, + required bool isForward, + required Animation parent, +}) { + Curve firstCurve; + Curve secondCurve; + double firstWeight; + double secondWeight; + + if (isForward) { + firstCurve = _accelerateCurve; + secondCurve = _decelerateCurve; + firstWeight = _peakVelocityTime; + secondWeight = 1 - _peakVelocityTime; + } else { + firstCurve = _decelerateCurve.flipped; + secondCurve = _accelerateCurve.flipped; + firstWeight = 1 - _peakVelocityTime; + secondWeight = _peakVelocityTime; + } + + return TweenSequence( + >[ + TweenSequenceItem( + weight: firstWeight, + tween: Tween( + begin: begin, + end: peak, + ).chain(CurveTween(curve: firstCurve)), + ), + TweenSequenceItem( + weight: secondWeight, + tween: Tween( + begin: peak, + end: end, + ).chain(CurveTween(curve: secondCurve)), + ), + ], + ).animate(parent); +} + +// Calculates the value where two double Animations should be joined. Used by +// callers of _getEmphasisedEasing(). +double _getPeakPoint({required double begin, required double end}) { + return begin + (end - begin) * _peakVelocityProgress; +} + +class ExpandingBottomSheetState extends State { + final GlobalKey _expandingBottomSheetKey = + GlobalKey(debugLabel: 'Expanding bottom sheet'); + + // The width of the Material, calculated by _widthFor() & based on the number + // of products in the cart. 64.0 is the width when there are 0 products + // (_kWidthForZeroProducts) + double _width = _cartIconWidth; + double _height = _cartIconHeight; + + // Controller for the opening and closing of the ExpandingBottomSheet + AnimationController get _controller => widget.expandingController; + + // Animations for the opening and closing of the ExpandingBottomSheet + late Animation _widthAnimation; + late Animation _heightAnimation; + late Animation _thumbnailOpacityAnimation; + late Animation _cartOpacityAnimation; + late Animation _topStartShapeAnimation; + late Animation _bottomStartShapeAnimation; + late Animation _slideAnimation; + late Animation _gapAnimation; + + Animation _getWidthAnimation(double screenWidth) { + if (_controller.status == AnimationStatus.forward) { + // Opening animation + return Tween(begin: _width, end: screenWidth).animate( + CurvedAnimation( + parent: _controller.view, + curve: const Interval(0, 0.3, curve: Curves.fastOutSlowIn), + ), + ); + } else { + // Closing animation + return _getEmphasizedEasingAnimation( + begin: _width, + peak: _getPeakPoint(begin: _width, end: screenWidth), + end: screenWidth, + isForward: false, + parent: CurvedAnimation( + parent: _controller.view, curve: const Interval(0, 0.87)), + ); + } + } + + Animation _getHeightAnimation(double screenHeight) { + if (_controller.status == AnimationStatus.forward) { + // Opening animation + + return _getEmphasizedEasingAnimation( + begin: _height, + peak: _getPeakPoint(begin: _height, end: screenHeight), + end: screenHeight, + isForward: true, + parent: _controller.view, + ); + } else { + // Closing animation + return Tween( + begin: _height, + end: screenHeight, + ).animate( + CurvedAnimation( + parent: _controller.view, + curve: const Interval(0.434, 1), // not used + // only the reverseCurve will be used + reverseCurve: Interval(0.434, 1, curve: Curves.fastOutSlowIn.flipped), + ), + ); + } + } + + Animation _getDesktopGapAnimation(double gapHeight) { + final double collapsedGapHeight = gapHeight; + const double expandedGapHeight = 0.0; + + if (_controller.status == AnimationStatus.forward) { + // Opening animation + + return _getEmphasizedEasingAnimation( + begin: collapsedGapHeight, + peak: collapsedGapHeight + + (expandedGapHeight - collapsedGapHeight) * _peakVelocityProgress, + end: expandedGapHeight, + isForward: true, + parent: _controller.view, + ); + } else { + // Closing animation + return Tween( + begin: collapsedGapHeight, + end: expandedGapHeight, + ).animate( + CurvedAnimation( + parent: _controller.view, + curve: const Interval(0.434, 1), // not used + // only the reverseCurve will be used + reverseCurve: Interval(0.434, 1, curve: Curves.fastOutSlowIn.flipped), + ), + ); + } + } + + // Animation of the top-start cut corner. It's cut when closed and not cut when open. + Animation _getShapeTopStartAnimation(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + final double cornerRadius = isDesktop ? _desktopCornerRadius : _mobileCornerRadius; + + if (_controller.status == AnimationStatus.forward) { + return Tween(begin: cornerRadius, end: 0).animate( + CurvedAnimation( + parent: _controller.view, + curve: const Interval(0, 0.3, curve: Curves.fastOutSlowIn), + ), + ); + } else { + return _getEmphasizedEasingAnimation( + begin: cornerRadius, + peak: _getPeakPoint(begin: cornerRadius, end: 0), + end: 0, + isForward: false, + parent: _controller.view, + ); + } + } + + // Animation of the bottom-start cut corner. It's cut when closed and not cut when open. + Animation _getShapeBottomStartAnimation(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + final double cornerRadius = isDesktop ? _desktopCornerRadius : 0.0; + + if (_controller.status == AnimationStatus.forward) { + return Tween(begin: cornerRadius, end: 0).animate( + CurvedAnimation( + parent: _controller.view, + curve: const Interval(0, 0.3, curve: Curves.fastOutSlowIn), + ), + ); + } else { + return _getEmphasizedEasingAnimation( + begin: cornerRadius, + peak: _getPeakPoint(begin: cornerRadius, end: 0), + end: 0, + isForward: false, + parent: _controller.view, + ); + } + } + + Animation _getThumbnailOpacityAnimation() { + return Tween(begin: 1, end: 0).animate( + CurvedAnimation( + parent: _controller.view, + curve: _controller.status == AnimationStatus.forward + ? const Interval(0, 0.3) + : const Interval(0.532, 0.766), + ), + ); + } + + Animation _getCartOpacityAnimation() { + return CurvedAnimation( + parent: _controller.view, + curve: _controller.status == AnimationStatus.forward + ? const Interval(0.3, 0.6) + : const Interval(0.766, 1), + ); + } + + // Returns the correct width of the ExpandingBottomSheet based on the number of + // products and the text scaling options in the cart in the mobile layout. + double _mobileWidthFor(int numProducts, BuildContext context) { + final int cartThumbnailGap = numProducts > 0 ? 16 : 0; + final double thumbnailsWidth = + min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context); + final num overflowNumberWidth = + numProducts > _maxThumbnailCount ? 30 * cappedTextScale(context) : 0; + return _cartIconWidth + + cartThumbnailGap + + thumbnailsWidth + + overflowNumberWidth; + } + + // Returns the correct height of the ExpandingBottomSheet based on the text scaling + // options in the mobile layout. + double _mobileHeightFor(BuildContext context) { + return _paddedThumbnailHeight(context); + } + + // Returns the correct width of the ExpandingBottomSheet based on the text scaling + // options in the desktop layout. + double _desktopWidthFor(BuildContext context) { + return _paddedThumbnailHeight(context) + 8; + } + + // Returns the correct height of the ExpandingBottomSheet based on the number of + // products and the text scaling options in the cart in the desktop layout. + double _desktopHeightFor(int numProducts, BuildContext context) { + final int cartThumbnailGap = numProducts > 0 ? 8 : 0; + final double thumbnailsHeight = + min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context); + final num overflowNumberHeight = + numProducts > _maxThumbnailCount ? 28 * reducedTextScale(context) : 0; + return _cartIconHeight + + cartThumbnailGap + + thumbnailsHeight + + overflowNumberHeight; + } + + // Returns true if the cart is open or opening and false otherwise. + bool get _isOpen => _controller.isForwardOrCompleted; + + // Opens the ExpandingBottomSheet if it's closed, otherwise does nothing. + void open() { + if (!_isOpen) { + _controller.forward(); + } + } + + // Closes the ExpandingBottomSheet if it's open or opening, otherwise does nothing. + void close() { + if (_isOpen) { + _controller.reverse(); + } + } + + // Changes the padding between the start edge of the Material and the cart icon + // based on the number of products in the cart (padding increases when > 0 + // products.) + EdgeInsetsDirectional _horizontalCartPaddingFor(int numProducts) { + return (numProducts == 0) + ? const EdgeInsetsDirectional.only(start: 20, end: 8) + : const EdgeInsetsDirectional.only(start: 32, end: 8); + } + + // Changes the padding above and below the cart icon + // based on the number of products in the cart (padding increases when > 0 + // products.) + EdgeInsets _verticalCartPaddingFor(int numProducts) { + return (numProducts == 0) + ? const EdgeInsets.only(top: 16, bottom: 16) + : const EdgeInsets.only(top: 16, bottom: 24); + } + + bool get _cartIsVisible => _thumbnailOpacityAnimation.value == 0; + + // We take 16 pts off of the bottom padding to ensure the collapsed shopping + // cart is not too tall. + double get _bottomSafeArea { + return max(MediaQuery.of(context).viewPadding.bottom - 16, 0); + } + + Widget _buildThumbnails(BuildContext context, int numProducts) { + final bool isDesktop = isDisplayDesktop(context); + + Widget thumbnails; + + if (isDesktop) { + thumbnails = Column( + children: [ + AnimatedPadding( + padding: _verticalCartPaddingFor(numProducts), + duration: const Duration(milliseconds: 225), + child: const Icon(Icons.shopping_cart), + ), + SizedBox( + width: _width, + height: min(numProducts, _maxThumbnailCount) * + _paddedThumbnailHeight(context), + child: const ProductThumbnailRow(), + ), + const ExtraProductsNumber(), + ], + ); + } else { + thumbnails = Column( + children: [ + Row( + children: [ + AnimatedPadding( + padding: _horizontalCartPaddingFor(numProducts), + duration: const Duration(milliseconds: 225), + child: const Icon(Icons.shopping_cart), + ), + Container( + // Accounts for the overflow number + width: min(numProducts, _maxThumbnailCount) * + _paddedThumbnailHeight(context) + + (numProducts > 0 ? _thumbnailGap : 0), + height: _height - _bottomSafeArea, + padding: const EdgeInsets.symmetric(vertical: 8), + child: const ProductThumbnailRow(), + ), + const ExtraProductsNumber(), + ], + ), + ], + ); + } + + return ExcludeSemantics( + child: Opacity( + opacity: _thumbnailOpacityAnimation.value, + child: thumbnails, + ), + ); + } + + Widget _buildShoppingCartPage() { + return Opacity( + opacity: _cartOpacityAnimation.value, + child: const ShoppingCartPage(), + ); + } + + Widget _buildCart(BuildContext context) { + // numProducts is the number of different products in the cart (does not + // include multiples of the same product). + final bool isDesktop = isDisplayDesktop(context); + + final AppStateModel model = ScopedModel.of(context); + final int numProducts = model.productsInCart.keys.length; + final int totalCartQuantity = model.totalCartQuantity; + final Size screenSize = MediaQuery.of(context).size; + final double screenWidth = screenSize.width; + final double screenHeight = screenSize.height; + + final double expandedCartWidth = isDesktop + ? (360 * cappedTextScale(context)).clamp(360, screenWidth).toDouble() + : screenWidth; + + _width = isDesktop + ? _desktopWidthFor(context) + : _mobileWidthFor(numProducts, context); + _widthAnimation = _getWidthAnimation(expandedCartWidth); + _height = isDesktop + ? _desktopHeightFor(numProducts, context) + : _mobileHeightFor(context) + _bottomSafeArea; + _heightAnimation = _getHeightAnimation(screenHeight); + _topStartShapeAnimation = _getShapeTopStartAnimation(context); + _bottomStartShapeAnimation = _getShapeBottomStartAnimation(context); + _thumbnailOpacityAnimation = _getThumbnailOpacityAnimation(); + _cartOpacityAnimation = _getCartOpacityAnimation(); + _gapAnimation = isDesktop + ? _getDesktopGapAnimation(116) + : const AlwaysStoppedAnimation(0); + + final Widget child = SizedBox( + width: _widthAnimation.value, + height: _heightAnimation.value, + child: Material( + animationDuration: Duration.zero, + shape: BeveledRectangleBorder( + borderRadius: BorderRadiusDirectional.only( + topStart: Radius.circular(_topStartShapeAnimation.value), + bottomStart: Radius.circular(_bottomStartShapeAnimation.value), + ), + ), + elevation: 4, + color: shrinePink50, + child: _cartIsVisible + ? _buildShoppingCartPage() + : _buildThumbnails(context, numProducts), + ), + ); + + final Widget childWithInteraction = productPageIsVisible(context) + ? Semantics( + button: true, + enabled: true, + label: GalleryLocalizations.of(context)! + .shrineScreenReaderCart(totalCartQuantity), + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: open, + child: child, + ), + ), + ) + : child; + + return Padding( + padding: EdgeInsets.only(top: _gapAnimation.value), + child: childWithInteraction, + ); + } + + // Builder for the hide and reveal animation when the backdrop opens and closes + Widget _buildSlideAnimation(BuildContext context, Widget child) { + final bool isDesktop = isDisplayDesktop(context); + + if (isDesktop) { + return child; + } else { + final int textDirectionScalar = + Directionality.of(context) == TextDirection.ltr ? 1 : -1; + + _slideAnimation = _getEmphasizedEasingAnimation( + begin: Offset(1.0 * textDirectionScalar, 0.0), + peak: Offset(_peakVelocityProgress * textDirectionScalar, 0), + end: Offset.zero, + isForward: widget.hideController.status == AnimationStatus.forward, + parent: widget.hideController, + ); + + return SlideTransition( + position: _slideAnimation, + child: child, + ); + } + } + + @override + Widget build(BuildContext context) { + return AnimatedSize( + key: _expandingBottomSheetKey, + duration: const Duration(milliseconds: 225), + curve: Curves.easeInOut, + alignment: AlignmentDirectional.topStart, + child: AnimatedBuilder( + animation: widget.hideController, + builder: (BuildContext context, Widget? child) => AnimatedBuilder( + animation: widget.expandingController, + builder: (BuildContext context, Widget? child) => ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) => + _buildSlideAnimation(context, _buildCart(context)), + ), + ), + ), + ); + } +} + +class ProductThumbnailRow extends StatefulWidget { + const ProductThumbnailRow({super.key}); + + @override + State createState() => _ProductThumbnailRowState(); +} + +class _ProductThumbnailRowState extends State { + final GlobalKey _listKey = GlobalKey(); + + // _list represents what's currently on screen. If _internalList updates, + // it will need to be updated to match it. + late _ListModel _list; + + // _internalList represents the list as it is updated by the AppStateModel. + late List _internalList; + + @override + void initState() { + super.initState(); + _list = _ListModel( + listKey: _listKey, + initialItems: + ScopedModel.of(context).productsInCart.keys.toList(), + removedItemBuilder: _buildRemovedThumbnail, + ); + _internalList = List.from(_list.list); + } + + Product _productWithId(int productId) { + final AppStateModel model = ScopedModel.of(context); + final Product product = model.getProductById(productId); + return product; + } + + Widget _buildRemovedThumbnail( + int item, BuildContext context, Animation animation) { + return ProductThumbnail(animation, animation, _productWithId(item)); + } + + Widget _buildThumbnail( + BuildContext context, int index, Animation animation) { + final Animation thumbnailSize = Tween(begin: 0.8, end: 1).animate( + CurvedAnimation( + curve: const Interval(0.33, 1, curve: Curves.easeIn), + parent: animation, + ), + ); + + final Animation opacity = CurvedAnimation( + curve: const Interval(0.33, 1), + parent: animation, + ); + + return ProductThumbnail( + thumbnailSize, opacity, _productWithId(_list[index])); + } + + // If the lists are the same length, assume nothing has changed. + // If the internalList is shorter than the ListModel, an item has been removed. + // If the internalList is longer, then an item has been added. + void _updateLists() { + // Update _internalList based on the model + _internalList = + ScopedModel.of(context).productsInCart.keys.toList(); + final Set internalSet = Set.from(_internalList); + final Set listSet = Set.from(_list.list); + + final Set difference = internalSet.difference(listSet); + if (difference.isEmpty) { + return; + } + + for (final int product in difference) { + if (_internalList.length < _list.length) { + _list.remove(product); + } else if (_internalList.length > _list.length) { + _list.add(product); + } + } + + while (_internalList.length != _list.length) { + int index = 0; + // Check bounds and that the list elements are the same + while (_internalList.isNotEmpty && + _list.length > 0 && + index < _internalList.length && + index < _list.length && + _internalList[index] == _list[index]) { + index++; + } + } + } + + Widget _buildAnimatedList(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return AnimatedList( + key: _listKey, + shrinkWrap: true, + itemBuilder: _buildThumbnail, + initialItemCount: _list.length, + scrollDirection: isDesktop ? Axis.vertical : Axis.horizontal, + physics: const NeverScrollableScrollPhysics(), // Cart shouldn't scroll + ); + } + + @override + Widget build(BuildContext context) { + return ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) { + _updateLists(); + return _buildAnimatedList(context); + }, + ); + } +} + +class ExtraProductsNumber extends StatelessWidget { + const ExtraProductsNumber({super.key}); + + // Calculates the number to be displayed at the end of the row if there are + // more than three products in the cart. This calculates overflow products, + // including their duplicates (but not duplicates of products shown as + // thumbnails). + int _calculateOverflow(AppStateModel model) { + final Map productMap = model.productsInCart; + // List created to be able to access products by index instead of ID. + // Order is guaranteed because productsInCart returns a LinkedHashMap. + final List products = productMap.keys.toList(); + int overflow = 0; + final int numProducts = products.length; + for (int i = _maxThumbnailCount; i < numProducts; i++) { + overflow += productMap[products[i]]!; + } + return overflow; + } + + Widget _buildOverflow(AppStateModel model, BuildContext context) { + if (model.productsInCart.length <= _maxThumbnailCount) { + return Container(); + } + + final int numOverflowProducts = _calculateOverflow(model); + // Maximum of 99 so padding doesn't get messy. + final int displayedOverflowProducts = + numOverflowProducts <= 99 ? numOverflowProducts : 99; + return Text( + '+$displayedOverflowProducts', + style: Theme.of(context).primaryTextTheme.labelLarge, + ); + } + + @override + Widget build(BuildContext context) { + return ScopedModelDescendant( + builder: (BuildContext builder, Widget? child, AppStateModel model) => _buildOverflow(model, context), + ); + } +} + +class ProductThumbnail extends StatelessWidget { + const ProductThumbnail(this.animation, this.opacityAnimation, this.product, + {super.key}); + + final Animation animation; + final Animation opacityAnimation; + final Product product; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return FadeTransition( + opacity: opacityAnimation, + child: ScaleTransition( + scale: animation, + child: Container( + width: _thumbnailHeight(context), + height: _thumbnailHeight(context), + decoration: BoxDecoration( + image: DecorationImage( + image: ExactAssetImage( + product.assetName, // asset name + package: product.assetPackage, // asset package + ), + fit: BoxFit.cover, + ), + borderRadius: const BorderRadius.all(Radius.circular(10)), + ), + margin: isDesktop + ? const EdgeInsetsDirectional.only(start: 12, end: 12, bottom: 16) + : const EdgeInsetsDirectional.only(start: 16), + ), + ), + ); + } +} + +// _ListModel manipulates an internal list and an AnimatedList +class _ListModel { + _ListModel({ + required this.listKey, + required this.removedItemBuilder, + Iterable? initialItems, + }) : _items = initialItems?.toList() ?? []; + + final GlobalKey listKey; + final Widget Function(int, BuildContext, Animation) + removedItemBuilder; + final List _items; + + AnimatedListState? get _animatedList => listKey.currentState; + + void add(int product) { + _insert(_items.length, product); + } + + void _insert(int index, int item) { + _items.insert(index, item); + _animatedList! + .insertItem(index, duration: const Duration(milliseconds: 225)); + } + + void remove(int product) { + final int index = _items.indexOf(product); + if (index >= 0) { + _removeAt(index); + } + } + + void _removeAt(int index) { + final int removedItem = _items.removeAt(index); + _animatedList!.removeItem(index, (BuildContext context, Animation animation) { + return removedItemBuilder(removedItem, context, animation); + }); + } + + int get length => _items.length; + + int operator [](int index) => _items[index]; + + int indexOf(int item) => _items.indexOf(item); + + List get list => _items; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..c207c1153a9433d9ef675d0f8e6b7c09b8a4d2e6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/semantics.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../data/gallery_options.dart'; +import '../../layout/adaptive.dart'; +import 'expanding_bottom_sheet.dart'; +import 'model/app_state_model.dart'; +import 'supplemental/asymmetric_view.dart'; + +const String _ordinalSortKeyName = 'home'; + +class ProductPage extends StatelessWidget { + const ProductPage({super.key}); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) { + return isDesktop + ? DesktopAsymmetricView(products: model.getProducts()) + : MobileAsymmetricView(products: model.getProducts()); + }); + } +} + +class HomePage extends StatelessWidget { + const HomePage({ + this.expandingBottomSheet, + this.scrim, + this.backdrop, + super.key, + }); + + final ExpandingBottomSheet? expandingBottomSheet; + final Widget? scrim; + final Widget? backdrop; + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + // Use sort keys to make sure the cart button is always on the top. + // This way, a11y users do not have to scroll through the entire list to + // find the cart, and can easily get to the cart from anywhere on the page. + return ApplyTextOptions( + child: Stack( + children: [ + Semantics( + container: true, + sortKey: const OrdinalSortKey(1, name: _ordinalSortKeyName), + child: backdrop, + ), + ExcludeSemantics(child: scrim), + Align( + alignment: isDesktop + ? AlignmentDirectional.topEnd + : AlignmentDirectional.bottomEnd, + child: Semantics( + container: true, + sortKey: const OrdinalSortKey(0, name: _ordinalSortKeyName), + child: expandingBottomSheet, + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart new file mode 100644 index 0000000000000000000000000000000000000000..09ab3760829f4c1a73aafbfbf26f3c9811b035ac --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart @@ -0,0 +1,215 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; +import '../../layout/image_placeholder.dart'; +import '../../layout/letter_spacing.dart'; +import '../../layout/text_scale.dart'; +import 'app.dart'; +import 'theme.dart'; + +const double _horizontalPadding = 24.0; + +double desktopLoginScreenMainAreaWidth({required BuildContext context}) { + return min( + 360 * reducedTextScale(context), + MediaQuery.of(context).size.width - 2 * _horizontalPadding, + ); +} + +class LoginPage extends StatelessWidget { + const LoginPage({super.key}); + + @override + Widget build(BuildContext context) { + final bool isDesktop = isDisplayDesktop(context); + + return ApplyTextOptions( + child: isDesktop + ? LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) => Scaffold( + body: SafeArea( + child: Center( + child: SizedBox( + width: desktopLoginScreenMainAreaWidth(context: context), + child: const Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + _ShrineLogo(), + SizedBox(height: 40), + _UsernameTextField(), + SizedBox(height: 16), + _PasswordTextField(), + SizedBox(height: 24), + _CancelAndNextButtons(), + SizedBox(height: 62), + ], + ), + ), + ), + ), + ), + ) + : Scaffold( + body: SafeArea( + child: ListView( + restorationId: 'login_list_view', + physics: const ClampingScrollPhysics(), + padding: const EdgeInsets.symmetric( + horizontal: _horizontalPadding, + ), + children: const [ + SizedBox(height: 80), + _ShrineLogo(), + SizedBox(height: 120), + _UsernameTextField(), + SizedBox(height: 12), + _PasswordTextField(), + _CancelAndNextButtons(), + ], + ), + ), + ), + ); + } +} + +class _ShrineLogo extends StatelessWidget { + const _ShrineLogo(); + + @override + Widget build(BuildContext context) { + return ExcludeSemantics( + child: Column( + children: [ + const FadeInImagePlaceholder( + image: AssetImage('packages/shrine_images/diamond.png'), + placeholder: SizedBox( + width: 34, + height: 34, + ), + ), + const SizedBox(height: 16), + Text( + 'SHRINE', + style: Theme.of(context).textTheme.headlineSmall, + ), + ], + ), + ); + } +} + +class _UsernameTextField extends StatelessWidget { + const _UsernameTextField(); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return TextField( + textInputAction: TextInputAction.next, + restorationId: 'username_text_field', + cursorColor: colorScheme.onSurface, + decoration: InputDecoration( + labelText: GalleryLocalizations.of(context)!.shrineLoginUsernameLabel, + labelStyle: TextStyle( + letterSpacing: letterSpacingOrNone(mediumLetterSpacing), + ), + ), + ); + } +} + +class _PasswordTextField extends StatelessWidget { + const _PasswordTextField(); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return TextField( + restorationId: 'password_text_field', + cursorColor: colorScheme.onSurface, + obscureText: true, + decoration: InputDecoration( + labelText: GalleryLocalizations.of(context)!.shrineLoginPasswordLabel, + labelStyle: TextStyle( + letterSpacing: letterSpacingOrNone(mediumLetterSpacing), + ), + ), + ); + } +} + +class _CancelAndNextButtons extends StatelessWidget { + const _CancelAndNextButtons(); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + final bool isDesktop = isDisplayDesktop(context); + + final EdgeInsets buttonTextPadding = isDesktop + ? const EdgeInsets.symmetric(horizontal: 24, vertical: 16) + : EdgeInsets.zero; + + return Padding( + padding: isDesktop ? EdgeInsets.zero : const EdgeInsets.all(8), + child: OverflowBar( + spacing: isDesktop ? 0 : 8, + alignment: MainAxisAlignment.end, + children: [ + TextButton( + style: TextButton.styleFrom( + shape: const BeveledRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(7)), + ), + ), + onPressed: () { + // The login screen is immediately displayed on top of + // the Shrine home screen using onGenerateRoute and so + // rootNavigator must be set to true in order to get out + // of Shrine completely. + Navigator.of(context, rootNavigator: true).pop(); + }, + child: Padding( + padding: buttonTextPadding, + child: Text( + GalleryLocalizations.of(context)!.shrineCancelButtonCaption, + style: TextStyle(color: colorScheme.onSurface), + ), + ), + ), + ElevatedButton( + style: ElevatedButton.styleFrom( + elevation: 8, + shape: const BeveledRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(7)), + ), + ), + onPressed: () { + Navigator.of(context).restorablePushNamed(ShrineApp.homeRoute); + }, + child: Padding( + padding: buttonTextPadding, + child: Text( + GalleryLocalizations.of(context)!.shrineNextButtonCaption, + style: TextStyle( + letterSpacing: letterSpacingOrNone(largeLetterSpacing)), + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart new file mode 100644 index 0000000000000000000000000000000000000000..83185e75cb81495a0c9c475a99aa6340c05ffa40 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart @@ -0,0 +1,123 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:scoped_model/scoped_model.dart'; + +import 'product.dart'; +import 'products_repository.dart'; + +double _salesTaxRate = 0.06; +double _shippingCostPerItem = 7; + +class AppStateModel extends Model { + // All the available products. + List _availableProducts = []; + + // The currently selected category of products. + Category _selectedCategory = categoryAll; + + // The IDs and quantities of products currently in the cart. + final Map _productsInCart = {}; + + Map get productsInCart => Map.from(_productsInCart); + + // Total number of items in the cart. + int get totalCartQuantity => _productsInCart.values.fold(0, (int v, int e) => v + e); + + Category get selectedCategory => _selectedCategory; + + // Totaled prices of the items in the cart. + double get subtotalCost { + return _productsInCart.keys + .map((int id) => _availableProducts[id].price * _productsInCart[id]!) + .fold(0.0, (double sum, int e) => sum + e); + } + + // Total shipping cost for the items in the cart. + double get shippingCost { + return _shippingCostPerItem * + _productsInCart.values.fold(0.0, (num sum, int e) => sum + e); + } + + // Sales tax for the items in the cart + double get tax => subtotalCost * _salesTaxRate; + + // Total cost to order everything in the cart. + double get totalCost => subtotalCost + shippingCost + tax; + + // Returns a copy of the list of available products, filtered by category. + List getProducts() { + if (_selectedCategory == categoryAll) { + return List.from(_availableProducts); + } else { + return _availableProducts + .where((Product p) => p.category == _selectedCategory) + .toList(); + } + } + + // Adds a product to the cart. + void addProductToCart(int productId) { + if (!_productsInCart.containsKey(productId)) { + _productsInCart[productId] = 1; + } else { + _productsInCart[productId] = _productsInCart[productId]! + 1; + } + + notifyListeners(); + } + + // Adds products to the cart by a certain amount. + // quantity must be non-null positive value. + void addMultipleProductsToCart(int productId, int quantity) { + assert(quantity > 0); + if (!_productsInCart.containsKey(productId)) { + _productsInCart[productId] = quantity; + } else { + _productsInCart[productId] = _productsInCart[productId]! + quantity; + } + + notifyListeners(); + } + + // Removes an item from the cart. + void removeItemFromCart(int productId) { + if (_productsInCart.containsKey(productId)) { + if (_productsInCart[productId] == 1) { + _productsInCart.remove(productId); + } else { + _productsInCart[productId] = _productsInCart[productId]! - 1; + } + } + + notifyListeners(); + } + + // Returns the Product instance matching the provided id. + Product getProductById(int id) { + return _availableProducts.firstWhere((Product p) => p.id == id); + } + + // Removes everything from the cart. + void clearCart() { + _productsInCart.clear(); + notifyListeners(); + } + + // Loads the list of available products from the repo. + void loadProducts() { + _availableProducts = ProductsRepository.loadProducts(categoryAll); + notifyListeners(); + } + + void setCategory(Category newCategory) { + _selectedCategory = newCategory; + notifyListeners(); + } + + @override + String toString() { + return 'AppStateModel(totalCost: $totalCost)'; + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a899d98eacd91432eae0588942fefb246fbbd3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../../gallery_localizations.dart'; + +class Category { + const Category({ + required this.name, + }); + + // A function taking a BuildContext as input and + // returns the internationalized name of the category. + final String Function(BuildContext) name; +} + +Category categoryAll = Category( + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineCategoryNameAll, +); + +Category categoryAccessories = Category( + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineCategoryNameAccessories, +); + +Category categoryClothing = Category( + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineCategoryNameClothing, +); + +Category categoryHome = Category( + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineCategoryNameHome, +); + +List categories = [ + categoryAll, + categoryAccessories, + categoryClothing, + categoryHome, +]; + +class Product { + const Product({ + required this.category, + required this.id, + required this.isFeatured, + required this.name, + required this.price, + this.assetAspectRatio = 1, + }); + + final Category category; + final int id; + final bool isFeatured; + final double assetAspectRatio; + + // A function taking a BuildContext as input and + // returns the internationalized name of the product. + final String Function(BuildContext) name; + + final int price; + + String get assetName => '$id-0.jpg'; + + String get assetPackage => 'shrine_images'; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart new file mode 100644 index 0000000000000000000000000000000000000000..61fe1d0a1439625564c6445d7cc21f148c8b2f5a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart @@ -0,0 +1,361 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; +import '../../../gallery_localizations.dart'; +import 'product.dart'; + +class ProductsRepository { + static List loadProducts(Category category) { + final List allProducts = [ + Product( + category: categoryAccessories, + id: 0, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductVagabondSack, + price: 120, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 1, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductStellaSunglasses, + price: 58, + assetAspectRatio: 329 / 247, + ), + Product( + category: categoryAccessories, + id: 2, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWhitneyBelt, + price: 35, + assetAspectRatio: 329 / 228, + ), + Product( + category: categoryAccessories, + id: 3, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGardenStrand, + price: 98, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 4, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductStrutEarrings, + price: 34, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 5, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductVarsitySocks, + price: 12, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 6, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWeaveKeyring, + price: 16, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 7, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGatsbyHat, + price: 40, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryAccessories, + id: 8, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductShrugBag, + price: 198, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 9, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGiltDeskTrio, + price: 58, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 10, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductCopperWireRack, + price: 18, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 11, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSootheCeramicSet, + price: 28, + assetAspectRatio: 329 / 247, + ), + Product( + category: categoryHome, + id: 12, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductHurrahsTeaSet, + price: 34, + assetAspectRatio: 329 / 213, + ), + Product( + category: categoryHome, + id: 13, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductBlueStoneMug, + price: 18, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 14, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductRainwaterTray, + price: 27, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 15, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductChambrayNapkins, + price: 16, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 16, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSucculentPlanters, + price: 16, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 17, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductQuartetTable, + price: 175, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryHome, + id: 18, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductKitchenQuattro, + price: 129, + assetAspectRatio: 329 / 246, + ), + Product( + category: categoryClothing, + id: 19, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductClaySweater, + price: 48, + assetAspectRatio: 329 / 219, + ), + Product( + category: categoryClothing, + id: 20, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSeaTunic, + price: 45, + assetAspectRatio: 329 / 221, + ), + Product( + category: categoryClothing, + id: 21, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductPlasterTunic, + price: 38, + assetAspectRatio: 220 / 329, + ), + Product( + category: categoryClothing, + id: 22, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWhitePinstripeShirt, + price: 70, + assetAspectRatio: 219 / 329, + ), + Product( + category: categoryClothing, + id: 23, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductChambrayShirt, + price: 70, + assetAspectRatio: 329 / 221, + ), + Product( + category: categoryClothing, + id: 24, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSeabreezeSweater, + price: 60, + assetAspectRatio: 220 / 329, + ), + Product( + category: categoryClothing, + id: 25, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGentryJacket, + price: 178, + assetAspectRatio: 329 / 219, + ), + Product( + category: categoryClothing, + id: 26, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductNavyTrousers, + price: 74, + assetAspectRatio: 220 / 329, + ), + Product( + category: categoryClothing, + id: 27, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWalterHenleyWhite, + price: 38, + assetAspectRatio: 219 / 329, + ), + Product( + category: categoryClothing, + id: 28, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSurfAndPerfShirt, + price: 48, + assetAspectRatio: 329 / 219, + ), + Product( + category: categoryClothing, + id: 29, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGingerScarf, + price: 98, + assetAspectRatio: 219 / 329, + ), + Product( + category: categoryClothing, + id: 30, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductRamonaCrossover, + price: 68, + assetAspectRatio: 220 / 329, + ), + Product( + category: categoryClothing, + id: 31, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductChambrayShirt, + price: 38, + assetAspectRatio: 329 / 223, + ), + Product( + category: categoryClothing, + id: 32, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductClassicWhiteCollar, + price: 58, + assetAspectRatio: 221 / 329, + ), + Product( + category: categoryClothing, + id: 33, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductCeriseScallopTee, + price: 42, + assetAspectRatio: 329 / 219, + ), + Product( + category: categoryClothing, + id: 34, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductShoulderRollsTee, + price: 27, + assetAspectRatio: 220 / 329, + ), + Product( + category: categoryClothing, + id: 35, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductGreySlouchTank, + price: 24, + assetAspectRatio: 222 / 329, + ), + Product( + category: categoryClothing, + id: 36, + isFeatured: false, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSunshirtDress, + price: 58, + assetAspectRatio: 219 / 329, + ), + Product( + category: categoryClothing, + id: 37, + isFeatured: true, + name: (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductFineLinesTee, + price: 58, + assetAspectRatio: 219 / 329, + ), + ]; + if (category == categoryAll) { + return allProducts; + } else { + return allProducts.where((Product p) => p.category == category).toList(); + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart new file mode 100644 index 0000000000000000000000000000000000000000..a04d4976a711762ab57d6ec386e9f65c249ba2be --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../layout/adaptive.dart'; + +class PageStatus extends InheritedWidget { + const PageStatus({ + super.key, + required this.cartController, + required this.menuController, + required super.child, + }); + + final AnimationController cartController; + final AnimationController menuController; + + static PageStatus? of(BuildContext context) { + return context.dependOnInheritedWidgetOfExactType(); + } + + @override + bool updateShouldNotify(PageStatus oldWidget) => + oldWidget.cartController != cartController || + oldWidget.menuController != menuController; +} + +bool productPageIsVisible(BuildContext context) { + return _cartControllerOf(context).isDismissed && + (_menuControllerOf(context).isCompleted || isDisplayDesktop(context)); +} + +bool menuPageIsVisible(BuildContext context) { + return _cartControllerOf(context).isDismissed && + (_menuControllerOf(context).isDismissed || isDisplayDesktop(context)); +} + +bool cartPageIsVisible(BuildContext context) { + return _cartControllerOf(context).isCompleted; +} + +AnimationController _cartControllerOf(BuildContext context) { + return PageStatus.of(context)!.cartController; +} + +AnimationController _menuControllerOf(BuildContext context) { + return PageStatus.of(context)!.menuController; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..efd784f30263db1a4e1d176b0fe663b8c2011f71 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/routes.dart @@ -0,0 +1,6 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String loginRoute = '/shrine/login'; +const String homeRoute = '/shrine'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart new file mode 100644 index 0000000000000000000000000000000000000000..25ef0f2cd32e552ae47eb507b21377c2021adbea --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class Scrim extends StatelessWidget { + const Scrim({super.key, required this.controller}); + + final AnimationController controller; + + @override + Widget build(BuildContext context) { + return ExcludeSemantics( + child: AnimatedBuilder( + animation: controller, + builder: (BuildContext context, Widget? child) { + final Widget scrimRectangle = ColoredBox( + color: Color.fromRGBO(0xFF, 0xF0, 0xEA, controller.value * 0.87), + child: SizedBox.fromSize(size: MediaQuery.sizeOf(context)), + ); + + switch (controller.status) { + case AnimationStatus.completed: + return MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: controller.reverse, + child: scrimRectangle, + ), + ); + case AnimationStatus.dismissed: + return IgnorePointer(child: scrimRectangle); + case AnimationStatus.forward || AnimationStatus.reverse: + return scrimRectangle; + } + }, + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart new file mode 100644 index 0000000000000000000000000000000000000000..8636f3a0b09817c2a26649abcd42eaacba69f9a5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart @@ -0,0 +1,352 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:intl/intl.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../gallery_localizations.dart'; +import '../../layout/letter_spacing.dart'; +import 'colors.dart'; +import 'expanding_bottom_sheet.dart'; +import 'model/app_state_model.dart'; +import 'model/product.dart'; +import 'theme.dart'; + +const double _startColumnWidth = 60.0; +const String _ordinalSortKeyName = 'shopping_cart'; + +class ShoppingCartPage extends StatefulWidget { + const ShoppingCartPage({super.key}); + + @override + State createState() => _ShoppingCartPageState(); +} + +class _ShoppingCartPageState extends State { + List _createShoppingCartRows(AppStateModel model) { + return model.productsInCart.keys + .map( + (int id) => ShoppingCartRow( + product: model.getProductById(id), + quantity: model.productsInCart[id], + onPressed: () { + model.removeItemFromCart(id); + }, + ), + ) + .toList(); + } + + @override + Widget build(BuildContext context) { + final ThemeData localTheme = Theme.of(context); + return Scaffold( + backgroundColor: shrinePink50, + body: SafeArea( + child: ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) { + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final ExpandingBottomSheetState? expandingBottomSheet = ExpandingBottomSheet.of(context); + return Stack( + children: [ + ListView( + children: [ + Semantics( + sortKey: + const OrdinalSortKey(0, name: _ordinalSortKeyName), + child: Row( + children: [ + SizedBox( + width: _startColumnWidth, + child: IconButton( + icon: const Icon(Icons.keyboard_arrow_down), + onPressed: () => expandingBottomSheet!.close(), + tooltip: localizations.shrineTooltipCloseCart, + ), + ), + Text( + localizations.shrineCartPageCaption, + style: localTheme.textTheme.titleMedium! + .copyWith(fontWeight: FontWeight.w600), + ), + const SizedBox(width: 16), + Text( + localizations.shrineCartItemCount( + model.totalCartQuantity, + ), + ), + ], + ), + ), + const SizedBox(height: 16), + Semantics( + sortKey: + const OrdinalSortKey(1, name: _ordinalSortKeyName), + child: Column( + children: _createShoppingCartRows(model), + ), + ), + Semantics( + sortKey: + const OrdinalSortKey(2, name: _ordinalSortKeyName), + child: ShoppingCartSummary(model: model), + ), + const SizedBox(height: 100), + ], + ), + PositionedDirectional( + bottom: 16, + start: 16, + end: 16, + child: Semantics( + sortKey: const OrdinalSortKey(3, name: _ordinalSortKeyName), + child: ElevatedButton( + style: ElevatedButton.styleFrom( + shape: const BeveledRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(7)), + ), + backgroundColor: shrinePink100, + ), + onPressed: () { + model.clearCart(); + expandingBottomSheet!.close(); + }, + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 12), + child: Text( + localizations.shrineCartClearButtonCaption, + style: TextStyle( + letterSpacing: + letterSpacingOrNone(largeLetterSpacing)), + ), + ), + ), + ), + ), + ], + ); + }, + ), + ), + ); + } +} + +class ShoppingCartSummary extends StatelessWidget { + const ShoppingCartSummary({ + super.key, + required this.model, + }); + + final AppStateModel model; + + @override + Widget build(BuildContext context) { + final TextStyle smallAmountStyle = + Theme.of(context).textTheme.bodyMedium!.copyWith(color: shrineBrown600); + final TextStyle largeAmountStyle = Theme.of(context) + .textTheme + .headlineMedium! + .copyWith(letterSpacing: letterSpacingOrNone(mediumLetterSpacing)); + final NumberFormat formatter = NumberFormat.simpleCurrency( + decimalDigits: 2, + locale: Localizations.localeOf(context).toString(), + ); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Row( + children: [ + const SizedBox(width: _startColumnWidth), + Expanded( + child: Padding( + padding: const EdgeInsetsDirectional.only(end: 16), + child: Column( + children: [ + MergeSemantics( + child: Row( + children: [ + SelectableText( + localizations.shrineCartTotalCaption, + ), + Expanded( + child: SelectableText( + formatter.format(model.totalCost), + style: largeAmountStyle, + textAlign: TextAlign.end, + ), + ), + ], + ), + ), + const SizedBox(height: 16), + MergeSemantics( + child: Row( + children: [ + SelectableText( + localizations.shrineCartSubtotalCaption, + ), + Expanded( + child: SelectableText( + formatter.format(model.subtotalCost), + style: smallAmountStyle, + textAlign: TextAlign.end, + ), + ), + ], + ), + ), + const SizedBox(height: 4), + MergeSemantics( + child: Row( + children: [ + SelectableText( + localizations.shrineCartShippingCaption, + ), + Expanded( + child: SelectableText( + formatter.format(model.shippingCost), + style: smallAmountStyle, + textAlign: TextAlign.end, + ), + ), + ], + ), + ), + const SizedBox(height: 4), + MergeSemantics( + child: Row( + children: [ + SelectableText( + localizations.shrineCartTaxCaption, + ), + Expanded( + child: SelectableText( + formatter.format(model.tax), + style: smallAmountStyle, + textAlign: TextAlign.end, + ), + ), + ], + ), + ), + ], + ), + ), + ), + ], + ); + } +} + +class ShoppingCartRow extends StatelessWidget { + const ShoppingCartRow({ + super.key, + required this.product, + required this.quantity, + this.onPressed, + }); + + final Product product; + final int? quantity; + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + final NumberFormat formatter = NumberFormat.simpleCurrency( + decimalDigits: 0, + locale: Localizations.localeOf(context).toString(), + ); + final ThemeData localTheme = Theme.of(context); + + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + + return Padding( + padding: const EdgeInsets.only(bottom: 16), + child: Row( + key: ValueKey(product.id), + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Semantics( + container: true, + label: localizations + .shrineScreenReaderRemoveProductButton(product.name(context)), + button: true, + enabled: true, + child: ExcludeSemantics( + child: SizedBox( + width: _startColumnWidth, + child: IconButton( + icon: const Icon(Icons.remove_circle_outline), + onPressed: onPressed, + tooltip: localizations.shrineTooltipRemoveItem, + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsetsDirectional.only(end: 16), + child: Column( + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Image.asset( + product.assetName, + package: product.assetPackage, + fit: BoxFit.cover, + width: 75, + height: 75, + excludeFromSemantics: true, + ), + const SizedBox(width: 16), + Expanded( + child: MergeSemantics( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + MergeSemantics( + child: Row( + children: [ + Expanded( + child: SelectableText( + localizations + .shrineProductQuantity(quantity!), + ), + ), + SelectableText( + localizations.shrineProductPrice( + formatter.format(product.price), + ), + ), + ], + ), + ), + SelectableText( + product.name(context), + style: localTheme.textTheme.titleMedium! + .copyWith(fontWeight: FontWeight.w600), + ), + ], + ), + ), + ), + ], + ), + const SizedBox(height: 16), + const Divider( + color: shrineBrown900, + height: 10, + ), + ], + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart new file mode 100644 index 0000000000000000000000000000000000000000..7a79c2f08eae67d786ce3486b08e7de58179f159 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart @@ -0,0 +1,297 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../../../data/gallery_options.dart'; +import '../../../layout/text_scale.dart'; +import '../category_menu_page.dart'; +import '../model/product.dart'; +import '../page_status.dart'; +import 'balanced_layout.dart'; +import 'desktop_product_columns.dart'; +import 'product_card.dart'; +import 'product_columns.dart'; + +const double _topPadding = 34.0; +const double _bottomPadding = 44.0; + +const double _cardToScreenWidthRatio = 0.59; + +class MobileAsymmetricView extends StatelessWidget { + const MobileAsymmetricView({ + super.key, + required this.products, + }); + + final List products; + + List _buildColumns( + BuildContext context, + BoxConstraints constraints, + ) { + if (products.isEmpty) { + return const []; + } + + // Decide whether the page size and text size allow 2-column products. + + final double cardHeight = (constraints.biggest.height - + _topPadding - + _bottomPadding - + TwoProductCardColumn.spacerHeight) / + 2; + + final double imageWidth = _cardToScreenWidthRatio * constraints.biggest.width - + TwoProductCardColumn.horizontalPadding; + + final double imageHeight = cardHeight - + MobileProductCard.defaultTextBoxHeight * + GalleryOptions.of(context).textScaleFactor(context); + + final bool shouldUseAlternatingLayout = + imageHeight > 0 && imageWidth / imageHeight < 49 / 33; + + if (shouldUseAlternatingLayout) { + // Alternating layout: a layout of alternating 2-product + // and 1-product columns. + // + // This will return a list of columns. It will oscillate between the two + // kinds of columns. Even cases of the index (0, 2, 4, etc) will be + // TwoProductCardColumn and the odd cases will be OneProductCardColumn. + // + // Each pair of columns will advance us 3 products forward (2 + 1). That's + // some kinda awkward math so we use _evenCasesIndex and _oddCasesIndex as + // helpers for creating the index of the product list that will correspond + // to the index of the list of columns. + + return List.generate(_listItemCount(products.length), (int index) { + double width = _cardToScreenWidthRatio * MediaQuery.of(context).size.width; + Widget column; + if (index.isEven) { + /// Even cases + final int bottom = _evenCasesIndex(index); + column = TwoProductCardColumn( + bottom: products[bottom], + top: + products.length - 1 >= bottom + 1 ? products[bottom + 1] : null, + imageAspectRatio: imageWidth / imageHeight, + ); + width += 32; + } else { + /// Odd cases + column = OneProductCardColumn( + product: products[_oddCasesIndex(index)], + reverse: true, + ); + } + return SizedBox( + width: width, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: column, + ), + ); + }).toList(); + } else { + // Alternating layout: a layout of 1-product columns. + + return [ + for (final Product product in products) + SizedBox( + width: _cardToScreenWidthRatio * MediaQuery.of(context).size.width, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: OneProductCardColumn( + product: product, + reverse: false, + ), + ), + ) + ]; + } + } + + int _evenCasesIndex(int input) { + // The operator ~/ is a cool one. It's the truncating division operator. It + // divides the number and if there's a remainder / decimal, it cuts it off. + // This is like dividing and then casting the result to int. Also, it's + // functionally equivalent to floor() in this case. + return input ~/ 2 * 3; + } + + int _oddCasesIndex(int input) { + assert(input > 0); + return (input / 2).ceil() * 3 - 1; + } + + int _listItemCount(int totalItems) { + return (totalItems % 3 == 0) + ? totalItems ~/ 3 * 2 + : (totalItems / 3).ceil() * 2 - 1; + } + + @override + Widget build(BuildContext context) { + return AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !productPageIsVisible(context), + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return ListView( + restorationId: 'product_page_list_view', + scrollDirection: Axis.horizontal, + padding: const EdgeInsetsDirectional.fromSTEB( + 0, + _topPadding, + 16, + _bottomPadding, + ), + physics: const BouncingScrollPhysics(), + children: _buildColumns(context, constraints), + ); + }, + ), + ), + ), + ); + } +} + +class DesktopAsymmetricView extends StatelessWidget { + const DesktopAsymmetricView({ + super.key, + required this.products, + }); + + final List products; + + @override + Widget build(BuildContext context) { + // Determine the scale factor for the desktop asymmetric view. + + final double textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); + + // When text is larger, the images becomes wider, but at half the rate. + final double imageScaleFactor = reducedTextScale(context); + + // When text is larger, horizontal padding becomes smaller. + final num paddingScaleFactor = textScaleFactor >= 1.5 ? 0.25 : 1; + + // Calculate number of columns + + final double sidebar = desktopCategoryMenuPageWidth(context: context); + final num minimumBoundaryWidth = 84 * paddingScaleFactor; + final double columnWidth = 186 * imageScaleFactor; + final double columnGapWidth = 24 * imageScaleFactor; + final double windowWidth = MediaQuery.of(context).size.width; + + final int idealColumnCount = max( + 1, + ((windowWidth + columnGapWidth - 2 * minimumBoundaryWidth - sidebar) / + (columnWidth + columnGapWidth)) + .floor(), + ); + + // Limit column width to fit within window when there is only one column. + final double actualColumnWidth = idealColumnCount == 1 + ? min( + columnWidth, + windowWidth - sidebar - 2 * minimumBoundaryWidth, + ) + : columnWidth; + + final int columnCount = min(idealColumnCount, max(products.length, 1)); + + return AnimatedBuilder( + animation: PageStatus.of(context)!.cartController, + builder: (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !productPageIsVisible(context), + child: DesktopColumns( + columnCount: columnCount, + products: products, + largeImageWidth: actualColumnWidth, + smallImageWidth: columnCount > 1 + ? columnWidth - columnGapWidth + : actualColumnWidth, + ), + ), + ); + } +} + +class DesktopColumns extends StatelessWidget { + const DesktopColumns({ + super.key, + required this.columnCount, + required this.products, + required this.largeImageWidth, + required this.smallImageWidth, + }); + + final int columnCount; + final List products; + final double largeImageWidth; + final double smallImageWidth; + + @override + Widget build(BuildContext context) { + final Widget gap = Container(width: 24); + + final List> productCardLists = balancedLayout( + context: context, + columnCount: columnCount, + products: products, + largeImageWidth: largeImageWidth, + smallImageWidth: smallImageWidth, + ); + + final List productCardColumns = List.generate( + columnCount, + (int column) { + final bool alignToEnd = (column.isOdd) || (column == columnCount - 1); + final bool startLarge = column.isOdd; + final bool lowerStart = column.isOdd; + return DesktopProductCardColumn( + alignToEnd: alignToEnd, + startLarge: startLarge, + lowerStart: lowerStart, + products: productCardLists[column], + largeImageWidth: largeImageWidth, + smallImageWidth: smallImageWidth, + ); + }, + ); + + return ListView( + physics: const AlwaysScrollableScrollPhysics(), + children: [ + Container(height: 60), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Spacer(), + ...List.generate( + 2 * columnCount - 1, + (int generalizedColumnIndex) { + if (generalizedColumnIndex.isEven) { + return productCardColumns[generalizedColumnIndex ~/ 2]; + } else { + return gap; + } + }, + ), + const Spacer(), + ], + ), + Container(height: 60), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart new file mode 100644 index 0000000000000000000000000000000000000000..fecbee208f669279284edb2cf818aa7c3a669db6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart @@ -0,0 +1,239 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../model/product.dart'; +import 'desktop_product_columns.dart'; +import 'layout_cache.dart'; + +/// A placeholder id for an empty element. See [_iterateUntilBalanced] +/// for more information. +const int _emptyElement = -1; + +/// To avoid infinite loops, improvements to the layout are only performed +/// when a column's height changes by more than +/// [_deviationImprovementThreshold] pixels. +const int _deviationImprovementThreshold = 10; + +/// Height of a product image, paired with the product's id. +class _TaggedHeightData { + const _TaggedHeightData({ + required this.index, + required this.height, + }); + + /// The id of the corresponding product. + final int index; + + /// The height of the product image. + final double height; +} + +/// Converts a set of [_TaggedHeightData] elements to a list, +/// and add an empty element. +/// Used for iteration. +List<_TaggedHeightData> _toListAndAddEmpty(Set<_TaggedHeightData> set) { + final List<_TaggedHeightData> result = List<_TaggedHeightData>.from(set); + result.add(const _TaggedHeightData(index: _emptyElement, height: 0)); + return result; +} + +/// Encode parameters for caching. +String _encodeParameters({ + required int columnCount, + required List products, + required double largeImageWidth, + required double smallImageWidth, +}) { + final String productString = + [for (final Product product in products) product.id.toString()].join(','); + return '$columnCount;$productString,$largeImageWidth,$smallImageWidth'; +} + +/// Given a layout, replace integers by their corresponding products. +List> _generateLayout({ + required List products, + required List> layout, +}) { + return >[ + for (final List column in layout) + [ + for (final int index in column) products[index], + ] + ]; +} + +/// Given [columnObjects], list of the set of objects in each column, +/// and [columnHeights], list of heights of each column, +/// [_iterateUntilBalanced] moves and swaps objects between columns +/// until their heights are sufficiently close to each other. +/// This prevents the layout having significant, avoidable gaps at the bottom. +void _iterateUntilBalanced( + List> columnObjects, + List columnHeights, +) { + int failedMoves = 0; + final int columnCount = columnObjects.length; + + // No need to rearrange a 1-column layout. + if (columnCount == 1) { + return; + } + + while (true) { + // Loop through all possible 2-combinations of columns. + for (int source = 0; source < columnCount; ++source) { + for (int target = source + 1; target < columnCount; ++target) { + // Tries to find an object A from source column + // and an object B from target column, such that switching them + // causes the height of the two columns to be closer. + + // A or B can be empty; in this case, moving an object from one + // column to the other is the best choice. + + bool success = false; + + final double bestHeight = (columnHeights[source] + columnHeights[target]) / 2; + final double scoreLimit = (columnHeights[source] - bestHeight).abs(); + + final List<_TaggedHeightData> sourceObjects = _toListAndAddEmpty(columnObjects[source]); + final List<_TaggedHeightData> targetObjects = _toListAndAddEmpty(columnObjects[target]); + + _TaggedHeightData? bestA, bestB; + double? bestScore; + + for (final _TaggedHeightData a in sourceObjects) { + for (final _TaggedHeightData b in targetObjects) { + if (a.index == _emptyElement && b.index == _emptyElement) { + continue; + } else { + final double score = + (columnHeights[source] - a.height + b.height - bestHeight) + .abs(); + if (score < scoreLimit - _deviationImprovementThreshold) { + success = true; + if (bestScore == null || score < bestScore) { + bestScore = score; + bestA = a; + bestB = b; + } + } + } + } + } + + if (!success) { + ++failedMoves; + } else { + failedMoves = 0; + + // Switch A and B. + if (bestA != null && bestA.index != _emptyElement) { + columnObjects[source].remove(bestA); + columnObjects[target].add(bestA); + } + if (bestB != null && bestB.index != _emptyElement) { + columnObjects[target].remove(bestB); + columnObjects[source].add(bestB); + } + columnHeights[source] += bestB!.height - bestA!.height; + columnHeights[target] += bestA.height - bestB.height; + } + + // If no two columns' heights can be made closer by switching + // elements, the layout is sufficiently balanced. + if (failedMoves >= columnCount * (columnCount - 1) ~/ 2) { + return; + } + } + } + } +} + +/// Given a list of numbers [data], representing the heights of each image, +/// and a list of numbers [biases], representing the heights of the space +/// above each column, [_balancedDistribution] returns a layout of [data] +/// so that the height of each column is sufficiently close to each other, +/// represented as a list of lists of integers, each integer being an ID +/// for a product. +List> _balancedDistribution({ + required int columnCount, + required List data, + required List biases, +}) { + assert(biases.length == columnCount); + + final List> columnObjects = List>.generate( + columnCount, (int column) => <_TaggedHeightData>{}); + + final List columnHeights = List.from(biases); + + for (int i = 0; i < data.length; ++i) { + final int column = i % columnCount; + columnHeights[column] += data[i]; + columnObjects[column].add(_TaggedHeightData(index: i, height: data[i])); + } + + _iterateUntilBalanced(columnObjects, columnHeights); + + return >[ + for (final Set<_TaggedHeightData> column in columnObjects) + [for (final _TaggedHeightData object in column) object.index]..sort(), + ]; +} + +/// Generates a balanced layout for [columnCount] columns, +/// with products specified by the list [products], +/// where the larger images have width [largeImageWidth] +/// and the smaller images have width [smallImageWidth]. +/// The current [context] is also given to allow caching. +List> balancedLayout({ + required BuildContext context, + required int columnCount, + required List products, + required double largeImageWidth, + required double smallImageWidth, +}) { + final String encodedParameters = _encodeParameters( + columnCount: columnCount, + products: products, + largeImageWidth: largeImageWidth, + smallImageWidth: smallImageWidth, + ); + + // Check if this layout is cached. + if (LayoutCache.of(context).containsKey(encodedParameters)) { + return _generateLayout( + products: products, + layout: LayoutCache.of(context)[encodedParameters]!, + ); + } + + final List productHeights = [ + for (final Product product in products) + 1 / product.assetAspectRatio * (largeImageWidth + smallImageWidth) / 2 + + productCardAdditionalHeight, + ]; + + final List> layout = _balancedDistribution( + columnCount: columnCount, + data: productHeights, + biases: List.generate( + columnCount, + (int column) => (column.isEven ? 0 : columnTopSpace), + ), + ); + + // Add tailored layout to cache. + + LayoutCache.of(context)[encodedParameters] = layout; + + final List> result = _generateLayout( + products: products, + layout: layout, + ); + + return result; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/cut_corners_border.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/cut_corners_border.dart new file mode 100644 index 0000000000000000000000000000000000000000..7dcfff1a3e3369b2fe9799338cad5c8e398a64c6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/cut_corners_border.dart @@ -0,0 +1,113 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui' show lerpDouble; + +import 'package:flutter/material.dart'; + +class CutCornersBorder extends OutlineInputBorder { + const CutCornersBorder({ + super.borderSide, + super.borderRadius = const BorderRadius.all(Radius.circular(2)), + this.cut = 7, + super.gapPadding = 2, + }); + + @override + CutCornersBorder copyWith({ + BorderSide? borderSide, + BorderRadius? borderRadius, + double? gapPadding, + double? cut, + }) { + return CutCornersBorder( + borderSide: borderSide ?? this.borderSide, + borderRadius: borderRadius ?? this.borderRadius, + gapPadding: gapPadding ?? this.gapPadding, + cut: cut ?? this.cut, + ); + } + + final double cut; + + @override + ShapeBorder? lerpFrom(ShapeBorder? a, double t) { + if (a is CutCornersBorder) { + final CutCornersBorder outline = a; + return CutCornersBorder( + borderRadius: BorderRadius.lerp(outline.borderRadius, borderRadius, t)!, + borderSide: BorderSide.lerp(outline.borderSide, borderSide, t), + cut: cut, + gapPadding: outline.gapPadding, + ); + } + return super.lerpFrom(a, t); + } + + @override + ShapeBorder? lerpTo(ShapeBorder? b, double t) { + if (b is CutCornersBorder) { + final CutCornersBorder outline = b; + return CutCornersBorder( + borderRadius: BorderRadius.lerp(borderRadius, outline.borderRadius, t)!, + borderSide: BorderSide.lerp(borderSide, outline.borderSide, t), + cut: cut, + gapPadding: outline.gapPadding, + ); + } + return super.lerpTo(b, t); + } + + Path _notchedCornerPath(Rect center, [double start = 0, double extent = 0]) { + final Path path = Path(); + if (start > 0 || extent > 0) { + path.relativeMoveTo(extent + start, center.top); + _notchedSidesAndBottom(center, path); + path + ..lineTo(center.left + cut, center.top) + ..lineTo(start, center.top); + } else { + path.moveTo(center.left + cut, center.top); + _notchedSidesAndBottom(center, path); + path.lineTo(center.left + cut, center.top); + } + return path; + } + + Path _notchedSidesAndBottom(Rect center, Path path) { + return path + ..lineTo(center.right - cut, center.top) + ..lineTo(center.right, center.top + cut) + ..lineTo(center.right, center.top + center.height - cut) + ..lineTo(center.right - cut, center.top + center.height) + ..lineTo(center.left + cut, center.top + center.height) + ..lineTo(center.left, center.top + center.height - cut) + ..lineTo(center.left, center.top + cut); + } + + @override + void paint( + Canvas canvas, + Rect rect, { + double? gapStart, + double gapExtent = 0, + double gapPercentage = 0, + TextDirection? textDirection, + }) { + assert(gapPercentage >= 0 && gapPercentage <= 1); + + final Paint paint = borderSide.toPaint(); + final RRect outer = borderRadius.toRRect(rect); + if (gapStart == null || gapExtent <= 0 || gapPercentage == 0) { + canvas.drawPath(_notchedCornerPath(outer.middleRect), paint); + } else { + final double extent = lerpDouble(0.0, gapExtent + gapPadding * 2, gapPercentage)!; + final double start = switch (textDirection!) { + TextDirection.rtl => gapStart + gapPadding - extent, + TextDirection.ltr => gapStart - gapPadding, + }; + canvas.drawPath(_notchedCornerPath(outer.middleRect, start, extent), paint); + } + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart new file mode 100644 index 0000000000000000000000000000000000000000..7a778c8ede1cca3a06d2f811556202159bc43dba --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../model/product.dart'; +import 'product_card.dart'; + +/// Height of the text below each product card. +const double productCardAdditionalHeight = 84.0 * 2; + +/// Height of the divider between product cards. +const double productCardDividerHeight = 84.0; + +/// Height of the space at the top of every other column. +const double columnTopSpace = 84.0; + +class DesktopProductCardColumn extends StatelessWidget { + const DesktopProductCardColumn({ + super.key, + required this.alignToEnd, + required this.startLarge, + required this.lowerStart, + required this.products, + required this.largeImageWidth, + required this.smallImageWidth, + }); + + final List products; + + final bool alignToEnd; + final bool startLarge; + final bool lowerStart; + + final double largeImageWidth; + final double smallImageWidth; + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + final int currentColumnProductCount = products.length; + final int currentColumnWidgetCount = + max(2 * currentColumnProductCount - 1, 0); + + return SizedBox( + width: largeImageWidth, + child: Column( + crossAxisAlignment: + alignToEnd ? CrossAxisAlignment.end : CrossAxisAlignment.start, + children: [ + if (lowerStart) Container(height: columnTopSpace), + ...List.generate(currentColumnWidgetCount, (int index) { + Widget card; + if (index.isEven) { + // This is a product. + final int productCardIndex = index ~/ 2; + card = DesktopProductCard( + product: products[productCardIndex], + imageWidth: startLarge + ? ((productCardIndex.isEven) + ? largeImageWidth + : smallImageWidth) + : ((productCardIndex.isEven) + ? smallImageWidth + : largeImageWidth), + ); + } else { + // This is just a divider. + card = Container( + height: productCardDividerHeight, + ); + } + return RepaintBoundary(child: card); + }), + ], + ), + ); + }); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart new file mode 100644 index 0000000000000000000000000000000000000000..2f0850ec351dd3de36eff76e9f3f2213ad9cdd96 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +class LayoutCache extends InheritedWidget { + const LayoutCache({ + super.key, + required this.layouts, + required super.child, + }); + + static Map>> of(BuildContext context) { + return context.dependOnInheritedWidgetOfExactType()!.layouts; + } + + final Map>> layouts; + + @override + bool updateShouldNotify(LayoutCache oldWidget) => true; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart new file mode 100644 index 0000000000000000000000000000000000000000..ff2c3a73a0acf13ac73b768782e2a93e925399f8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart @@ -0,0 +1,148 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; +import 'package:scoped_model/scoped_model.dart'; + +import '../../../gallery_localizations.dart'; +import '../../../layout/adaptive.dart'; +import '../../../layout/image_placeholder.dart'; +import '../model/app_state_model.dart'; +import '../model/product.dart'; + +class MobileProductCard extends StatelessWidget { + const MobileProductCard({ + super.key, + this.imageAspectRatio = 33 / 49, + required this.product, + }) : assert(imageAspectRatio > 0); + + final double imageAspectRatio; + final Product product; + + static const double defaultTextBoxHeight = 65; + + @override + Widget build(BuildContext context) { + return Semantics( + container: true, + button: true, + enabled: true, + child: _buildProductCard( + context: context, + product: product, + imageAspectRatio: imageAspectRatio, + ), + ); + } +} + +class DesktopProductCard extends StatelessWidget { + const DesktopProductCard({ + super.key, + required this.product, + required this.imageWidth, + }); + + final Product product; + final double imageWidth; + + @override + Widget build(BuildContext context) { + return _buildProductCard( + context: context, + product: product, + imageWidth: imageWidth, + ); + } +} + +Widget _buildProductCard({ + required BuildContext context, + required Product product, + double? imageWidth, + double? imageAspectRatio, +}) { + final bool isDesktop = isDisplayDesktop(context); + // In case of desktop , imageWidth is passed through [DesktopProductCard] in + // case of mobile imageAspectRatio is passed through [MobileProductCard]. + // Below assert is so that correct combination should always be present. + assert(isDesktop && imageWidth != null || + !isDesktop && imageAspectRatio != null); + + final NumberFormat formatter = NumberFormat.simpleCurrency( + decimalDigits: 0, + locale: Localizations.localeOf(context).toString(), + ); + final ThemeData theme = Theme.of(context); + final FadeInImagePlaceholder imageWidget = FadeInImagePlaceholder( + image: AssetImage(product.assetName, package: product.assetPackage), + placeholder: Container( + color: Colors.black.withOpacity(0.1), + width: imageWidth, + height: imageWidth == null ? null : imageWidth / product.assetAspectRatio, + ), + fit: BoxFit.cover, + width: isDesktop ? imageWidth : null, + height: isDesktop ? null : double.infinity, + excludeFromSemantics: true, + ); + + return ScopedModelDescendant( + builder: (BuildContext context, Widget? child, AppStateModel model) { + return Semantics( + hint: GalleryLocalizations.of(context)! + .shrineScreenReaderProductAddToCart, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + model.addProductToCart(product.id); + }, + child: child, + ), + ), + ); + }, + child: Stack( + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + if (isDesktop) imageWidget else AspectRatio( + aspectRatio: imageAspectRatio!, + child: imageWidget, + ), + SizedBox( + child: Column( + children: [ + const SizedBox(height: 23), + SizedBox( + width: imageWidth, + child: Text( + product.name(context), + style: theme.textTheme.labelLarge, + softWrap: true, + textAlign: TextAlign.center, + ), + ), + const SizedBox(height: 4), + Text( + formatter.format(product.price), + style: theme.textTheme.bodySmall, + ), + ], + ), + ), + ], + ), + const Padding( + padding: EdgeInsets.all(16), + child: Icon(Icons.add_shopping_cart), + ), + ], + ), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart new file mode 100644 index 0000000000000000000000000000000000000000..ee27e0694b4aa17a1c485e87fb345106ff0031f8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../model/product.dart'; +import 'product_card.dart'; + +class TwoProductCardColumn extends StatelessWidget { + const TwoProductCardColumn({ + super.key, + required this.bottom, + this.top, + required this.imageAspectRatio, + }); + + static const double spacerHeight = 44; + static const double horizontalPadding = 28; + + final Product bottom; + final Product? top; + final double imageAspectRatio; + + @override + Widget build(BuildContext context) { + return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + return ListView( + physics: const ClampingScrollPhysics(), + children: [ + Padding( + padding: const EdgeInsetsDirectional.only(start: horizontalPadding), + child: top != null + ? MobileProductCard( + imageAspectRatio: imageAspectRatio, + product: top!, + ) + : const SizedBox( + height: spacerHeight, + ), + ), + const SizedBox(height: spacerHeight), + Padding( + padding: const EdgeInsetsDirectional.only(end: horizontalPadding), + child: MobileProductCard( + imageAspectRatio: imageAspectRatio, + product: bottom, + ), + ), + ], + ); + }); + } +} + +class OneProductCardColumn extends StatelessWidget { + const OneProductCardColumn({ + super.key, + required this.product, + required this.reverse, + }); + + final Product product; + + // Whether the product column should align to the bottom. + final bool reverse; + + @override + Widget build(BuildContext context) { + return ListView( + physics: const ClampingScrollPhysics(), + reverse: reverse, + children: [ + const SizedBox( + height: 40, + ), + MobileProductCard( + product: product, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart new file mode 100644 index 0000000000000000000000000000000000000000..fe74ebebec1f8f4a960d50e04eca63d06148d551 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart @@ -0,0 +1,108 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:google_fonts/google_fonts.dart'; + +import '../../layout/letter_spacing.dart'; +import 'colors.dart'; +import 'supplemental/cut_corners_border.dart'; + +const double defaultLetterSpacing = 0.03; +const double mediumLetterSpacing = 0.04; +const double largeLetterSpacing = 1.0; + +final ThemeData shrineTheme = _buildShrineTheme(); + +IconThemeData _customIconTheme(IconThemeData original) { + return original.copyWith(color: shrineBrown900); +} + +ThemeData _buildShrineTheme() { + final ThemeData base = ThemeData.light(); + return base.copyWith( + appBarTheme: const AppBarTheme( + systemOverlayStyle: SystemUiOverlayStyle.dark, + elevation: 0, + ), + scaffoldBackgroundColor: shrineBackgroundWhite, + cardColor: shrineBackgroundWhite, + primaryIconTheme: _customIconTheme(base.iconTheme), + inputDecorationTheme: const InputDecorationTheme( + border: CutCornersBorder( + borderSide: BorderSide(color: shrineBrown900, width: 0.5), + ), + contentPadding: EdgeInsets.symmetric(vertical: 20, horizontal: 16), + ), + textTheme: _buildShrineTextTheme(base.textTheme), + textSelectionTheme: const TextSelectionThemeData( + selectionColor: shrinePink100, + ), + primaryTextTheme: _buildShrineTextTheme(base.primaryTextTheme), + iconTheme: _customIconTheme(base.iconTheme), + colorScheme: _shrineColorScheme.copyWith( + error: shrineErrorRed, + primary: shrinePink100, + ), + ); +} + +TextTheme _buildShrineTextTheme(TextTheme base) { + return GoogleFonts.rubikTextTheme(base + .copyWith( + headlineSmall: base.headlineSmall!.copyWith( + fontWeight: FontWeight.w500, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + titleLarge: base.titleLarge!.copyWith( + fontSize: 18, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodySmall: base.bodySmall!.copyWith( + fontWeight: FontWeight.w400, + fontSize: 14, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodyLarge: base.bodyLarge!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 16, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodyMedium: base.bodyMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + titleMedium: base.titleMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + headlineMedium: base.headlineMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + labelLarge: base.labelLarge!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 14, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + ) + .apply( + displayColor: shrineBrown900, + bodyColor: shrineBrown900, + )); +} + +const ColorScheme _shrineColorScheme = ColorScheme( + primary: shrinePink100, + primaryContainer: shrineBrown900, + secondary: shrinePink50, + secondaryContainer: shrineBrown900, + surface: shrineSurfaceWhite, + background: shrineBackgroundWhite, + error: shrineErrorRed, + onPrimary: shrineBrown900, + onSecondary: shrineBrown900, + onSurface: shrineBrown900, + onBackground: shrineBrown900, + onError: shrineSurfaceWhite, + brightness: Brightness.light, +); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart new file mode 100644 index 0000000000000000000000000000000000000000..d14a7e63f125c51839bc550c69d554cb197d6d73 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import 'colors.dart'; + +const List _vertices = [ + Offset(0, -14), + Offset(-17, 14), + Offset(17, 14), + Offset(0, -14), + Offset(0, -7.37), + Offset(10.855, 10.48), + Offset(-10.855, 10.48), + Offset(0, -7.37), +]; + +class TriangleCategoryIndicator extends CustomPainter { + const TriangleCategoryIndicator( + this.triangleWidth, + this.triangleHeight, + ); + + final double triangleWidth; + final double triangleHeight; + + @override + void paint(Canvas canvas, Size size) { + final Path myPath = Path() + ..addPolygon( + List.from(_vertices.map((Offset vertex) { + return Offset(size.width, size.height) / 2 + + Offset(vertex.dx * triangleWidth / 34, + vertex.dy * triangleHeight / 28); + })), + true, + ); + final Paint myPaint = Paint()..color = shrinePink400; + canvas.drawPath(myPath, myPaint); + } + + @override + bool shouldRepaint(TriangleCategoryIndicator oldDelegate) => false; + + @override + bool shouldRebuildSemantics(TriangleCategoryIndicator oldDelegate) => false; +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart new file mode 100644 index 0000000000000000000000000000000000000000..5a587e4bc568446875deef57f0cd7f7658db5556 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../data/gallery_options.dart'; +import '../../gallery_localizations.dart'; +import 'home.dart'; +import 'routes.dart' as routes; + +const Color _primaryColor = Color(0xFF6200EE); + +class StarterApp extends StatelessWidget { + const StarterApp({super.key}); + + static const String defaultRoute = routes.defaultRoute; + + @override + Widget build(BuildContext context) { + return MaterialApp( + restorationScopeId: 'starter_app', + title: GalleryLocalizations.of(context)!.starterAppTitle, + debugShowCheckedModeBanner: false, + localizationsDelegates: GalleryLocalizations.localizationsDelegates, + supportedLocales: GalleryLocalizations.supportedLocales, + locale: GalleryOptions.of(context).locale, + initialRoute: StarterApp.defaultRoute, + routes: { + StarterApp.defaultRoute: (BuildContext context) => const _Home(), + }, + theme: ThemeData( + highlightColor: Colors.transparent, + colorScheme: const ColorScheme( + primary: _primaryColor, + primaryContainer: Color(0xFF3700B3), + secondary: Color(0xFF03DAC6), + secondaryContainer: Color(0xFF018786), + background: Colors.white, + surface: Colors.white, + onBackground: Colors.black, + error: Color(0xFFB00020), + onError: Colors.white, + onPrimary: Colors.white, + onSecondary: Colors.black, + onSurface: Colors.black, + brightness: Brightness.light, + ), + dividerTheme: const DividerThemeData( + thickness: 1, + color: Color(0xFFE5E5E5), + ), + platform: GalleryOptions.of(context).platform, + ), + ); + } +} + +class _Home extends StatelessWidget { + const _Home(); + + @override + Widget build(BuildContext context) { + return const ApplyTextOptions( + child: HomePage(), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart new file mode 100644 index 0000000000000000000000000000000000000000..fb84874d9a631a9e0ef4bea55d2ada9acefa4988 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart @@ -0,0 +1,202 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +import '../../gallery_localizations.dart'; +import '../../layout/adaptive.dart'; + +const double appBarDesktopHeight = 128.0; + +class HomePage extends StatelessWidget { + const HomePage({super.key}); + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final bool isDesktop = isDisplayDesktop(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + final SafeArea body = SafeArea( + child: Padding( + padding: isDesktop + ? const EdgeInsets.symmetric(horizontal: 72, vertical: 48) + : const EdgeInsets.symmetric(horizontal: 16, vertical: 24), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SelectableText( + localizations.starterAppGenericHeadline, + style: textTheme.displaySmall!.copyWith( + color: colorScheme.onSecondary, + ), + ), + const SizedBox(height: 10), + SelectableText( + localizations.starterAppGenericSubtitle, + style: textTheme.titleMedium, + ), + const SizedBox(height: 48), + SelectableText( + localizations.starterAppGenericBody, + style: textTheme.bodyLarge, + ), + ], + ), + ), + ); + + if (isDesktop) { + return Row( + children: [ + const ListDrawer(), + const VerticalDivider(width: 1), + Expanded( + child: Scaffold( + appBar: const AdaptiveAppBar( + isDesktop: true, + ), + body: body, + floatingActionButton: FloatingActionButton.extended( + heroTag: 'Extended Add', + onPressed: () {}, + label: Text( + localizations.starterAppGenericButton, + style: TextStyle(color: colorScheme.onSecondary), + ), + icon: Icon(Icons.add, color: colorScheme.onSecondary), + tooltip: localizations.starterAppTooltipAdd, + ), + ), + ), + ], + ); + } else { + return Scaffold( + appBar: const AdaptiveAppBar(), + body: body, + drawer: const ListDrawer(), + floatingActionButton: FloatingActionButton( + heroTag: 'Add', + onPressed: () {}, + tooltip: localizations.starterAppTooltipAdd, + child: Icon( + Icons.add, + color: Theme.of(context).colorScheme.onSecondary, + ), + ), + ); + } + } +} + +class AdaptiveAppBar extends StatelessWidget implements PreferredSizeWidget { + const AdaptiveAppBar({ + super.key, + this.isDesktop = false, + }); + + final bool isDesktop; + + @override + Size get preferredSize => isDesktop + ? const Size.fromHeight(appBarDesktopHeight) + : const Size.fromHeight(kToolbarHeight); + + @override + Widget build(BuildContext context) { + final ThemeData themeData = Theme.of(context); + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return AppBar( + automaticallyImplyLeading: !isDesktop, + title: isDesktop + ? null + : SelectableText(localizations.starterAppGenericTitle), + bottom: isDesktop + ? PreferredSize( + preferredSize: const Size.fromHeight(26), + child: Container( + alignment: AlignmentDirectional.centerStart, + margin: const EdgeInsetsDirectional.fromSTEB(72, 0, 0, 22), + child: SelectableText( + localizations.starterAppGenericTitle, + style: themeData.textTheme.titleLarge!.copyWith( + color: themeData.colorScheme.onPrimary, + ), + ), + ), + ) + : null, + actions: [ + IconButton( + icon: const Icon(Icons.share), + tooltip: localizations.starterAppTooltipShare, + onPressed: () {}, + ), + IconButton( + icon: const Icon(Icons.favorite), + tooltip: localizations.starterAppTooltipFavorite, + onPressed: () {}, + ), + IconButton( + icon: const Icon(Icons.search), + tooltip: localizations.starterAppTooltipSearch, + onPressed: () {}, + ), + ], + ); + } +} + +class ListDrawer extends StatefulWidget { + const ListDrawer({super.key}); + + @override + State createState() => _ListDrawerState(); +} + +class _ListDrawerState extends State { + static const int numItems = 9; + + int selectedItem = 0; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; + return Drawer( + child: SafeArea( + child: ListView( + children: [ + ListTile( + title: SelectableText( + localizations.starterAppTitle, + style: textTheme.titleLarge, + ), + subtitle: SelectableText( + localizations.starterAppGenericSubtitle, + style: textTheme.bodyMedium, + ), + ), + const Divider(), + ...Iterable.generate(numItems).toList().map((int i) { + return ListTile( + selected: i == selectedItem, + leading: const Icon(Icons.favorite), + title: Text( + localizations.starterAppDrawerItem(i + 1), + ), + onTap: () { + setState(() { + selectedItem = i; + }); + }, + ); + }), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/routes.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/routes.dart new file mode 100644 index 0000000000000000000000000000000000000000..3cf919bcbb5d08857060bafac1b73f7d83ca7670 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/studies/starter/routes.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String defaultRoute = '/starter'; diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c976d96181841d92f3489bd8a8f5d7bcf58cbe6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart @@ -0,0 +1,93 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; + +class GalleryThemeData { + static const Color _lightFillColor = Colors.black; + static const Color _darkFillColor = Colors.white; + + static final Color _lightFocusColor = Colors.black.withOpacity(0.12); + static final Color _darkFocusColor = Colors.white.withOpacity(0.12); + + static ThemeData lightThemeData = + themeData(lightColorScheme, _lightFocusColor); + static ThemeData darkThemeData = themeData(darkColorScheme, _darkFocusColor); + + static ThemeData themeData(ColorScheme colorScheme, Color focusColor) { + return ThemeData( + colorScheme: colorScheme, + textTheme: _textTheme, + appBarTheme: AppBarTheme( + backgroundColor: colorScheme.background, + elevation: 0, + iconTheme: IconThemeData(color: colorScheme.primary), + ), + iconTheme: IconThemeData(color: colorScheme.onPrimary), + canvasColor: colorScheme.background, + scaffoldBackgroundColor: colorScheme.background, + highlightColor: Colors.transparent, + focusColor: focusColor, + snackBarTheme: SnackBarThemeData( + behavior: SnackBarBehavior.floating, + backgroundColor: Color.alphaBlend( + _lightFillColor.withOpacity(0.80), + _darkFillColor, + ), + contentTextStyle: _textTheme.titleMedium!.apply(color: _darkFillColor), + ), + ); + } + + static const ColorScheme lightColorScheme = ColorScheme( + primary: Color(0xFFB93C5D), + primaryContainer: Color(0xFF117378), + secondary: Color(0xFFEFF3F3), + secondaryContainer: Color(0xFFFAFBFB), + background: Color(0xFFE6EBEB), + surface: Color(0xFFFAFBFB), + onBackground: Colors.white, + error: _lightFillColor, + onError: _lightFillColor, + onPrimary: _lightFillColor, + onSecondary: Color(0xFF322942), + onSurface: Color(0xFF241E30), + brightness: Brightness.light, + ); + + static const ColorScheme darkColorScheme = ColorScheme( + primary: Color(0xFFFF8383), + primaryContainer: Color(0xFF1CDEC9), + secondary: Color(0xFF4D1F7C), + secondaryContainer: Color(0xFF451B6F), + background: Color(0xFF241E30), + surface: Color(0xFF1F1929), + onBackground: Color(0x0DFFFFFF), // White with 0.05 opacity + error: _darkFillColor, + onError: _darkFillColor, + onPrimary: _darkFillColor, + onSecondary: _darkFillColor, + onSurface: _darkFillColor, + brightness: Brightness.dark, + ); + + static const FontWeight _regular = FontWeight.w400; + static const FontWeight _medium = FontWeight.w500; + static const FontWeight _semiBold = FontWeight.w600; + static const FontWeight _bold = FontWeight.w700; + + static final TextTheme _textTheme = TextTheme( + headlineMedium: GoogleFonts.montserrat(fontWeight: _bold, fontSize: 20.0), + bodySmall: GoogleFonts.oswald(fontWeight: _semiBold, fontSize: 16.0), + headlineSmall: GoogleFonts.oswald(fontWeight: _medium, fontSize: 16.0), + titleMedium: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 16.0), + labelSmall: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 12.0), + bodyLarge: GoogleFonts.montserrat(fontWeight: _regular, fontSize: 14.0), + titleSmall: GoogleFonts.montserrat(fontWeight: _medium, fontSize: 14.0), + bodyMedium: GoogleFonts.montserrat(fontWeight: _regular, fontSize: 16.0), + titleLarge: GoogleFonts.montserrat(fontWeight: _bold, fontSize: 16.0), + labelLarge: GoogleFonts.montserrat(fontWeight: _semiBold, fontSize: 14.0), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart new file mode 100644 index 0000000000000000000000000000000000000000..de2b98d27684ff291700ef1e09d7b9e351a600b3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; + +class MaterialDemoThemeData { + static final ThemeData themeData = ThemeData( + colorScheme: _colorScheme.copyWith( + background: Colors.white, + ), + canvasColor: _colorScheme.background, + highlightColor: Colors.transparent, + indicatorColor: _colorScheme.onPrimary, + scaffoldBackgroundColor: _colorScheme.background, + secondaryHeaderColor: _colorScheme.background, + typography: Typography.material2018( + platform: defaultTargetPlatform, + ), + visualDensity: VisualDensity.standard, + // Component themes + appBarTheme: AppBarTheme( + color: _colorScheme.primary, + iconTheme: IconThemeData(color: _colorScheme.onPrimary), + ), + bottomAppBarTheme: BottomAppBarTheme( + color: _colorScheme.primary, + ), + checkboxTheme: CheckboxThemeData( + fillColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) + ? _colorScheme.primary + : null; + }), + ), + radioTheme: RadioThemeData( + fillColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) + ? _colorScheme.primary + : null; + }), + ), + snackBarTheme: const SnackBarThemeData( + behavior: SnackBarBehavior.floating, + ), + switchTheme: SwitchThemeData( + thumbColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) + ? _colorScheme.primary + : null; + }), + trackColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) + ? _colorScheme.primary.withAlpha(0x80) + : null; + }), + )); + + static const ColorScheme _colorScheme = ColorScheme( + primary: Color(0xFF6200EE), + primaryContainer: Color(0xFF6200EE), + secondary: Color(0xFFFF5722), + secondaryContainer: Color(0xFFFF5722), + background: Colors.white, + surface: Color(0xFFF2F2F2), + onBackground: Colors.black, + onSurface: Colors.black, + error: Colors.red, + onError: Colors.white, + onPrimary: Colors.white, + onSecondary: Colors.white, + brightness: Brightness.light, + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..fe9cf2d6bd2cef0896ce3814dfae106f6264c3c1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart @@ -0,0 +1,71 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:collection/collection.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:gallery/data/demos.dart'; +import 'package:gallery/gallery_localizations_en.dart'; + +bool _isUnique(List list) { + final Set covered = {}; + for (final String element in list) { + if (covered.contains(element)) { + return false; + } else { + covered.add(element); + } + } + return true; +} + +const ListEquality _stringListEquality = ListEquality(); + +void main() { + test('_isUnique works correctly', () { + expect(_isUnique(['a', 'b', 'c']), true); + expect(_isUnique(['a', 'c', 'a', 'b']), false); + expect(_isUnique(['a']), true); + expect(_isUnique([]), true); + }); + + test('Demo descriptions are unique and correct', () { + final List allDemos = Demos.all(GalleryLocalizationsEn()); + final List allDemoDescriptions = allDemos.map((GalleryDemo d) => d.describe).toList(); + + expect(_isUnique(allDemoDescriptions), true); + expect( + _stringListEquality.equals( + allDemoDescriptions, + Demos.allDescriptions(), + ), + true, + ); + }); + + test('Special demo descriptions are correct', () { + final List allDemos = Demos.allDescriptions(); + + final List specialDemos = [ + 'shrine@study', + 'rally@study', + 'crane@study', + 'fortnightly@study', + 'bottom-navigation@material', + 'button@material', + 'card@material', + 'chip@material', + 'dialog@material', + 'pickers@material', + 'cupertino-alerts@cupertino', + 'colors@other', + 'progress-indicator@material', + 'cupertino-activity-indicator@cupertino', + 'colors@other', + ]; + + for (final String specialDemo in specialDemos) { + expect(allDemos.contains(specialDemo), true); + } + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..da0ca1b5eab7a7aacbdcb9dc27f28d0996ac98a9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart @@ -0,0 +1,36 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:gallery/main.dart'; + +void main() { + testWidgets('Home page hides settings semantics when closed', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp()); + + await tester.pump(const Duration(seconds: 1)); + + expect(find.bySemanticsLabel('Settings'), findsOneWidget); + expect(find.bySemanticsLabel('Close settings'), findsNothing); + + await tester.tap(find.bySemanticsLabel('Settings')); + await tester.pump(const Duration(seconds: 1)); + + // The test no longer finds Setting and Close settings since the semantics + // are excluded when settings mode is activated. + expect(find.bySemanticsLabel('Settings'), findsNothing); + expect(find.bySemanticsLabel('Close settings'), findsOneWidget); + }); + + testWidgets('Home page list view is the primary list view', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp()); + await tester.pumpAndSettle(); + + final ListView listview = + tester.widget(find.byKey(const ValueKey('HomeListView'))); + + expect(listview.primary, true); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test/theme_test.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/theme_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..473f3a755ffa15e0c680ae7614b622b2c1cb0d82 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/theme_test.dart @@ -0,0 +1,31 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:gallery/themes/material_demo_theme_data.dart'; + +void main() { + test('verify the activeColors of toggleable widget themes are set', () async { + const Color primaryColor = Color(0xFF6200EE); + final ThemeData themeData = MaterialDemoThemeData.themeData; + + expect( + themeData.checkboxTheme.fillColor!.resolve({MaterialState.selected}), + primaryColor, + ); + expect( + themeData.radioTheme.fillColor!.resolve({MaterialState.selected}), + primaryColor, + ); + expect( + themeData.switchTheme.thumbColor!.resolve({MaterialState.selected}), + primaryColor, + ); + expect( + themeData.switchTheme.trackColor!.resolve({MaterialState.selected}), + primaryColor.withOpacity(0.5), + ); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test/utils.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/utils.dart new file mode 100644 index 0000000000000000000000000000000000000000..9218e2ee8d791cc6ccd71b82f17e3abef2ccdc23 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/utils.dart @@ -0,0 +1,6 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Replace Windows line endings with Unix line endings +String standardizeLineEndings(String str) => str.replaceAll('\r\n', '\n'); diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test/widget_test.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/widget_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..16d696cf8e2b94d048a76aab2ce3e47d66baaa04 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test/widget_test.dart @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:gallery/main.dart'; + +void main() { + testWidgets('Smoke test', (WidgetTester tester) async { + await tester.pumpWidget(const GalleryApp()); + await tester.pumpAndSettle(); + expect(find.text('Gallery'), findsOneWidget); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf.dart new file mode 100644 index 0000000000000000000000000000000000000000..6e577b44b9ac248ed2cffdab8c256773d0bbbf87 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf.dart @@ -0,0 +1,32 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:convert' show JsonEncoder; + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; +import 'package:gallery/data/demos.dart'; +import 'package:gallery/main.dart' show GalleryApp; + +// See transitions_perf_test.dart for how to run this test. + +Future _handleMessages(String? message) async { + switch (message) { + case 'demoDescriptions': + final List demoDescriptions = Demos.allDescriptions(); + return const JsonEncoder.withIndent(' ').convert(demoDescriptions); + case 'isTestingCraneOnly': + return const String.fromEnvironment('onlyCrane', defaultValue: 'false'); + case 'isTestingReplyOnly': + return const String.fromEnvironment('onlyReply', defaultValue: 'false'); + default: + throw 'unknown message'; + } +} + +void main() { + enableFlutterDriverExtension(handler: _handleMessages); + runApp(const GalleryApp(isTestMode: true)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart b/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d62371ebb08a2e78c56ee9a9c8807a2eed19d0c0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart @@ -0,0 +1,369 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert' show json; +import 'dart:io' show sleep, stdout; + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +// To run this test for all demos: +// flutter drive --profile --trace-startup -t test_driver/transitions_perf.dart -d +// To run this test for just Crane, with scrolling: +// flutter drive --profile --trace-startup -t test_driver/transitions_perf.dart -d --dart-define=onlyCrane=true +// To run this test for just Reply, with animations: +// flutter drive --profile --trace-startup -t test_driver/transitions_perf.dart -d --dart-define=onlyReply=true +// Enable semantics with the --with_semantics flag +// Note: The number of tests executed with timeline collection enabled +// significantly impacts heap size of the running app. When run with +// --trace-startup, as we do in this test, the VM stores trace events in an +// endless buffer instead of a ring buffer. + +// Demos for which timeline data will be collected using +// FlutterDriver.traceAction(). +// +// These names must match the output of GalleryDemo.describe in +// lib/data/demos.dart. +const List _profiledDemos = [ + 'reply@study', + 'shrine@study', + 'rally@study', + 'crane@study', + 'fortnightly@study', + 'bottom-navigation@material', + 'button@material', + 'card@material', + 'chip@material', + 'dialog@material', + 'pickers@material', + 'cupertino-alerts@cupertino', + 'colors@other', +]; + +// Demos that will be backed out of within FlutterDriver.runUnsynchronized(); +// +// These names must match the output of GalleryDemo.describe in +// lib/data/demos.dart. +const List _unsynchronizedDemos = [ + 'progress-indicator@material', + 'cupertino-activity-indicator@cupertino', + 'colors@other', +]; + +// Demos that will be not be launched. +// +// These names must match the output of GalleryDemo.describe in +// lib/data/demos.dart. +const List _skippedDemos = []; + +// All of the gallery demos, identified as "title@category". +// +// These names are reported by the test app, see _handleMessages() +// in transitions_perf.dart. +List _allDemos = []; + +// SerializableFinders for scrolling actions. +final SerializableFinder homeList = find.byValueKey('HomeListView'); +final SerializableFinder backButton = find.byValueKey('Back'); +final SerializableFinder galleryHeader = find.text('Gallery'); +final SerializableFinder categoriesHeader = find.text('Categories'); +final SerializableFinder craneFlyList = find.byValueKey('CraneListView-0'); + +// SerializableFinders for reply study actions. +final SerializableFinder replyFab = find.byValueKey('ReplyFab'); +final SerializableFinder replySearch = find.byValueKey('ReplySearch'); +final SerializableFinder replyEmail = find.byValueKey('ReplyEmail-0'); +final SerializableFinder replyLogo = find.byValueKey('ReplyLogo'); +final SerializableFinder replySentMailbox = find.byValueKey('Reply-Sent'); +final SerializableFinder replyExit = find.byValueKey('ReplyExit'); + +// Let overscroll animation settle on iOS after driver.scroll. +void handleOverscrollAnimation() { + sleep(const Duration(seconds: 1)); +} + +/// Scroll to the top of the app, given the current demo. Works with both mobile +/// and desktop layouts. +Future scrollToTop(SerializableFinder demoItem, FlutterDriver driver) async { + stdout.writeln('scrolling to top'); + + // Scroll to the Categories header. + await driver.scroll( + demoItem, + 0, + 5000, + const Duration(milliseconds: 200), + ); + handleOverscrollAnimation(); + + // Scroll to top. + await driver.scroll( + categoriesHeader, + 0, + 500, + const Duration(milliseconds: 200), + ); + handleOverscrollAnimation(); +} + +/// Returns a [Future] that resolves to true if the widget specified by [finder] +/// is present, false otherwise. +Future isPresent(SerializableFinder finder, FlutterDriver driver, + {Duration timeout = const Duration(seconds: 5)}) async { + try { + await driver.waitFor(finder, timeout: timeout); + return true; + } catch (exception) { + return false; + } +} + +/// Scrolls each demo into view, launches it, then returns to the +/// home screen, twice. +/// +/// Optionally specify a callback to perform further actions for each demo. +/// Optionally specify whether a scroll to top should be performed after the +/// demo has been opened twice (true by default). +Future runDemos( + List demos, + FlutterDriver driver, { + Future Function()? additionalActions, + bool scrollToTopWhenDone = true, +}) async { + String? currentDemoCategory; + late SerializableFinder demoList; + SerializableFinder? demoItem; + + for (final String demo in demos) { + if (_skippedDemos.contains(demo)) { + continue; + } + + stdout.writeln('> $demo'); + + final String demoCategory = demo.substring(demo.indexOf('@') + 1); + if (demoCategory != currentDemoCategory) { + // We've switched categories. + currentDemoCategory = demoCategory; + demoList = find.byValueKey('${demoCategory}DemoList'); + + // We may want to return to the previous category later. + // Reset its scroll (matters for desktop layout). + if (demoItem != null) { + await scrollToTop(demoItem, driver); + } + + // Scroll to the category list. + if (demoCategory != 'study') { + stdout.writeln('scrolling to $currentDemoCategory category'); + await driver.scrollUntilVisible( + homeList, + demoList, + dyScroll: -1000, + timeout: const Duration(seconds: 10), + ); + } + } + + // Scroll to demo and open it twice. + demoItem = find.byValueKey(demo); + + stdout.writeln('scrolling to demo'); + + // demoList below may be either the horizontally-scrolling Studies carousel + // or vertically scrolling Material/Cupertino/Other demo lists. + // + // The Studies carousel has scroll physics that snap items to the starting + // edge of the widget. TestDriver.scrollUntilVisible scrolls in increments + // along the x and y axes; if the distance is too small, the list snaps + // back to its previous position, if it's too large, it may scroll too far. + // To resolve this, we scroll 75% of the list width/height dimensions on + // each increment. + final DriverOffset topLeft = + await driver.getTopLeft(demoList, timeout: const Duration(seconds: 10)); + final DriverOffset bottomRight = await driver.getBottomRight(demoList, + timeout: const Duration(seconds: 10)); + final double listWidth = bottomRight.dx - topLeft.dx; + final double listHeight = bottomRight.dy - topLeft.dy; + await driver.scrollUntilVisible( + demoList, + demoItem, + dxScroll: -listWidth * 0.75, + dyScroll: -listHeight * 0.75, + alignment: 0.5, + timeout: const Duration(seconds: 10), + ); + + // We launch each demo twice to be able to measure and compare first and + // subsequent builds. + for (int i = 0; i < 2; i += 1) { + stdout.writeln('tapping demo'); + await driver.tap(demoItem); // Launch the demo + + sleep(const Duration(milliseconds: 500)); + + if (additionalActions != null) { + await additionalActions(); + } + + if (_unsynchronizedDemos.contains(demo)) { + await driver.runUnsynchronized(() async { + await driver.tap(backButton); + }); + } else { + await driver.tap(backButton); + } + } + stdout.writeln('< Success'); + } + + if (scrollToTopWhenDone) { + await scrollToTop(demoItem!, driver); + } +} + +void main([List args = const []]) { + group('Flutter Gallery transitions', () { + late FlutterDriver driver; + + late bool isTestingCraneOnly; + late bool isTestingReplyOnly; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + + // See _handleMessages() in transitions_perf.dart. + _allDemos = List.from(json.decode( + await driver.requestData('demoDescriptions'), + ) as List); + if (_allDemos.isEmpty) { + throw 'no demo names found'; + } + + // See _handleMessages() in transitions_perf.dart. + isTestingCraneOnly = + await driver.requestData('isTestingCraneOnly') == 'true'; + + // See _handleMessages() in transitions_perf.dart. + isTestingReplyOnly = + await driver.requestData('isTestingReplyOnly') == 'true'; + + if (args.contains('--with_semantics')) { + stdout.writeln('Enabling semantics...'); + await driver.setSemantics(true); + } + + await isPresent(galleryHeader, driver); + }); + + tearDownAll(() async { + await driver.close(); + + stdout.writeln( + 'Timeline summaries for profiled demos have been output to the build/ directory.'); + }); + + test('only Crane', () async { + if (!isTestingCraneOnly) { + return; + } + + // Collect timeline data for just the Crane study. + final Timeline timeline = await driver.traceAction( + () async { + await runDemos( + ['crane@study'], + driver, + additionalActions: () async => driver.scroll( + craneFlyList, + 0, + -1000, + const Duration(seconds: 1), + ), + scrollToTopWhenDone: false, + ); + }, + streams: const [ + TimelineStream.dart, + TimelineStream.embedder, + ], + ); + + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('transitions-crane', pretty: true); + }, timeout: Timeout.none); + + test('only Reply', () async { + if (!isTestingReplyOnly) { + return; + } + + // Collect timeline data for just the Crane study. + final Timeline timeline = await driver.traceAction( + () async { + await runDemos( + ['reply@study'], + driver, + additionalActions: () async { + // Tap compose fab to trigger open container transform/fade through + await driver.tap(replyFab); + // Exit compose page + await driver.tap(replyExit); + // Tap search icon to trigger shared axis transition + await driver.tap(replySearch); + // Exit search page + await driver.tap(replyExit); + // Tap on email to trigger open container transform + await driver.tap(replyEmail); + // Exit email page + await driver.tap(replyExit); + // Tap Reply logo to open bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap Reply logo to close bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap Reply logo to open bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap sent mailbox destination to trigger fade through transition + await driver.tap(replySentMailbox); + }, + scrollToTopWhenDone: false, + ); + }, + streams: const [ + TimelineStream.dart, + TimelineStream.embedder, + ], + ); + + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('transitions-reply', pretty: true); + }, timeout: Timeout.none); + + test('all demos', () async { + if (isTestingCraneOnly || isTestingReplyOnly) { + return; + } + + // Collect timeline data for just a limited set of demos to avoid OOMs. + final Timeline timeline = await driver.traceAction( + () async { + await runDemos(_profiledDemos, driver); + }, + streams: const [ + TimelineStream.dart, + TimelineStream.embedder, + ], + retainPriorEvents: true, + ); + + final TimelineSummary summary = TimelineSummary.summarize(timeline); + await summary.writeTimelineToFile('transitions', pretty: true); + + // Execute the remaining tests. + final Set unprofiledDemos = Set.from(_allDemos) + ..removeAll(_profiledDemos); + await runDemos(unprofiledDemos.toList(), driver); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..8fb4ed48623d60e26af0d878bcb2996f172a8375 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/build.gradle @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.non_nullable" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/debug/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..4ef3b6d9d2eb64d5205cb6782d68d4599be96784 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb51b7877efaf7ff7818d2dba7785e4d669901b3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/kotlin/com/example/non_nullable/MainActivity.kt b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/kotlin/com/example/non_nullable/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..60bdc72f0ad4d187bb06f3a03c0e4b3594f24248 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/kotlin/com/example/non_nullable/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.non_nullable + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/drawable/launch_background.xml b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..3727f9e00a029f25d630f317fcb835328d0e78b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..09d4391482be68e9e4a07fab769b5de337d16eb1 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/values/styles.xml b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..aac0d5ba20bf74a47077dbba49772e6a25a73530 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/main/res/values/styles.xml @@ -0,0 +1,15 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/profile/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..4ef3b6d9d2eb64d5205cb6782d68d4599be96784 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..5e0f607feb0aaf79295d2b5c9bd6b6c3943e6799 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-app.lockfile @@ -0,0 +1,129 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna:5.6.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.7.10=kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-reflect:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-script-runtime:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadata +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadata +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadata +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:atomicfu:0.16.3=debugApiDependenciesMetadata,debugImplementationDependenciesMetadata,profileApiDependenciesMetadata,profileImplementationDependenciesMetadata,releaseApiDependenciesMetadata,releaseImplementationDependenciesMetadata +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,lintClassPath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestApiDependenciesMetadata,androidTestCompileOnlyDependenciesMetadata,androidTestDebugApiDependenciesMetadata,androidTestDebugCompileOnlyDependenciesMetadata,androidTestDebugImplementationDependenciesMetadata,androidTestDebugIntransitiveDependenciesMetadata,androidTestDebugRuntimeOnlyDependenciesMetadata,androidTestImplementationDependenciesMetadata,androidTestIntransitiveDependenciesMetadata,androidTestProfileApiDependenciesMetadata,androidTestProfileCompileOnlyDependenciesMetadata,androidTestProfileImplementationDependenciesMetadata,androidTestProfileIntransitiveDependenciesMetadata,androidTestProfileRuntimeOnlyDependenciesMetadata,androidTestReleaseApiDependenciesMetadata,androidTestReleaseCompileOnlyDependenciesMetadata,androidTestReleaseImplementationDependenciesMetadata,androidTestReleaseIntransitiveDependenciesMetadata,androidTestReleaseRuntimeOnlyDependenciesMetadata,androidTestRuntimeOnlyDependenciesMetadata,androidTestUtil,apiDependenciesMetadata,compile,compileOnlyDependenciesMetadata,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestApiDependenciesMetadata,debugAndroidTestCompileOnlyDependenciesMetadata,debugAndroidTestImplementationDependenciesMetadata,debugAndroidTestIntransitiveDependenciesMetadata,debugAndroidTestRuntimeClasspath,debugAndroidTestRuntimeOnlyDependenciesMetadata,debugAnnotationProcessorClasspath,debugCompile,debugCompileOnly,debugCompileOnlyDependenciesMetadata,debugIntransitiveDependenciesMetadata,debugReverseMetadataValues,debugRuntimeOnlyDependenciesMetadata,debugUnitTestAnnotationProcessorClasspath,debugUnitTestApiDependenciesMetadata,debugUnitTestCompileOnlyDependenciesMetadata,debugUnitTestImplementationDependenciesMetadata,debugUnitTestIntransitiveDependenciesMetadata,debugUnitTestRuntimeOnlyDependenciesMetadata,debugWearBundling,intransitiveDependenciesMetadata,kotlinCompilerPluginClasspath,kotlinCompilerPluginClasspathDebug,kotlinCompilerPluginClasspathDebugAndroidTest,kotlinCompilerPluginClasspathDebugUnitTest,kotlinCompilerPluginClasspathProfile,kotlinCompilerPluginClasspathProfileUnitTest,kotlinCompilerPluginClasspathRelease,kotlinCompilerPluginClasspathReleaseUnitTest,kotlinNativeCompilerPluginClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileCompile,profileCompileOnly,profileCompileOnlyDependenciesMetadata,profileIntransitiveDependenciesMetadata,profileReverseMetadataValues,profileRuntimeOnlyDependenciesMetadata,profileUnitTestAnnotationProcessorClasspath,profileUnitTestApiDependenciesMetadata,profileUnitTestCompileOnlyDependenciesMetadata,profileUnitTestImplementationDependenciesMetadata,profileUnitTestIntransitiveDependenciesMetadata,profileUnitTestRuntimeOnlyDependenciesMetadata,profileWearBundling,releaseAnnotationProcessorClasspath,releaseCompile,releaseCompileOnly,releaseCompileOnlyDependenciesMetadata,releaseIntransitiveDependenciesMetadata,releaseReverseMetadataValues,releaseRuntimeOnlyDependenciesMetadata,releaseUnitTestAnnotationProcessorClasspath,releaseUnitTestApiDependenciesMetadata,releaseUnitTestCompileOnlyDependenciesMetadata,releaseUnitTestImplementationDependenciesMetadata,releaseUnitTestIntransitiveDependenciesMetadata,releaseUnitTestRuntimeOnlyDependenciesMetadata,releaseWearBundling,runtimeOnlyDependenciesMetadata,testApiDependenciesMetadata,testCompile,testCompileOnlyDependenciesMetadata,testDebugApiDependenciesMetadata,testDebugCompileOnlyDependenciesMetadata,testDebugImplementationDependenciesMetadata,testDebugIntransitiveDependenciesMetadata,testDebugRuntimeOnlyDependenciesMetadata,testFixturesApiDependenciesMetadata,testFixturesCompileOnlyDependenciesMetadata,testFixturesDebugApiDependenciesMetadata,testFixturesDebugCompileOnlyDependenciesMetadata,testFixturesDebugImplementationDependenciesMetadata,testFixturesDebugIntransitiveDependenciesMetadata,testFixturesDebugRuntimeOnlyDependenciesMetadata,testFixturesImplementationDependenciesMetadata,testFixturesIntransitiveDependenciesMetadata,testFixturesProfileApiDependenciesMetadata,testFixturesProfileCompileOnlyDependenciesMetadata,testFixturesProfileImplementationDependenciesMetadata,testFixturesProfileIntransitiveDependenciesMetadata,testFixturesProfileRuntimeOnlyDependenciesMetadata,testFixturesReleaseApiDependenciesMetadata,testFixturesReleaseCompileOnlyDependenciesMetadata,testFixturesReleaseImplementationDependenciesMetadata,testFixturesReleaseIntransitiveDependenciesMetadata,testFixturesReleaseRuntimeOnlyDependenciesMetadata,testFixturesRuntimeOnlyDependenciesMetadata,testImplementationDependenciesMetadata,testIntransitiveDependenciesMetadata,testProfileApiDependenciesMetadata,testProfileCompileOnlyDependenciesMetadata,testProfileImplementationDependenciesMetadata,testProfileIntransitiveDependenciesMetadata,testProfileRuntimeOnlyDependenciesMetadata,testReleaseApiDependenciesMetadata,testReleaseCompileOnlyDependenciesMetadata,testReleaseImplementationDependenciesMetadata,testReleaseIntransitiveDependenciesMetadata,testReleaseRuntimeOnlyDependenciesMetadata,testRuntimeOnlyDependenciesMetadata diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..0709bd2e1cec9d47ea7ed0073a9dfd2964e8df55 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,482 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.nonNullable; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.nonNullable; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.nonNullable; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..1d526a16ed0f1cd0c2409d848bf489b93fefa3b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d815fed684a8a58a302828d747941af4fcffaa9a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/AppDelegate.swift @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..bbe2edc4f7869aec72f19040deb4803224da2520 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + non_nullable + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Runner-Bridging-Header.h b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000000000000000000000000000000000000..95b7baf386d06a38be9c775a9e97659baad52dc5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "GeneratedPluginRegistrant.h" diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/non_nullable/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..753af90c8d3d22aea2ab093eee5d089b2807ea7d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/lib/main.dart @@ -0,0 +1,26 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +String? unused; // ignore: unreachable_from_main + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: const Center(child: Text('hello, world')) + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/test/test_test.dart b/novelforge-project/flutter/dev/integration_tests/non_nullable/test/test_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..ff73de4945cb09d2445d4626fe2dbaa232686a5d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/test/test_test.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('trivial', (WidgetTester tester) async { + expect(true, true); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/favicon.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/favicon.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/flutter_bootstrap.js b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/flutter_bootstrap.js new file mode 100644 index 0000000000000000000000000000000000000000..be78d93ce8c6a5019c16a6c2b13d466745f7dc1a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/flutter_bootstrap.js @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +{{flutter_js}} +{{flutter_build_config}} +_flutter.loader.load({ + config: { + // Use the local CanvasKit bundle instead of the CDN to reduce test flakiness. + canvasKitBaseUrl: "/canvaskit/", + }, +}); diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-192.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-192.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-512.png b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/icons/Icon-512.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/index.html b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..aae9e6efad60d82d635ca1c00fcd8e656b9a763e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/index.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + non_nullable + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/non_nullable/web/manifest.json b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..0887f55ce1b150e11b3d2167e33979cea45b2aca --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/non_nullable/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "non_nullable", + "short_name": "non_nullable", + "start_url": ".", + "display": "minimal-ui", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f9a615f46c00fb6bc1d4ed6f5343f645021add11 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withInputStream { stream -> + localProperties.load(stream) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode 1 + versionName "0.0.1" + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..6c7c6a539bdc282212bad2c316bd6fb160107f19 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..932d573d014e3bc4a5749f9b1aad31b88393af01 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java @@ -0,0 +1,25 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.yourcompany.platforminteraction; + +import androidx.annotation.NonNull; +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.engine.FlutterEngine; +import io.flutter.plugin.common.BasicMessageChannel; +import io.flutter.plugin.common.StringCodec; + +public class MainActivity extends FlutterActivity { + BasicMessageChannel channel; + + @Override + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + channel = + new BasicMessageChannel<>(flutterEngine.getDartExecutor().getBinaryMessenger(), "navigation-test", StringCodec.INSTANCE); + } + + public void finish() { + channel.send("ping"); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..09d4391482be68e9e4a07fab769b5de337d16eb1 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..e160a81ffd42a36bca35a414c624786fdac26bc3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile @@ -0,0 +1,118 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath +com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=lintClassPath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=lintClassPath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..592ceee85b89bd111b779db6116b130509ab6d4b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..56c455f40f671d3b872c6aef5a6054c22d6cb0e0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,448 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 2D11032A1F3B34710058E41B /* TestNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D1103291F3B34710058E41B /* TestNavigationController.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 2D1103281F3B345C0058E41B /* TestNavigationController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestNavigationController.h; sourceTree = ""; }; + 2D1103291F3B34710058E41B /* TestNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestNavigationController.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 97C147021CF9000F007C117D /* Info.plist */, + 2D1103281F3B345C0058E41B /* TestNavigationController.h */, + 2D1103291F3B34710058E41B /* TestNavigationController.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 2D11032A1F3B34710058E41B /* TestNavigationController.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 24C0275721828E8D00A1EB9E /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 24C0275821828E8D00A1EB9E /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.platforminteraction; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.platforminteraction; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.platforminteraction; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 24C0275721828E8D00A1EB9E /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 24C0275821828E8D00A1EB9E /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..1d526a16ed0f1cd0c2409d848bf489b93fefa3b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..a78a945cd2ef8f832f90683ed5b29c97fcd8600b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..d863511ed7f1507b0efa237538386a05bf408a65 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.m @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d22f10b2ab630561596b343e0bd6eb2a0fe90df4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,116 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..ebf48f6039745ccdb57ad6237321024eb6cdf9af --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..08685c4b69f87a27616e01bfd643c34ed8ecb3da --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..f979810dad7795d8656aa44d33a76ebdb7d2468b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + platforminteraction + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.h b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.h new file mode 100644 index 0000000000000000000000000000000000000000..56feba35b5508b6ca4691c54b61a06f3d671d3ab --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.h @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +@interface TestNavigationController: UINavigationController + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.m b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.m new file mode 100644 index 0000000000000000000000000000000000000000..992e5c93c6fdd96b7370c4c8af0bc8de52105c9d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/TestNavigationController.m @@ -0,0 +1,27 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import "TestNavigationController.h" +#import + +@implementation TestNavigationController + +- (void) viewWillAppear:(BOOL)animated { + [self setNavigationBarHidden:YES animated:NO]; + [super viewWillAppear:animated]; +} + +- (nullable UIViewController *)popViewControllerAnimated:(BOOL)animated { + FlutterViewController* root = (FlutterViewController*)[self.viewControllers objectAtIndex:0]; + + FlutterBasicMessageChannel* messageChannel = + [FlutterBasicMessageChannel messageChannelWithName:@"navigation-test" + binaryMessenger:root + codec:[FlutterStringCodec sharedInstance]]; + [messageChannel sendMessage:@"ping"]; + return root; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..86070722733949a969321315b3d1ad7ed69711bc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/ios/Runner/main.m @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, + NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..fdfe0854ae3d29ac5eae10bc6e8842d16bcbda52 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/main.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +import 'src/system_navigation.dart'; +import 'src/test_step.dart'; + +void main() { + enableFlutterDriverExtension(); + runApp(const TestApp()); +} + +class TestApp extends StatefulWidget { + const TestApp({super.key}); + + @override + State createState() => _TestAppState(); +} + +class _TestAppState extends State { + static final List steps = [ + () => systemNavigatorPop(), + ]; + Future? _result; + int _step = 0; + + void _executeNextStep() { + setState(() { + if (_step < steps.length) { + _result = steps[_step++](); + } else { + _result = Future.value(TestStepResult.complete); + } + }); + } + + Widget _buildTestResultWidget( + BuildContext context, + AsyncSnapshot snapshot, + ) { + return TestStepResult.fromSnapshot(snapshot).asWidget(context); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Platform Interaction Test', + home: Scaffold( + appBar: AppBar( + title: const Text('Platform Interaction Test'), + ), + body: Padding( + padding: const EdgeInsets.all(20.0), + child: FutureBuilder( + future: _result, + builder: _buildTestResultWidget, + ), + ), + floatingActionButton: FloatingActionButton( + key: const ValueKey('step'), + onPressed: _executeNextStep, + child: const Icon(Icons.navigate_next), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart new file mode 100644 index 0000000000000000000000000000000000000000..9b9f5010e5f01b3dc114678975a449be545f98b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'package:flutter/services.dart'; +import 'test_step.dart'; + +Future systemNavigatorPop() { + const BasicMessageChannel channel = BasicMessageChannel( + 'navigation-test', + StringCodec(), + ); + + final Completer completer = Completer(); + + channel.setMessageHandler((String? message) async { + completer.complete( + const TestStepResult('System navigation pop', '', TestStatus.ok)); + return ''; + }); + SystemNavigator.pop(); + return completer.future; +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart new file mode 100644 index 0000000000000000000000000000000000000000..4bd004b5feb348850370ee30cd94323937330e12 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; + +enum TestStatus { ok, pending, failed, complete } + +typedef TestStep = Future Function(); + +const String nothing = '-'; + +class TestStepResult { + const TestStepResult(this.name, this.description, this.status); + + factory TestStepResult.fromSnapshot(AsyncSnapshot snapshot) { + switch (snapshot.connectionState) { + case ConnectionState.none: + return const TestStepResult('Not started', nothing, TestStatus.ok); + case ConnectionState.waiting: + return const TestStepResult('Executing', nothing, TestStatus.pending); + case ConnectionState.done: + if (snapshot.hasData) { + return snapshot.data!; + } else { + final Object? result = snapshot.error; + return result! as TestStepResult; + } + case ConnectionState.active: + throw 'Unsupported state ${snapshot.connectionState}'; + } + } + + final String name; + final String description; + final TestStatus status; + + static const TextStyle normal = TextStyle(height: 1.0); + static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold, height: 1.0); + static const TestStepResult complete = TestStepResult( + 'Test complete', + nothing, + TestStatus.complete, + ); + + Widget asWidget(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Step: $name', style: bold), + Text(description, style: normal), + const Text(' ', style: normal), + Text( + status.toString().substring('TestStatus.'.length), + key: ValueKey( + status == TestStatus.pending ? 'nostatus' : 'status'), + style: bold, + ), + ], + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/platform_interaction/test_driver/main_test.dart b/novelforge-project/flutter/dev/integration_tests/platform_interaction/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d7fbba000e5cae96ecb7d44839db0cb438e3a9a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/platform_interaction/test_driver/main_test.dart @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('channel suite', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(printCommunication: true); + }); + + test('step through', () async { + final SerializableFinder stepButton = find.byValueKey('step'); + final SerializableFinder statusField = find.byValueKey('status'); + int step = 0; + while (await driver.getText(statusField) == 'ok') { + await driver.tap(stepButton); + step++; + } + final String status = await driver.getText(statusField); + if (status != 'complete') { + fail('Failed at step $step with status $status'); + } + }, timeout: Timeout.none); + + tearDownAll(() async { + driver.close(); + }); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..6a3277197bf45f38fd1046162f9e9e24f0f2b3de --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/build.gradle @@ -0,0 +1,66 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.release_smoke_test" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + testImplementation 'junit:junit:4.13' + androidTestImplementation 'androidx.test:runner:1.2.0' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/androidTest/java/com/example/release_smoke_test/MainActivityTest.java b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/androidTest/java/com/example/release_smoke_test/MainActivityTest.java new file mode 100644 index 0000000000000000000000000000000000000000..c7fe3aa7274b5d4a19b49ba30190572c1740bdc9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/androidTest/java/com/example/release_smoke_test/MainActivityTest.java @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.example.release_smoke_test; + +import androidx.test.rule.ActivityTestRule; +import dev.flutter.plugins.instrumentationadapter.FlutterRunner; +import org.junit.Rule; +import org.junit.runner.RunWith; + +@RunWith(FlutterRunner.class) +public class MainActivityTest { + @Rule + public ActivityTestRule rule = new ActivityTestRule<>(MainActivity.class); +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/debug/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..c0b800be2c2010b3688d33552770c726f4b06c65 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..3b78c9482ea4e73b3cff35196c125a651bf46697 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/java/com/example/release_smoke_test/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/java/com/example/release_smoke_test/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..f6605c141a8b3a958b5a9516855a4655285f690e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/java/com/example/release_smoke_test/MainActivity.java @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.example.release_smoke_test; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/drawable/launch_background.xml b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb6811b2ee10d9304d3c94e1d43db4b7892827a9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..09d4391482be68e9e4a07fab769b5de337d16eb1 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/values/styles.xml b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..223593b1718388a43e0041b2a221f658dfc1a503 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/profile/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..c0b800be2c2010b3688d33552770c726f4b06c65 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..4512f01215d2714e761e3c35ac1d5ff3c3ab7aa8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle.properties @@ -0,0 +1,5 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..f496f6d84a5922b0aa63587fe9ec5d441f9a1d02 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-app.lockfile @@ -0,0 +1,131 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +junit:junit:4.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-compat-qual:2.5.5=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..e578dfb3d9e67208f103f5b679567750fa991c04 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-integration_test.lockfile @@ -0,0 +1,135 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.analytics-library:protos:27.1.3=lintClassPath +com.android.tools.analytics-library:shared:27.1.3=lintClassPath +com.android.tools.analytics-library:tracker:27.1.3=lintClassPath +com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath +com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary +com.android.tools.build:apksig:4.1.3=lintClassPath +com.android.tools.build:apkzlib:4.1.3=lintClassPath +com.android.tools.build:builder-model:4.1.3=lintClassPath +com.android.tools.build:builder-test-api:4.1.3=lintClassPath +com.android.tools.build:builder:4.1.3=lintClassPath +com.android.tools.build:gradle-api:4.1.3=lintClassPath +com.android.tools.build:manifest-merger:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath +com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath +com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath +com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath +com.android.tools.lint:lint-api:27.1.3=lintClassPath +com.android.tools.lint:lint-checks:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath +com.android.tools.lint:lint-gradle:27.1.3=lintClassPath +com.android.tools.lint:lint-model:27.1.3=lintClassPath +com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:common:27.1.3=lintClassPath +com.android.tools:dvlib:27.1.3=lintClassPath +com.android.tools:repository:27.1.3=lintClassPath +com.android.tools:sdk-common:27.1.3=lintClassPath +com.android.tools:sdklib:27.1.3=lintClassPath +com.android:signflinger:4.1.3=lintClassPath +com.android:zipflinger:4.1.3=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.8.5=lintClassPath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-jre=lintClassPath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.jimfs:jimfs:1.1=lintClassPath +com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.googlecode.json-simple:json-simple:1.1=lintClassPath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.5.0=lintClassPath +com.sun.activation:javax.activation:1.2.0=lintClassPath +com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath +com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath +commons-codec:commons-codec:1.10=lintClassPath +commons-logging:commons-logging:1.2=lintClassPath +it.unimi.dsi:fastutil:7.2.0=lintClassPath +javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.xml.bind:jaxb-api:2.3.1=lintClassPath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.jopt-simple:jopt-simple:4.9=lintClassPath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.apache.commons:commons-compress:1.12=lintClassPath +org.apache.httpcomponents:httpclient:4.5.6=lintClassPath +org.apache.httpcomponents:httpcore:4.4.10=lintClassPath +org.apache.httpcomponents:httpmime:4.5.6=lintClassPath +org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath +org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:2.8.1=lintClassPath +org.codehaus.groovy:groovy-all:2.4.15=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath +org.glassfish.jaxb:txw2:2.3.1=lintClassPath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.trove4j:trove4j:20160824=lintClassPath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jvnet.staxex:stax-ex:1.8=lintClassPath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:7.0=lintClassPath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:7.0=lintClassPath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:7.0=lintClassPath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-util:7.0=lintClassPath +org.ow2.asm:asm:7.0=lintClassPath +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath,testCompile diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-path_provider_android.lockfile b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-path_provider_android.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..f9308a145d2c8c2e99cf3b5b844c23dfe5271da4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/project-path_provider_android.lockfile @@ -0,0 +1,45 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..ec97fc6f30212d34d53ab17751bcabdfab1891d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..c4855bfe2000b73c8a50783b40073676021cbb68 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Podfile b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..414ba51f1c5d5a14d8c582f5e35259e26b3a69ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Podfile @@ -0,0 +1,38 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..b9234654cd1e894227a837f586a4c0f2486833ce --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,517 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + A24CB441B6F61FF11057EB5A /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0908F7663769F5C16C5756D3 /* libPods-Runner.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 064F64CD6FFEB3C58A3124DE /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 0908F7663769F5C16C5756D3 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 137E4F6C68D0B4CD625E840E /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3588DDC05D5972F1F373864B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A24CB441B6F61FF11057EB5A /* libPods-Runner.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1EF0A18A4DE88D1B6F4B3B8E /* Pods */ = { + isa = PBXGroup; + children = ( + 3588DDC05D5972F1F373864B /* Pods-Runner.debug.xcconfig */, + 064F64CD6FFEB3C58A3124DE /* Pods-Runner.release.xcconfig */, + 137E4F6C68D0B4CD625E840E /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 1EF0A18A4DE88D1B6F4B3B8E /* Pods */, + D67CD986BC8B3B50439538E9 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + D67CD986BC8B3B50439538E9 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 0908F7663769F5C16C5756D3 /* libPods-Runner.a */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + BF516B280EA2402A8A0DB09E /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + BF516B280EA2402A8A0DB09E /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.releaseSmokeTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.releaseSmokeTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.releaseSmokeTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..a00db7a9e12a704a72a09581cfe235a7f58061ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..7d5bcd37fc850c239f7df54ed38c02bab4ed30d3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..df796d6a9e498cf59a39da034ab151620b033be6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.m @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..b6a5d3f48e4e0fec02ff52437b182c553efd1c00 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..28c6bf03016f6c994b70f38d1b7346e5831b531f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..36a79faffd5d4fd93d3c23bb92f38616952e5f08 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + release_smoke_test + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..736a65aa5e1ab250f8353bfd31c4bfd9ab01339c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..c2106a00c9cc9fb669bbf0bacb4d445c1d610b3c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/lib/main.dart @@ -0,0 +1,29 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert' show utf8; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; + +Future main() async { + const Text text = Text('Hello, world!', textDirection: TextDirection.ltr); + // These calls must not result in an error. They behave differently in + // release mode compared to debug or profile. + // The test will grep logcat for any errors emitted by Flutter. + print(text.toDiagnosticsNode()); + print(text.toStringDeep()); + // regression test for https://github.com/flutter/flutter/issues/49601 + final List computed = await compute(_utf8Encode, 'test', debugLabel: null); + print(computed); + runApp( + const Center( + child: text, + ), + ); +} + +List _utf8Encode(String data) { + return utf8.encode(data); +} diff --git a/novelforge-project/flutter/dev/integration_tests/release_smoke_test/test_adapter/hello_world_test.dart b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/test_adapter/hello_world_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e6da7d17763e41e53182546046997613a7e05d6a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/release_smoke_test/test_adapter/hello_world_test.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:release_smoke_test/main.dart' as smoke; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('Hello world smoke test', (WidgetTester tester) async { + smoke.main(); // builds the app and schedules a frame but doesn't trigger one + + await tester.pump(); // triggers a frame + + expect(find.text('Hello, world!'), findsOneWidget); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..edba44db6e52cf53cd16f7191db8129776db0d2b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/build.gradle @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + namespace "com.example.spell_check" + compileSdk flutter.compileSdkVersion + ndkVersion flutter.ndkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.spell_check" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/debug/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..e00f903eae2aa47abeff9ec776cbae0ec1832240 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..29f9c4884220ea9540a2a274fbe9a899c94835d2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/kotlin/com/example/sc_int_test/MainActivity.kt b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/kotlin/com/example/sc_int_test/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..d7090d49c5c26666830aaa5c69dffd5411fa3ad2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/kotlin/com/example/sc_int_test/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.spell_check + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/drawable/launch_background.xml b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..3727f9e00a029f25d630f317fcb835328d0e78b4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/values/styles.xml b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..55fd7b57ee682c83c0972e80b87036a7d082a5d7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/profile/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..e00f903eae2aa47abeff9ec776cbae0ec1832240 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/spell_check/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..a2a88669529869e1fd2debbc4b67f4f7415b93ae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/build.gradle @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/spell_check/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..cc5527d781a7b51cdc31190ed24c645cc8f3af52 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..33db6f26e122a55851b13c21ba0560e6eaf934b2 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-app.lockfile @@ -0,0 +1,70 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:2.0.1=debugAndroidTestCompileClasspath +com.google.code.findbugs:jsr305:3.0.2=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna:5.6.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.7.10=kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-reflect:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-script-runtime:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestApiDependenciesMetadata,androidTestCompileOnlyDependenciesMetadata,androidTestDebugApiDependenciesMetadata,androidTestDebugCompileOnlyDependenciesMetadata,androidTestDebugImplementationDependenciesMetadata,androidTestDebugIntransitiveDependenciesMetadata,androidTestDebugRuntimeOnlyDependenciesMetadata,androidTestImplementationDependenciesMetadata,androidTestIntransitiveDependenciesMetadata,androidTestProfileApiDependenciesMetadata,androidTestProfileCompileOnlyDependenciesMetadata,androidTestProfileImplementationDependenciesMetadata,androidTestProfileIntransitiveDependenciesMetadata,androidTestProfileRuntimeOnlyDependenciesMetadata,androidTestReleaseApiDependenciesMetadata,androidTestReleaseCompileOnlyDependenciesMetadata,androidTestReleaseImplementationDependenciesMetadata,androidTestReleaseIntransitiveDependenciesMetadata,androidTestReleaseRuntimeOnlyDependenciesMetadata,androidTestRuntimeOnlyDependenciesMetadata,androidTestUtil,compileOnlyDependenciesMetadata,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestApiDependenciesMetadata,debugAndroidTestCompileOnlyDependenciesMetadata,debugAndroidTestImplementationDependenciesMetadata,debugAndroidTestIntransitiveDependenciesMetadata,debugAndroidTestRuntimeClasspath,debugAndroidTestRuntimeOnlyDependenciesMetadata,debugAnnotationProcessorClasspath,debugCompileOnlyDependenciesMetadata,debugIntransitiveDependenciesMetadata,debugReverseMetadataValues,debugRuntimeOnlyDependenciesMetadata,debugUnitTestAnnotationProcessorClasspath,debugUnitTestApiDependenciesMetadata,debugUnitTestCompileOnlyDependenciesMetadata,debugUnitTestImplementationDependenciesMetadata,debugUnitTestIntransitiveDependenciesMetadata,debugUnitTestRuntimeOnlyDependenciesMetadata,debugWearBundling,intransitiveDependenciesMetadata,kotlinCompilerPluginClasspath,kotlinCompilerPluginClasspathDebug,kotlinCompilerPluginClasspathDebugAndroidTest,kotlinCompilerPluginClasspathDebugUnitTest,kotlinCompilerPluginClasspathProfile,kotlinCompilerPluginClasspathProfileUnitTest,kotlinCompilerPluginClasspathRelease,kotlinCompilerPluginClasspathReleaseUnitTest,kotlinNativeCompilerPluginClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileCompileOnlyDependenciesMetadata,profileIntransitiveDependenciesMetadata,profileReverseMetadataValues,profileRuntimeOnlyDependenciesMetadata,profileUnitTestAnnotationProcessorClasspath,profileUnitTestApiDependenciesMetadata,profileUnitTestCompileOnlyDependenciesMetadata,profileUnitTestImplementationDependenciesMetadata,profileUnitTestIntransitiveDependenciesMetadata,profileUnitTestRuntimeOnlyDependenciesMetadata,profileWearBundling,releaseAnnotationProcessorClasspath,releaseCompileOnlyDependenciesMetadata,releaseIntransitiveDependenciesMetadata,releaseReverseMetadataValues,releaseRuntimeOnlyDependenciesMetadata,releaseUnitTestAnnotationProcessorClasspath,releaseUnitTestApiDependenciesMetadata,releaseUnitTestCompileOnlyDependenciesMetadata,releaseUnitTestImplementationDependenciesMetadata,releaseUnitTestIntransitiveDependenciesMetadata,releaseUnitTestRuntimeOnlyDependenciesMetadata,releaseWearBundling,runtimeOnlyDependenciesMetadata,testApiDependenciesMetadata,testCompileOnlyDependenciesMetadata,testDebugApiDependenciesMetadata,testDebugCompileOnlyDependenciesMetadata,testDebugImplementationDependenciesMetadata,testDebugIntransitiveDependenciesMetadata,testDebugRuntimeOnlyDependenciesMetadata,testFixturesApiDependenciesMetadata,testFixturesCompileOnlyDependenciesMetadata,testFixturesDebugApiDependenciesMetadata,testFixturesDebugCompileOnlyDependenciesMetadata,testFixturesDebugImplementationDependenciesMetadata,testFixturesDebugIntransitiveDependenciesMetadata,testFixturesDebugRuntimeOnlyDependenciesMetadata,testFixturesImplementationDependenciesMetadata,testFixturesIntransitiveDependenciesMetadata,testFixturesProfileApiDependenciesMetadata,testFixturesProfileCompileOnlyDependenciesMetadata,testFixturesProfileImplementationDependenciesMetadata,testFixturesProfileIntransitiveDependenciesMetadata,testFixturesProfileRuntimeOnlyDependenciesMetadata,testFixturesReleaseApiDependenciesMetadata,testFixturesReleaseCompileOnlyDependenciesMetadata,testFixturesReleaseImplementationDependenciesMetadata,testFixturesReleaseIntransitiveDependenciesMetadata,testFixturesReleaseRuntimeOnlyDependenciesMetadata,testFixturesRuntimeOnlyDependenciesMetadata,testImplementationDependenciesMetadata,testIntransitiveDependenciesMetadata,testProfileApiDependenciesMetadata,testProfileCompileOnlyDependenciesMetadata,testProfileImplementationDependenciesMetadata,testProfileIntransitiveDependenciesMetadata,testProfileRuntimeOnlyDependenciesMetadata,testReleaseApiDependenciesMetadata,testReleaseCompileOnlyDependenciesMetadata,testReleaseImplementationDependenciesMetadata,testReleaseIntransitiveDependenciesMetadata,testReleaseRuntimeOnlyDependenciesMetadata,testRuntimeOnlyDependenciesMetadata diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/spell_check/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..eec0e0e6a7f3fa2c1780635724cf551743d3f9dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/android/settings.gradle @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/integration_test/integration_test.dart b/novelforge-project/flutter/dev/integration_tests/spell_check/integration_test/integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..56ff5b8d799c709c30cc8055aa7962c8fece5eb5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/integration_test/integration_test.dart @@ -0,0 +1,183 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// TODO(camsim99): Revert this timeout change after effects are investigated. +@Timeout(Duration(seconds: 60)) +library; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:spell_check/main.dart'; + +late DefaultSpellCheckService defaultSpellCheckService; +late Locale locale; + +/// Waits to find [EditableText] that displays text with misspelled +/// words marked the same as the [TextSpan] provided and returns +/// true if it is found before timing out at 20 seconds. +Future findTextSpanTree( + WidgetTester tester, + TextSpan inlineSpan, +) async { + final RenderObject root = tester.renderObject(find.byType(EditableText)); + expect(root, isNotNull); + + RenderEditable? renderEditable; + void recursiveFinder(RenderObject child) { + if (child is RenderEditable && child.text == inlineSpan) { + renderEditable = child; + return; + } + child.visitChildren(recursiveFinder); + } + + final DateTime endTime = tester.binding.clock.now().add(const Duration(seconds: 20)); + do { + if (tester.binding.clock.now().isAfter(endTime)) { + return false; + } + await tester.pump(const Duration(seconds: 1)); + root.visitChildren(recursiveFinder); + } while (renderEditable == null); + + return true; +} + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + setUp(() { + defaultSpellCheckService = DefaultSpellCheckService(); + locale = const Locale('en', 'us'); + }); + + test( + 'fetchSpellCheckSuggestions returns null with no misspelled words', + () async { + const String text = 'Hello, world!'; + + final List? spellCheckSuggestionSpans = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + + expect(spellCheckSuggestionSpans!.length, equals(0)); + expect( + defaultSpellCheckService.lastSavedResults!.spellCheckedText, + equals(text) + ); + expect( + defaultSpellCheckService.lastSavedResults!.suggestionSpans, + equals(spellCheckSuggestionSpans) + ); + }); + + test( + 'fetchSpellCheckSuggestions returns correct ranges with misspelled words', + () async { + const String text = 'Hlelo, world! Yuou are magnificente'; + const List misspelledWordRanges = [ + TextRange(start: 0, end: 5), + TextRange(start: 14, end: 18), + TextRange(start: 23, end: 35) + ]; + + final List? spellCheckSuggestionSpans = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + + expect(spellCheckSuggestionSpans, isNotNull); + expect( + spellCheckSuggestionSpans!.length, + equals(misspelledWordRanges.length) + ); + + for (int i = 0; i < misspelledWordRanges.length; i += 1) { + expect( + spellCheckSuggestionSpans[i].range, + equals(misspelledWordRanges[i]) + ); + } + + expect( + defaultSpellCheckService.lastSavedResults!.spellCheckedText, + equals(text) + ); + expect( + defaultSpellCheckService.lastSavedResults!.suggestionSpans, + equals(spellCheckSuggestionSpans) + ); + }); + + test( + 'fetchSpellCheckSuggestions does not correct results when Gboard not ignoring composing region', + () async { + const String text = 'Wwow, whaaett a beautiful day it is!'; + + final List? spellCheckSpansWithComposingRegion = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + + expect(spellCheckSpansWithComposingRegion, isNotNull); + expect(spellCheckSpansWithComposingRegion!.length, equals(2)); + + final List? spellCheckSuggestionSpans = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + + expect( + spellCheckSuggestionSpans, + equals(spellCheckSpansWithComposingRegion) + ); + }); + + test( + 'fetchSpellCheckSuggestions merges results when Gboard ignoring composing region', + () async { + const String text = 'Wooahha it is an amazzinng dayyebf!'; + + final List? modifiedSpellCheckSuggestionSpans = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + final List expectedSpellCheckSuggestionSpans = + List.from(modifiedSpellCheckSuggestionSpans!); + expect(modifiedSpellCheckSuggestionSpans, isNotNull); + expect(modifiedSpellCheckSuggestionSpans.length, equals(3)); + + // Remove one span to simulate Gboard attempting to un-ignore the composing region, after tapping away from "Yuou". + modifiedSpellCheckSuggestionSpans.removeAt(1); + + defaultSpellCheckService.lastSavedResults = + SpellCheckResults(text, modifiedSpellCheckSuggestionSpans); + + final List? spellCheckSuggestionSpans = + await defaultSpellCheckService.fetchSpellCheckSuggestions(locale, text); + + expect(spellCheckSuggestionSpans, isNotNull); + expect( + spellCheckSuggestionSpans, + equals(expectedSpellCheckSuggestionSpans) + ); + }); + + testWidgets('EditableText spell checks when text is entered and spell check enabled', (WidgetTester tester) async { + const TextStyle style = TextStyle(); + const TextStyle misspelledTextStyle = TextField.materialMisspelledTextStyle; + + await tester.pumpWidget(const MyApp()); + + await tester.enterText(find.byType(EditableText), 'Hey cfabiueq qocnakoef! Hey!'); + + const TextSpan expectedTextSpanTree = TextSpan( + style: style, + children: [ + TextSpan(style: style, text: 'Hey '), + TextSpan(style: misspelledTextStyle, text: 'cfabiueq'), + TextSpan(style: style, text: ' '), + TextSpan(style: misspelledTextStyle, text: 'qocnakoef'), + TextSpan(style: style, text: '! Hey!'), + ]); + + final bool expectedTextSpanTreeFound = await findTextSpanTree(tester, expectedTextSpanTree); + + expect(expectedTextSpanTreeFound, isTrue); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..7c56964006274498b0edaa77763cdd72c6d42b6a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..ec97fc6f30212d34d53ab17751bcabdfab1891d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..c4855bfe2000b73c8a50783b40073676021cbb68 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Podfile b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..414ba51f1c5d5a14d8c582f5e35259e26b3a69ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Podfile @@ -0,0 +1,38 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..b9f10d777aed0b7bffb22b47134ad86553677a56 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,533 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 08DF46C1ECE03723F402A526 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 49B50C6BD3C1A11B60BCFF13 /* libPods-Runner.a */; }; + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 014ED6D7D90EA2FA50B908C5 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 49B50C6BD3C1A11B60BCFF13 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C41B72CA4E0CD8D8142AC7DF /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + C63EA41138934FB86677A587 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 08DF46C1ECE03723F402A526 /* libPods-Runner.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 45755432FA4A3A065CD33159 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 49B50C6BD3C1A11B60BCFF13 /* libPods-Runner.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 78AC58C9B4A8E822AF963EE2 /* Pods */ = { + isa = PBXGroup; + children = ( + C63EA41138934FB86677A587 /* Pods-Runner.debug.xcconfig */, + 014ED6D7D90EA2FA50B908C5 /* Pods-Runner.release.xcconfig */, + C41B72CA4E0CD8D8142AC7DF /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 78AC58C9B4A8E822AF963EE2 /* Pods */, + 45755432FA4A3A065CD33159 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 0F17D24D9A631B45E38854B4 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0F17D24D9A631B45E38854B4 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.spellCheck; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.spellCheck; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.spellCheck; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..5e31d3d342f3c77134683eb04988a27e3c76fee3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..7d5bcd37fc850c239f7df54ed38c02bab4ed30d3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..df796d6a9e498cf59a39da034ab151620b033be6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/AppDelegate.m @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d36b1fab2d9dea668a4f83df94d525897d9e68dd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..0bedcf2fd46788ae3a01a423467513ff59b5c120 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000000000000000000000000000000000..89c2725b70f1882be97f5214fafe22d27a0ec01e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..7e765608fa11cef3f3d165e9922af5ecfb3db4af --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Spell Check + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + spell_check + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..736a65aa5e1ab250f8353bfd31c4bfd9ab01339c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/ios/Runner/main.m @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/spell_check/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..21f5ff720b7392de0001d9b1f8c0856b7cc4ef19 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/lib/main.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Spellcheck Demo', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: const MyHomePage(title: 'Spellcheck Demo'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title), + ), + body: Center( + child: EditableText( + controller: TextEditingController(), + backgroundCursorColor: Colors.grey, + focusNode: FocusNode(), + style: const TextStyle(), + cursorColor: Colors.red, + spellCheckConfiguration: + const SpellCheckConfiguration( + misspelledTextStyle: TextField.materialMisspelledTextStyle, + ) + ) + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/spell_check/test_driver/integration_test.dart b/novelforge-project/flutter/dev/integration_tests/spell_check/test_driver/integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..600bdc8828881377d5b401cdda5d7b59337292f1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/spell_check/test_driver/integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart'; + +Future main() => integrationDriver(); diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/app/build.gradle b/novelforge-project/flutter/dev/integration_tests/ui/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..1b8adc9940edcdffafb17c56d15167497d96f738 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/app/build.gradle @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +plugins { + id "com.android.application" + id "dev.flutter.flutter-gradle-plugin" + id "org.jetbrains.kotlin.android" +} + +android { + namespace "com.yourcompany.integration_ui" + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml b/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e86dad9ad25a09ea0a147dec41fe8acb3f9e80e --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/java/com/yourcompany/integration_ui/MainActivity.java b/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/java/com/yourcompany/integration_ui/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..6d7261a79657a3d4401a6e48679108f6cc4baab3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/app/src/main/java/com/yourcompany/integration_ui/MainActivity.java @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.yourcompany.integration_ui; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/build.gradle b/novelforge-project/flutter/dev/integration_tests/ui/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..bedac9d2d4db435dfecb639ddd968f06a9375609 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/build.gradle @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/buildscript-gradle.lockfile b/novelforge-project/flutter/dev/integration_tests/ui/android/buildscript-gradle.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..eb605802d98f5f505e9112f6f1d9c85b5269553d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/buildscript-gradle.lockfile @@ -0,0 +1,152 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:7.3.0=classpath +androidx.databinding:databinding-compiler-common:7.3.0=classpath +com.android.databinding:baseLibrary:7.3.0=classpath +com.android.tools.analytics-library:crash:30.3.0=classpath +com.android.tools.analytics-library:protos:30.3.0=classpath +com.android.tools.analytics-library:shared:30.3.0=classpath +com.android.tools.analytics-library:tracker:30.3.0=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath +com.android.tools.build:aaptcompiler:7.3.0=classpath +com.android.tools.build:apksig:7.3.0=classpath +com.android.tools.build:apkzlib:7.3.0=classpath +com.android.tools.build:builder-model:7.3.0=classpath +com.android.tools.build:builder-test-api:7.3.0=classpath +com.android.tools.build:builder:7.3.0=classpath +com.android.tools.build:bundletool:1.9.0=classpath +com.android.tools.build:gradle-api:7.3.0=classpath +com.android.tools.build:gradle:7.3.0=classpath +com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath +com.android.tools.ddms:ddmlib:30.3.0=classpath +com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath +com.android.tools.lint:lint-model:30.3.0=classpath +com.android.tools.lint:lint-typedef-remover:30.3.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath +com.android.tools:annotations:30.3.0=classpath +com.android.tools:common:30.3.0=classpath +com.android.tools:dvlib:30.3.0=classpath +com.android.tools:repository:30.3.0=classpath +com.android.tools:sdk-common:30.3.0=classpath +com.android.tools:sdklib:30.3.0=classpath +com.android:signflinger:7.3.0=classpath +com.android:zipflinger:7.3.0=classpath +com.github.gundy:semver4j:0.16.4=classpath +com.google.android:annotations:4.1.1.4=classpath +com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.auto.value:auto-value-annotations:1.6.2=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.8.9=classpath +com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.dagger:dagger:2.28.3=classpath +com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.1=classpath +com.google.guava:guava:30.1-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.jimfs:jimfs:1.1=classpath +com.google.protobuf:protobuf-java-util:3.17.2=classpath +com.google.protobuf:protobuf-java:3.17.2=classpath +com.google.testing.platform:core-proto:0.0.8-alpha07=classpath +com.googlecode.json-simple:json-simple:1.1=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.10.0=classpath +com.squareup:javawriter:2.5.0=classpath +com.sun.activation:javax.activation:1.2.0=classpath +com.sun.istack:istack-commons-runtime:3.0.8=classpath +com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath +commons-codec:commons-codec:1.11=classpath +commons-io:commons-io:2.4=classpath +commons-logging:commons-logging:1.2=classpath +de.undercouch:gradle-download-task:4.1.1=classpath +io.grpc:grpc-api:1.39.0=classpath +io.grpc:grpc-context:1.39.0=classpath +io.grpc:grpc-core:1.39.0=classpath +io.grpc:grpc-netty:1.39.0=classpath +io.grpc:grpc-protobuf-lite:1.39.0=classpath +io.grpc:grpc-protobuf:1.39.0=classpath +io.grpc:grpc-stub:1.39.0=classpath +io.netty:netty-buffer:4.1.52.Final=classpath +io.netty:netty-codec-http2:4.1.52.Final=classpath +io.netty:netty-codec-http:4.1.52.Final=classpath +io.netty:netty-codec-socks:4.1.52.Final=classpath +io.netty:netty-codec:4.1.52.Final=classpath +io.netty:netty-common:4.1.52.Final=classpath +io.netty:netty-handler-proxy:4.1.52.Final=classpath +io.netty:netty-handler:4.1.52.Final=classpath +io.netty:netty-resolver:4.1.52.Final=classpath +io.netty:netty-transport:4.1.52.Final=classpath +io.perfmark:perfmark-api:0.23.0=classpath +it.unimi.dsi:fastutil:8.4.0=classpath +jakarta.activation:jakarta.activation-api:1.2.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath +javax.annotation:javax.annotation-api:1.3.2=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.6.0=classpath +net.java.dev.jna:jna:5.6.0=classpath +net.sf.jopt-simple:jopt-simple:4.9=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.20=classpath +org.apache.httpcomponents:httpclient:4.5.13=classpath +org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.httpcomponents:httpmime:4.5.6=classpath +org.bitbucket.b_c:jose4j:0.7.0=classpath +org.bouncycastle:bcpkix-jdk15on:1.67=classpath +org.bouncycastle:bcprov-jdk15on:1.67=classpath +org.checkerframework:checker-qual:3.5.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath +org.glassfish.jaxb:txw2:2.3.2=classpath +org.jdom:jdom2:2.0.6=classpath +org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath +org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains:annotations:13.0=classpath +org.json:json:20180813=classpath +org.jvnet.staxex:stax-ex:1.8.1=classpath +org.ow2.asm:asm-analysis:9.1=classpath +org.ow2.asm:asm-commons:9.1=classpath +org.ow2.asm:asm-tree:9.1=classpath +org.ow2.asm:asm-util:9.1=classpath +org.ow2.asm:asm:9.1=classpath +org.slf4j:slf4j-api:1.7.30=classpath +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath +xerces:xercesImpl:2.12.0=classpath +xml-apis:xml-apis:1.4.01=classpath +empty= diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/gradle.properties b/novelforge-project/flutter/dev/integration_tests/ui/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/flutter/dev/integration_tests/ui/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..cb24abda10ae7c217ece76a13a8d0a90473d3422 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/project-app.lockfile b/novelforge-project/flutter/dev/integration_tests/ui/android/project-app.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..99596147550350dc9795d96e4d7722b771e6e2f4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/project-app.lockfile @@ -0,0 +1,70 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:2.0.1=debugAndroidTestCompileClasspath +com.google.code.findbugs:jsr305:3.0.2=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna:5.6.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.7.0=kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-reflect:1.7.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-script-runtime:1.7.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestApiDependenciesMetadata,androidTestCompileOnlyDependenciesMetadata,androidTestDebugApiDependenciesMetadata,androidTestDebugCompileOnlyDependenciesMetadata,androidTestDebugImplementationDependenciesMetadata,androidTestDebugIntransitiveDependenciesMetadata,androidTestDebugRuntimeOnlyDependenciesMetadata,androidTestImplementationDependenciesMetadata,androidTestIntransitiveDependenciesMetadata,androidTestProfileApiDependenciesMetadata,androidTestProfileCompileOnlyDependenciesMetadata,androidTestProfileImplementationDependenciesMetadata,androidTestProfileIntransitiveDependenciesMetadata,androidTestProfileRuntimeOnlyDependenciesMetadata,androidTestReleaseApiDependenciesMetadata,androidTestReleaseCompileOnlyDependenciesMetadata,androidTestReleaseImplementationDependenciesMetadata,androidTestReleaseIntransitiveDependenciesMetadata,androidTestReleaseRuntimeOnlyDependenciesMetadata,androidTestRuntimeOnlyDependenciesMetadata,androidTestUtil,compileOnlyDependenciesMetadata,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestApiDependenciesMetadata,debugAndroidTestCompileOnlyDependenciesMetadata,debugAndroidTestImplementationDependenciesMetadata,debugAndroidTestIntransitiveDependenciesMetadata,debugAndroidTestRuntimeClasspath,debugAndroidTestRuntimeOnlyDependenciesMetadata,debugAnnotationProcessorClasspath,debugCompileOnlyDependenciesMetadata,debugIntransitiveDependenciesMetadata,debugReverseMetadataValues,debugRuntimeOnlyDependenciesMetadata,debugUnitTestAnnotationProcessorClasspath,debugUnitTestApiDependenciesMetadata,debugUnitTestCompileOnlyDependenciesMetadata,debugUnitTestImplementationDependenciesMetadata,debugUnitTestIntransitiveDependenciesMetadata,debugUnitTestRuntimeOnlyDependenciesMetadata,debugWearBundling,intransitiveDependenciesMetadata,kotlinCompilerPluginClasspath,kotlinCompilerPluginClasspathDebug,kotlinCompilerPluginClasspathDebugAndroidTest,kotlinCompilerPluginClasspathDebugUnitTest,kotlinCompilerPluginClasspathProfile,kotlinCompilerPluginClasspathProfileUnitTest,kotlinCompilerPluginClasspathRelease,kotlinCompilerPluginClasspathReleaseUnitTest,kotlinNativeCompilerPluginClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileCompileOnlyDependenciesMetadata,profileIntransitiveDependenciesMetadata,profileReverseMetadataValues,profileRuntimeOnlyDependenciesMetadata,profileUnitTestAnnotationProcessorClasspath,profileUnitTestApiDependenciesMetadata,profileUnitTestCompileOnlyDependenciesMetadata,profileUnitTestImplementationDependenciesMetadata,profileUnitTestIntransitiveDependenciesMetadata,profileUnitTestRuntimeOnlyDependenciesMetadata,profileWearBundling,releaseAnnotationProcessorClasspath,releaseCompileOnlyDependenciesMetadata,releaseIntransitiveDependenciesMetadata,releaseReverseMetadataValues,releaseRuntimeOnlyDependenciesMetadata,releaseUnitTestAnnotationProcessorClasspath,releaseUnitTestApiDependenciesMetadata,releaseUnitTestCompileOnlyDependenciesMetadata,releaseUnitTestImplementationDependenciesMetadata,releaseUnitTestIntransitiveDependenciesMetadata,releaseUnitTestRuntimeOnlyDependenciesMetadata,releaseWearBundling,runtimeOnlyDependenciesMetadata,testApiDependenciesMetadata,testCompileOnlyDependenciesMetadata,testDebugApiDependenciesMetadata,testDebugCompileOnlyDependenciesMetadata,testDebugImplementationDependenciesMetadata,testDebugIntransitiveDependenciesMetadata,testDebugRuntimeOnlyDependenciesMetadata,testFixturesApiDependenciesMetadata,testFixturesCompileOnlyDependenciesMetadata,testFixturesDebugApiDependenciesMetadata,testFixturesDebugCompileOnlyDependenciesMetadata,testFixturesDebugImplementationDependenciesMetadata,testFixturesDebugIntransitiveDependenciesMetadata,testFixturesDebugRuntimeOnlyDependenciesMetadata,testFixturesImplementationDependenciesMetadata,testFixturesIntransitiveDependenciesMetadata,testFixturesProfileApiDependenciesMetadata,testFixturesProfileCompileOnlyDependenciesMetadata,testFixturesProfileImplementationDependenciesMetadata,testFixturesProfileIntransitiveDependenciesMetadata,testFixturesProfileRuntimeOnlyDependenciesMetadata,testFixturesReleaseApiDependenciesMetadata,testFixturesReleaseCompileOnlyDependenciesMetadata,testFixturesReleaseImplementationDependenciesMetadata,testFixturesReleaseIntransitiveDependenciesMetadata,testFixturesReleaseRuntimeOnlyDependenciesMetadata,testFixturesRuntimeOnlyDependenciesMetadata,testImplementationDependenciesMetadata,testIntransitiveDependenciesMetadata,testProfileApiDependenciesMetadata,testProfileCompileOnlyDependenciesMetadata,testProfileImplementationDependenciesMetadata,testProfileIntransitiveDependenciesMetadata,testProfileRuntimeOnlyDependenciesMetadata,testReleaseApiDependenciesMetadata,testReleaseCompileOnlyDependenciesMetadata,testReleaseImplementationDependenciesMetadata,testReleaseIntransitiveDependenciesMetadata,testReleaseRuntimeOnlyDependenciesMetadata,testRuntimeOnlyDependenciesMetadata diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/project-integration_test.lockfile b/novelforge-project/flutter/dev/integration_tests/ui/android/project-integration_test.lockfile new file mode 100644 index 0000000000000000000000000000000000000000..1326b8773fd7688b1d35cfd54326255d95fcba2d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/project-integration_test.lockfile @@ -0,0 +1,67 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm:9.1=androidJacocoAnt +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/novelforge-project/flutter/dev/integration_tests/ui/android/settings.gradle b/novelforge-project/flutter/dev/integration_tests/ui/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..55893f4df363a75946b0c2e3afabf07871369906 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/android/settings.gradle @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.0" apply false +} + +include ":app" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/assets/foo.png b/novelforge-project/flutter/dev/integration_tests/ui/assets/foo.png new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/novelforge-project/flutter/dev/integration_tests/ui/integration_test/integration_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/integration_test/integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0f9894540893e803f622a00d11d079a0ea7caff1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/integration_test/integration_test.dart @@ -0,0 +1,18 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_ui/overflow.dart' as app; + +void main() { + group('Integration Test', () { + testWidgets('smoke test', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + expect(find.byType(SizedBox), findsOneWidget); + }); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/integration_test/resize_integration_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/integration_test/resize_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..6dedbc17d53bdb00c946b15a49152860d3aa9432 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/integration_test/resize_integration_test.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart' as widgets show Container, Size, runApp; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:integration_ui/resize.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + group('end-to-end test', () { + testWidgets('Use button to resize window', + timeout: const Timeout(Duration(seconds: 5)), + (WidgetTester tester) async { + const app.ResizeApp resizeApp = app.ResizeApp(); + + widgets.runApp(resizeApp); + await tester.pumpAndSettle(); + + final Finder fab = find.byKey(app.ResizeApp.extendedFab); + expect(fab, findsOneWidget); + + final Finder root = find.byWidget(resizeApp); + final widgets.Size sizeBefore = tester.getSize(root); + + await tester.tap(fab); + await tester.pumpAndSettle(); + + final widgets.Size sizeAfter = tester.getSize(root); + expect(sizeAfter.width, equals(sizeBefore.width + app.ResizeApp.resizeBy)); + expect(sizeAfter.height, equals(sizeBefore.height + app.ResizeApp.resizeBy)); + + final Finder widthLabel = find.byKey(app.ResizeApp.widthLabel); + expect(widthLabel, findsOneWidget); + expect(find.text('width: ${sizeAfter.width}'), findsOneWidget); + + final Finder heightLabel = find.byKey(app.ResizeApp.heightLabel); + expect(heightLabel, findsOneWidget); + expect(find.text('height: ${sizeAfter.height}'), findsOneWidget); + }); + }); + + testWidgets('resize window after calling runApp twice, the second with no content', + timeout: const Timeout(Duration(seconds: 5)), + (WidgetTester tester) async { + const app.ResizeApp root = app.ResizeApp(); + widgets.runApp(root); + widgets.runApp(widgets.Container()); + + await tester.pumpAndSettle(); + + const widgets.Size expectedSize = widgets.Size(100, 100); + await app.ResizeApp.resize(expectedSize); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..8c6e56146e23c84aa60ea78f20bc3a7b3d8ef259 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..ec97fc6f30212d34d53ab17751bcabdfab1891d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..c4855bfe2000b73c8a50783b40073676021cbb68 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Podfile b/novelforge-project/flutter/dev/integration_tests/ui/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..414ba51f1c5d5a14d8c582f5e35259e26b3a69ec --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Podfile @@ -0,0 +1,38 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..25ccb5844155903d8223b9bd2c4ae8be98497c61 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,488 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74970F771EDC361B000507F3 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 74970F761EDC361B000507F3 /* GeneratedPluginRegistrant.m */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + 9DB392A616C0C8AD238C7F4C /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E95162D3453E15E80DABCBC /* libPods-Runner.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 03F961F59B540A32EF304282 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 6E95162D3453E15E80DABCBC /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 74970F751EDC361B000507F3 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 74970F761EDC361B000507F3 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + BA9419B1A50A1C16E0B20CA4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + D9588C26CA2EF309DE6AAE11 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9DB392A616C0C8AD238C7F4C /* libPods-Runner.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, + A2B783D05322549629FF621B /* Pods */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 74970F751EDC361B000507F3 /* GeneratedPluginRegistrant.h */, + 74970F761EDC361B000507F3 /* GeneratedPluginRegistrant.m */, + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + A2B783D05322549629FF621B /* Pods */ = { + isa = PBXGroup; + children = ( + D9588C26CA2EF309DE6AAE11 /* Pods-Runner.debug.xcconfig */, + BA9419B1A50A1C16E0B20CA4 /* Pods-Runner.release.xcconfig */, + 03F961F59B540A32EF304282 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + CF3B75C9A7D2FA2A4C99F110 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6E95162D3453E15E80DABCBC /* libPods-Runner.a */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + DB4B1C60D473FE94D19F4FFB /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + DB4B1C60D473FE94D19F4FFB /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 74970F771EDC361B000507F3 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 24F0292421828E1300CF74D3 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 24F0292521828E1300CF74D3 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.e2e; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.e2e; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.e2e; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 24F0292421828E1300CF74D3 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 24F0292521828E1300CF74D3 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.h b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..a78a945cd2ef8f832f90683ed5b29c97fcd8600b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.h @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.m b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.m new file mode 100644 index 0000000000000000000000000000000000000000..d863511ed7f1507b0efa237538386a05bf408a65 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/AppDelegate.m @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..ebf48f6039745ccdb57ad6237321024eb6cdf9af --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..48648e50915604b38504daefb02a531c32a19b1c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + IntegrationUI + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/main.m b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/main.m new file mode 100644 index 0000000000000000000000000000000000000000..86070722733949a969321315b3d1ad7ed69711bc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/ios/Runner/main.m @@ -0,0 +1,14 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, + NSStringFromClass([AppDelegate class])); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/commands.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/commands.dart new file mode 100644 index 0000000000000000000000000000000000000000..120475a33fa9ff973fc3295338ace90890a19117 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/commands.dart @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +void main() { + print('called main'); + runApp(const MaterialApp(home: Test())); +} + +class Test extends SingleChildRenderObjectWidget { + const Test({ super.key }); + + @override + RenderTest createRenderObject(BuildContext context) => RenderTest(); +} + +class RenderTest extends RenderProxyBox { + RenderTest({ RenderBox? child }) : super(child); + + @override + void debugPaintSize(PaintingContext context, Offset offset) { + super.debugPaintSize(context, offset); + print('called debugPaintSize'); + } + + @override + void paint(PaintingContext context, Offset offset) { + print('called paint'); + } + + @override + void reassemble() { + print('called reassemble'); + super.reassemble(); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/defines.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/defines.dart new file mode 100644 index 0000000000000000000000000000000000000000..db3d9b09653e19785a462a102f1e0362efb0ff9c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/defines.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +/// This application displays text passed through a --dart-define. +void main() { + enableFlutterDriverExtension(); + runApp( + const Center( + child: Text( + String.fromEnvironment('test.valueA') + String.fromEnvironment('test.valueB'), + textDirection: TextDirection.ltr, + ), + ), + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/driver.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/driver.dart new file mode 100644 index 0000000000000000000000000000000000000000..1df99113b2aab386c58b8fa31514ea5ba2d5a046 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/driver.dart @@ -0,0 +1,94 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +void main() { + enableFlutterDriverExtension(); + runApp(const DriverTestApp()); +} + +class DriverTestApp extends StatefulWidget { + const DriverTestApp({super.key}); + + @override + State createState() { + return DriverTestAppState(); + } +} + +class DriverTestAppState extends State { + bool present = true; + Letter _selectedValue = Letter.a; + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('FlutterDriver test'), + ), + body: ListView( + padding: const EdgeInsets.all(5.0), + children: [ + Row( + children: [ + Expanded( + child: Text(present ? 'present' : 'absent'), + ), + ElevatedButton( + child: const Text( + 'toggle', + key: ValueKey('togglePresent'), + ), + onPressed: () { + setState(() { + present = !present; + }); + }, + ), + ], + ), + Row( + children: [ + const Expanded( + child: Text('hit testability'), + ), + DropdownButton( + key: const ValueKey('dropdown'), + value: _selectedValue, + onChanged: (Letter? newValue) { + setState(() { + _selectedValue = newValue!; + }); + }, + items: const >[ + DropdownMenuItem( + value: Letter.a, + child: Text('Aaa', key: ValueKey('a')), + ), + DropdownMenuItem( + value: Letter.b, + child: Text('Bbb', key: ValueKey('b')), + ), + DropdownMenuItem( + value: Letter.c, + child: Text('Ccc', key: ValueKey('c')), + ), + ], + ), + ], + ), + const TextField( + key: ValueKey('enter-text-field'), + ), + ], + ), + ), + ); + } +} + +enum Letter { a, b, c } diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/empty.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/empty.dart new file mode 100644 index 0000000000000000000000000000000000000000..e8f58cf3f710e9cae86f223a9082cf812047af87 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/empty.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +/// This application does nothing but show a empty screen. +void main() { + enableFlutterDriverExtension(); + runApp(const Empty()); +} + +class Empty extends StatelessWidget { + const Empty({super.key}); + + @override + Widget build(BuildContext context) => Container(); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/exit.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/exit.dart new file mode 100644 index 0000000000000000000000000000000000000000..257ed3eec7b8febbf64c24d941fefa91518882a0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/exit.dart @@ -0,0 +1,8 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +/// This application exits immediately. +void main() => exit(0); diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/frame_number.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/frame_number.dart new file mode 100644 index 0000000000000000000000000000000000000000..b4f1d02ca59df4292542621c3e8ff095b60fc689 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/frame_number.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:math'; + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +/// This application shows empty screen until first frame timings are acquired. +void main() { + enableFlutterDriverExtension(); + + final Completer> completer = Completer>(); + SchedulerBinding.instance.addTimingsCallback((List timings) { + completer.complete(timings); + }); + + runApp(Directionality( + textDirection: TextDirection.ltr, + child: _FirstFrameTimings(completer: completer), + )); +} + +class _FirstFrameTimings extends StatefulWidget { + const _FirstFrameTimings({ + required this.completer, + }); + + final Completer> completer; + + @override + _FirstFrameTimingsState createState() => _FirstFrameTimingsState(); +} + +class _FirstFrameTimingsState extends State<_FirstFrameTimings> { + int? _minFrameNumber; + + @override + Widget build(BuildContext context) { + widget.completer.future.then(_setMinFrameNumber); + if (_minFrameNumber != null) { + return Text( + _minFrameNumber.toString(), + key: const Key('minFrameNumber'), + ); + } else { + return const Text('Waiting...'); + } + } + + void _setMinFrameNumber(List timings) { + final int minFrameNumber = timings + .map((FrameTiming timing) => timing.frameNumber) + .reduce(min); + setState(() { + _minFrameNumber = minFrameNumber; + }); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_resize.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_resize.dart new file mode 100644 index 0000000000000000000000000000000000000000..d880c210d1acec16e840c0b8a8e3ab25e8c652b8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_resize.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +import 'keys.dart' as keys; + +void main() { + enableFlutterDriverExtension(handler: (String? message) async { + // TODO(cbernaschina): remove when test flakiness is resolved + return 'keyboard_resize'; + }); + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Text Editing', + theme: ThemeData(primarySwatch: Colors.blue), + home: const MyHomePage(), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key}); + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + final TextEditingController _controller = TextEditingController(); + + @override + Widget build(BuildContext context) { + final TextField textField = TextField( + key: const Key(keys.kDefaultTextField), + controller: _controller, + focusNode: FocusNode(), + ); + return Scaffold( + body: Stack( + fit: StackFit.expand, + alignment: Alignment.bottomCenter, + children: [ + LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Center(child: Text('${constraints.biggest.height}', key: const Key(keys.kHeightText))); + } + ), + textField, + ], + ), + floatingActionButton: FloatingActionButton( + key: const Key(keys.kUnfocusButton), + onPressed: () { textField.focusNode!.unfocus(); }, + tooltip: 'Unfocus', + child: const Icon(Icons.done), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_textfield.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_textfield.dart new file mode 100644 index 0000000000000000000000000000000000000000..0f9268a6fe289a946c8e5323f26eb01997cc2b6d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/keyboard_textfield.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +import 'keys.dart' as keys; + +void main() { + enableFlutterDriverExtension(); + + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Keyboard & TextField', + theme: ThemeData(primarySwatch: Colors.blue), + home: const MyHomePage(), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key}); + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + final ScrollController _controller = ScrollController(); + double offset = 0.0; + + @override + void initState() { + super.initState(); + _controller.addListener(() { + setState(() { + offset = _controller.offset; + }); + }); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final bool isSoftKeyboardVisible = MediaQuery.of(context).viewInsets.bottom > 100; + return Scaffold( + body: Column( + children: [ + Text('$offset', + key: const ValueKey(keys.kOffsetText), + ), + if (isSoftKeyboardVisible) const Text( + 'keyboard visible', + key: ValueKey(keys.kKeyboardVisibleView), + ), + Expanded( + child: ListView( + key: const ValueKey(keys.kListView), + controller: _controller, + children: [ + Container( + height: MediaQuery.of(context).size.height, + ), + const TextField( + key: ValueKey(keys.kDefaultTextField), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/keys.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/keys.dart new file mode 100644 index 0000000000000000000000000000000000000000..a69b486bfc61441cafb739f116c0b2d142a23ac8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/keys.dart @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String kDefaultTextField = 'default_textfield'; +const String kHeightText = 'height_text'; +const String kUnfocusButton = 'unfocus_button'; +const String kOffsetText = 'offset_text'; +const String kListView = 'list_view'; +const String kKeyboardVisibleView = 'keyboard_visible'; diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/license_check.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/license_check.dart new file mode 100644 index 0000000000000000000000000000000000000000..12a7789a5e242878ed2e43ba437b4f1c2d2d1dae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/license_check.dart @@ -0,0 +1,71 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +/// This application does nothing but show a screen with the flutter package +/// license in it. +void main() { + enableFlutterDriverExtension(); + runApp(const ShowLicenses()); +} + +class ShowLicenses extends StatelessWidget { + const ShowLicenses({super.key}); + + Widget _buildTestResultWidget( + BuildContext context, + AsyncSnapshot> snapshot, + ) { + final List entries = snapshot.data ?? []; + String flutterPackage = ''; + final List flutterParagraphs = []; + String enginePackage = ''; + final List engineParagraphs = []; + for (final LicenseEntry entry in entries) { + if (entry.packages.contains('flutter')) { + flutterPackage = 'flutter'; + flutterParagraphs.addAll( + entry.paragraphs.map((LicenseParagraph para) => para.text), + ); + } + if (entry.packages.contains('engine')) { + enginePackage = 'engine'; + engineParagraphs.addAll( + entry.paragraphs.map((LicenseParagraph para) => para.text), + ); + } + } + + final List result = []; + result.addAll([ + const Text('License Check Test', key: ValueKey('Header')), + Text(flutterPackage, key: const ValueKey('FlutterPackage')), + Text(flutterParagraphs.join(' '), key: const ValueKey('FlutterLicense')), + Text('${flutterParagraphs.length}', key: const ValueKey('FlutterCount')), + Text(enginePackage, key: const ValueKey('EnginePackage')), + Text(engineParagraphs.join(' '), key: const ValueKey('EngineLicense')), + Text('${engineParagraphs.length}', key: const ValueKey('EngineCount')), + ]); + + return ListView( + children: result, + ); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + body: FutureBuilder>( + initialData: const [], + builder: _buildTestResultWidget, + future: LicenseRegistry.licenses.toList(), + ), + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..fa57237f3e900789b5a60e88503d8b42b4d4b962 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/main.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +void main() { + enableFlutterDriverExtension(); + + runApp(MaterialApp( + home: Material( + child: Builder( + builder: (BuildContext context) { + return TextButton( + child: const Text( + 'flutter drive lib/xxx.dart', + textDirection: TextDirection.ltr, + ), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) { + return const Material( + child: Center( + child: Text( + 'navigated here', + textDirection: TextDirection.ltr, + ), + ), + ); + }, + ), + ); + }, + ); + }, + ), + ), + )); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/overflow.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/overflow.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d084d9eafd7a0d36a0c28d1d009a76eeabc730b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/overflow.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const MaterialApp(home: Test())); +} + +class Test extends StatefulWidget { + const Test({ super.key }); + + @override + State createState() => _TestState(); +} + +class _TestState extends State { + bool _triggered = false; + + @override + void reassemble() { + _triggered = true; + super.reassemble(); + } + + @override + Widget build(BuildContext context) { + if (!_triggered) { + return const SizedBox.shrink(); + } + return const Row(children: [ + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + SizedBox(width: 10000.0), + ]); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/resize.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/resize.dart new file mode 100644 index 0000000000000000000000000000000000000000..86359cff96fb2cb97f23fd655f52ea224be95f40 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/resize.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() async { + runApp(const ResizeApp()); +} + +class ResizeApp extends StatefulWidget { + const ResizeApp({super.key}); + + static const double resizeBy = 10.0; + static const Key heightLabel = Key('height label'); + static const Key widthLabel = Key('width label'); + static const Key extendedFab = Key('extended FAB'); + + static const MethodChannel platform = + MethodChannel('samples.flutter.dev/resize'); + + static Future resize(Size size) async { + await ResizeApp.platform.invokeMethod( + 'resize', + { + 'width': size.width, + 'height': size.height, + } + ); + } + + @override + State createState() => _ResizeAppState(); +} + +class _ResizeAppState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Builder( + builder: (BuildContext context) { + final Size currentSize = MediaQuery.of(context).size; + return Scaffold( + floatingActionButton: FloatingActionButton.extended( + key: ResizeApp.extendedFab, + label: const Text('Resize'), + onPressed: () { + final Size nextSize = Size( + currentSize.width + ResizeApp.resizeBy, + currentSize.height + ResizeApp.resizeBy, + ); + ResizeApp.resize(nextSize); + }, + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + key: ResizeApp.widthLabel, + 'width: ${currentSize.width}' + ), + Text( + key: ResizeApp.heightLabel, + 'height: ${currentSize.height}', + ), + ], + ), + ), + ); + } + ), + ); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/route.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/route.dart new file mode 100644 index 0000000000000000000000000000000000000000..cd0cef675db5c96f7b82c95f5df3b42c7ffde20d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/route.dart @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui' as ui; + +import 'package:flutter_driver/driver_extension.dart'; + +// To use this test: "flutter drive --route '/smuggle-it' lib/route.dart" + +void main() { + enableFlutterDriverExtension(handler: (String? message) async { + return ui.PlatformDispatcher.instance.defaultRouteName; + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/screenshot.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/screenshot.dart new file mode 100644 index 0000000000000000000000000000000000000000..d00d4c17dc434bd798fda4ad305e893d21566353 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/screenshot.dart @@ -0,0 +1,82 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_driver/driver_extension.dart'; + +/// This sample application creates a hard to render frame, causing the +/// driver script to race the raster thread. If the driver script wins the +/// race, it will screenshot the previous frame. If the raster thread wins +/// it, it will screenshot the latest frame. +void main() { + enableFlutterDriverExtension(); + + runApp(const Toggler()); +} + +class Toggler extends StatefulWidget { + const Toggler({super.key}); + + @override + State createState() => TogglerState(); +} + +class TogglerState extends State { + bool _visible = false; + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('FlutterDriver test'), + ), + body: Material( + child: Column( + children: [ + TextButton( + key: const ValueKey('toggle'), + child: const Text('Toggle visibility'), + onPressed: () { + setState(() { + _visible = !_visible; + }); + }, + ), + Expanded( + child: ListView( + children: _buildRows(_visible ? 10 : 0), + ), + ), + ], + ), + ), + ), + ); + } +} + +List _buildRows(int count) { + return List.generate(count, (int i) { + return Row( + children: _buildCells(i / count), + ); + }); +} + +/// Builds cells that are known to take time to render causing a delay on the +/// raster thread. +List _buildCells(double epsilon) { + return List.generate(15, (int i) { + return Expanded( + child: Material( + // A magic color that the test will be looking for on the screenshot. + color: const Color(0xffff0102), + borderRadius: BorderRadius.all(Radius.circular(i.toDouble() + epsilon)), + elevation: 5.0, + child: const SizedBox(height: 10.0, width: 10.0), + ), + ); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart b/novelforge-project/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart new file mode 100644 index 0000000000000000000000000000000000000000..16e8c84c99cbbf8ff15644f7890eac085f4d73dc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/lib/track_widget_creation.dart @@ -0,0 +1,18 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:developer'; +import 'package:flutter/widgets.dart'; + +void main() { + final Set widgets = {}; + widgets.add(const Text('same')); + widgets.add(const Text('same')); + + // If track-widget-creation is enabled, the set will have 2 members. + // Otherwise is will only have one. + registerExtension('ext.devicelab.test', (String method, Map params) async { + return ServiceExtensionResponse.result('{"result":${widgets.length}}'); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/linux/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/ui/linux/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..9fc8b84f93e65f194157f01b4b70fd16e3da80bd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/linux/CMakeLists.txt @@ -0,0 +1,138 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "ui") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "io.flutter.ui") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Define the application target. To change its name, change BINARY_NAME above, +# not the value here, or `flutter run` will no longer work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/novelforge-project/flutter/dev/integration_tests/ui/linux/flutter/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/ui/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..d5bd01648a96d50136b2a97c8bb9aa5b711f6c39 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/novelforge-project/flutter/dev/integration_tests/ui/linux/main.cc b/novelforge-project/flutter/dev/integration_tests/ui/linux/main.cc new file mode 100644 index 0000000000000000000000000000000000000000..281a29e16b599a95421e7a35112eda77900ff549 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/linux/main.cc @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.cc b/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.cc new file mode 100644 index 0000000000000000000000000000000000000000..cc91bcf2b14b89af8f9ce7df1a6c7889ba32974a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.cc @@ -0,0 +1,108 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "ui"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "ui"); + } + + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + "flags", G_APPLICATION_NON_UNIQUE, + nullptr)); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.h b/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.h new file mode 100644 index 0000000000000000000000000000000000000000..8c66ec485434d1f922c9915bdaefcb8969cdfec9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/linux/my_application.h @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..4b81f9b2d200fc807eed25bca04dff9ee9dcc45f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..5caa9d1579e481a5894c37e2e56b0da062e95b35 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Podfile b/novelforge-project/flutter/dev/integration_tests/ui/macos/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..049abe2954279f0ed15c66d4c858fa4ae2a590bf --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Podfile @@ -0,0 +1,40 @@ +platform :osx, '10.14' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.pbxproj b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..117cb5a3c92b936163a561a1afe496438e8f9e7f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,615 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 46558BCD8299D314CC64738E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0ED7456F910E6D9DE3887735 /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 0ED7456F910E6D9DE3887735 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 0EDEC7D1A102F170E4281F6C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* ui.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ui.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9109F7B72DFA61B42696A255 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + D93067B57AD7FDF72F1589BE /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 46558BCD8299D314CC64738E /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + BBDB6DD509EA525D7340245D /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* ui.app */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + BBDB6DD509EA525D7340245D /* Pods */ = { + isa = PBXGroup; + children = ( + 0EDEC7D1A102F170E4281F6C /* Pods-Runner.debug.xcconfig */, + D93067B57AD7FDF72F1589BE /* Pods-Runner.release.xcconfig */, + 9109F7B72DFA61B42696A255 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 0ED7456F910E6D9DE3887735 /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 8A23CAD682AE73797E59310A /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* ui.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; + }; + 8A23CAD682AE73797E59310A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..d17300d4216dd99db49fb353c4c301f0fa880f6b --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/AppDelegate.swift b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d080d41951d3506a861ceadcf4354bbbb609a562 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..a2ec33f19f110ebff51a23342d7bc29ec9a1aaa6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000000000000000000000000000000000000..3c4935a7ca84f0976aca34b7f2895d65fb94d1ea Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..ed4cc16421680a50164ba74381b4b35ceaa0ccfc Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000000000000000000000000000000000000..483be61389733f2e5331c08db8ca245268610ccb Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 0000000000000000000000000000000000000000..bcbf36df2f2aaaa0a63c7dabc94e600184229d0d Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 0000000000000000000000000000000000000000..9c0a652864769b250ed58097f2f6270b393f751f Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 0000000000000000000000000000000000000000..e71a726136a47ed24125c7efc79d68a4a01961b4 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..8a31fe2dd3f91d79cab6e0390356bb3c1a355f94 Binary files /dev/null and b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Base.lproj/MainMenu.xib b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000000000000000000000000000000000000..537341abf994b3b9c5fd0a42fa6ffe6b5ed01aae --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/AppInfo.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..8a4959ad70698b899a789aaa431861a9b05466fd --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = ui + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.ui + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2020 com.example. All rights reserved. diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Debug.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..36b0fd9464f45b33f482e64bea579787e142affa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Release.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..dff4f49561c816f70eaea557d889d31cf63447ac --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Warnings.xcconfig b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..42bcbf4780b187e80025b7917058bcb882012aa1 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/DebugProfile.entitlements b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..dddb8a30c851e7ef5b16a9108934bd1217b6b43f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Info.plist b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..4789daa6a443eefa7f3f729164a18351e06e9800 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000000000000000000000000000000000000..3f9f68507db083f1624fdac307baf19e73748791 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import Cocoa +import FlutterMacOS + +extension NSWindow { + var titlebarHeight: CGFloat { + frame.height - contentRect(forFrameRect: frame).height + } +} + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterMethodChannel(registry: flutterViewController) + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } + + func RegisterMethodChannel(registry: FlutterPluginRegistry) { + let registrar = registry.registrar(forPlugin: "resize") + let channel = FlutterMethodChannel(name: "samples.flutter.dev/resize", + binaryMessenger: registrar.messenger) + channel.setMethodCallHandler({ (call, result) in + if call.method == "resize" { + if let args = call.arguments as? Dictionary, + let width = args["width"] as? Double, + var height = args["height"] as? Double { + height += self.titlebarHeight + let currentFrame: NSRect = self.frame + let nextFrame: NSRect = NSMakeRect( + currentFrame.minX - (width - currentFrame.width) / 2, + currentFrame.minY - (height - currentFrame.height) / 2, + width, + height + ) + self.setFrame(nextFrame, display: true, animate: false) + result(true) + } else { + result(FlutterError.init(code: "bad args", message: nil, details: nil)) + } + } + }) + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Release.entitlements b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Release.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..852fa1a4728ae4789e3bca55dd07caef3b41f2a5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test/asset_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test/asset_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..2f3e1c4ba5e847a9243a70c1cfdd1810d03c6998 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test/asset_test.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + + +// Regression test for https://github.com/flutter/flutter/issues/111285 +void main() { + testWidgets('Can load asset from same package without error', (WidgetTester tester) async { + await tester.pumpWidget(MaterialApp(home: Scaffold(body: Image.asset('assets/foo.png', package: 'integration_ui')))); + await tester.pumpAndSettle(); + + // If this asset couldn't be loaded, the exception message would be + // "asset failed to load" + expect(tester.takeException().toString(), contains('Invalid image data')); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_debug_paint_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_debug_paint_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..270d0c6ce1931a670d897f8d17a93fc814997612 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_debug_paint_test.dart @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('check that we are painting in debugPaintSize mode', () async { + expect(await driver.requestData('status'), 'log: paint debugPaintSize'); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_none_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_none_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..dfb20dfc17b162690959aa2d1cc5a7298c7086e3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_none_test.dart @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('check that we are in normal mode', () async { + expect(await driver.requestData('status'), 'log: paint'); + await driver.waitForAbsent(find.byType('PerformanceOverlay')); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_performance_overlay_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_performance_overlay_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..85f13efc6e0e2a0bf18e618c8a402b658db6874c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/commands_performance_overlay_test.dart @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('check that we are showing the performance overlay', () async { + await driver.requestData('status'); // force a reassemble + await driver.waitFor(find.byType('PerformanceOverlay')); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/defines_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/defines_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..38a156cbb29265d5a162e13c34dcd49b88d4e5c5 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/defines_test.dart @@ -0,0 +1,22 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('Can run with --dart-define', () async { + await driver.waitFor(find.text('Example,AValue')); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/driver_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/driver_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..105ed47361eae56fdbe401befc59ecc135d78554 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/driver_test.dart @@ -0,0 +1,111 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_driver/flutter_driver.dart'; + +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('FlutterDriver', () { + final SerializableFinder presentText = find.text('present'); + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('waitFor should find text "present"', () async { + await driver.waitFor(presentText); + }, timeout: Timeout.none); + + test('waitForAbsent should time out waiting for text "present" to disappear', () async { + await expectLater( + () => driver.waitForAbsent(presentText, timeout: const Duration(seconds: 1)), + throwsA(isA().having( + (DriverError error) => error.message, + 'message', + contains('Timeout while executing waitForAbsent'), + )), + ); + }, timeout: Timeout.none); + + test('waitForAbsent should resolve when text "present" disappears', () async { + // Begin waiting for it to disappear + final Completer whenWaitForAbsentResolves = Completer(); + driver.waitForAbsent(presentText).then( + whenWaitForAbsentResolves.complete, + onError: whenWaitForAbsentResolves.completeError, + ); + + // Wait 1 second then make it disappear + await Future.delayed(const Duration(seconds: 1)); + await driver.tap(find.byValueKey('togglePresent')); + + // Ensure waitForAbsent resolves + await whenWaitForAbsentResolves.future; + }, timeout: Timeout.none); + + test('waitFor times out waiting for "present" to reappear', () async { + await expectLater( + () => driver.waitFor(presentText, timeout: const Duration(seconds: 1)), + throwsA(isA().having( + (DriverError error) => error.message, + 'message', + contains('Timeout while executing waitFor'), + )), + ); + }, timeout: Timeout.none); + + test('waitFor should resolve when text "present" reappears', () async { + // Begin waiting for it to reappear + final Completer whenWaitForResolves = Completer(); + driver.waitFor(presentText).then( + whenWaitForResolves.complete, + onError: whenWaitForResolves.completeError, + ); + + // Wait 1 second then make it appear + await Future.delayed(const Duration(seconds: 1)); + await driver.tap(find.byValueKey('togglePresent')); + + // Ensure waitFor resolves + await whenWaitForResolves.future; + }, timeout: Timeout.none); + + test('waitForAbsent resolves immediately when the element does not exist', () async { + await driver.waitForAbsent(find.text('that does not exist')); + }, timeout: Timeout.none); + + test('uses hit test to determine tappable elements', () async { + final SerializableFinder a = find.byValueKey('a'); + final SerializableFinder menu = find.byType('_DropdownMenu'); + + // Dropdown is closed + await driver.waitForAbsent(menu); + + // Open dropdown + await driver.tap(a); + await driver.waitFor(menu); + + // Close it again + await driver.tap(a); + await driver.waitForAbsent(menu); + }, timeout: Timeout.none); + + test('enters text in a text field', () async { + final SerializableFinder textField = find.byValueKey('enter-text-field'); + await driver.tap(textField); + await driver.enterText('Hello!'); + await driver.waitFor(find.text('Hello!')); + await driver.enterText('World!'); + await driver.waitFor(find.text('World!')); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/empty_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/empty_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..482a7a15d185c7e8e0db74ccec44e60798dacda9 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/empty_test.dart @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +// Connect and disconnect from the empty app. +void main() { + group('FlutterDriver', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('empty', () async {}, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..f5825ea2cf56c2913b36d7395411fe1895e24a81 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +bool _isNumeric(String s) { + return double.tryParse(s) != null; +} + +// Connect and disconnect from the empty app. +void main() { + group('FrameNumber', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('minFrameNumber is numeric', () async { + final SerializableFinder minFrameNumberFinder = + find.byValueKey('minFrameNumber'); + await driver.waitFor( + minFrameNumberFinder, + timeout: const Duration(seconds: 5), + ); + final String minFrameNumber = await driver.getText(minFrameNumberFinder); + // TODO(iskakaushik): enable the stronger check of _minFrameNumber == '1', + // once this is fixed. https://github.com/flutter/flutter/issues/86487 + expect(_isNumeric(minFrameNumber), true); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..db70d5bcbf6d072f0b291e66d8b3097e6a5df7f8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:integration_ui/keys.dart' as keys; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('end-to-end test', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('Ensure keyboard dismissal resizes the view to original size', () async { + await driver.setTextEntryEmulation(enabled: false); + final SerializableFinder heightText = find.byValueKey(keys.kHeightText); + await driver.waitFor(heightText); + + // Measure the initial height. + final String startHeight = await driver.getText(heightText); + + // Focus the text field to show the keyboard. + final SerializableFinder defaultTextField = find.byValueKey(keys.kDefaultTextField); + await driver.waitFor(defaultTextField); + await driver.tap(defaultTextField); + + bool heightTextDidShrink = false; + for (int i = 0; i < 3; ++i) { + await Future.delayed(const Duration(seconds: 1)); + // Measure the height with keyboard displayed. + final String heightWithKeyboardShown = await driver.getText(heightText); + if (double.parse(heightWithKeyboardShown) < double.parse(startHeight)) { + heightTextDidShrink = true; + break; + } + } + expect(heightTextDidShrink, isTrue); + + // Unfocus the text field to dismiss the keyboard. + final SerializableFinder unfocusButton = find.byValueKey(keys.kUnfocusButton); + await driver.waitFor(unfocusButton); + await driver.tap(unfocusButton); + + bool heightTextDidExpand = false; + for (int i = 0; i < 3; ++i) { + await Future.delayed(const Duration(seconds: 1)); + // Measure the final height. + final String endHeight = await driver.getText(heightText); + if (endHeight == startHeight) { + heightTextDidExpand = true; + break; + } + } + expect(heightTextDidExpand, isTrue); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_textfield_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_textfield_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..286fc396b1d505a65f5d85009952cfd4106b3321 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/keyboard_textfield_test.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:integration_ui/keys.dart' as keys; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('end-to-end test', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('Textfield scrolls back into view after covered by keyboard', () async { + await driver.setTextEntryEmulation(enabled: false); // we want the keyboard to come up + + final SerializableFinder listViewFinder = find.byValueKey(keys.kListView); + final SerializableFinder textFieldFinder = find.byValueKey(keys.kDefaultTextField); + final SerializableFinder offsetFinder = find.byValueKey(keys.kOffsetText); + final SerializableFinder keyboardVisibilityIndicatorFinder = find.byValueKey(keys.kKeyboardVisibleView); + + // Align TextField with bottom edge to ensure it would be covered when keyboard comes up. + await driver.waitForAbsent(textFieldFinder); + await driver.scrollUntilVisible( + listViewFinder, + textFieldFinder, + alignment: 1.0, + dyScroll: -20.0, + ); + await driver.waitFor(textFieldFinder); + final double scrollOffsetWithoutKeyboard = double.parse(await driver.getText(offsetFinder)); + + // Bring up keyboard + await driver.tap(textFieldFinder); + + // The blinking cursor may have animation. Do not wait for it to finish. + await driver.runUnsynchronized(() async { + await driver.waitFor(keyboardVisibilityIndicatorFinder); + }); + + // Ensure that TextField is visible again + await driver.waitFor(textFieldFinder); + final double scrollOffsetWithKeyboard = double.parse(await driver.getText(offsetFinder)); + + // Ensure the scroll offset changed appropriately when TextField scrolled back into view. + expect(scrollOffsetWithKeyboard, greaterThan(scrollOffsetWithoutKeyboard)); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/license_check_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/license_check_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..758c607e1375fdfdc8097877ec36b19718a56607 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/license_check_test.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:path/path.dart' as path; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +// Connect and disconnect from the empty app. +void main() { + // Load the license file from disk to compare it with the one in the app. + final File licenseFile = File(path.join('..', '..', '..', 'packages', 'flutter', 'LICENSE')); + if (!licenseFile.existsSync()) { + print('Test failed. Unable to find LICENSE file at ${licenseFile.path}'); + exit(-1); + } + final RegExp newlineSplit = RegExp(r'\s+'); + final String license = licenseFile.readAsStringSync().split(newlineSplit).join(' ').trim(); + + group('License file check', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + await driver.waitUntilFirstFrameRasterized(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('flutter license', () async { + await driver.waitFor(find.byValueKey('Header')); + final String foundPackage = await driver.getText(find.byValueKey('FlutterPackage')); + final String foundLicense = await driver.getText(find.byValueKey('FlutterLicense')); + expect(foundPackage, equals('flutter')); + expect(foundLicense, equals(license)); + }, timeout: Timeout.none); + + test('engine license', () async { + await driver.waitFor(find.byValueKey('Header')); + final String foundPackage = await driver.getText(find.byValueKey('EnginePackage')); + final String foundLicense = await driver.getText(find.byValueKey('EngineLicense')); + expect(foundPackage, equals('engine')); + // The engine has the same license, but with a different Copyright date. + expect(foundLicense, contains(license.replaceFirst('2014', '2013'))); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/test_driver/route_test.dart b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/route_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d9f547947257e112535f5d8faaa2b983afea5287 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/test_driver/route_test.dart @@ -0,0 +1,27 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; + +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('flutter run test --route', () { + late FlutterDriver driver; + + setUpAll(() async { + driver = await FlutterDriver.connect(); + }); + + tearDownAll(() async { + await driver.close(); + }); + + test('sanity check flutter drive --route', () async { + // This only makes sense if you ran the test as described + // in the test file. It's normally run from devicelab. + expect(await driver.requestData('route'), '/smuggle-it'); + }, timeout: Timeout.none); + }); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/web/index.html b/novelforge-project/flutter/dev/integration_tests/ui/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..b7944c9e9e3497d3a8ab84d87d9842caa5c35731 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/web/index.html @@ -0,0 +1,13 @@ + + + + + + web_integration + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/ui/windows/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c530c16f069cbec894e78c2377b33c5e2f62a12 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/CMakeLists.txt @@ -0,0 +1,101 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(ui LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "ui") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/flutter/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/ui/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..903f4899d6fced0eb941e159f7322b21b320c40c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/CMakeLists.txt b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..394917c053a04daa76d8b94f0a02db0bd99e1034 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/Runner.rc b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/Runner.rc new file mode 100644 index 0000000000000000000000000000000000000000..d6e61e1d4e820a283427fa6f3357a6205c25b8d0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +// IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "io.flutter" "\0" + VALUE "FileDescription", "ui" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "ui" "\0" + VALUE "LegalCopyright", "Copyright (C) 2022 io.flutter. All rights reserved." "\0" + VALUE "OriginalFilename", "ui.exe" "\0" + VALUE "ProductName", "ui" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.cpp b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..252aa267868b66dcc0805718bf85d561f027feb6 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.cpp @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.h b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bbc5836c018a235235e8094ab411d98e1c5443fa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/flutter_window.h @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/main.cpp b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/main.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1358eeeac850a67b3dd69c686944cd98490959fc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/main.cpp @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"ui", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/resource.h b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/resource.h new file mode 100644 index 0000000000000000000000000000000000000000..c245ff19cb5805345a3d3265122298cb01b9d71f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/resource.h @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/runner.exe.manifest b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/runner.exe.manifest new file mode 100644 index 0000000000000000000000000000000000000000..a42ea7687cb67e55af955dc8874a072e087ce3ed --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.cpp b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f677d8d5f71412f9b1445a198b3a7685f5bfcb74 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.cpp @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length <= 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.h b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.h new file mode 100644 index 0000000000000000000000000000000000000000..54414c989ba716f78f3640e5407dd8ac74284aef --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/utils.h @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.cpp b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..14a183d7eaa272a6faf6cc8811639b68142331fa --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.cpp @@ -0,0 +1,292 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.h b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bb93e8879162ee652a0af7e428d938ad027ddcd7 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/ui/windows/runner/win32_window.h @@ -0,0 +1,106 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/b.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/b.dart new file mode 100644 index 0000000000000000000000000000000000000000..edb667ea30ca5f84cb38522c2600152af75719f0 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/b.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'b'; diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/d.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/d.dart new file mode 100644 index 0000000000000000000000000000000000000000..c4a3de83c35bd5d0911c6cb7b3abbf90023fe290 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/d.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'd'; diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/framework_stack_trace.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/framework_stack_trace.dart new file mode 100644 index 0000000000000000000000000000000000000000..bf49c6bc22131b2f80a1d89727e44482a6bbe51f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/framework_stack_trace.dart @@ -0,0 +1,97 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; +import 'package:meta/dart2js.dart'; + +// Tests that the framework prints stack traces in all build modes. +// +// Regression test for https://github.com/flutter/flutter/issues/68616. +// +// See also `dev/integration_tests/web/lib/stack_trace.dart` that tests the +// framework's ability to parse stack traces in all build modes. +Future main() async { + final StringBuffer errorMessage = StringBuffer(); + debugPrint = (String? message, { int? wrapWidth }) { + errorMessage.writeln(message); + }; + + runApp(const ThrowingWidget()); + + // Let the framework flush error messages. + await Future.delayed(Duration.zero); + + final StringBuffer output = StringBuffer(); + if (_errorMessageFormattedCorrectly(errorMessage.toString())) { + output.writeln('--- TEST SUCCEEDED ---'); + } else { + output.writeln('--- UNEXPECTED ERROR MESSAGE FORMAT ---'); + output.writeln(errorMessage); + output.writeln('--- TEST FAILED ---'); + } + + print(output); + html.HttpRequest.request( + '/test-result', + method: 'POST', + sendData: '$output', + ); +} + +bool _errorMessageFormattedCorrectly(String errorMessage) { + if (!errorMessage.contains('Test error message')) { + return false; + } + + // In release mode symbols are minified. No sense testing the contents of the stack trace. + if (kReleaseMode) { + return true; + } + + const List expectedFunctions = [ + 'topLevelFunction', + 'secondLevelFunction', + 'thirdLevelFunction', + ]; + + return expectedFunctions.every(errorMessage.contains); +} + +class ThrowingWidget extends StatefulWidget { + const ThrowingWidget({super.key}); + + @override + State createState() => _ThrowingWidgetState(); +} + +class _ThrowingWidgetState extends State { + @override + void initState() { + super.initState(); + topLevelFunction(); + } + + @override + Widget build(BuildContext context) { + return Container(); + } +} + +@noInline +void topLevelFunction() { + secondLevelFunction(); +} + +@noInline +void secondLevelFunction() { + thirdLevelFunction(); +} + +@noInline +void thirdLevelFunction() { + throw Exception('Test error message'); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/main.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..425a9359ba285e00d07cf7f9491eff09a66c4a1c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/main.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +void main() { + runApp(const Center( + child: Text('Hello, World', textDirection: TextDirection.ltr), + )); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/null_enabled_api.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/null_enabled_api.dart new file mode 100644 index 0000000000000000000000000000000000000000..c0fc0b6556f372a788c1a12a7688c65a846e4095 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/null_enabled_api.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// @dart = 2.12 + +void methodThatAcceptsNonNull(int x) { + print(x + 2); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/null_safe_main.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/null_safe_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..0ef000f6b3297eab38e6dfeb5e84cd7af48c4d07 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/null_safe_main.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// @dart = 2.12 + +String? x; // ignore: unreachable_from_main + +void main() { + print('--- TEST SUCCEEDED ---'); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c449025a964985b13aac199dae98f80f68293b21 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; +Future main() async { + await html.window.navigator.serviceWorker?.ready; + const String response = 'CLOSE?version=1'; + await html.HttpRequest.getString(response); + html.document.body?.appendHtml(response); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_blocked_service_workers.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_blocked_service_workers.dart new file mode 100644 index 0000000000000000000000000000000000000000..f7c7e912957619e6ba42938606ec8256e0969b95 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_blocked_service_workers.dart @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; +Future main() async { + const String response = 'CLOSE?version=1'; + await html.HttpRequest.getString(response); + html.document.body?.appendHtml(response); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_cached_resources.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_cached_resources.dart new file mode 100644 index 0000000000000000000000000000000000000000..f4664478dfcc85968903cd14fa6abc1309d1969a --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/service_worker_test_cached_resources.dart @@ -0,0 +1,18 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +Future main() async { + runApp(const Scaffold( + body: Center( + child: Column( + children: [ + Icon(Icons.ac_unit), + Text('Hello, World', textDirection: TextDirection.ltr), + ], + ), + ), + )); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/sound_mode.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/sound_mode.dart new file mode 100644 index 0000000000000000000000000000000000000000..34b57f4e6bab7bfe170117ab514201ce55266774 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/sound_mode.dart @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// @dart = 2.12 + +import 'dart:html' as html; + +// Verify that web applications can be run in sound mode. +void main() { + const bool isWeak = [] is List; + String output; + if (isWeak) { + output = '--- TEST FAILED ---'; + } else { + output = '--- TEST SUCCEEDED ---'; + } + print(output); + html.HttpRequest.request( + '/test-result', + method: 'POST', + sendData: output, + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/stack_trace.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/stack_trace.dart new file mode 100644 index 0000000000000000000000000000000000000000..4290d5ba9d5f9008d2477061d32d71b2236fa267 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/stack_trace.dart @@ -0,0 +1,160 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; +import 'package:meta/dart2js.dart'; + +/// Expected sequence of method calls. +const List callChain = ['baz', 'bar', 'foo']; + +final List expectedProfileStackFrames = callChain.map((String method) { + return StackFrame( + number: -1, + packageScheme: '', + package: '', + packagePath: '', + line: -1, + column: -1, + className: 'Object', + method: method, + source: '', + ); +}).toList(); + +// TODO(yjbanov): fix these stack traces when https://github.com/flutter/flutter/issues/50753 is fixed. +const List expectedDebugStackFrames = [ + StackFrame( + number: -1, + packageScheme: 'package', + package: 'packages', + packagePath: 'web_integration/stack_trace.dart', + line: 119, + column: 3, + className: '', + method: 'baz', + source: '', + ), + StackFrame( + number: -1, + packageScheme: 'package', + package: 'packages', + packagePath: 'web_integration/stack_trace.dart', + line: 114, + column: 3, + className: '', + method: 'bar', + source: '', + ), + StackFrame( + number: -1, + packageScheme: 'package', + package: 'packages', + packagePath: 'web_integration/stack_trace.dart', + line: 109, + column: 3, + className: '', + method: 'foo', + source: '', + ), +]; + +/// Tests that we do not crash while parsing Web stack traces. +/// +/// This test is run in debug, profile, and release modes. +void main() { + final StringBuffer output = StringBuffer(); + try { + try { + foo(); + } catch (expectedError, expectedStackTrace) { + final List parsedFrames = StackFrame.fromStackTrace(expectedStackTrace); + if (parsedFrames.isEmpty) { + throw Exception( + 'Failed to parse stack trace. Got empty list of stack frames.\n' + 'Stack trace:\n$expectedStackTrace' + ); + } + + // Symbols in release mode are randomly obfuscated, so there's no good way to + // validate the contents. However, profile mode can be checked. + if (kProfileMode) { + _checkStackFrameContents(parsedFrames, expectedProfileStackFrames, expectedStackTrace); + } + + if (kDebugMode) { + _checkStackFrameContents(parsedFrames, expectedDebugStackFrames, expectedStackTrace); + } + } + output.writeln('--- TEST SUCCEEDED ---'); + } catch (unexpectedError, unexpectedStackTrace) { + output.writeln('--- UNEXPECTED EXCEPTION ---'); + output.writeln(unexpectedError); + output.writeln(unexpectedStackTrace); + output.writeln('--- TEST FAILED ---'); + } + print(output); + html.HttpRequest.request( + '/test-result', + method: 'POST', + sendData: '$output', + ); +} + +@noInline +void foo() { + bar(); +} + +@noInline +void bar() { + baz(); +} + +@noInline +void baz() { + throw Exception('Test error message'); +} + +void _checkStackFrameContents(List parsedFrames, List expectedFrames, dynamic stackTrace) { + // Filter out stack frames outside this library so this test is less brittle. + final List actual = parsedFrames + .where((StackFrame frame) => callChain.contains(frame.method)) + .toList(); + final bool stackFramesAsExpected = ListEquality(StackFrameEquality()).equals(actual, expectedFrames); + if (!stackFramesAsExpected) { + throw Exception( + 'Stack frames parsed incorrectly:\n' + 'Expected:\n${expectedFrames.join('\n')}\n' + 'Actual:\n${actual.join('\n')}\n' + 'Stack trace:\n$stackTrace' + ); + } +} + +/// Use custom equality to ignore [StackFrame.source], which is not important +/// for the purposes of this test. +class StackFrameEquality implements Equality { + @override + bool equals(StackFrame e1, StackFrame e2) { + return e1.number == e2.number && + e1.packageScheme == e2.packageScheme && + e1.package == e2.package && + e1.packagePath == e2.packagePath && + e1.line == e2.line && + e1.column == e2.column && + e1.className == e2.className && + e1.method == e2.method; + } + + @override + int hash(StackFrame e) { + return Object.hash(e.number, e.packageScheme, e.package, e.packagePath, e.line, e.column, e.className, e.method); + } + + @override + bool isValidKey(Object? o) => o is StackFrame; +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/web_define_loading.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/web_define_loading.dart new file mode 100644 index 0000000000000000000000000000000000000000..742afbb56080bdd1f5e50342eb7a51f5a70227d4 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/web_define_loading.dart @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +Future main() async { + final StringBuffer output = StringBuffer(); + const String combined = String.fromEnvironment('test.valueA') + + String.fromEnvironment('test.valueB'); + if (combined == 'Example,AValue') { + output.write('--- TEST SUCCEEDED ---'); + print('--- TEST SUCCEEDED ---'); + } else { + output.write('--- TEST FAILED ---'); + print('--- TEST FAILED ---'); + } + + html.HttpRequest.request( + '/test-result', + method: 'POST', + sendData: '$output', + ); +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/web_directory_loading.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/web_directory_loading.dart new file mode 100644 index 0000000000000000000000000000000000000000..2b533009baf930fdf099ccf35ca66dc37afff561 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/web_directory_loading.dart @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +// Attempt to load a file that is hosted in the applications's `web/` directory. +Future main() async { + try { + final html.HttpRequest request = await html.HttpRequest.request( + '/example', + method: 'GET', + ); + final String? body = request.responseText; + if (body == 'This is an Example') { + print('--- TEST SUCCEEDED ---'); + } else { + print('--- TEST FAILED ---'); + } + } catch (err) { + print(err); + print('--- TEST FAILED ---'); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/lib/web_resources_cdn_test.dart b/novelforge-project/flutter/dev/integration_tests/web/lib/web_resources_cdn_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..cfa4537a4a36d8ae93115b36baed956181c00a1d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/lib/web_resources_cdn_test.dart @@ -0,0 +1,44 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +// Attempt to load CanvasKit resources hosted on gstatic. +Future main() async { + const String engineVersion = String.fromEnvironment('TEST_FLUTTER_ENGINE_VERSION'); + if (engineVersion.isEmpty) { + print('--- TEST FAILED ---'); + return; + } + try { + final html.HttpRequest request = await html.HttpRequest.request( + 'https://www.gstatic.com/flutter-canvaskit/$engineVersion/canvaskit.js', + method: 'GET', + ); + final dynamic response = request.response; + if (response != null) { + print('--- TEST SUCCEEDED ---'); + } else { + print('--- TEST FAILED ---'); + } + } catch (err) { + print(err); + print('--- TEST FAILED ---'); + } + try { + final html.HttpRequest request = await html.HttpRequest.request( + 'https://www.gstatic.com/flutter-canvaskit/$engineVersion/canvaskit.wasm', + method: 'GET', + ); + final dynamic response = request.response; + if (response != null) { + print('--- TEST SUCCEEDED ---'); + } else { + print('--- TEST FAILED ---'); + } + } catch (err) { + print(err); + print('--- TEST FAILED ---'); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/test/test.dart b/novelforge-project/flutter/dev/integration_tests/web/test/test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e184f93fdc3ab9cd76338d9353ff3fba200f4745 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/test/test.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:web_integration/a.dart' + if (dart.library.io) 'package:web_integration/b.dart' as message1; +import 'package:web_integration/c.dart' + if (dart.library.html) 'package:web_integration/d.dart' as message2; + +void main() { + if (message1.message == 'a' && message2.message == 'd') { + print('--- TEST SUCCEEDED ---'); + } else { + print('--- TEST FAILED ---'); + } +} diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/example b/novelforge-project/flutter/dev/integration_tests/web/web/example new file mode 100644 index 0000000000000000000000000000000000000000..4507f201a295df787eba4737e97b0691a1f81326 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/example @@ -0,0 +1 @@ +This is an Example \ No newline at end of file diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index.html b/novelforge-project/flutter/dev/integration_tests/web/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..05d4deecc14ea8a2453b56418e6979e3dc760cd3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index.html @@ -0,0 +1,86 @@ + + + + + + + + Web Test + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_blocked_service_workers.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_blocked_service_workers.html new file mode 100644 index 0000000000000000000000000000000000000000..c590fdbd0a2daf581f4b1fc7831836d998a2c87d --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_blocked_service_workers.html @@ -0,0 +1,48 @@ + + + + + + + + Web Test + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs.html new file mode 100644 index 0000000000000000000000000000000000000000..8334b5b641ac84321075243c796776ade176bdbc --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs.html @@ -0,0 +1,39 @@ + + + + + + + + Web Test + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_custom_sw_version.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_custom_sw_version.html new file mode 100644 index 0000000000000000000000000000000000000000..886afa4df72cd2f47ca772b8f6911469ecf0732c --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_custom_sw_version.html @@ -0,0 +1,39 @@ + + + + + + + + Integration test. App load with flutter.js. Custom serviceWorkerVersion provided. + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_nonce.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_nonce.html new file mode 100644 index 0000000000000000000000000000000000000000..fe9c761c5dec299bf0ec59e6848ede5f1a122614 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_nonce.html @@ -0,0 +1,49 @@ + + + + + + + + Integration test. App load with flutter.js and onEntrypointLoaded API. nonce required. + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_tt_on.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_tt_on.html new file mode 100644 index 0000000000000000000000000000000000000000..bcf5c8533bae7e90b0aa020af6831b2cf8cd5189 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_el_tt_on.html @@ -0,0 +1,46 @@ + + + + + + + + Integration test. App load with flutter.js and onEntrypointLoaded API. Trusted Types enabled. + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_entrypoint_loaded.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_entrypoint_loaded.html new file mode 100644 index 0000000000000000000000000000000000000000..a364e597103f3dc254dd37c4cd063ac9f88195ce --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_entrypoint_loaded.html @@ -0,0 +1,42 @@ + + + + + + + + Integration test. App load with flutter.js and onEntrypointLoaded API + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_short.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_short.html new file mode 100644 index 0000000000000000000000000000000000000000..21a494facb002fb81d1f00d9765732924a4212c8 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_with_flutterjs_short.html @@ -0,0 +1,37 @@ + + + + + + + + Web Test + + + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/index_without_flutterjs.html b/novelforge-project/flutter/dev/integration_tests/web/web/index_without_flutterjs.html new file mode 100644 index 0000000000000000000000000000000000000000..05d4deecc14ea8a2453b56418e6979e3dc760cd3 --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/index_without_flutterjs.html @@ -0,0 +1,86 @@ + + + + + + + + Web Test + + + + + + + + + + + diff --git a/novelforge-project/flutter/dev/integration_tests/web/web/manifest.json b/novelforge-project/flutter/dev/integration_tests/web/web/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..79c2cea0a9f16bffbcbd2653a1cd86420d6f7d5f --- /dev/null +++ b/novelforge-project/flutter/dev/integration_tests/web/web/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "web_integration_test", + "short_name": "web_integration_test", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [] +}