Skip to content

Commit

Permalink
Merge pull request #91 from Crazy-Marvin/development
Browse files Browse the repository at this point in the history
To Don't 1.3
  • Loading branch information
CrazyMarvin authored Sep 2, 2021
2 parents 414c3f1 + c0b012a commit b9fa328
Show file tree
Hide file tree
Showing 84 changed files with 598 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@

/app/ @arafaatqureshi
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@

Please report (suspected) security vulnerabilities to marvin@poopjournal.rocks. It would be great if you could prepare a patch too. Thanks!
32 changes: 32 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
Hi! 👋

We’re excited that you’re using **To Dont't** and we’d love to help.
To help us help you, please read through the following guidelines.

Please understand that people involved with this project often do so for fun,
next to their day job; you are not entitled to free customer service.

## Help us help you!

Spending time framing a question and adding support links or resources makes it
much easier for us to help.
It’s easy to fall into the trap of asking something too specific when you’re
close to a problem.
Then, those trying to help you out have to spend a lot of time asking additional
questions to understand what you are hoping to achieve.

Spending the extra time up front can help save everyone time in the long run.

* Try to define what you need help with:
* Is there something in particular you want to do?
* What problem are you encountering and what steps have you taken to try
and fix it?
* Is there a concept you’re not understanding?
* Learn about the [rubber duck debugging method](https://rubberduckdebugging.com/)
* Avoid falling for the [XY problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem/66378#66378)
* Search on GitHub to see if a similar question has been asked
* If possible, provide sample code, a [CodeSandbox](https://codesandbox.io/), or a video/GIF
* The more time you put into asking your question, the better we can help you

## Contributions

See [`contributing.md`](https://github.com/Crazy-Marvin/ToDont/blob/trunk/.github/CONTRIBUTING.md) on how to contribute. Quality PRs are really appreaciated!
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: "🏗 Build"
run: ./gradlew assembleDebug
- name: "🧪 Code coverage"
run: ./gradlew jacocoTestReport
run: ./gradlew test
- name: "📤 Upload code coverage"
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
yml: .codecov.yml
- name: "🧪 Android LINT"
run: ./gradlew lint
- name: "🧪 Unit test"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Issues](https://img.shields.io/github/issues/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/issues)
[![Pull requests](https://img.shields.io/github/issues-pr/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/pulls)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7dadc506c2df42a38c2ef733948f9492)](https://www.codacy.com/gh/Crazy-Marvin/ToDont/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Crazy-Marvin/ToDont&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/Crazy-Marvin/ToDont/branch/master/graph/badge.svg)](https://codecov.io/gh/Crazy-Marvin/ToDont)
[![codecov](https://codecov.io/gh/Crazy-Marvin/ToDont/branch/development/graph/badge.svg?token=ECQID61KGH)](https://codecov.io/gh/Crazy-Marvin/ToDont)
[![Hosted Weblate](https://hosted.weblate.org/widgets/todont/-/svg-badge.svg)](https://hosted.weblate.org/engage/todont/)
[![Known Vulnerabilities](https://snyk.io/test/github/Crazy-Marvin/ToDont/badge.svg?targetFile=app%2Fbuild.gradle)](https://snyk.io/test/github/Crazy-Marvin/ToDont?targetFile=app%2Fbuild.gradle)
[![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=19)
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "rocks.poopjournal.todont"
minSdkVersion 21
targetSdkVersion 30
versionCode 3
versionName "1.2"
versionCode 4
versionName "1.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation 'com.android.support:design:27.0.2'
implementation 'com.jaredrummler:material-spinner:1.3.1'
implementation 'com.google.android.material:material:1.0.0-rc01'
implementation 'com.ornach.nobobutton:nobobutton:1.6'
compile 'com.ornach.nobobutton:nobobutton:1.6'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ public void onClick(View view) {

} catch (SQLiteException e) {
}
db.update_habitsdata(position, formattedDate, habit.getText().toString()
String str=habit.getText().toString();
if(str.contains("'")){
str=str.replace("'","geodhola");
Log.d("kuttistring",""+str);
}
db.update_habitsdata(position, formattedDate,str
, detail.getText().toString(), catagoryselected);
db.show_habits_data();
Intent intent = new Intent(con, MainActivity.class);
Expand Down
Binary file modified app/src/main/res/drawable/codeaquaria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/crazymarvin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/designerlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable/drop.jpeg
Binary file not shown.
Binary file added app/src/main/res/drawable/drop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/git.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable/i.jpg
Binary file not shown.
Binary file modified app/src/main/res/drawable/onbording.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/reportproblem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/translate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 26 additions & 26 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text=" Apache License 2.0"
android:text="@string/apachelicense"
android:textColor="@color/colorPrimary"
android:onClick="apacheee"/>
</LinearLayout>
Expand Down Expand Up @@ -190,7 +190,7 @@
<TextView
android:layout_width="230dp"
android:layout_height="wrap_content"
android:text="Developer"
android:text="@string/developer"
android:textColor="@color/spinr" />
</LinearLayout>
</LinearLayout>
Expand Down Expand Up @@ -294,7 +294,7 @@
<TextView
android:layout_width="230dp"
android:layout_height="wrap_content"
android:text="Developer"
android:text="@string/developer"
android:textColor="@color/spinr" />
</LinearLayout>
</LinearLayout>
Expand Down Expand Up @@ -444,7 +444,7 @@
android:layout_height="30dp"
android:layout_marginLeft="25dp"
android:layout_marginTop="25dp"
android:text="Contribute"
android:text="@string/contribute"
android:textColor="@color/colorPrimary"
android:textSize="18sp" />

Expand Down Expand Up @@ -475,7 +475,7 @@
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginLeft="10dp"
android:text="Translate"
android:text="@string/translate"
android:onClick="translate"
android:gravity = "center_vertical"
android:textColor="@color/textcolor" />
Expand Down Expand Up @@ -509,7 +509,7 @@
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginLeft="10dp"
android:text="Report a problem"
android:text="@string/report"
android:gravity = "center_vertical"
android:textColor="@color/textcolor"
android:onClick="report"
Expand Down Expand Up @@ -544,7 +544,7 @@
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginLeft="10dp"
android:text="View source"
android:text="@string/source"
android:gravity = "center_vertical"
android:onClick="viewsource"
android:textColor="@color/textcolor"/>
Expand All @@ -555,7 +555,7 @@
android:layout_height="30dp"
android:layout_marginLeft="25dp"
android:layout_marginTop="25dp"
android:text="Open-source licences"
android:text="@string/opensourcelicense"
android:textColor="@color/colorPrimary"
android:textSize="18sp" />

Expand All @@ -578,14 +578,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Feather Icons"
android:text="@string/feather"
android:onClick="feather"
android:textColor="@color/textcolor"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="MIT License"
android:text="@string/mitlicence"
android:onClick="feather"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -609,15 +609,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Android Jetpack"
android:text="@string/jetpack"
android:onClick="jetpack"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/textjetpack1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="jetpack"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -640,15 +640,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="MaterialSpinner"
android:text="@string/materialspinner"
android:onClick="spinner"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="spinner"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -672,15 +672,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="NoboButton"
android:text="@string/nobobutton"
android:onClick="nobobutton"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/nobobutton1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="nobobutton"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -705,15 +705,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="CircleImageView"
android:text="@string/circleimg"
android:onClick="cImgButton"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/CircleImageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="cImgButton"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -736,15 +736,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="MPAndroidChart"
android:text="@string/mpandroidchart"
android:onClick="MPAndroidChart"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/MPAndroidChart1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="MPAndroidChart"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -770,15 +770,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="JUnit"
android:text="@string/junit"
android:onClick="JUnit"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/JUnit1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Eclipse Public License 1.0"
android:text="@string/eclipse"
android:onClick="JUnit"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -804,15 +804,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Kotlin"
android:text="@string/kotlin"
android:onClick="Kotlin"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/Kotlin1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Apache License 2.0"
android:text="@string/apachelicense"
android:onClick="Kotlin"
android:textColor="@color/spinr" />
</LinearLayout>
Expand All @@ -838,15 +838,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Java"
android:text="@string/java"
android:onClick="Java"
android:textColor="@color/textcolor"/>
<TextView
android:id="@+id/Java1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="GNU General Public License CE"
android:text="@string/gnu"
android:onClick="Java"
android:textColor="@color/spinr" />
</LinearLayout>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
android:layout_height="20dp"
android:textSize="18sp"
android:layout_marginLeft="20dp"
android:text="Settings"
android:text="@string/settings"
android:textColor="@color/textcolor"
android:layout_gravity="center"
android:gravity="bottom"
Expand Down Expand Up @@ -67,15 +67,15 @@
android:gravity="bottom"
android:textSize="16sp"
android:textColor="@color/textcolor"
android:text="Appearance"
android:text="@string/appearance"
android:onClick="changeMode"

/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="Follow System"
android:text="@string/followsys"
android:textColor="@color/textcolor"
android:layout_marginLeft="20dp"
android:onClick="changeMode"
Expand Down Expand Up @@ -113,7 +113,7 @@
android:gravity="bottom"
android:textSize="16sp"
android:textColor="@color/textcolor"
android:text="About"
android:text="@string/about"
android:onClick="aboutus"

/>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/recyclerview_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
>

<Button
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_weight="0"
android:layout_gravity="top"
android:layout_marginTop="5dp"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/recyclerview_layout_log_habits.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
android:layout_marginLeft="15dp"
>
<Button
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_weight="0"
android:layout_gravity="top"
android:layout_marginTop="5dp"
Expand Down
Binary file modified app/src/main/res/mipmap-mdpi/ic_roundstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-mdpi/ic_store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b9fa328

Please sign in to comment.