git-touch icon indicating copy to clipboard operation
git-touch copied to clipboard

F-Droid build failed

Open linsui opened this issue 4 years ago • 17 comments

The current Dart SDK version is 2.10.4.
Because git_touch requires SDK version >=2.12.0 <3.0.0, version solving failed.

Which flutter version should be used? Thanks!

linsui avatar Jun 03 '21 14:06 linsui

Stable channel should be fine

pd4d10 avatar Jun 03 '21 14:06 pd4d10

I tried 2.2.1 and it stucked forever.

linsui avatar Jun 03 '21 14:06 linsui

This is the version in my local machine:

> flutter --version
Flutter 2.2.1 • channel stable • [email protected]:flutter/flutter.git
Framework • revision 02c026b03c (7 days ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1

pd4d10 avatar Jun 03 '21 15:06 pd4d10

The build recipe is

  - versionName: 1.12.4
    versionCode: 25
    commit: v1.12.4
    output: build/app/outputs/flutter-apk/app-release.apk
    srclibs:
      - [email protected]
    build:
      - $$flutter$$/bin/flutter config --no-analytics
      - $$flutter$$/bin/flutter build apk --no-tree-shake-icons

It stuck at

To see a detailed report, use the untranslated-messages-file 
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection> 
This will generate a JSON format file containing all messages that 
need to be translated.
lib/screens/ge_search.dart:28:39: Warning: Operand of null-aware operation '?.' has type 'String' which excludes null.
  String get _keyword => _controller!.text?.trim() ?? '';
                                      ^
lib/screens/gh_repo.dart:273:54: Warning: Operand of null-aware operation '?.' has type 'GRepoCommit_history' which excludes null.
 - 'GRepoCommit_history' is from 'package:git_touch/graphql/github.data.gql.dart' ('lib/graphql/github.data.gql.dart').
                        ((ref.target as GRepoCommit).history?.totalCount ?? 0)
                                                     ^
lib/screens/gl_search.dart:29:39: Warning: Operand of null-aware operation '?.' has type 'String' which excludes null.
  String get _keyword => _controller!.text?.trim() ?? '';
                                      ^
lib/screens/gh_search.dart:28:39: Warning: Operand of null-aware operation '?.' has type 'String' which excludes null.
  String get _keyword => _controller!.text?.trim() ?? '';
                                      ^

linsui avatar Jun 05 '21 11:06 linsui

The current Dart SDK version is 2.10.4. I tried 2.2.1 and it stucked forever.

@linsui seems like your dart version is 2.10.4 but your flutter version is fine. You've to update dart to >=2.12.0 separately. Or are you already using dart >= 2.12.0?

shreyas1599 avatar Jun 08 '21 13:06 shreyas1599

The current Dart SDK version is 2.10.4.

This is from an old flutter version. I'm not sure which Dart version is used. The full log is available at https://gitlab.com/linsui/fdroiddata/-/jobs/1321205433 if it's useful.

linsui avatar Jun 08 '21 15:06 linsui

Oh ok

  String get _keyword => _controller!.text?.trim() ?? '';
                                      ^
lib/screens/gh_repo.dart:273:54: Warning: Operand of null-aware operation '?.' has type 'GRepoCommit_history' which excludes null.
 - 'GRepoCommit_history' is from 'package:git_touch/graphql/github.data.gql.dart' ('lib/graphql/github.data.gql.dart').
                        ((ref.target as GRepoCommit).history?.totalCount ?? 0)
                                                     ^
lib/screens/gl_search.dart:29:39: Warning: Operand of null-aware operation '?.' has type 'String' which excludes null.
  String get _keyword => _controller!.text?.trim() ?? '';
                                      ^
lib/screens/gh_search.dart:28:39: Warning: Operand of null-aware operation '?.' has type 'String' which excludes null.
  String get _keyword => _controller!.text?.trim() ?? '';

These shouldn't cause a problem. They're just warnings. I tried building an android release on my local machine and it works fine. Not sure what the problem is. Did a re-run of the build also not work?

shreyas1599 avatar Jun 08 '21 16:06 shreyas1599

I tried to rerun it but got the same error.

linsui avatar Jun 08 '21 23:06 linsui

1.13.0 stuch at

"ca": 4 untranslated message(s).
"hu": 87 untranslated message(s).
"ru": 15 untranslated message(s).
"si": 85 untranslated message(s).
To see a detailed report, use the untranslated-messages-file 
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection> 
This will generate a JSON format file containing all messages that 
need to be translated.

linsui avatar Jun 17 '21 09:06 linsui

@linsui is there any way to test this locally? Do you have any links?

shreyas1599 avatar Jun 17 '21 09:06 shreyas1599

Yes, you can test it with fdroidserver locally. The gitlab CI use the docker image.

linsui avatar Jun 17 '21 09:06 linsui

Please note that the last available F-Droid version does not include #236, so GitHub authentication does not work for new users. They cannot complete the auth flow.

michaelblyons avatar Sep 26 '21 23:09 michaelblyons