Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ It was general, intuitive, short and sweet description, For more detailed descri

## Support Docs

You can checkout support docs, provided in [docs/](docs/) Or You can even seek help on our [telegram community](https://t.me/passwordmanagercommunity)
You can checkout support docs, provided in [docs/](docs/) Or You can even seek help on our [telegram community](https://t.me/passcodescommunity)

## Contribution Are Appreciated!!!

> [!important]
> Currently the project (more or less also me) is not ready for (code) contributions.
> This project is currently limited by my expertise. Meaning I don;t want others code in codebase, that I don;t understand, I am learning android and will surely learn basic off by start of 2026.. then i will allow the contibution... but not now as i am beginner in android and might have difficuly understand code not written by me...
>
> There are still other ways to contribute to project.. like testing app, documenation and just spreading the word around about the app. but contribution to code is limited.... And i hope you can understand...
>
> For more infomation on what kind of contribtuion we approve, please open a issue in repo. that way you avoid wasteing your time...

By, contributing to project you accept the [CONTRIBUTING.md](CONTRIBUTING.md) & [MIT License](LICENSE.txt).

## Licence
Expand Down
25 changes: 12 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.android.build.api.dsl.ApplicationExtension
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("kotlin-kapt")
id("com.google.devtools.ksp")
// If you use Kotlin Parcelize, uncomment the next line:
// id("kotlin-parcelize")
id("com.google.android.gms.oss-licenses-plugin")
Expand All @@ -22,15 +22,9 @@ android {
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "0.1.0-Alpha"
versionName = "v1.0.0-Stable"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}

signingConfigs {
Expand Down Expand Up @@ -110,14 +104,19 @@ android {
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = "11"
}

buildFeatures {
viewBinding = true
}
}

ksp {
val location = "$projectDir/schemas"
arg("room.schemaLocation", location)
}

kotlinOptions {
jvmTarget = "11"
}
}

dependencies {
Expand All @@ -144,7 +143,7 @@ dependencies {
// implementation("androidx.databinding:viewbinding:7.4.1")

implementation("androidx.room:room-ktx:$roomVersion")
kapt("androidx.room:room-compiler:$roomVersion")
ksp("androidx.room:room-compiler:$roomVersion")

// Kotlin Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
Expand Down
81 changes: 35 additions & 46 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,55 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools">

<uses-sdk
android:minSdkVersion="26"
android:targetSdkVersion="34" />
<application
android:allowBackup="true"
android:icon="${appIcon}"
android:label="${appLabel}"
android:localeConfig="@xml/locales_config"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/PasscodesTheme.Default"
tools:targetApi="33">
<activity
android:name=".ui.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<!-- Storage access permission
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="32"
tools:ignore="ScopedStorage" />

<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" /> -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<application
android:allowBackup="true"
android:icon="${appIcon}"
android:label="${appLabel}"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/PasscodesTheme.Default"
android:localeConfig="@xml/locales_config">
<activity
android:name=".ui.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.PasswordManagerActivity" />
<activity android:name=".ui.SavePasswordActivity" />
<activity android:name=".ui.LoadPasswordActivity" />
<activity android:name=".ui.ViewPasswordActivity" />
<activity android:name=".ui.UpdatePasswordActivity" />
<activity android:name=".ui.SettingsActivity" />
<activity android:name=".ui.AboutUsActivity" />
<activity android:name=".ui.SavePasswordActivity" />
<activity android:name=".ui.LoadPasswordActivity" />
<activity android:name=".ui.ViewPasswordActivity" />
<activity android:name=".ui.UpdatePasswordActivity" />
<activity android:name=".ui.SettingsActivity" />
<activity android:name=".ui.AboutUsActivity" />
<activity android:name=".ui.LicenseActivity" />

<service
android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
android:enabled="false"
android:exported="false">
<meta-data
android:name="autoStoreLocales"
android:value="true" />
</service>
</application>
<service
android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
android:enabled="false"
android:exported="false">
<meta-data
android:name="autoStoreLocales"
android:value="true" />
</service>
</application>

</manifest>
21 changes: 21 additions & 0 deletions app/src/main/assets/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Jeel Dobariya

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import androidx.room.RoomDatabase;

@Database(
entities = [Password::class],
version = 1
// exportSchema = false
version = 1,
exportSchema = true
)
abstract class MasterDatabase : RoomDatabase() {
abstract val passwordsDao: PasswordsDao
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ package com.jeeldobariya.passcodes.ui

import com.jeeldobariya.passcodes.databinding.ActivityAboutUsBinding
import com.jeeldobariya.passcodes.utils.Constant

import com.google.android.gms.oss.licenses.OssLicensesMenuActivity

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
Expand Down Expand Up @@ -42,7 +39,7 @@ class AboutUsActivity : AppCompatActivity() {
}

binding.cardLicense.setOnClickListener {
startActivity(Intent(this, OssLicensesMenuActivity::class.java))
startActivity(Intent(this, LicenseActivity::class.java))
}

binding.cardReportBug.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.jeeldobariya.passcodes.ui

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
import com.jeeldobariya.passcodes.databinding.ActivityLicenseBinding
import java.io.BufferedReader
import java.io.InputStreamReader

class LicenseActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
var binding = ActivityLicenseBinding.inflate(layoutInflater)
setContentView(binding.root)

try {
val inputStream = assets.open("LICENSE.txt")
val bufferedReader = BufferedReader(InputStreamReader(inputStream))
val licenseText = bufferedReader.use { it.readText() }
binding.licenseTextView.text = licenseText
} catch (e: Exception) {
binding.licenseTextView.text = "Error loading license file."
e.printStackTrace()
}

binding.thirdPartyBtn.setOnClickListener { v ->
val thirdPartyLicenseActivity = Intent(this, OssLicensesMenuActivity::class.java)
startActivity(thirdPartyLicenseActivity)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package com.jeeldobariya.passcodes.utils
object Constant {
const val REPO_URL = "https://github.com/JeelDobariya38/Passcodes"
const val REPORT_BUG_URL = "https://github.com/JeelDobariya38/password-manager/issues/new?template=bug-report.md"
const val CHANGELOG_URL = "https://github.com/JeelDobariya38/Passcodes/blob/main/changelog.md"
const val SECURITY_GUIDE_URL = "https://github.com/JeelDobariya38/Passcodes/blob/main/docs/security_guide.md"
const val CHANGELOG_URL = "https://github.com/JeelDobariya38/Passcodes/blob/main/docs/release-notes.md"
const val SECURITY_GUIDE_URL = "https://github.com/JeelDobariya38/Passcodes/blob/main/docs/security-guide.md"
}
25 changes: 25 additions & 0 deletions app/src/main/res/layout/activity_license.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:context=".ui.MainActivity"
android:padding="4sp" >

<com.google.android.material.textview.MaterialTextView
android:id="@+id/license_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:textSize="12sp" />

<com.google.android.material.button.MaterialButton
android:id="@+id/third_party_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Third Party License"
android:textSize="12sp" />

</LinearLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">Passcodes</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Entwickelt von: Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">Passcodes</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Desarrollado por: Dobariya Jeel</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">पासकोड्स</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">डेवलप किया गया: जीत डोबरिया</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">Passcodes</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Dikembangkan oleh: Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">パスコード</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">開発者:Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ko/string.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">패스코드</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">개발자: Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-kr/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">Passcodes</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Jaejak: Dobariya Jeel</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-vi/string.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">Mã Bảo Mật</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Phát triển bởi: Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">密码本</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">开发者:Jeel Dobariya</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name">Passcodes</string>
<string name="app_version">v0.1.0-Alpha</string>
<string name="app_version">v1.0.0-Stable</string>

<!-- Contributor Names -->
<string name="developer_name">Developed by: Dobariya Jeel</string>
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ plugins {
// If you need to define shared properties or tasks for all subprojects, you can do it here.
id("com.android.application") version "8.11.0" apply false
// id("com.android.library") version "8.11.0" apply false
id("org.jetbrains.kotlin.android") version "2.1.20" apply false
id("org.jetbrains.kotlin.android") version "2.1.21" apply false
id("com.google.devtools.ksp") version "2.1.21-2.0.2" apply false
}

// Allprojects block is common for setting up common repositories for all subprojects.
Expand Down
Loading