Skip to content

Commit

Permalink
release v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarSand committed Jun 25, 2022
1 parent dab55a9 commit 4d352d8
Show file tree
Hide file tree
Showing 46 changed files with 722 additions and 289 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.



## v1.2.0
- Test multiple passwords from a text file



## v1.1.0
- Added Italian translation (by [gdonisi](https://github.com/gdonisi))
- Time to crack now has proper language support
Expand Down
6 changes: 0 additions & 6 deletions CONTRIBUTORS.md

This file was deleted.

22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ A password strength test app which displays strength, estimated crack time and p
- [Privacy Policy](#privacy-policy)
- [Issues](#issues)
- [Contributing](#contributing)
- [Libraries Used](#libraries-used)
- [Credits](#credits)
- [License](#license)



Expand All @@ -38,7 +40,6 @@ Using this app you can determine whether the passwords are most commonly used on
- Fully open source
- Material design
- Completely offline
- No permissions needed
- Works on Android 6.0 and above devices
- Supports both light and dark theme
- No ads
Expand All @@ -58,13 +59,13 @@ Using this app you can determine whether the passwords are most commonly used on
## Download
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/com.iyps/)
height="80">](https://f-droid.org/packages/com.iyps)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Get it on Google Play"
height="80">](https://play.google.com/store/apps/details?id=com.iyps)
[<img src="https://camo.githubusercontent.com/70bffd8873ab81e1bb0bccc44e488c3a989e3bd5/68747470733a2f2f692e6962622e636f2f71306d6463345a2f6765742d69742d6f6e2d6769746875622e706e67"
alt="Get it on GitHub"
height="80">](https://github.com/the-weird-aquarian/IYPS/releases/tag/v1.1.0)
height="80">](https://github.com/the-weird-aquarian/IYPS/releases/latest)



Expand Down Expand Up @@ -95,8 +96,17 @@ Any contribution to the project would be much appreciated.



## Libraries Used
- [zxcvbn4j](https://github.com/nulab/zxcvbn4j) | [MIT License](https://github.com/nulab/zxcvbn4j/blob/master/LICENSE.txt)



## Credits
- [Nulab Inc](https://github.com/nulab) for developing [zxcvbn4j](https://github.com/nulab/zxcvbn4j), the underlying password strength estimation functionality of this app.
- [parveshnarwal](https://github.com/parveshnarwal) for helping me out and co-leading the development of this app.
- Some additional icons (other than the official ones by Google) are provided by [MaterialDesignIcons](https://github.com/Templarian/MaterialDesign)
- Thanks to the [contributors](https://github.com/the-weird-aquarian/IYPS/blob/master/CONTRIBUTORS.md) for making this app better.
- Some additional icons (other than the official ones by Google) are provided by [Material Design Icons](https://github.com/Templarian/MaterialDesign) | [Apache 2.0 License](https://github.com/Templarian/MaterialDesign/blob/master/LICENSE)
- Thanks to the [contributors](https://github.com/the-weird-aquarian/IYPS/graphs/contributors) for making this app better.



## License
Except where indicated otherwise, this project is licensed under the terms of [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html).
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ android {
applicationId "com.iyps"
minSdk 23
targetSdk 32
versionCode 110
versionName "1.1.0"
versionCode 120
versionName "1.2.0"
}

buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/iyps/activities/HelpActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class HelpActivity : AppCompatActivity() {
activityBinding.tabLayout.visibility = View.GONE
activityBinding.selectButton.visibility = View.GONE

displayFragment(intent.getStringExtra("fragment"))
intent.getStringExtra("fragment")?.let { displayFragment(it) }

}

// Setup fragments
private fun displayFragment(fragmentName: String?) {
private fun displayFragment(fragmentName: String) {

lateinit var fragment: Fragment

Expand Down
9 changes: 3 additions & 6 deletions app/src/main/java/com/iyps/activities/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.WindowManager
import android.widget.RadioGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.app.ActivityCompat
Expand Down Expand Up @@ -73,9 +72,7 @@ class MainActivity : AppCompatActivity() {
setSupportActionBar(activityBinding.toolbarMain)

// Default fragment
if (savedInstanceState == null) {
displayFragment(0)
}
displayFragment(0)

// On click tab
activityBinding.tabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener {
Expand Down Expand Up @@ -148,7 +145,7 @@ class MainActivity : AppCompatActivity() {
bottomSheetDialog.setContentView(bottomSheetBinding.root)

// Title
headerBinding.bottomSheetTitle.setText(R.string.choose_theme_title)
headerBinding.bottomSheetTitle.setText(R.string.theme)

// Show system default option only on SDK 29 and above
if (Build.VERSION.SDK_INT >= 29) {
Expand All @@ -172,7 +169,7 @@ class MainActivity : AppCompatActivity() {
bottomSheetBinding.optionsRadiogroup.check(preferenceManager.getInt(PreferenceManager.THEME_PREF))

bottomSheetBinding.optionsRadiogroup
.setOnCheckedChangeListener { _: RadioGroup?, checkedId: Int ->
.setOnCheckedChangeListener { _, checkedId ->

when(checkedId) {

Expand Down
110 changes: 0 additions & 110 deletions app/src/main/java/com/iyps/adapters/FileItemAdapter.java

This file was deleted.

78 changes: 78 additions & 0 deletions app/src/main/java/com/iyps/adapters/FileItemAdapter.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright (c) 2022 the-weird-aquarian
*
* This file is part of IYPS.
*
* IYPS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* IYPS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with IYPS. If not, see <https://www.gnu.org/licenses/>.
*/

package com.iyps.adapters

import com.iyps.models.FileItem
import androidx.recyclerview.widget.RecyclerView
import com.iyps.adapters.FileItemAdapter.ListViewHolder
import android.widget.TextView
import com.iyps.R
import android.view.ViewGroup
import android.view.LayoutInflater
import android.view.View

class FileItemAdapter(private val aListViewItems: List<FileItem>,
private val clickListener: OnItemClickListener) :
RecyclerView.Adapter<ListViewHolder>() {

interface OnItemClickListener {
fun onItemClick(position: Int)
}

inner class ListViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView),
View.OnClickListener {

val passwordLine: TextView = itemView.findViewById(R.id.password_line)

init {
// Handle click events of items
itemView.setOnClickListener(this)
}

override fun onClick(v: View?) {
val position = adapterPosition
if (position != RecyclerView.NO_POSITION) {
clickListener.onItemClick(position)
}
}

}

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ListViewHolder {
val view = LayoutInflater.from(parent.context).inflate(R.layout.item_recycler_view, parent, false)
return ListViewHolder(view)
}

override fun onBindViewHolder(holder: ListViewHolder, position: Int) {
val fileItem = aListViewItems[position]
holder.passwordLine.text = fileItem.passwordLine

// Horizontally scrolling text
//hScrollText(holder.passwordLine);
}

override fun getItemCount(): Int {
return aListViewItems.size
}

override fun getItemViewType(position: Int): Int {
return position
}
}
20 changes: 10 additions & 10 deletions app/src/main/java/com/iyps/fragments/details/DetailsFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,20 @@ class DetailsFragment : Fragment() {
if (!isExpanded) {
fragmentBinding.expandedLayout.visibility = View.VISIBLE
isExpanded = true
fragmentBinding.scoreTextView.setCompoundDrawablesRelativeWithIntrinsicBounds(
R.drawable.ic_up_arrow,
0,
0,
0)
fragmentBinding.scoreTextView
.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_up_arrow,
0,
0,
0)
}
else {
fragmentBinding.expandedLayout.visibility = View.GONE
isExpanded = false
fragmentBinding.scoreTextView.setCompoundDrawablesRelativeWithIntrinsicBounds(
R.drawable.ic_down_arrow,
0,
0,
0)
fragmentBinding.scoreTextView
.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_down_arrow,
0,
0,
0)
}
}

Expand Down
13 changes: 11 additions & 2 deletions app/src/main/java/com/iyps/fragments/help/AboutFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AboutFragment : Fragment() {
// Contributors
fragmentBinding.contributors
.setOnClickListener {
openURL(requireActivity(), "https://github.com/the-weird-aquarian/IYPS/blob/master/CONTRIBUTORS.md")
openURL(requireActivity(), "https://github.com/the-weird-aquarian/IYPS/graphs/contributors")
}

// Privacy policy
Expand All @@ -84,7 +84,12 @@ class AboutFragment : Fragment() {
// Licenses
fragmentBinding.licenses
.setOnClickListener {
openURL(requireActivity(), "https://github.com/the-weird-aquarian/IYPS/blob/master/LICENSE")
parentFragmentManager.beginTransaction()
.setCustomAnimations(R.anim.slide_from_end, R.anim.slide_to_start,
R.anim.slide_from_start, R.anim.slide_to_end)
.replace(R.id.activity_host_fragment, LicensesFragment())
.addToBackStack(null)
.commit()
}

// View on GitHub
Expand Down Expand Up @@ -117,6 +122,10 @@ class AboutFragment : Fragment() {
openURL(requireActivity(), "https://github.com/parveshnarwal")
bottomSheetDialog.dismiss()
}

// Cancel
bottomSheetBinding.cancelButton.setOnClickListener { bottomSheetDialog.dismiss() }

bottomSheetDialog.show()

}
Expand Down
Loading

0 comments on commit 4d352d8

Please sign in to comment.