Skip to content

Commit bb3eb5a

Browse files
committed
Update to the more current ones
1 parent 012db65 commit bb3eb5a

File tree

114 files changed

+375
-11925
lines changed

Some content is hidden

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

114 files changed

+375
-11925
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Flutter Devs Kenya is a community of Flutter enthusiasts, developers, and learne
1515

1616
## Project Details 🛠️
1717

18-
- **Website:** Built using Nuxt 3 for modern web applications. 💻
18+
- **Website:** Built using Jaspr. 💻
1919
- **Mobile App:** Flutter-based app for convenient access. 📱
2020

2121
## Get Involved 🙌

mobile/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related
@@ -25,12 +27,11 @@ migrate_working_dir/
2527
**/doc/api/
2628
**/ios/Flutter/.last_build_id
2729
.dart_tool/
28-
.flutter-plugins
2930
.flutter-plugins-dependencies
30-
.packages
3131
.pub-cache/
3232
.pub/
3333
/build/
34+
/coverage/
3435

3536
# Symbolication related
3637
app.*.symbols

mobile/.metadata

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
8-
channel: stable
7+
revision: "f5a8537f90d143abd5bb2f658fa69c388da9677b"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
17-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
16+
create_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
17+
base_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
1818
- platform: android
19-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
20-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
19+
create_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
20+
base_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
2121
- platform: ios
22-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
23-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
24-
- platform: linux
25-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
26-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
27-
- platform: macos
28-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
29-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
22+
create_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
23+
base_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
3024
- platform: web
31-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
32-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
33-
- platform: windows
34-
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
35-
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
25+
create_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
26+
base_revision: f5a8537f90d143abd5bb2f658fa69c388da9677b
3627

3728
# User provided section
3829

mobile/Makefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

mobile/README.md

Lines changed: 8 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,16 @@
11
# mobile
22

3-
The Flutter Devs ke mobile application
3+
A new Flutter project.
44

55
## Getting Started
66

7-
This project is a starting point for the flutter devs ke mobile app
8-
Since the application is made using flutter, you will first have to install and set up [Flutter](https://docs.flutter.dev/get-started/install)
7+
This project is a starting point for a Flutter application.
98

10-
Fork this repository
11-
Clone the forked repository. Replace "[Git username]" with your GitHub username
9+
A few resources to get you started if this is your first Flutter project:
1210

13-
```
14-
git clone https://github.com/[Git username]/flutter_ke.git
15-
```
16-
17-
Go to the mobile folder:
18-
19-
```
20-
cd mobile
21-
```
22-
23-
Get the dependencies
24-
25-
```
26-
flutter pub get
27-
```
28-
29-
Use build_runner to generate required files
30-
```
31-
dart run build_runner watch
32-
```
33-
34-
Finally run the project and make changes as you wish
35-
```
36-
flutter run
37-
```
38-
39-
## Documentation
40-
41-
### Code generation
42-
43-
This project uses code generation through freezed and riverpod. Code generation can be a divisive topic.
44-
[Here's why we chose to use code generation](https://medium.com/@michael.mboya/flutter-why-generate-code-42c09fd386a3)
45-
46-
### State Management - Riverpod
47-
48-
State management is a hot topic within flutter. The choice of one greatly impacts the arhitecture of
49-
the app. This [article](https://medium.com/@michael.mboya/building-flutter-kenya-why-we-use-riverpod-b7fc334a27d1) explains the reasoning behind choosing riverpod
50-
51-
### Routing package - gorouter
52-
53-
[gorouter](https://pub.dev/) on pub.dev.
54-
Gorouter is a routing package for flutter that uses the Router API providing convinient, url-based API for navigating between different screens.
55-
We chose gorouter for our project because you can define url patterns, handle url navigation, deep linking and its rich set of features.
56-
57-
Features and pros of using gorouter
58-
- Named routes
59-
- Parsing path and query params with a templet syntax, eg "user/:id"
60-
- Subroutes - displaying multiple screens for a destination
61-
- Supports redirection
62-
- Support for multiple navigators via [ShellRoute](https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html)
63-
- Supports both Material and Cupertino apps
64-
- Type-safe routes
65-
- Custom transitions and animations
66-
- Elegant and declarative approach to routing
67-
68-
Cons of using gorouter
69-
- There is a potential increase in the size of our application due to using gorouter package.
70-
- Learning curve, Our contributers that have been using the default inbuilt routing package will have to familiarize and learn how to use it.
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
7113

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.

mobile/analysis_options.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@
99
# packages, and plugins designed to encourage good coding practices.
1010
include: package:flutter_lints/flutter.yaml
1111

12-
analyzer:
13-
plugins:
14-
custom_lint
15-
1612
linter:
1713
# The lint rules applied to this project can be customized in the
1814
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
1915
# included above or to enable additional rules. A list of all available lints
20-
# and their documentation is published at
21-
# https://dart-lang.github.io/linter/lints/index.html.
16+
# and their documentation is published at https://dart.dev/lints.
2217
#
2318
# Instead of disabling a lint rule for the entire project in the
2419
# section below, it can also be suppressed for a single line of code

mobile/android/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
# See https://flutter.dev/to/reference-keystore
1112
key.properties
1213
**/*.keystore
1314
**/*.jks

mobile/android/app/build.gradle

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "ke.flutternairobi.mobile"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_17
15+
targetCompatibility = JavaVersion.VERSION_17
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_17.toString()
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "ke.flutternairobi.mobile"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.getByName("debug")
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}

mobile/android/app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
android:name=".MainActivity"
88
android:exported="true"
99
android:launchMode="singleTop"
10+
android:taskAffinity=""
1011
android:theme="@style/LaunchTheme"
1112
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1213
android:hardwareAccelerated="true"
@@ -30,4 +31,15 @@
3031
android:name="flutterEmbedding"
3132
android:value="2" />
3233
</application>
34+
<!-- Required to query activities that can process text, see:
35+
https://developer.android.com/training/package-visibility and
36+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37+
38+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39+
<queries>
40+
<intent>
41+
<action android:name="android.intent.action.PROCESS_TEXT"/>
42+
<data android:mimeType="text/plain"/>
43+
</intent>
44+
</queries>
3345
</manifest>

0 commit comments

Comments
 (0)