Skip to content

Commit 38995fb

Browse files
feat: Add login screen.
feat: Add login screen.
2 parents 44f8a84 + 146ed32 commit 38995fb

48 files changed

Lines changed: 1425 additions & 99 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ jobs:
5050
run: flutter pub run build_runner build --delete-conflicting-outputs
5151

5252
# Test
53-
# Temporary disabled due to absence of tests.
54-
# - name: Run tests
55-
# run: flutter test
53+
- name: Run tests
54+
run: flutter test --no-pub test/test.dart
5655

5756
build:
5857
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ app.*.map.json
4949
# Generated files
5050
**/*.g.dart
5151
**/*.freezed.dart
52+
coverage

.idea/runConfigurations/all_tests.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/bloc_tests.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/widget_tests.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 63 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Codephile
22

3-
Codephile is an application specially made for all the competitive coders out there. With features
4-
like submission feed, contest reminders, user search, and many more, this app is a perfect companion
5-
for stalking your fellow coders and learning from them.
3+
Codephile is an application specially made for all the competitive coders out there. With features like submission feed, contest reminders, user search, and many more, this app is a perfect companion for stalking your fellow coders and learning from them.
64

75
## Screenshots
86

@@ -14,42 +12,76 @@ for stalking your fellow coders and learning from them.
1412
Project structure:-
1513

1614
```
17-
|-lib
18-
| |-models {contains object models | used for communication with the back-end}
19-
| |-screens {contains code for the UI}
20-
| |-services {contains code for the buisness logic}
21-
| |-resources {common resources like assets addresses}
22-
| |-main.dart {entry point}
23-
|-assets {contains icons, logos...}
24-
|-android
25-
|-ios
26-
|-test
15+
|- assets { contains icons, images, illustrations }
16+
|- lib
17+
| |- data
18+
| | |- config { contains configuration variables passed at compile-time }
19+
| | |- constants { contains app wide constants like asset strings, colors, routes }
20+
| | |- services { contains ApiService and StorageService }
21+
| |- domain
22+
| | |- models { contains object models }
23+
| | |- repositories { contains repositories according to BLoC architecture pattern }
24+
| |- presentation { contains UI and BLoC code arranged in folders according to app flow }
25+
| | |- components { contains component widgets used throughout the app }
26+
| | |- core { contains important classes including the router and the main_app }
27+
| |- utils { contains utility methods and classes }
28+
| |-main_development.dart { development entrypoint }
29+
| |-main_production.dart { production entrypoint }
30+
|- test { contains widget and unit tests arranged in suites }
31+
```
32+
33+
## Setup for development
34+
35+
#### 0. Clone this repo
36+
```
37+
$ git clone https://github.com/mdgspace/codephile-mobile.git
38+
$ cd codephile-mobile
39+
```
40+
41+
#### 1. Get dependencies
42+
43+
Fetch pub dependencies required by the app.
44+
45+
```
46+
$ flutter pub get
47+
```
48+
49+
#### 2. Generate Freezed models
50+
51+
Some of the code in this app is generate by pub tools.
52+
53+
```
54+
$ flutter pub run build_runner build --delete-conflicting-outputs
55+
```
56+
57+
#### 3. Run the app
58+
59+
We've added two `.idea` and `.vscode` folders to help you run the app in your IDE of choice. If those aren't working properly, use the following command.
60+
61+
```
62+
$ flutter build apk --flavor development --target lib/main_development.dart
2763
```
2864

2965
## How to Contribute
3066

3167
We'd love to accept your patches and contributions to this project. There are just a few small
3268
guidelines you need to follow.
3369

34-
- When contributing to this repository, please first discuss the change you wish to make via the
35-
issues section before starting any major work.
36-
- Once you have started work on any issue open a WIP pull request addressing that issue so that we
37-
know that someone is working on it.
38-
- While writing any code for this project ensure that it is well formatted and consistent with the
39-
architecture of the rest of the project.
40-
- Please make sure that you use the
41-
standard [dart nomenclature](https://dart.dev/guides/language/effective-dart/style).
70+
- When contributing to this repository, please first discuss the change you wish to make via the issues section before starting any major work.
71+
- Once you have started work on any issue open a WIP pull request addressing that issue so that we know that someone is working on it.
72+
- While writing any code for this project ensure that it is well formatted and consistent with the architecture of the rest of the project.
73+
- Please make sure that you use the standard [dart nomenclature](https://dart.dev/guides/language/effective-dart/style).
4274
- Before committing any change make sure their is no compilation warning or error.
4375

44-
### For commit messages
76+
## Commit messages
4577

46-
Please start your commits with these prefixes for better understanding among collaborators, based on
47-
the type of commit:
78+
Please start your commits with these prefixes for better understanding among collaborators, based on the type of commit:
4879

49-
feat: (addition of a new feature)
50-
rfac: (refactoring the code: optimization/ different logic of existing code - output doesn't change, just the way of execution changes)
51-
docs: (documenting the code, be it readme, or extra comments)
52-
bfix: (bug fixing)
53-
chor: (chore - beautifying code, indents, spaces, camelcasing, changing variable names to have an appropriate meaning)
54-
ptch: (patches - small changes in code, mainly UI, for example color of a button, incrasing size of tet, etc etc)
55-
conf: (configurational settings - changing directory structure, updating gitignore, add libraries, changing manifest etc)
80+
- feat: (addition of a new feature)
81+
- rfac: (refactoring the code: optimization/ different logic of existing code - output doesn't change, just the way of execution changes)
82+
- docs: (documenting the code, be it readme, or extra comments)
83+
- bfix: (bug fixing)
84+
- chor: (chore - beautifying code, indents, spaces, camelcasing, changing variable names to have an appropriate meaning)
85+
- ptch: (patches - small changes in code, mainly UI, for example color of a button, incrasing size of tet, etc etc)
86+
- conf: (configurational settings - changing directory structure, updating gitignore, add libraries, changing manifest etc)
87+
- test: (adding or editting tests)

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 30
29+
compileSdkVersion 32
3030

3131
compileOptions {
3232
sourceCompatibility JavaVersion.VERSION_1_8
@@ -45,7 +45,7 @@ android {
4545
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4646
applicationId "in.ac.iitr.mdg.codephile"
4747
minSdkVersion 21
48-
targetSdkVersion 30
48+
targetSdkVersion 32
4949
versionCode flutterVersionCode.toInteger()
5050
versionName flutterVersionName
5151
}

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.6.10'
33
repositories {
44
google()
55
mavenCentral()

assets/app/images/circle.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/app/images/triangle.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)