Skip to content

Commit

Permalink
remove map access token
Browse files Browse the repository at this point in the history
  • Loading branch information
derqurps committed Jun 9, 2023
1 parent d51fc81 commit f32f921
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ jobs:
- name: Build App Bundle
run: >-
flutter build appbundle
--dart-define=THUNDERFOREST_API_KEY=${{ secrets.THUNDERFOREST_API_KEY }}
--dart-define=IS_RELEASE=true
- name: Build APK
run: >-
flutter build apk
--dart-define=THUNDERFOREST_API_KEY=${{ secrets.THUNDERFOREST_API_KEY }}
--dart-define=IS_RELEASE=true
- name: Upload AAB artifact
Expand Down Expand Up @@ -70,7 +68,6 @@ jobs:
- name: Build F-Droid APK
run: >-
flutter build apk
--dart-define=THUNDERFOREST_API_KEY=${{ secrets.THUNDERFOREST_API_KEY }}
--dart-define=IS_RELEASE=true
# Required because F-Droid signs its apk with apksigner which produces a slightly different output than gradle signingConfig
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ For help getting started with NÖ Finderlein development, view the
[Flutter online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

A File called `/lib/auth/secrets.dart` is needed with the following declared variables:

```
var mapAccessToken = "<mapbox api key>";
```

#### Android development

Expand Down
4 changes: 2 additions & 2 deletions lib/auth/api.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './secrets.dart';
// import './secrets.dart';

var mapBoxAccessToken = mapAccessToken;
// var mapBoxAccessToken = mapAccessToken;
var mapUrl = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
// "https://mapsneu.wien.gv.at/basemap/bmaphidpi/normal/google3857/{z}/{y}/{x}.jpeg";
// "https://api.mapbox.com/styles/v1/derqurps/cl2c09wbh002i14pfmsce8b9t/tiles/256/{z}/{x}/{y}@2x?access_token=$mapAccessToken";
Expand Down
6 changes: 3 additions & 3 deletions lib/src/utilities/secret_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class SecretLoader {
}

class Secret {
final String mapAccessToken;
// final String mapAccessToken;
final String mapUrl;
final String mapUrlDark;

Secret({this.mapAccessToken = "", this.mapUrl = "", this.mapUrlDark = ""});
Secret({this.mapUrl = "", this.mapUrlDark = ""});
factory Secret.fromJson(Map<String, dynamic> jsonMap) {
return Secret(
mapAccessToken: jsonMap["mapAccessToken"],
// mapAccessToken: jsonMap["mapAccessToken"],
mapUrl: jsonMap["mapUrl"],
mapUrlDark: jsonMap["mapUrlDark"]);
}
Expand Down

0 comments on commit f32f921

Please sign in to comment.