GreenPassApp / greenpass-app

https://greenpassapp.eu
GNU General Public License v3.0
97 stars 7 forks source link

iOS code does not build. Error when reading 'lib/consts/private.dart': No such file or directory #21

Closed pro-sumer closed 2 years ago

pro-sumer commented 3 years ago

In order to see whether I can support another country I would like to build the (iOS) App and run it on my iPhone, but the unmodified code does not build:

    lib/connectivity/apple_wallet.dart:4:8: Error: Error when reading 'lib/consts/private.dart': No such file or directory
    import 'package:greenpass_app/consts/private.dart';
           ^
    lib/connectivity/apple_wallet.dart:15:28: Error: Getter not found: 'Private'.
              'Authorization': Private.greenpassApiKey,
                               ^^^^^^^
JakobStadlhuber commented 2 years ago

Create a private.dart in lib/consts containing: class Private { static var greenpassApiKey = "PW"; }