Skip to content

Commit adb79bc

Browse files
committed
initial commit
0 parents  commit adb79bc

File tree

81 files changed

+2356
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2356
-0
lines changed

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release

.maestro/assets/README.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<div align="center">
2+
3+
![App logo][app-logo]
4+
5+
[![Get it on Google Play][google-play-badge]][google-play-link]
6+
[![Download on the App Store][app-store-badge]][app-store-link]
7+
8+
# Discover Rudy
9+
10+
> Cross-platform version of the Discover Rudy app.
11+
12+
[Project landing page](https://otwartaturystyka.pl)
13+
14+
</div>
15+
16+
_Started on Friday, 21th October 2016 (Android version)_
17+
18+
_Started on Monday, 12th August 2019 (Flutter version)_
19+
20+
# Overview
21+
22+
Discover Rudy is an easy-to-use yet powerful tourist application designed for
23+
people who visit [the town of
24+
Rudy](https://en.wikipedia.org/wiki/Rudy,_Silesian_Voivodeship) and its
25+
surroundings\*.
26+
27+
- The app has support for many regions, but currently the only one is Rudy.
28+
Also, the name of the app will have to be changed when more regions are added
29+
in the future.
30+
31+
Main features:
32+
33+
- map of 70+ places with possibility to quickly start navigation with Google
34+
Maps
35+
- monuments and interesting places
36+
- bike trails and attractions
37+
- legends and history
38+
- tourist information, notifications about events in the area
39+
- easy check of air quality
40+
- likes and comments on places
41+
- marking places as "discovered" if you are nearby (<100m)
42+
43+
Planned features:
44+
45+
- receiving rewards for visited places
46+
47+
# Release process
48+
49+
`master` is the main branch.
50+
51+
Newest version tag (e.g `v4.2.0`) always represents the code that's been built
52+
and deployed to app stores.
53+
54+
Feature and bugfix branches must be named accordingly (e.g `feature/<name>` or
55+
`fix/<name>`).
56+
57+
# Building
58+
59+
The app uses [Firebase](https://firebase.google.com) as a backend.
60+
61+
To generate freezed models etc.: `$ flutter pub run build_runner build`
62+
63+
To generate localization files: `$ flutter gen-l10n`
64+
65+
To format all code: `$ dart format .`
66+
67+
### Android
68+
69+
1. Get `google-services.json` from Firebase and place it in `android/app`.
70+
2. Extract `api_key.current_key` from `google-services.json` and place it under
71+
`android/app/src/main/res/values/google_maps_key.xml`, like this:
72+
73+
```
74+
<?xml version="1.0" encoding="utf-8"?>
75+
<resources>
76+
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">KEY_GOES_HERE</string>
77+
</resources>
78+
```
79+
80+
### iOS
81+
82+
1. Get `GoogleService-Info.plist` from Firebase and place it in `ios/Runner`.
83+
84+
# Releasing
85+
86+
The app uses [fastlane](https://fastlane.tools) to manage the release process.
87+
88+
[app-logo]: android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
89+
[google-play-badge]: art/google-play-badge.png
90+
[google-play-link]: https://play.google.com/store/apps/details?id=pl.baftek.discoverrudy
91+
[app-store-badge]: art/app-store-badge.png
92+
[app-store-link]: https://apps.apple.com/app/id1528404703

.maestro/assets/map_hybrid.png

160 KB
Loading

.maestro/file_test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appId: pl.baftek.discoverrudy
2+
---
3+
- launchApp:
4+
clearState: true
5+
- addMedia:
6+
- assets/map_hybrid.png
7+

.maestro/flow.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appId: org.wikimedia.wikipedia
2+
# appId: org.wikipedia
3+
---
4+
- launchApp
5+
- runScript: "scripts/setSearchTerm.js"
6+
- tapOn: "Search Wikipedia"
7+
- inputText: ${output.searchTerm}

.maestro/geolocation_test.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
appId: pl.baftek.discoverrudy
2+
name: Geolocation test
3+
---
4+
- launchApp:
5+
clearState: true
6+
- setLocation:
7+
latitude: 50.1947386
8+
longitude: 18.4481962
9+
- tapOn: Next
10+
- tapOn: Next
11+
- tapOn: Next
12+
- tapOn: Done
13+
- tapOn: Rudy
14+
- tapOn: Download
15+
- tapOn: Open
16+
- scrollUntilVisible:
17+
element:
18+
text: .*Monuments.*
19+
- tapOn: .*Monuments.*
20+
- tapOn: Select sort mode
21+
- tapOn: Most nearby
22+
- tapOn: .*Old Abbey.*
23+
- assertVisible: You are 33 m away

.maestro/issue1777_test.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
appId: com.android.settings
2+
---
3+
- launchApp
4+
- tapOn:
5+
id: "com.android.settings:id/search_action_bar"
6+
- inputText: "Lorem ipsum dolor sit amet"
7+
# Here you would do other actions and the cursor would be no longer at the end of the text
8+
- tapOn:
9+
id: "com.google.android.settings.intelligence:id/open_search_view_edit_text"
10+
- eraseText
11+
- tapOn:
12+
id: "com.google.android.settings.intelligence:id/open_search_view_edit_text"
13+
- eraseText

.maestro/issue_565_absolute.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
appId: com.example.example
2+
name: Issue 565 (absolute)
3+
---
4+
- launchApp:
5+
clearState: false
6+
- longPressOn:
7+
point: 100, 100
8+
- longPressOn:
9+
point: 200, 150
10+
- longPressOn:
11+
point: 300, 200
12+
- longPressOn:
13+
point: 400, 250
14+
- longPressOn:
15+
point: 500, 300

.maestro/issue_565_relative.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
appId: com.example.example
2+
name: Issue 565 (relative)
3+
---
4+
- launchApp:
5+
clearState: false
6+
- longPressOn:
7+
point: 10%, 15%
8+
- longPressOn:
9+
point: 25%, 15%
10+
- longPressOn:
11+
point: 50%, 15%
12+
- longPressOn:
13+
point: 75%, 15%
14+
- longPressOn:
15+
point: 90%, 15%

.maestro/scripts/constants.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
output.speed = {
2+
slow_speed: 50,
3+
default_speed: 70,
4+
fast_speed: 80,
5+
}

.maestro/scripts/setSearchTerm.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// setSearchTerm.js
2+
3+
output.searchTerm = 'blackberries'
4+
if (maestro.platform == 'android'){
5+
output.searchTerm = 'robots'
6+
}
7+
if (maestro.platform == 'ios'){
8+
output.searchTerm = 'apples'
9+
}

.maestro/smoke_test.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
appId: pl.baftek.discoverrudy
2+
name: Smoke test
3+
---
4+
- launchApp:
5+
clearState: true
6+
- tapOn: Next
7+
- tapOn: Next
8+
- tapOn: Next
9+
- tapOn: Done
10+
- tapOn: Rudnik
11+
- tapOn: Download
12+
- tapOn: Open
13+
- tapOn: Profile
14+
- tapOn: Info
15+
- tapOn: Discover
16+
- tapOn: .*Open map.*
17+
- tapOn: Back

.maestro/web_test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appId: "https://maestro.mobile.dev"
2+
---
3+
- launchApp
4+
- tapOn: "Ask or Search"
5+
- inputText: "Tap On View"
6+
- tapOn: ".*tapOn.*"
7+
- assertVisible: "In order to tap on a view with the text \"My text\".*"

.maestro/web_test_2.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appId: https://garden.pacia.tech
2+
---
3+
- launchApp
4+
- tapOn:
5+
id: title-header
6+
- tapOn:
7+
id: non-existent-id

.metadata

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
17+
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
18+
- platform: android
19+
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
20+
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
21+
- platform: ios
22+
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
23+
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
24+
25+
# User provided section
26+
27+
# List of Local paths (relative to this file) that should be
28+
# ignored by the migrate tool.
29+
#
30+
# Files that are not part of the templates will be ignored by default.
31+
unmanaged_files:
32+
- 'lib/main.dart'
33+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# demo_app
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

0 commit comments

Comments
 (0)