Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangshen committed Dec 16, 2017
1 parent a6c78e0 commit 4599b1f
Show file tree
Hide file tree
Showing 19 changed files with 636 additions and 996 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# WurmPaint

## Changelog

### 1.03 (2017-12-16)
- Increased image retrieval size

### 1.02 (2017-12-08)
- Added Firebase Crashlytics and Performance Monitoring
- Added feedback and rate app dialog
- Removed brush color functionality
- Images expanded to fill the screen
- User restricted to drawing single strokes
- User can mark images as bad and provide a reason
- Optimized for tablet displays

### 1.01 (2017-12-01)
- Lowered app requirements to be able to install on older Android devices (up to Lollipop)

### 1.0 (2017-11-19)
- Initial Release
10 changes: 0 additions & 10 deletions app/.idea/libraries/com_github_QuadFlask_colorpicker_0_0_13.xml

This file was deleted.

653 changes: 556 additions & 97 deletions app/.idea/workspace.xml

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.02"
versionName "1.03"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down Expand Up @@ -42,7 +42,6 @@ dependencies {
compile 'com.google.firebase:firebase-perf:11.6.2'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.QuadFlask:colorpicker:0.0.13'
compile 'com.android.support:cardview-v7:26.1.0'
compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"/>

<activity
android:name=".DrawActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"/>

</application>

</manifest>
208 changes: 0 additions & 208 deletions app/src/main/java/com/example/caden/drawingtest/DrawActivity.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import java.util.ArrayList;
import java.util.List;

/**
* Created by caden on 10/31/17.
*/

//a collection of getter and set functions
//to draw a character model
public class DrawModel {
Expand Down Expand Up @@ -48,7 +44,7 @@ public LineElem getElem(int index) {
private int mWidth; // pixel width = 28
private int mHeight; // pixel height = 28

//so a model consits of lines which consists of elements
//so a model consists of lines which consists of elements
//a line begins when a user starts drawing and ends when
//they lift their finger up
private List<Line> mLines = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import android.graphics.Color;
import android.graphics.Paint;

/**
* Created by caden on 10/31/17.
*/

public class DrawRenderer {

/**
Expand All @@ -28,7 +24,7 @@ public static void renderModel(Canvas canvas, DrawModel model, Paint paint, int
//get the whole line from the model object
DrawModel.Line line = model.getLine(i);
//set its color
paint.setColor(ImageManager.brushColor);
paint.setColor(Color.parseColor("#FF2646"));
//get the first of many lines that make up the overall line
int elemSize = line.getElemSize();
//if its empty, skip
Expand Down
Loading

0 comments on commit 4599b1f

Please sign in to comment.