Compare commits

..

1 Commits

Author SHA1 Message Date
040e5c9f83 cleaner ci
Some checks failed
Build and push docker image / Build (pull_request) Failing after 2m10s
Build and release APK / Build APK (pull_request) Successful in 6m34s
Build web / Build Web (pull_request) Successful in 1m42s
2024-06-07 10:44:37 +02:00
4 changed files with 27 additions and 22 deletions

View File

@ -44,7 +44,13 @@ jobs:
- name: Add required secrets - name: Add required secrets
run: | run: |
echo ${{ secrets.ANDROID_SECRETS_BASE64 }} | base64 -d > android/secrets.properties echo ${{ secrets.ANDROID_SECRETS_BASE64 }} | base64 -d > ./android/secrets.properties
working-directory: ./frontend
- name: Sanity check
run: |
ls
ls -lah android
working-directory: ./frontend working-directory: ./frontend
- run: flutter build apk --release --split-per-abi --build-number=${{ gitea.run_number }} - run: flutter build apk --release --split-per-abi --build-number=${{ gitea.run_number }}
@ -57,5 +63,3 @@ jobs:
path: frontend/build/app/outputs/flutter-apk/ path: frontend/build/app/outputs/flutter-apk/
if-no-files-found: error if-no-files-found: error
retention-days: 15 retention-days: 15

View File

@ -12,6 +12,8 @@ if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader -> localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader) localProperties.load(reader)
} }
} else {
throw new GradleException("Secrets file secrets.properties not found")
} }
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionCode = localProperties.getProperty('flutter.versionCode')

View File

@ -1,4 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Required to fetch data from the internet. -->
<uses-permission android:name="android.permission.INTERNET"/>
<application <application
android:label="fast_network_navigation" android:label="fast_network_navigation"
android:name="${applicationName}" android:name="${applicationName}"
@ -34,9 +37,8 @@
android:name="com.google.android.geo.API_KEY" android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" android:value="${MAPS_API_KEY}"
/> />
</application> </application>
<!-- Required to query activities that can process text, see: <!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility?hl=en and https://developer.android.com/training/package-visibility?hl=en and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
@ -48,7 +50,4 @@
<data android:mimeType="text/plain"/> <data android:mimeType="text/plain"/>
</intent> </intent>
</queries> </queries>
<!-- Required to fetch data from the internet. -->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest> </manifest>

View File

@ -21,20 +21,20 @@ class _LandmarkCardState extends State<LandmarkCard> {
), ),
child: Row( child: Row(
children: [ children: [
// Container( Container(
// width: 160, width: 160,
// height: 160, height: 160,
// decoration: BoxDecoration( decoration: BoxDecoration(
// borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
// topLeft: Radius.circular(15.0), topLeft: Radius.circular(15.0),
// bottomLeft: Radius.circular(15.0), bottomLeft: Radius.circular(15.0),
// ), ),
// image: DecorationImage( image: DecorationImage(
// image: NetworkImage(widget.landmark.imageURL), image: NetworkImage(widget.landmark.imageURL),
// fit: BoxFit.cover, fit: BoxFit.cover,
// ), ),
// ), ),
// ), ),
Padding( Padding(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),