Skip to content

Commit

Permalink
feat:removed leagacy files and code
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashkranjan committed Oct 18, 2023
1 parent c4479a4 commit ba63f6b
Show file tree
Hide file tree
Showing 29 changed files with 564 additions and 4,205 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

45 changes: 33 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,70 @@
# Contributing Guidelines ✅

This documentation contains a set of guidelines to help you during the contribution process.
This documentation contains a set of guidelines to help you during the contribution process.
We are happy to welcome all the contributions from anyone willing to improve/add new scripts to this project. Thank you for helping out and remember,
**no contribution is too small.**

# Submitting Contributions👩‍💻👨‍💻
## Submitting Contributions 👩‍💻👨‍💻

Below you will find the process and workflow used to review and merge your changes.

## Step 1 : Find an issue

- Take a look at the Existing Issues or create your **own** Issues!
- Wait for the Issue to be assigned to you after which you can start working on it.
- Note : Every change in this project should/must have an associated issue.
- Note : Every change in this project should/must have an associated issue.

## Step 2 : Fork the Project

- Fork this Repository. This will create a Local Copy of this Repository on your Github Profile. Keep a reference to the original project in `upstream` remote.

```
$ git clone https://github.com/<your-username>/Friday
$ cd Friday
$ git remote add upstream https://github.com/avinashkranjan/Friday
git clone https://github.com/<your-username>/Friday
cd Friday
git remote add upstream https://github.com/avinashkranjan/Friday
```

- If you have already forked the project, update your copy before working.

```
$ git remote update
$ git checkout <branch-name>
$ git rebase upstream/<branch-name>
git remote update
git checkout <branch-name>
git rebase upstream/<branch-name>
```

## Step 3 : Branch

Create a new branch. Use its name to identify the issue your addressing.

```
# It will create a new branch with name Branch_Name and switch to that branch
$ git checkout -b branch_name
```

## Step 4 : Work on the issue assigned
- Work on the issue(s) assigned to you.

- Work on the issue(s) assigned to you.
- Add all the files/folders needed.
- After you've made changes or made your contribution to the project add changes to the branch you've just created by:

```
# To add all new files to branch Branch_Name
$ git add .
```

## Step 5 : Commit

- To commit give a descriptive message for the convenience of reveiwer by:

```
# This message get associated with all files you have changed
$ git commit -m 'message
```

- **NOTE**: A PR should have only one commit. Multiple commits should be squashed.

## Step 6 : Work Remotely

- Now you are ready to your work to the remote repository.
- Push your work to your remote repository.

Expand All @@ -58,19 +76,22 @@ $ git push -u origin Branch_Name
```

## Step 7 : Pull Request
- Go to your repository in browser and click on compare and pull requests.

- Go to your repository in browser and click on compare and pull requests.
- Add a title and description to your pull request that explains your contribution.

- Voila! Your Pull Request has been submitted and will be reviewed by the moderators and merged.🥳

## Need more help?🤔

You can refer to the following articles on basics of Git and Github and also contact the Project Mentors, in case you are stuck:

- [Forking a Repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)
- [Cloning a Repo](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
- [How to create a Pull Request](https://opensource.com/article/19/7/create-pull-request-github)
- [Getting started with Git and GitHub](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6)
- [Learn GitHub from Scratch](https://lab.github.com/githubtraining/introduction-to-github)


## Tip from us😇

Learning and understanding takes time, so don't worry if things seem challenging at first. So, do not worry at all. We know **you have got this**!💪
6 changes: 3 additions & 3 deletions android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
arguments=--init-script C\:\\Users\\Admin\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.20.0\\config_win\\org.eclipse.osgi\\54\\0\\.cp\\gradle\\init\\init.gradle --init-script C\:\\Users\\Admin\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.20.0\\config_win\\org.eclipse.osgi\\54\\0\\.cp\\gradle\\protobuf\\init.gradle
arguments=--init-script /var/folders/xv/0gfqfnr17bdcwbbnbb0gm0rr0000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/xv/0gfqfnr17bdcwbbnbb0gm0rr0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=C\:/Program Files/Java/jdk-19
java.home=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
jvm.arguments=
offline.mode=false
override.workspace.settings=true
Expand Down
48 changes: 46 additions & 2 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,61 @@
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1045472240686:android:03a08917e27637088febbf",
"mobilesdk_app_id": "1:1045472240686:android:30a67f49892fee138febbf",
"android_client_info": {
"package_name": "com.avinashkranjan.friday"
}
},
"oauth_client": [
{
"client_id": "1045472240686-kb4dutm11oj1kvv64440ruu28u624lk0.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAUIjZBBzAPZ83p1yDPCOAra-ErOs9K2ls"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "1045472240686-kb4dutm11oj1kvv64440ruu28u624lk0.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "1045472240686-6hi7tgkpuq1860ntv6ungfqv4f8pop23.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "io.flutter.flutter.app"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1045472240686:android:03a08917e27637088febbf",
"android_client_info": {
"package_name": "com.example.class_manager"
}
},
"oauth_client": [
{
"client_id": "1045472240686-q3fnk5dg2ra4lg4u3ufqe2pkj74gm6st.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.class_manager",
"certificate_hash": "1196d792aca8f2486fc068a03f5abda9d0d0fe50"
}
},
{
"client_id": "1045472240686-u6nq1paekv6a6jd10h813g2rqkfn977b.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.avinashkranjan.friday",
"package_name": "com.example.class_manager",
"certificate_hash": "026591a5ef09087a8f36e0991636e4bd40bfd9f2"
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Generated file.
//
// If you wish to remove Flutter's multidex support, delete this entire file.
//
// Modifications to this file should be done in a copy under a different name
// as this file may be regenerated.

package io.flutter.app;

import android.app.Application;
import android.content.Context;
import androidx.annotation.CallSuper;
import androidx.multidex.MultiDex;

/**
* Extension of {@link android.app.Application}, adding multidex support.
*/
public class FlutterMultiDexApplication extends Application {
@Override
@CallSuper
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -605,4 +605,4 @@
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 2 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
7 changes: 7 additions & 0 deletions ios/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:1045472240686:ios:c37220ac9abcc6da8febbf",
"FIREBASE_PROJECT_ID": "friday-683ad",
"GCM_SENDER_ID": "1045472240686"
}
70 changes: 70 additions & 0 deletions lib/firebase_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;

/// Default [FirebaseOptions] for use with your Firebase apps.
///
/// Example:
/// ```dart
/// import 'firebase_options.dart';
/// // ...
/// await Firebase.initializeApp(
/// options: DefaultFirebaseOptions.currentPlatform,
/// );
/// ```
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for web - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for macos - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.linux:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for linux - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
default:
throw UnsupportedError(
'DefaultFirebaseOptions are not supported for this platform.',
);
}
}

static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyAUIjZBBzAPZ83p1yDPCOAra-ErOs9K2ls',
appId: '1:1045472240686:android:30a67f49892fee138febbf',
messagingSenderId: '1045472240686',
projectId: 'friday-683ad',
storageBucket: 'friday-683ad.appspot.com',
);

static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyCQzb8FYxi0tSHoK4YQa63ZcLAwzomyAy0',
appId: '1:1045472240686:ios:c37220ac9abcc6da8febbf',
messagingSenderId: '1045472240686',
projectId: 'friday-683ad',
storageBucket: 'friday-683ad.appspot.com',
androidClientId: '1045472240686-q3fnk5dg2ra4lg4u3ufqe2pkj74gm6st.apps.googleusercontent.com',
iosClientId: '1045472240686-m2blkie00hbu64eq9lujisane5l9ihef.apps.googleusercontent.com',
iosBundleId: 'com.avinashkranjan.friday',
);
}
16 changes: 8 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:friday/feedback.dart';
import 'package:friday/firebase_options.dart';
import 'package:friday/models/alert.dart';
import 'package:friday/screens/faqs_screen.dart';
import 'package:friday/screens/phone_verification_screen.dart';
Expand Down Expand Up @@ -31,11 +32,12 @@ import 'utils/notifications.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
NotificationService().initNotification();
NotificationService().showNotification(title: 'olalalaaa', body: 'it works');
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
await Firebase.initializeApp();
runApp(
MultiProvider(
// create the provider
providers: [
ChangeNotifierProvider(
create: (_) => ThemeProvider(),
Expand All @@ -59,7 +61,6 @@ class _MyAppState extends State<MyApp> {
void initState() {
super.initState();
checkFirstRun();

loadpref();
}

Expand Down Expand Up @@ -117,7 +118,6 @@ class _MyAppState extends State<MyApp> {
SystemUiOverlayStyle(statusBarColor: Colors.transparent));

return MultiProvider(
///Adding providers for App
providers: [
ChangeNotifierProvider(
create: (context) => UserInfoServices(),
Expand All @@ -136,13 +136,13 @@ class _MyAppState extends State<MyApp> {
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
locale: Locale('hi'),
locale: Locale('en'),
supportedLocales: [
Locale('ru'),
Locale('en'), // English
Locale('en'),
Locale('hi'),
Locale('gu'), // Hindi
Locale('mr') // Hindi
Locale('gu'),
Locale('mr')
],
debugShowCheckedModeBanner: false,
title: 'Friday',
Expand Down
Loading

0 comments on commit ba63f6b

Please sign in to comment.