Skip to content

Commit 90e7164

Browse files
authored
Merge pull request #1 from zeoflow/initial-deploy
improved temp
2 parents 540fe77 + 4b258a3 commit 90e7164

File tree

10 files changed

+213
-0
lines changed

10 files changed

+213
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[Component name] Short description of issue"
5+
labels: bug
6+
assignees: 'TeodorHMX1'
7+
8+
---
9+
10+
**Description:** Full description of issue here
11+
12+
**Expected behavior:** Screenshots and/or description of expected behavior
13+
14+
**Source code:** The code snippet which is causing this issue. Please consider attaching a minimal sample app that reproduces the issue.
15+
16+
**Android API version:** Android API version here
17+
18+
**Device:** Device on which the bug was encountered here
19+
20+
To help us triage faster, please check to make sure you are using the [latest version](https://github.com/zeoflow/password-strength/releases) of the library.
21+
22+
We also happily accept [pull requests](https://github.com/zeoflow/password-strength/pulls).
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[Component name] Short description of request"
5+
labels: feature request
6+
assignees: 'TeodorHMX1'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is.
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+
22+
We also happily accept [pull requests](https://github.com/zeoflow/password-strength/pulls).

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.gradle
2+
.idea
3+
gradle
4+
build
5+
release
6+
*.iml
7+
gradlew*
8+
material-elements/zflow_materialelements.gpg
9+
material-elements/package.properties

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Password Strength for Android
2+
3+
Password Strength is an Android Library that checks for a password
4+
strength.
5+
6+
## Getting Started
7+
8+
For information on how to get started with Password Strength,
9+
take a look at our [Getting Started](docs/getting-started.md) guide.
10+
11+
## Submitting Bugs or Feature Requests
12+
13+
Bugs or feature requests should be submitted at our [GitHub Issues section](https://github.com/zeoflow/password-strength/issues).

android-wait-for-emulator

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set +e
2+
3+
bootanim=""
4+
failcounter=0
5+
timeout_in_sec=360
6+
7+
until [[ "$bootanim" =~ "stopped" ]]; do
8+
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1 &`
9+
if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline"
10+
|| "$bootanim" =~ "running" ]]; then
11+
let "failcounter += 1"
12+
echo "Waiting for emulator to start"
13+
if [[ $failcounter -gt timeout_in_sec ]]; then
14+
echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator"
15+
exit 1
16+
fi
17+
fi
18+
sleep 1
19+
done
20+
21+
echo "Emulator is ready"

docs/building-from-source.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!--docs:
2+
title: "Building From Source"
3+
layout: landing
4+
section: docs
5+
path: /docs/building-from-source/
6+
-->
7+
8+
# Building From the Latest Source
9+
10+
If you'll be contributing to the library, or need a version newer than what has
11+
been released, Password Strength from ZeoFlow can also be built from source.
12+
To do so:
13+
14+
Clone the repository:
15+
16+
```sh
17+
git clone https://github.com/zeoflow/password-strength.git
18+
```
19+
20+
Then, build the library's AARs using Gradle

docs/contributing.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!--docs:
2+
title: "Contributing"
3+
layout: landing
4+
section: docs
5+
path: /docs/contributing/
6+
-->
7+
8+
# General Contributing Guidelines
9+
10+
The Password Strength contributing policies and procedures can be found in the
11+
main Password Strength documentation repository’s
12+
[contributing page](https://github.com/zeoflow/password-strength/blob/CONTRIBUTING.md).
13+
14+
To make a contribution, you'll need to be able to build the library from source
15+
and run our tests.
16+
17+
## Building From Source
18+
19+
Take a look at our [instructions](building-from-source.md) on how to build the
20+
library from source.
21+
22+
## Running Tests
23+
24+
Password Strength for Android has JVM tests as well as Emulator tests.
25+
26+
To run the JVM tests, do:
27+
28+
```sh
29+
./gradlew test
30+
```
31+
32+
To run the emulator tests, ensure you have
33+
[a virtual device set up](https://developer.android.com/studio/run/managing-avds.html)
34+
and do:
35+
36+
```sh
37+
./gradlew connectedAndroidTest
38+
```
39+
40+
## Code Conventions
41+
42+
Since we all want to spend more time coding and less time fiddling with
43+
whitespace, Password Strength uses code conventions and styles to
44+
encourage consistency. Code with a consistent style is easier (and less
45+
error-prone!) to review, maintain, and understand.
46+
47+
#### Be consistent
48+
49+
If the style guide is not explicit about a particular situation, the cardinal
50+
rule is to **be consistent**. For example, take a look at the surrounding code
51+
and follow its lead, or look for similar cases elsewhere in the codebase.

docs/getting-started.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--docs:
2+
title: "Getting Started"
3+
layout: landing
4+
section: docs
5+
path: /docs/getting-started/
6+
-->
7+
8+
### 1. Depend on our library
9+
10+
Password Strength for Android is available through Google's Maven Repository.
11+
To use it:
12+
13+
1. Open the `build.gradle` file for your application.
14+
2. Make sure that the `repositories` section includes Google's Maven Repository
15+
`google()`. For example:
16+
17+
```groovy
18+
allprojects {
19+
repositories {
20+
google()
21+
jcenter()
22+
}
23+
}
24+
```
25+
26+
3. Add the library to the `dependencies` section:
27+
28+
```groovy
29+
dependencies {
30+
// ...
31+
implementation 'com.zeoflow:password-strength:<version>'
32+
// ...
33+
}
34+
```
35+
36+
Visit [Google's Maven Repository](http://maven.google.com) or
37+
[MVN Repository](https://mvnrepository.com/artifact/com.zeoflow/password-strength)
38+
to find the latest version of the library.
39+
40+
## Contributors
41+
42+
Password Strength for Android welcomes contributions from the community. Check
43+
out our [contributing guidelines](contributing.md) before getting started.

pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**TO-DO**
2+
Table of Contents
3+
> - [ ] Identify the component the PR relates to in brackets in the title.
4+
`component-name`
5+
> - [ ] It solves an issue
6+
> - [ ] Link to GitHub issues it solves.
7+
`closes #5346`
8+
> - [ ] Sign the CLA bot. You can do this once the pull request is opened.
9+
10+
[Contributing](https://github.com/zeoflow/password-strength/blob/master/docs/contributing.md)
11+
has more information and tips for a great pull request.

0 commit comments

Comments
 (0)