Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.0 #34

Merged
merged 103 commits into from
Sep 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
2087ea8
Task: Moving rest of the code to Kt. Removing dialogs for now.
mazurio May 11, 2016
0783e2e
Task: Remove retrolambda
mazurio May 11, 2016
2e90a19
Task: Remove retrolambda after moving to Kt. Update Realm version. Re…
mazurio May 12, 2016
018f528
Task: Move to BottomSheets instead of dialogs. Add UI Tests with Espr…
mazurio May 18, 2016
07177bb
Task: Fix the observable emitting issue
mazurio May 18, 2016
8f218b3
Task: Move MainActivity RxLifecycle to destroy
mazurio May 18, 2016
bd70b60
Task: Move current drawer id to Stream and re-emit the value when nee…
mazurio May 18, 2016
03dec9a
Task: Restart timer when rotation (drawer issue).
mazurio May 18, 2016
3ec59c9
Task: Remove m
mazurio May 18, 2016
b6f098e
Task: Refactoring
mazurio May 18, 2016
2469cc4
Task: Move Home to ViewPager and add Welcome/Summary screens. Add Hom…
mazurio May 19, 2016
44bf666
Task: Use StillViewPager for Home
mazurio May 19, 2016
4f3c821
Task: Switch between exercises and welcome/summary
mazurio May 19, 2016
5b1cf7e
Task: Set routine title and subtitle in Welcome Screen
mazurio May 19, 2016
2a56bb4
Task: Fix a bug where inflation of the menu happens multiple times
mazurio May 19, 2016
1877456
Task: Represent Previous Workout in the dialog. Fix IllegalStateExcep…
mazurio May 19, 2016
a56be96
Task: Move away from ViewPager. Move workout to seperate view and pre…
mazurio May 23, 2016
b86fe91
Task: Add workout icon.
mazurio May 23, 2016
243051d
Task: Refactor mPresenter as presenter
mazurio May 23, 2016
4ede6a3
Task: Cleanup
mazurio May 23, 2016
336f06d
Task: Add Todays Progress logic to the Home Presenter
mazurio May 23, 2016
d6b18e3
Task: Update icon for dashboard timed exercises. Add statistics from …
mazurio May 23, 2016
f743210
Task: Add previous workout statistics to Home. Add Spark library. Rem…
mazurio May 24, 2016
d53bf1f
Task: Fix inflation in Activity
mazurio May 24, 2016
1331b18
Task: Fix inflation again
mazurio May 24, 2016
b2cba89
Task: Refactor names for menus
mazurio May 24, 2016
809942c
Task: Add RestTimer ViewPresenter
mazurio May 24, 2016
256f12e
Task: Refactor log seconds logic in Timer Presenter
mazurio May 24, 2016
742f288
Task: Add RestTimer logic
mazurio May 26, 2016
00861a6
Task: Rename Todays Workout to Todays Workout Log
mazurio May 26, 2016
c99aab6
Task: Add Todays Workout Log button to Home
mazurio May 26, 2016
646d316
Task: Add ProgressGeneralViewPresenter with Graph logic and 80% of th…
mazurio May 26, 2016
7865f3e
Task: Add Completion Rate Graph
mazurio May 27, 2016
e5ac864
Task: Set isVisible based on chosen level
mazurio May 27, 2016
c061b56
Task: Fix itemViewMapping
mazurio May 27, 2016
5de9fad
Task: Refactor exporting to HTML
mazurio May 27, 2016
371e1be
Task: Update mapping for ProgressAdapter
mazurio May 27, 2016
25555b1
Task: Refactor methods
mazurio May 27, 2016
519ef4e
Task: Add Set summary to each card
mazurio May 27, 2016
d8abf09
Task: Update layout
mazurio May 27, 2016
85eeb8f
Task: Add CompletionRate graph for each category
mazurio May 27, 2016
f100906
Task: Rename adapters to List/Tree/Pager
mazurio May 27, 2016
c6e956c
Task: Listen to repository changes and update adapters
mazurio May 27, 2016
60f9778
Task: Rename isVisible to visible to match old Java Model
mazurio May 28, 2016
c19939a
Task: Export one workout and all logged workouts as CSV file
mazurio May 30, 2016
b3480f2
Task: Hide layout if exercise is not completed
mazurio May 30, 2016
f83b235
Task: Tweaking RateMyApp
mazurio May 31, 2016
b1f1dd2
Task: Add Exercise History
mazurio Jun 1, 2016
7b2d9e9
Task: Change ViewPager to Scrollable again
mazurio Jun 1, 2016
cdd96f4
Task: Refactoring package names in viewPresenter
mazurio Jun 3, 2016
f9b8a35
Task: Add Timer tab back for now before RestTimer is in works
mazurio Jun 3, 2016
393d281
Task: Dashboard now says Level 1 out of 3 etc.
mazurio Jun 3, 2016
0c4e817
Task: Revert
mazurio Jun 3, 2016
3b5496e
Task: View refactoring
mazurio Jun 6, 2016
da77961
Task: Add baseline
mazurio Jun 7, 2016
385068d
Task: Update Tests
mazurio Jun 7, 2016
4f24908
Task: Add Preview back
mazurio Jun 7, 2016
9ca25da
Task: Hide graph if size < 1. Update version.
mazurio Jun 7, 2016
a399a5e
Task: Don't animate changes
mazurio Jun 8, 2016
90bb303
Task: Fix a bug where sharing dialog shows up on every repository wri…
mazurio Jun 8, 2016
904b2d7
Task: Refactor Repository
mazurio Jun 8, 2016
7c2a817
Task: Show single value for 1 Minute in the Circle Set
mazurio Jun 8, 2016
b9e919b
Task: Fix the summary for list of sets
mazurio Jun 8, 2016
248001b
Task: Add comma to match parent card
mazurio Jun 8, 2016
90a7181
Task: Add completion rate to workout log card. Refactor graph adapters.
mazurio Jun 8, 2016
cb0db84
Task: Fix a bug with nested transaction
mazurio Jun 8, 2016
93f0741
Task: Refactor and remove RestTimer
mazurio Jun 8, 2016
8d177e0
Task: Remove unused code
mazurio Jun 8, 2016
1361d09
Task: Refactoring
mazurio Jun 8, 2016
c7005aa
Task: Remove All Gifs. Add MP4s
mazurio Jun 9, 2016
116be00
Task: Adding test routine and spinner
mazurio Jul 31, 2016
df147d1
Task: Add categories overview programmatically in HomeView
mazurio Jul 31, 2016
2420220
Task: Add categories overview programmatically in WorkoutLogView
mazurio Jul 31, 2016
5fc7d4d
Update gradle plugin
mazurio Aug 28, 2016
92e29ed
Update calendar view when repository has changed
mazurio Aug 28, 2016
e3c5ff3
Task: Add Molding Mobility and all the videos
mazurio Aug 28, 2016
fff22af
Task: Fix the name for Anke Tilts. Change the type of the exercises t…
mazurio Aug 28, 2016
83622f5
Task: Deleted StillViewPager
mazurio Aug 28, 2016
bf08473
Task: Update names for categories and sections of MM
mazurio Aug 28, 2016
692ef7e
Task: Added custom drop down for spinner
mazurio Aug 28, 2016
f1e4ac7
Task: Update drop down color
mazurio Aug 28, 2016
7deb28f
Task: Added Burpees and Squat Jumps
mazurio Aug 28, 2016
90c81fb
Task: Added handstand videos
mazurio Aug 28, 2016
de80140
Task: Add videos for Support Practice
mazurio Aug 28, 2016
05b6112
Task: Add Pull Up Progression, Squat Progression and Dipping Progress…
mazurio Aug 28, 2016
7d80869
Task: Add videos for row progression
mazurio Aug 28, 2016
498e170
Task: Fix pull over video. Add Pushup Progression videos.
mazurio Aug 28, 2016
2aea870
Task: Remove id from JSON file.
mazurio Aug 28, 2016
d1e7f10
Task: Add warmup videos
mazurio Aug 28, 2016
1ef18ea
Task: Rename videos to match pattern
mazurio Aug 28, 2016
ae28dc9
Task: Fixed toolbar title issue
mazurio Aug 28, 2016
e773473
Task: Add Nick & Antranik credits
mazurio Aug 28, 2016
f925a45
Task: Add Review Workout text to Home
mazurio Aug 28, 2016
6ab181e
Task: Change icon of the drop down in action bar home
mazurio Aug 29, 2016
79b8127
Task: Add introduction slides
mazurio Aug 29, 2016
678235c
Task: Set default routine when loading an app to the last one used
mazurio Aug 29, 2016
2dabd92
Task: Update SDK and Build Tools. Update version of the app to the 1.3.0
mazurio Aug 29, 2016
443a33d
Task: Revert to 23.3.0 as it breaks too many things with UI and Actio…
mazurio Aug 29, 2016
f582390
Task: Better versionCode
mazurio Aug 29, 2016
f3aa55e
Remove supportDrawables
mazurio Aug 29, 2016
7138be1
Add L-Sit Progression videos
mazurio Sep 10, 2016
4ae8070
Add Wrist Mobility Exercises video
mazurio Sep 10, 2016
671fc51
Update version code
mazurio Sep 10, 2016
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ api.xml
api.properties
fabric.properties
gradle.properties
google-services.json

# Built application files
*.apk
Expand Down
42 changes: 23 additions & 19 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
Expand All @@ -9,20 +8,21 @@ apply plugin: 'io.fabric'

android {
dexOptions {
incremental true
incremental false
maxProcessCount 4
}

compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId 'com.bodyweight.fitness'
minSdkVersion 14
minSdkVersion 16
targetSdkVersion 23
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
Expand All @@ -40,14 +40,14 @@ android {
productFlavors {
pro {
applicationId 'com.bodyweight.fitness.pro'
versionCode 122
versionName "1.2.2"
versionCode 133
versionName "1.3.0"
}

free {
applicationId 'com.bodyweight.fitness.free'
versionCode 122
versionName "1.2.2"
versionCode 133
versionName "1.3.0"
}
}
buildTypes {
Expand All @@ -64,6 +64,7 @@ android {
sourceSets {
main.java.srcDirs += 'src/main/java'
main.java.srcDirs += 'src/main/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
}
Expand All @@ -80,9 +81,13 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')

testCompile 'org.jetbrains.spek:spek:1.0.9'
// testCompile "com.nhaarman:mockito-kotlin:0.3.0"
testCompile 'org.mockito:mockito-all:2.0.2-beta'

androidTestCompile 'com.android.support:support-annotations:23.3.0'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile "com.android.support.test.espresso:espresso-core:2.2.2"

compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
Expand All @@ -92,23 +97,22 @@ dependencies {

compile 'commons-io:commons-io:2.4'
compile 'net.danlew:android.joda:2.9.3'
compile 'com.github.bumptech.glide:glide:3.7.0'

compile 'com.jakewharton:butterknife:6.1.0'
kapt 'com.jakewharton:butterknife:6.1.0'

compile 'com.netflix.rxjava:rxjava-core:0.20.7'
compile 'io.reactivex:rxandroid:1.2.0'
compile 'io.reactivex:rxjava:1.1.5'

compile 'com.trello:rxlifecycle:0.5.0'
compile 'com.trello:rxlifecycle-components:0.5.0'
compile 'com.trello:rxlifecycle-kotlin:0.5.0'
compile 'com.trello:rxlifecycle:0.6.1'
compile 'com.trello:rxlifecycle-components:0.6.1'
compile 'com.trello:rxlifecycle-kotlin:0.6.1'

compile 'com.robinhood.spark:spark:1.1.0'

compile 'com.github.johnkil.android-robototextview:robototextview:2.5.0'
compile 'com.gordonwong:material-sheet-fab:1.2.1'
compile 'com.github.bmarrdev:android-DecoView-charting:v1.0.1'
compile 'io.github.kobakei:ratethisapp:1.0.3'
compile 'com.github.paolorotolo:appintro:4.0.0'

compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
Expand All @@ -118,7 +122,7 @@ dependencies {
}

buildscript {
ext.kotlin_version = '1.0.1'
ext.kotlin_version = '1.0.1-2'
repositories {
mavenCentral()
maven {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package com.bodyweight.fitness

import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.action.ViewActions.click
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.support.test.espresso.matcher.ViewMatchers
import android.support.test.espresso.matcher.ViewMatchers.*
import android.test.ActivityInstrumentationTestCase2

import com.bodyweight.fitness.ui.MainActivity

class MainActivityTest : ActivityInstrumentationTestCase2<MainActivity>(MainActivity::class.java) {
override fun setUp() {
super.setUp()

activity
}

fun testExerciseSetup() {
onView(withId(R.id.toolbar_exercise_title))
.check(matches(withText("Shoulder Rolls")))
onView(withId(R.id.toolbar_section_title))
.check(matches(withText("Dynamic Stretches")))
onView(withId(R.id.toolbar_exercise_description))
.check(matches(withText("1x(5-10)")))

onView(withId(R.id.prev_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.INVISIBLE)));
onView(withId(R.id.next_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));

onView(withId(R.id.next_exercise_button)).perform(click())

onView(withId(R.id.toolbar_exercise_title))
.check(matches(withText("Scapular Shrugs")))
onView(withId(R.id.toolbar_section_title))
.check(matches(withText("Dynamic Stretches")))
onView(withId(R.id.toolbar_exercise_description))
.check(matches(withText("1x(5-10)")))

onView(withId(R.id.prev_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));
onView(withId(R.id.next_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));

onView(withId(R.id.next_exercise_button)).perform(click())
onView(withId(R.id.next_exercise_button)).perform(click())
onView(withId(R.id.next_exercise_button)).perform(click())
onView(withId(R.id.next_exercise_button)).perform(click())
onView(withId(R.id.next_exercise_button)).perform(click())

onView(withId(R.id.toolbar_exercise_title))
.check(matches(withText("Front and Side Leg Swings")))
onView(withId(R.id.toolbar_section_title))
.check(matches(withText("Dynamic Stretches")))
onView(withId(R.id.toolbar_exercise_description))
.check(matches(withText("1x(5-10)")))

onView(withId(R.id.prev_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));
onView(withId(R.id.next_exercise_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));
}
}
25 changes: 25 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
android:theme="@style/AppTheme"
android:name=".App">

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.bodyweight.fitness.fileprovider"
android:exported="false"
android:grantUriPermissions="true">

<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>

<activity
android:name=".ui.IntroductionActivity"
android:theme="@style/FullscreenTheme" />

<activity
android:name=".ui.MainActivity"
android:label="@string/app_name">
Expand Down Expand Up @@ -50,6 +65,16 @@
android:value=".ui.MainActivity" />
</activity>

<activity
android:name=".ui.ProgressExerciseActivity"
android:parentActivityName=".ui.ProgressExerciseActivity"
android:theme="@style/AppTheme.Activity.Progress">

<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".ui.ProgressExerciseActivity" />
</activity>

<activity
android:name=".ui.SettingsActivity"
android:parentActivityName=".ui.MainActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bodyweight.fitness.model.exception;
package com.bodyweight.fitness.exception;

public class CacheDirectoryCreationException extends Exception {
public CacheDirectoryCreationException(String detailMessage) {
Expand Down
39 changes: 0 additions & 39 deletions app/src/main/java/com/bodyweight/fitness/model/Category.java

This file was deleted.

Loading