Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Commit c7d4fb5

Browse files
authored
Revert "Issue:#92"
1 parent d2ab4a9 commit c7d4fb5

File tree

69 files changed

+870
-148
lines changed

Some content is hidden

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

69 files changed

+870
-148
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/appInsightsSettings.xml

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

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

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

LoginUser.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class LoginUser {
2+
3+
private val users = mutableListOf<User>()
4+
5+
fun login(username: String, password: String): Boolean {
6+
// Local login logic
7+
val user = users.find { it.username == username && it.password == password }
8+
return user != null
9+
}
10+
}

PR_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**Issue:** #<ISSUENUMBER>
2+
3+
**Short description of what this resolves:**
4+
5+
**Changes proposed in this pull request and/or Screenshots of changes:**
6+

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## Why Text-it
2+
**Every app developer starts its journey by making a chat app.**</p>
3+
4+
## 🧷Getting Started
5+
- [Setup Git](https://git-scm.com/downloads)
6+
- [Setting up Android Studio](https://developer.android.com/studio/install)
7+
8+
## ✒Tech Stack
9+
* Kotlin
10+
* Firebase
11+
12+
## 🚀Requirements
13+
- Android Studio Giraffe | 2022.3.1
14+
- SDK Version: '>=2.18.0 <3.10.0'
15+
16+
## Claim an issue
17+
Comment on the issue. In case of no activity on the issue even after 2 days, the issue will be reassigned. If you have difficulty approaching the issue, feel free to ask on our discord channel.
18+
19+
## How To Contibute
20+
21+
We welcome your contributions. Please follow the below guidelines while contributing to this project:
22+
23+
1. Fork and star⭐ the repository and clone locally.
24+
2. Create an upstream remote and sync your local copy before your branch. See detailed instructions [here](https://help.github.com/articles/syncing-a-fork)
25+
3. Do the work and commit changes with good commit messages.
26+
4. Once you are confident in your work, create a pull request to the `master` branch of the upstream repository with proper descriptions explaining what you did and wait until we review it😊.
27+
28+
> Check out [GitHub Flow](https://guides.github.com/introduction/flow/) for more details.
29+
30+
**Directly cloning from Android Studio (Alternate method):-**
31+
32+
- Go to FILE ➡️ NEW ➡️ PROJECT FROM VERSION CONTROL
33+
- Copy and paste the url of **FORKED repo** in the URL field and click clone.
34+
35+
## 🧾Common Rules:
36+
- The repository is divided into several tasks. **Each task will be opened subsequently for a limited amount of time and all the submissions have to be made within those allotted days only.** NO submission will be accepted after the allotted time ends. The details for the specific tasks and the time allotted for each can be found in their specific issues.
37+
- The submissions will be judged by the mentors and points🎉 will be allotted by them for each particular task based on various aspects like design thinking process, originality of the idea, visual appeal of the submission, code architecture etc.
38+
- These tasks are for learning and not just scoring points so any kind of Plagiarism or attempt thereof wouldn't be tolerated and would lead to disqualification from OpenCode.
39+
- **Your code should be error-free before creating a pull request.**
40+
41+
> ALL THE FINAL DECISIONS FOR THE JUDGMENT AND AWARDING OF POINTS ⚖️ BASED ON THE SUBMISSION RESIDE WITH THE MENTORS & ORGANISERS. No claim can be made on the number of points awarded by the Mentors & Organisers🙂.
42+
43+
## 🗒️Guidlines
44+
Please help us follow the best practice to make it easy for the reviewer as well as the contributor. We want to focus on the code quality more than on managing pull request ethics.
45+
46+
- Reference the issue numbers in the commit message if it resolves an open issue. Follow the pattern given in [PR_TEMPLATE.md](https://github.com/opencodeiiita/Text-It/blob/master/PR_TEMPLATE.md)
47+
48+
- Provide the relevant screenshot for easier review.
49+
50+
- Pull Request older than 2 days with no response from the contributor shall be marked closed.
51+
52+
53+
## 📢Communication
54+
Whether you are working on a new feature or facing a doubt please feel free to ask us on our [discord](https://discord.gg/D9999YTkS8) channel. We will be happy to help you out😊.
55+
56+
## ✒️Reference Links
57+
- [Download and install the latest version of Git.](https://git-scm.com/downloads)
58+
- [Set your username in Git.](https://help.github.com/articles/setting-your-username-in-git)
59+
- [Set your commit email address in Git.](https://help.github.com/articles/setting-your-commit-email-address-in-git)
60+
- [Firebase official Documentation](https://firebase.google.com/docs)
61+
- [Kotlin official Documentation](https://kotlinlang.org/docs/home.html)

RegisterUser.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
data class User(val username: String, val password: String)
2+
3+
class RegisterUser {
4+
5+
private val users = mutableListOf<User>()
6+
7+
fun register(username: String, password: String): Boolean {
8+
// Local registration logic
9+
if (users.none { it.username == username }) {
10+
users.add(User(username, password))
11+
return true
12+
}
13+
return false
14+
}
15+
}

app/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
plugins {
22
id("com.android.application")
33
id("org.jetbrains.kotlin.android")
4+
id("com.google.gms.google-services")
45
}
56

67
android {
7-
namespace = "com.example.meme"
8+
namespace = "com.example.text_it"
89
compileSdk = 34
910

1011
defaultConfig {
11-
applicationId = "com.example.meme"
12-
minSdk = 24
13-
targetSdk = 34
12+
applicationId = "com.example.text_it"
13+
minSdk = 29
14+
targetSdk = 33
1415
versionCode = 1
1516
versionName = "1.0"
1617

@@ -36,14 +37,13 @@ android {
3637
}
3738

3839
dependencies {
39-
40-
implementation("androidx.core:core-ktx:1.12.0")
40+
implementation("androidx.core:core-ktx:1.9.0")
4141
implementation("androidx.appcompat:appcompat:1.6.1")
4242
implementation("com.google.android.material:material:1.10.0")
4343
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
44+
implementation("com.google.firebase:firebase-auth:22.3.0")
45+
implementation("com.google.firebase:firebase-database:20.3.0")
4446
testImplementation("junit:junit:4.13.2")
4547
androidTestImplementation("androidx.test.ext:junit:1.1.5")
4648
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
47-
48-
implementation("com.android.volley:volley:1.2.1")
4949
}

app/google-services.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "432704450552",
4+
"project_id": "text-it-14055",
5+
"storage_bucket": "text-it-14055.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:432704450552:android:f9f0c12c9cd8ce2c92700d",
11+
"android_client_info": {
12+
"package_name": "com.example.text_it"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyDWvjY2CAFk_M5hRoOKRRzIhDNoF1Ox_Is"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}

0 commit comments

Comments
 (0)