Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds sksl to reduce animations stutter #167

Merged
merged 3 commits into from
Jul 29, 2021
Merged

Adds sksl to reduce animations stutter #167

merged 3 commits into from
Jul 29, 2021

Conversation

ggirotto
Copy link
Contributor

No description provided.

@ggirotto ggirotto self-assigned this Jul 27, 2021
Comment on lines 42 to 44
minSdkVersion 16
minSdkVersion 17
targetSdkVersion 30
multiDexEnabled true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quill_version now depends on youtube_player_flutter that depends on flutter_inapp_webview that requires min sdk version 17 and multiDexEnabled enabled

@@ -4,10 +4,10 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:layoutr/common_layout.dart';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted the imports alphabetically (flutter analyze complains if not)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if this is linteable? It seems that it should, if flutter is complaining.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being catch by the linter:

CleanShot 2021-07-28 at 17 26 14

I'm just thinking why Flutter wasn't complaining before about it, but I have no idea why

@ggirotto ggirotto changed the title Adds animations sksl to reduce stutter Adds sksl to reduce animations stutter Jul 27, 2021
@ggirotto ggirotto added enhancement New feature or changes to an existing one target: flutter Relates to Flutter and its sub-dependencies UX/UI labels Jul 27, 2021
@ggirotto ggirotto requested a review from matuella July 27, 2021 16:52
Copy link
Contributor

@matuella matuella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should both .json files be committed? Shouldn't these shaders be generated whenever any Dart code changes?

@@ -4,10 +4,10 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:layoutr/common_layout.dart';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if this is linteable? It seems that it should, if flutter is complaining.

@@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the iOS minimum version was also bumped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why Flutter is automatically bumping this version to 9 every time I build the iOS app:

CleanShot 2021-07-28 at 17 15 56

There's nothing about the minimum version change in the Breaking Changes guide, although they state in Build and release an iOS app
that the minimum supported version is iOS 9.0 (we also have deployment target set to 9.0 in the PBX)

CleanShot 2021-07-28 at 17 19 07
CleanShot 2021-07-28 at 17 18 58

TLDR: I don't know why Flutter automatically bumped, but the version 9 seems to be the correct one

@ggirotto ggirotto force-pushed the shader-junk branch 2 times, most recently from c34ec1c to f44d34a Compare July 28, 2021 19:55
@ggirotto
Copy link
Contributor Author

Should both .json files be committed? Shouldn't these shaders be generated whenever any Dart code changes?

Ideally we should have integration tests that run the app and re-generate these JSONs every time the code changes, as suggested in Flutter article. Using these pre-compiled JSONs is a short term solution that may be replaced in the future with these integration tests (or even with a Flutter solution)

@ggirotto ggirotto requested a review from matuella July 28, 2021 20:27
@matuella
Copy link
Contributor

Ideally we should have integration tests that run the app and re-generate these JSONs every time the code changes, as suggested in Flutter article. Using these pre-compiled JSONs is a short term solution that may be replaced in the future with these integration tests (or even with a Flutter solution)

This seems relatively easy to do, and I'm not really inclined to add a version that require a manual change every time a new version is required - and we are aware on how to improve it, meaning, already creating a high priority issue to it. I'm open to do this myself if you want to.

@ggirotto
Copy link
Contributor Author

This seems relatively easy to do, and I'm not really inclined to add a version that require a manual change every time a new version is required - and we are aware on how to improve it, meaning, already creating a high priority issue to it. I'm open to do this myself if you want to.

I'm afraid that these integration tests will be very tricky because we'll basically need integration tests for the entire app animations (scroll the main collections list, open a deck details, close deck details, start a deck, answer a question, etc...).

Basically we need to cover all actions that we've inside the app today. Although I've never implemented integration tests, it seems at least toilsome to do so, and we have other priorities (server) that have higher priority right now.

Do you have something in mind like a MVP for these tests? I think that we can start using a manual approach like the one proposed by this PR and create a project to start implementing these tests and lather remove these animation JSONs

@matuella matuella removed the UX/UI label Jul 29, 2021
matuella
matuella previously approved these changes Jul 29, 2021
@ggirotto ggirotto merged commit 533313c into main Jul 29, 2021
@ggirotto ggirotto linked an issue Jul 30, 2021 that may be closed by this pull request
@ggirotto ggirotto deleted the shader-junk branch August 2, 2021 20:09
ggirotto added a commit that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or changes to an existing one target: flutter Relates to Flutter and its sub-dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor stutter when first opening a collection
2 participants