Full Code of oliexdev/openWorkout for AI

master 21d5ffb06f13 cached
215 files
663.4 KB
168.8k tokens
577 symbols
1 requests
Download .txt
Showing preview only (728K chars total). Download the full file or copy to clipboard to get everything.
Repository: oliexdev/openWorkout
Branch: master
Commit: 21d5ffb06f13
Files: 215
Total size: 663.4 KB

Directory structure:
gitextract_399s6vgo/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   └── bug_report.md
│   ├── PULL_REQUEST_TEMPLATE/
│   │   └── publish_training.md
│   └── workflows/
│       └── ci.yml
├── .gitignore
├── CREDITS
├── Gemfile
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   ├── schemas/
│   │   └── com.health.openworkout.core.database.AppDatabase/
│   │       ├── 1.json
│   │       └── 2.json
│   └── src/
│       ├── fdroid/
│       │   └── java/
│       │       └── com/
│       │           └── health/
│       │               └── openworkout/
│       │                   └── core/
│       │                       └── utils/
│       │                           └── PlayStoreUtils.java
│       ├── main/
│       │   ├── AndroidManifest.xml
│       │   ├── java/
│       │   │   └── com/
│       │   │       └── health/
│       │   │           └── openworkout/
│       │   │               ├── MainActivity.java
│       │   │               ├── core/
│       │   │               │   ├── Application.java
│       │   │               │   ├── OpenWorkout.java
│       │   │               │   ├── alarm/
│       │   │               │   │   ├── AlarmEntry.java
│       │   │               │   │   ├── AlarmEntryReader.java
│       │   │               │   │   ├── AlarmHandler.java
│       │   │               │   │   └── ReminderBootReceiver.java
│       │   │               │   ├── database/
│       │   │               │   │   ├── AppDatabase.java
│       │   │               │   │   ├── TrainingPlanDAO.java
│       │   │               │   │   ├── UserDAO.java
│       │   │               │   │   ├── WorkoutItemDAO.java
│       │   │               │   │   └── WorkoutSessionDAO.java
│       │   │               │   ├── datatypes/
│       │   │               │   │   ├── GitHubFile.java
│       │   │               │   │   ├── TrainingPlan.java
│       │   │               │   │   ├── User.java
│       │   │               │   │   ├── WorkoutItem.java
│       │   │               │   │   └── WorkoutSession.java
│       │   │               │   ├── session/
│       │   │               │   │   ├── AbdominalMuscleSession.java
│       │   │               │   │   ├── BeginnersSession.java
│       │   │               │   │   └── SevenMinutesSession.java
│       │   │               │   ├── training/
│       │   │               │   │   ├── AbdominalMuscleTraining.java
│       │   │               │   │   ├── BeginnersTraining.java
│       │   │               │   │   └── SevenMinutesTraining.java
│       │   │               │   ├── utils/
│       │   │               │   │   └── PackageUtils.java
│       │   │               │   └── workout/
│       │   │               │       ├── AbdominalCrunch.java
│       │   │               │       ├── AirSquatBentArms.java
│       │   │               │       ├── BicycleCrunch.java
│       │   │               │       ├── BoxJump.java
│       │   │               │       ├── Burpee.java
│       │   │               │       ├── CircleCrunch.java
│       │   │               │       ├── CrossJumps.java
│       │   │               │       ├── CrossJumpsRotation.java
│       │   │               │       ├── DonkeyKick.java
│       │   │               │       ├── HighKnees.java
│       │   │               │       ├── JumpPushUps.java
│       │   │               │       ├── JumpingJack.java
│       │   │               │       ├── Lunge.java
│       │   │               │       ├── LungeKick.java
│       │   │               │       ├── MountainClimbers.java
│       │   │               │       ├── PikeWalk.java
│       │   │               │       ├── Plank.java
│       │   │               │       ├── PushUpRotation.java
│       │   │               │       ├── PushUps.java
│       │   │               │       ├── QuickSteps.java
│       │   │               │       ├── RussianTwist.java
│       │   │               │       ├── SidePlank.java
│       │   │               │       ├── Squat.java
│       │   │               │       ├── StepUp.java
│       │   │               │       ├── TricepsDip.java
│       │   │               │       ├── WallSit.java
│       │   │               │       └── WorkoutFactory.java
│       │   │               └── gui/
│       │   │                   ├── datatypes/
│       │   │                   │   ├── GenericAdapter.java
│       │   │                   │   ├── GenericFragment.java
│       │   │                   │   ├── GenericSettingsFragment.java
│       │   │                   │   └── TrophyFragment.java
│       │   │                   ├── home/
│       │   │                   │   └── HomeFragment.java
│       │   │                   ├── preference/
│       │   │                   │   ├── MainPreferences.java
│       │   │                   │   ├── ReminderPreferences.java
│       │   │                   │   ├── SoundPreferences.java
│       │   │                   │   ├── TimePreference.java
│       │   │                   │   └── TimePreferenceDialog.java
│       │   │                   ├── session/
│       │   │                   │   ├── SessionFragment.java
│       │   │                   │   ├── SessionSettingsFragment.java
│       │   │                   │   └── SessionsAdapter.java
│       │   │                   ├── training/
│       │   │                   │   ├── TrainingDatabaseAdapter.java
│       │   │                   │   ├── TrainingFragment.java
│       │   │                   │   ├── TrainingSettingsFragment.java
│       │   │                   │   ├── TrainingsAdapter.java
│       │   │                   │   └── TrainingsDatabaseFragment.java
│       │   │                   ├── utils/
│       │   │                   │   ├── FileDialogHelper.java
│       │   │                   │   ├── SoundUtils.java
│       │   │                   │   └── VideoProvider.java
│       │   │                   └── workout/
│       │   │                       ├── WorkoutDatabaseFragment.java
│       │   │                       ├── WorkoutFragment.java
│       │   │                       ├── WorkoutSettingsFragment.java
│       │   │                       ├── WorkoutSlideFragment.java
│       │   │                       ├── WorkoutsAdapter.java
│       │   │                       └── WorkoutsDatabaseAdapter.java
│       │   └── res/
│       │       ├── anim/
│       │       │   ├── fab_close.xml
│       │       │   ├── fab_open.xml
│       │       │   ├── fab_rotate_anticlock.xml
│       │       │   └── fab_rotate_clock.xml
│       │       ├── drawable/
│       │       │   ├── button_flat_selector.xml
│       │       │   ├── ic_add.xml
│       │       │   ├── ic_avatar.xml
│       │       │   ├── ic_billing.xml
│       │       │   ├── ic_dark_mode.xml
│       │       │   ├── ic_database.xml
│       │       │   ├── ic_debug_logging.xml
│       │       │   ├── ic_delete.xml
│       │       │   ├── ic_download.xml
│       │       │   ├── ic_download_finished.xml
│       │       │   ├── ic_duplicate.xml
│       │       │   ├── ic_edit.xml
│       │       │   ├── ic_export.xml
│       │       │   ├── ic_goal.xml
│       │       │   ├── ic_help.xml
│       │       │   ├── ic_home.xml
│       │       │   ├── ic_import.xml
│       │       │   ├── ic_info.xml
│       │       │   ├── ic_local_export.xml
│       │       │   ├── ic_local_import.xml
│       │       │   ├── ic_next.xml
│       │       │   ├── ic_no_file.xml
│       │       │   ├── ic_openworkout.xml
│       │       │   ├── ic_option.xml
│       │       │   ├── ic_pause.xml
│       │       │   ├── ic_play.xml
│       │       │   ├── ic_preview.xml
│       │       │   ├── ic_reminder.xml
│       │       │   ├── ic_reorder.xml
│       │       │   ├── ic_reset.xml
│       │       │   ├── ic_save.xml
│       │       │   ├── ic_session.xml
│       │       │   ├── ic_session_done.xml
│       │       │   ├── ic_session_undone.xml
│       │       │   ├── ic_settings.xml
│       │       │   ├── ic_sound.xml
│       │       │   ├── ic_swap.xml
│       │       │   ├── ic_timer.xml
│       │       │   ├── ic_trophy_disabled.xml
│       │       │   ├── ic_trophy_enabled.xml
│       │       │   ├── ic_view.xml
│       │       │   ├── ic_workout_done.xml
│       │       │   ├── ic_workout_select.xml
│       │       │   ├── rect_disabled.xml
│       │       │   ├── rect_normal.xml
│       │       │   ├── rect_pressed.xml
│       │       │   └── ripple_timer.xml
│       │       ├── layout/
│       │       │   ├── activity_main.xml
│       │       │   ├── app_bar_main.xml
│       │       │   ├── content_main.xml
│       │       │   ├── fragment_home.xml
│       │       │   ├── fragment_session.xml
│       │       │   ├── fragment_sessionsettings.xml
│       │       │   ├── fragment_training.xml
│       │       │   ├── fragment_trainingdatabase.xml
│       │       │   ├── fragment_trainingsettings.xml
│       │       │   ├── fragment_trophy.xml
│       │       │   ├── fragment_workout.xml
│       │       │   ├── fragment_workoutdatabase.xml
│       │       │   ├── fragment_workoutsettings.xml
│       │       │   ├── fragment_workoutslide.xml
│       │       │   ├── item_session.xml
│       │       │   ├── item_training.xml
│       │       │   ├── item_trainingdatabase.xml
│       │       │   ├── item_workout.xml
│       │       │   ├── item_workoutdatabase.xml
│       │       │   ├── nav_header_main.xml
│       │       │   └── preference_timepicker.xml
│       │       ├── layout-sw600dp/
│       │       │   ├── fragment_home.xml
│       │       │   ├── fragment_session.xml
│       │       │   ├── fragment_training.xml
│       │       │   ├── fragment_trainingdatabase.xml
│       │       │   └── fragment_workout.xml
│       │       ├── menu/
│       │       │   ├── activity_main_drawer.xml
│       │       │   ├── fragment_menu.xml
│       │       │   ├── item_menu.xml
│       │       │   └── main.xml
│       │       ├── navigation/
│       │       │   └── mobile_navigation.xml
│       │       ├── values/
│       │       │   ├── colors.xml
│       │       │   ├── days.xml
│       │       │   ├── dimens.xml
│       │       │   ├── drawables.xml
│       │       │   ├── strings.xml
│       │       │   └── styles.xml
│       │       ├── values-de/
│       │       │   └── strings.xml
│       │       ├── values-v21/
│       │       │   └── styles.xml
│       │       └── xml/
│       │           ├── main_preferences.xml
│       │           ├── reminder_preferences.xml
│       │           └── sound_preferences.xml
│       └── playStore/
│           ├── AndroidManifest.xml
│           └── res/
│               └── layout/
│                   └── fragment_billing.xml
├── build.gradle
├── docs/
│   └── openWorkout_setting.blend
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   ├── Pluginfile
│   └── metadata/
│       └── android/
│           ├── de/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           └── en-US/
│               ├── changelogs/
│               │   ├── 10.txt
│               │   ├── 11.txt
│               │   ├── 12.txt
│               │   ├── 13.txt
│               │   ├── 14.txt
│               │   ├── 15.txt
│               │   ├── 5.txt
│               │   ├── 6.txt
│               │   ├── 7.txt
│               │   ├── 8.txt
│               │   └── 9.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.

**Debug log**
Attach a debug log (see Settings -> Enable debug logging) that is captured while reproducing the issue.


================================================
FILE: .github/PULL_REQUEST_TEMPLATE/publish_training.md
================================================
---
name: Publish training
about: Publish your training on GitHub to share it with the community
title: ''
labels: ''
assignees: ''
---

**Summary**

Please include a summary of your training

**Declaration**

* [ ] I herbey declare that all included training material are free to use and share within openWorkout


================================================
FILE: .github/workflows/ci.yml
================================================
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [master]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup JDK
        uses: actions/setup-java@v3
        with:
          distribution: "zulu" # See 'Supported distributions' for available options
          java-version: "21"
      - name: Build APK
        run: ./gradlew assembleFdroidDebug
      - uses: "marvinpinto/action-automatic-releases@latest"
        with:
          repo_token: "${{ secrets.GITHUB_TOKEN }}"
          automatic_release_tag: "dev-build"
          prerelease: true
          title: "openWorkout development build"
          files: |
            app/build/outputs/apk/fdroid/debug/openWorkout-debug.apk


================================================
FILE: .gitignore
================================================
# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
#  Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
*.jks
*.keystore
/app/src/main/res/values/apikeys.xml
/app/src/playStore/res/values/apikeys.xml
/keystore.properties
/fastlane_secrect_keys.json

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md
fastlane/README.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

/app/release/output.json
/.idea/.name
/.idea/


================================================
FILE: CREDITS
================================================
openWorkout uses open source components. You can find the source code of their open source projects along with license information below.
I acknowledge and I am grateful to these developers for their contributions to open source.

Project: CustomActivityOnCrash
Copyright 2014-2017 Eduard Ereza Martínez
Apache License, Version 2.0
License: https://www.apache.org/licenses/LICENSE-2.0
Website: https://github.com/Ereza/CustomActivityOnCrash

Project: Timber
Copyright 2013 Jake Wharton
Apache License, Version 2.0
License: https://www.apache.org/licenses/LICENSE-2.0
Website: https://github.com/JakeWharton/timber

Project: Android Debug Database
Copyright (C) 2019 Amit Shekhar
Apache License, Version 2.0
License: https://www.apache.org/licenses/LICENSE-2.0
Website: https://github.com/amitshekhariitbhu/Android-Debug-Database

Used icons are by flaticon.com (http://www.flaticon.com)
Attribution 3.0 Unported (CC BY 3.0)
License: http://creativecommons.org/licenses/by/3.0/
* iconixar (https://www.flaticon.com/authors/iconixar)
* Google (https://www.flaticon.com/authors/google)
* Freepik (http://www.freepik.com)
* Roundicons (https://www.flaticon.com/authors/roundicons)
* DinosoftLabs (https://www.flaticon.com/authors/dinosoftlabs)

Used sound effects by zapsplat.com (https://www.zapsplat.com)
License: Royalty free

Contributors to openScale are listed on:
https://github.com/oliexdev/openWorkout/graphs/contributors


================================================
FILE: Gemfile
================================================
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

source "https://rubygems.org"

gem 'fastlane'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)


================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    {one line to give the program's name and a brief idea of what it does.}
    Copyright (C) {year}  {name of author}

    This program 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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    {project}  Copyright (C) {year}  {fullname}
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.



================================================
FILE: README.md
================================================
<img align="left" src="https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/icon.png" alt="openWorkout logo" width="64" height="64"> openWorkout
=========

Simple workout trainer that puts your privacy first 

> [!IMPORTANT]
> This project is no longer actively maintained.<br>
> I’ve decided to stop further development of openWorkout.<br>
> Feel free to fork and continue if you’d like.

# Features

* Pre configured 7 minutes workout plan and beginners training plan
* Animated selectable female and male character
* Detailed information for each exercise
* Integrated workout reminder function
* Doesn't require you to create an account,
* Respects your privacy 
* Add your own individual training plan and workout items
* Full configuable workout items
* Optional dark theme selectable

# Privacy

Please read the full privacy policy of the openScale sync app [here](https://github.com/oliexdev/openWorkout/wiki/openWorkout-Privacy-Policy).

# Screenshots

<table>
  <tr>
    <th>
        <a href="https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/1_en-GB.png" target="_blank">
        <img src='https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/1_en-GB.png' width='200px' alt='image missing' /> </a>
    </th>
    <th>
        <a href="https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/2_en-GB.png" target="_blank">
        <img src='https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/2_en-GB.png' width='200px' alt='image missing' /> </a>
    </th>
    <th>
        <a href="https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/3_en-GB.png" target="_blank">
        <img src='https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/3_en-GB.png' width='200px' alt='image missing' /> </a>
    </th>
    <th>
        <a href="https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/4_en-GB.png" target="_blank">
        <img src='https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/phoneScreenshots/4_en-GB.png' width='200px' alt='image missing' /> </a>
    </th>
  </tr>
</table>

# License

    Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>

    This program 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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>


================================================
FILE: app/.gitignore
================================================
/build


================================================
FILE: app/build.gradle
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

apply plugin: 'com.android.application'
apply plugin: "androidx.navigation.safeargs"

android {
    compileSdk 34

    defaultConfig {
        applicationId "com.health.openworkout"
        minSdkVersion 21
        targetSdkVersion 34
        versionCode 15
        versionName "1.3.2"
        archivesBaseName = "openWorkout-$versionName"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        buildFeatures {
            buildConfig = true
        }
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
            }
        }
    }


    signingConfigs {
        release {
            def keystorePropertiesFile = rootProject.file("../openWorkout.keystore")
            def keystoreProperties = new Properties()
            try {
                keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
            } catch(FileNotFoundException ex) {
                keystoreProperties = null;
            }

            if (keystoreProperties != null) {
                storeFile file(rootDir.getCanonicalPath() + '/' + keystoreProperties['releaseKeyStore'])
                keyAlias keystoreProperties['releaseKeyAlias']
                keyPassword keystoreProperties['releaseKeyPassword']
                storePassword keystoreProperties['releaseStorePassword']
            }
        }

        playStore {
            def keystorePlayStorePropertiesFile = rootProject.file("../openWorkout_playstore.keystore")
            def keystorePlayStoreProperties = new Properties()
            try {
                keystorePlayStoreProperties.load(new FileInputStream(keystorePlayStorePropertiesFile))
            } catch(FileNotFoundException ex) {
                keystorePlayStoreProperties = null;
            }

            if (keystorePlayStoreProperties != null) {
                storeFile file(rootDir.getCanonicalPath() + '/' + keystorePlayStoreProperties['releaseKeyStore'])
                keyAlias keystorePlayStoreProperties['releaseKeyAlias']
                keyPassword keystorePlayStoreProperties['releaseKeyPassword']
                storePassword keystorePlayStoreProperties['releaseStorePassword']
            }
        }
    }

    buildTypes {
        release {
            debuggable false
            shrinkResources true
            minifyEnabled true
           // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }

        debug {
            debuggable true
            // don't include version number into the apk filename for debug build type so GitHub CI can find it
            applicationVariants.all { variant ->
                variant.outputs.all { output ->
                    if (variant.buildType.name == "debug") {
                        outputFileName = "openWorkout-debug.apk"
                    }
                }
            }
        }
    }

    flavorDimensions "default"

    productFlavors {
        fdroid {
            dimension "default"
            signingConfig signingConfigs.release
        }

        playStore {
            dimension "default"
            signingConfig signingConfigs.playStore
        }
    }

    namespace 'com.health.openworkout'
    lint {
        abortOnError false
        checkReleaseBuilds false
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    // Google libraries
    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.preference:preference:1.2.1'
    implementation 'com.google.android.material:material:1.12.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
    implementation 'androidx.navigation:navigation-fragment:2.8.4'
    implementation 'androidx.navigation:navigation-ui:2.8.4'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

    // Retrofit2
    implementation 'com.squareup.retrofit2:retrofit:2.8.1'
    implementation 'com.squareup.retrofit2:converter-gson:2.8.1'

    // GSon
    implementation 'com.google.code.gson:gson:2.10.1'

    // CustomActivityOnCrash
    implementation 'cat.ereza:customactivityoncrash:2.3.0'

    // Timber log library
    implementation 'com.jakewharton.timber:timber:5.0.1'

    // Room library
    implementation 'androidx.room:room-runtime:2.6.1'

    // Test environment
    annotationProcessor 'androidx.room:room-compiler:2.6.1'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'

    // Debug SQL DB use adb forward tcp:8080 tcp:8080 --> localhost:8080
    //debugImplementation 'com.amitshekhar.android:debug-db:1.0.7'
}


================================================
FILE: app/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class * extends androidx.fragment.app.Fragment{}

================================================
FILE: app/schemas/com.health.openworkout.core.database.AppDatabase/1.json
================================================
{
  "formatVersion": 1,
  "database": {
    "version": 1,
    "identityHash": "452b47f7dbfdc7a2311dc46aa5f95066",
    "entities": [
      {
        "tableName": "User",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `trainingsPlanId` INTEGER NOT NULL, `isMale` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "userId",
            "columnName": "userId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "trainingsPlanId",
            "columnName": "trainingsPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isMale",
            "columnName": "isMale",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "userId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "TrainingPlan",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`trainingPlanId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `imagePath` TEXT, `isImagePathExternal` INTEGER NOT NULL, `countFinishedTraining` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "trainingPlanId",
            "columnName": "trainingPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "imagePath",
            "columnName": "imagePath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isImagePathExternal",
            "columnName": "isImagePathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "countFinishedTraining",
            "columnName": "countFinishedTraining",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "trainingPlanId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "WorkoutSession",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`workoutSessionId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `trainingPlanId` INTEGER NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `finished` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "workoutSessionId",
            "columnName": "workoutSessionId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "trainingPlanId",
            "columnName": "trainingPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "finished",
            "columnName": "finished",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "workoutSessionId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "WorkoutItem",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`workoutItemId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `workoutSessionId` INTEGER NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `description` TEXT, `elapsedTime` INTEGER NOT NULL, `imagePath` TEXT, `isImagePathExternal` INTEGER NOT NULL, `videoPath` TEXT, `isVideoPathExternal` INTEGER NOT NULL, `prepTime` INTEGER NOT NULL, `workoutTime` INTEGER NOT NULL, `breakTime` INTEGER NOT NULL, `repetitionCount` INTEGER NOT NULL, `isTimeMode` INTEGER NOT NULL, `finished` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "workoutItemId",
            "columnName": "workoutItemId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "workoutSessionId",
            "columnName": "workoutSessionId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "description",
            "columnName": "description",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "elapsedTime",
            "columnName": "elapsedTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "imagePath",
            "columnName": "imagePath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isImagePathExternal",
            "columnName": "isImagePathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "videoPath",
            "columnName": "videoPath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isVideoPathExternal",
            "columnName": "isVideoPathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "prepTime",
            "columnName": "prepTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "workoutTime",
            "columnName": "workoutTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "breakTime",
            "columnName": "breakTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "repetitionCount",
            "columnName": "repetitionCount",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isTimeMode",
            "columnName": "isTimeMode",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "finished",
            "columnName": "finished",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "workoutItemId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      }
    ],
    "views": [],
    "setupQueries": [
      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '452b47f7dbfdc7a2311dc46aa5f95066')"
    ]
  }
}

================================================
FILE: app/schemas/com.health.openworkout.core.database.AppDatabase/2.json
================================================
{
  "formatVersion": 1,
  "database": {
    "version": 2,
    "identityHash": "007a41b5201e4b1e5a62195c5ba4415c",
    "entities": [
      {
        "tableName": "User",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `trainingsPlanId` INTEGER NOT NULL, `isMale` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "userId",
            "columnName": "userId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "trainingsPlanId",
            "columnName": "trainingsPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isMale",
            "columnName": "isMale",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "userId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "TrainingPlan",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`trainingPlanId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `imagePath` TEXT, `isImagePathExternal` INTEGER NOT NULL, `countFinishedTraining` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "trainingPlanId",
            "columnName": "trainingPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "imagePath",
            "columnName": "imagePath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isImagePathExternal",
            "columnName": "isImagePathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "countFinishedTraining",
            "columnName": "countFinishedTraining",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "trainingPlanId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "WorkoutSession",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`workoutSessionId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `trainingPlanId` INTEGER NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `finished` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "workoutSessionId",
            "columnName": "workoutSessionId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "trainingPlanId",
            "columnName": "trainingPlanId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "finished",
            "columnName": "finished",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "workoutSessionId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "WorkoutItem",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`workoutItemId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `workoutSessionId` INTEGER NOT NULL, `orderNr` INTEGER NOT NULL, `name` TEXT, `description` TEXT, `elapsedTime` INTEGER NOT NULL, `imagePath` TEXT, `isImagePathExternal` INTEGER NOT NULL, `isVideoMode` INTEGER NOT NULL, `videoPath` TEXT, `isVideoPathExternal` INTEGER NOT NULL, `prepTime` INTEGER NOT NULL, `workoutTime` INTEGER NOT NULL, `breakTime` INTEGER NOT NULL, `repetitionCount` INTEGER NOT NULL, `isTimeMode` INTEGER NOT NULL, `finished` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "workoutItemId",
            "columnName": "workoutItemId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "workoutSessionId",
            "columnName": "workoutSessionId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "orderNr",
            "columnName": "orderNr",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "description",
            "columnName": "description",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "elapsedTime",
            "columnName": "elapsedTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "imagePath",
            "columnName": "imagePath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isImagePathExternal",
            "columnName": "isImagePathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isVideoMode",
            "columnName": "isVideoMode",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "videoPath",
            "columnName": "videoPath",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isVideoPathExternal",
            "columnName": "isVideoPathExternal",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "prepTime",
            "columnName": "prepTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "workoutTime",
            "columnName": "workoutTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "breakTime",
            "columnName": "breakTime",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "repetitionCount",
            "columnName": "repetitionCount",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isTimeMode",
            "columnName": "isTimeMode",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "finished",
            "columnName": "finished",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "workoutItemId"
          ],
          "autoGenerate": true
        },
        "indices": [],
        "foreignKeys": []
      }
    ],
    "views": [],
    "setupQueries": [
      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '007a41b5201e4b1e5a62195c5ba4415c')"
    ]
  }
}

================================================
FILE: app/src/fdroid/java/com/health/openworkout/core/utils/PlayStoreUtils.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.utils;

import android.app.Activity;
import android.content.Context;
import android.view.View;

public class PlayStoreUtils {
    private static PlayStoreUtils instance;

    private PlayStoreUtils(Context aContext) {
        // empty
    }

    public static void createInstance(Context aContext) {
        if (instance != null) {
            return;
        }

        instance = new PlayStoreUtils(aContext);
    }

    public static PlayStoreUtils getInstance() {
        if (instance == null) {
            throw new RuntimeException("No PlayStoreUtils instance created");
        }

        return instance;
    }

    public void initMobileAds(Activity activity) {
        // empty
    }

    public View getAdView(Context aContext) {
        return null;
    }


    public boolean isAdRemovalPaid() {
        return true;
    }

}


================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
  ~
  ~ This program 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.
  ~
  ~ This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
  -->

<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_openworkout"
        android:label="@string/app_name"
        android:name=".core.Application"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:exported="true"
            android:configChanges="orientation|screenSize"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <provider
            android:name=".gui.utils.VideoProvider"
            android:authorities="com.health.openworkout.videoprovider"
            android:exported="false" />

        <receiver android:name=".core.alarm.ReminderBootReceiver" android:enabled="false" android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>
    </application>

</manifest>

================================================
FILE: app/src/main/java/com/health/openworkout/MainActivity.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout;

import android.app.AlertDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.SpannableString;
import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;

import com.google.android.material.navigation.NavigationView;
import com.health.openworkout.core.OpenWorkout;

public class MainActivity extends AppCompatActivity {

    private AppBarConfiguration mAppBarConfiguration;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        OpenWorkout.getInstance().initTrainingPlans();

        setContentView(R.layout.activity_main);
        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

        final DrawerLayout drawer = findViewById(R.id.drawer_layout);
        final NavigationView navigationView = findViewById(R.id.nav_view);
        // Passing each menu ID as a set of Ids because each
        // menu should be considered as top level destinations.
        mAppBarConfiguration = new AppBarConfiguration.Builder(
                R.id.nav_home, R.id.nav_main_preferences, R.id.nav_trainings)
                .setDrawerLayout(drawer)
                .build();
        final NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
        NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
        NavigationUI.setupWithNavController(navigationView, navController);

        navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
            @Override
            public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
                switch (menuItem.getItemId()) {
                    case R.id.nav_help:
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/oliexdev/openWorkout")));
                        break;
                    case R.id.nav_about:
                        showAboutDialog();
                        break;
                }

                NavigationUI.onNavDestinationSelected(menuItem, navController);
                drawer.closeDrawer(GravityCompat.START);

                return true;
            }
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        //getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public boolean onSupportNavigateUp() {
        NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
        return NavigationUI.navigateUp(navController, mAppBarConfiguration)
                || super.onSupportNavigateUp();
    }

    private void showAboutDialog() {
        final SpannableString abouotMsg = new SpannableString(getResources().getString(R.string.label_about_info));

        AlertDialog dialog = new AlertDialog.Builder(this)
                .setTitle(getResources().getString(R.string.app_name) + " " + String.format("v%s (%d)", BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE))
                .setMessage(abouotMsg)
                .setIcon(R.drawable.ic_openworkout)
                .setPositiveButton(getResources().getString(R.string.label_ok), null)
                .create();

        dialog.show();
    }

}


================================================
FILE: app/src/main/java/com/health/openworkout/core/Application.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core;

import android.content.SharedPreferences;

import androidx.appcompat.app.AppCompatDelegate;
import androidx.preference.PreferenceManager;

import com.health.openworkout.BuildConfig;

import timber.log.Timber;

public class Application extends android.app.Application {
    OpenWorkout openWorkout;

    private class TimberLogAdapter extends Timber.DebugTree {
        @Override
        protected boolean isLoggable(String tag, int priority) {
            if (BuildConfig.DEBUG || OpenWorkout.DEBUG_MODE) {
                return super.isLoggable(tag, priority);
            }
            return false;
        }
    }

    @Override
    public void onCreate() {
        super.onCreate();

        Timber.plant(new TimberLogAdapter());

        SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
        boolean isDarkMode = sharedPreferences.getBoolean("darkTheme", false);

        if (isDarkMode) {
            AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
        }

        // Create openWorkout instance
        OpenWorkout.createInstance(getApplicationContext());

        // Hold on to the instance for as long as the application exists
        openWorkout = OpenWorkout.getInstance();
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/OpenWorkout.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core;

import android.content.Context;

import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteDatabase;

import com.health.openworkout.core.database.AppDatabase;
import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.datatypes.User;
import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;
import com.health.openworkout.core.training.AbdominalMuscleTraining;
import com.health.openworkout.core.training.BeginnersTraining;
import com.health.openworkout.core.training.SevenMinutesTraining;
import com.health.openworkout.core.workout.WorkoutFactory;
import com.health.openworkout.gui.utils.SoundUtils;

import java.util.ArrayList;
import java.util.List;

import timber.log.Timber;

public class OpenWorkout {
    public static boolean DEBUG_MODE = false;
    private static final String DATABASE_NAME = "openWorkout.db";

    private static OpenWorkout instance;
    private final Context context;

    private AppDatabase appDB;
    private User user;

    private SoundUtils soundUtils;

    private OpenWorkout(Context aContext) {
        context = aContext;
        soundUtils = new SoundUtils(aContext);

        openDB();
    }

    public static void createInstance(Context aContext) {
        if (instance != null) {
            return;
        }

        instance = new OpenWorkout(aContext);
    }

    public static OpenWorkout getInstance() {
        if (instance == null) {
            throw new RuntimeException("No openWorkout instance created");
        }

        return instance;
    }

    public final Context getContext() {
        return context;
    }

    private void openDB() {
        appDB = Room.databaseBuilder(context, AppDatabase.class, DATABASE_NAME)
                .allowMainThreadQueries()
                .addCallback(new RoomDatabase.Callback() {
                    @Override
                    public void onOpen(SupportSQLiteDatabase db) {
                        super.onOpen(db);
                        db.setForeignKeyConstraintsEnabled(true);
                    }
                })
                .addMigrations(AppDatabase.MIGRATION_1_2)
                .build();
    }

    public void initTrainingPlans() {
        List<TrainingPlan> trainingPlanList = appDB.trainingPlanDAO().getAll();

        if (trainingPlanList.isEmpty()) {
            appDB.workoutItemDAO().clear();

            long trainingPlanId = insertTrainingPlan(new SevenMinutesTraining());
            insertTrainingPlan(new BeginnersTraining());
            insertTrainingPlan(new AbdominalMuscleTraining());

            WorkoutFactory workoutFactory = new WorkoutFactory();
            appDB.workoutItemDAO().insertAll(workoutFactory.getAllWorkoutItems());

            user = new User();
            user.setTrainingsPlanId(trainingPlanId);
            appDB.userDAO().insert(user);
        }

        user = appDB.userDAO().getAll().get(0);
    }

    public User getCurrentUser() {
        return user;
    }

    public void printTrainingPlans() {
        Timber.d("################ TRAINING PLAN PRINTOUT #####################");
        List<TrainingPlan> trainingPlanList = appDB.trainingPlanDAO().getAll();

        for (TrainingPlan singleTrainingPlan : trainingPlanList) {
            Timber.d("- Training Plan " + singleTrainingPlan.getName() + " Id " + singleTrainingPlan.getTrainingPlanId());
            List<WorkoutSession> workoutSessionList = appDB.workoutSessionDAO().getAll(singleTrainingPlan.getTrainingPlanId());

            for (WorkoutSession singleWorkoutSession : workoutSessionList) {
                Timber.d("-- WorkoutSession " + singleWorkoutSession.getName() + " Id " + singleWorkoutSession.getWorkoutSessionId());
                List<WorkoutItem> workoutItemList = appDB.workoutItemDAO().getAll(singleWorkoutSession.getWorkoutSessionId());

                for (WorkoutItem singleWorkItem : workoutItemList) {
                    Timber.d("---- WorkoutItem " + singleWorkItem.getName() + " Id " + singleWorkItem.getWorkoutItemId());
                }
            }
        }
    }

    public List<TrainingPlan> getTrainingPlans() {
        List<TrainingPlan> trainingPlanList = new ArrayList<>();

        List<TrainingPlan> dbTrainingPlanList = appDB.trainingPlanDAO().getAll();
        for (TrainingPlan dbTrainingPlan : dbTrainingPlanList) {
            trainingPlanList.add(getTrainingPlan(dbTrainingPlan.getTrainingPlanId()));
        }

        return trainingPlanList;
    }

    public TrainingPlan getTrainingPlan(long trainingPlanId) {
        TrainingPlan singleTrainingPlan = appDB.trainingPlanDAO().get(trainingPlanId);

        if (singleTrainingPlan != null) {
            List<WorkoutSession> workoutSessionList = appDB.workoutSessionDAO().getAll(singleTrainingPlan.getTrainingPlanId());
            singleTrainingPlan.setWorkoutSessions(workoutSessionList);

            for (WorkoutSession singleWorkoutSession : workoutSessionList) {
                List<WorkoutItem> workoutItemList = appDB.workoutItemDAO().getAll(singleWorkoutSession.getWorkoutSessionId());
                singleWorkoutSession.setWorkoutItems(workoutItemList);
            }
        }

        return singleTrainingPlan;
    }

    public WorkoutSession getWorkoutSession(long workoutSessionId) {
        WorkoutSession singleWorkoutSession = appDB.workoutSessionDAO().get(workoutSessionId);

        List<WorkoutItem> workoutItemList = appDB.workoutItemDAO().getAll(singleWorkoutSession.getWorkoutSessionId());
        singleWorkoutSession.setWorkoutItems(workoutItemList);

        return singleWorkoutSession;
    }

    public WorkoutItem getWorkoutItem(long workoutItemId) {
        return appDB.workoutItemDAO().get(workoutItemId);
    }

    public List<WorkoutItem> getAllUniqueWorkoutItems() {
        return appDB.workoutItemDAO().getAllUnique();
    }

    public long insertTrainingPlan(TrainingPlan trainingPlan) {
        long trainingPlanId = appDB.trainingPlanDAO().insert(trainingPlan);
        for (WorkoutSession workoutSession : trainingPlan.getWorkoutSessions()) {
            workoutSession.setTrainingPlanId(trainingPlanId);
            long workoutSessionId = appDB.workoutSessionDAO().insert(workoutSession);

            for (WorkoutItem workoutItem : workoutSession.getWorkoutItems()) {
                workoutItem.setWorkoutSessionId(workoutSessionId);
                appDB.workoutItemDAO().insert(workoutItem);
            }
        }

        return trainingPlanId;
    }

    public long insertWorkoutSession(WorkoutSession workoutSession) {
        long workoutSessionId = appDB.workoutSessionDAO().insert(workoutSession);

        for (WorkoutItem workoutItem : workoutSession.getWorkoutItems()) {
            workoutItem.setWorkoutSessionId(workoutSessionId);
            appDB.workoutItemDAO().insert(workoutItem);
        }

        return workoutSessionId;
    }

    public long insertWorkoutItem(WorkoutItem workoutItem) {
        long workoutItemId = appDB.workoutItemDAO().insert(workoutItem);

        return workoutItemId;
    }

    public void deleteTrainingPlan(TrainingPlan trainingPlan) {
        for (WorkoutSession workoutSession : trainingPlan.getWorkoutSessions()) {
            appDB.workoutItemDAO().deleteAll(workoutSession.getWorkoutSessionId());
        }

        appDB.workoutSessionDAO().deleteAll(trainingPlan.getTrainingPlanId());
        appDB.trainingPlanDAO().delete(trainingPlan);
    }

    public void deleteWorkoutSession(WorkoutSession workoutSession) {
        appDB.workoutItemDAO().deleteAll(workoutSession.getWorkoutSessionId());

        appDB.workoutSessionDAO().delete(workoutSession);
    }

    public void deleteWorkoutItem(WorkoutItem workoutItem) {
        appDB.workoutItemDAO().delete(workoutItem);
    }

    public void updateWorkoutItem(WorkoutItem workoutItem) {
        appDB.workoutItemDAO().update(workoutItem);
    }

    public void updateWorkoutSession(WorkoutSession workoutSession) {
        appDB.workoutSessionDAO().update(workoutSession);
    }

    public void updateTrainingPlan(TrainingPlan trainingPlan) {
        appDB.trainingPlanDAO().update(trainingPlan);
    }

    public void updateUser(User user) {
        appDB.userDAO().update(user);
    }

    public SoundUtils getSoundUtils() {
        return soundUtils;
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmEntry.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */
package com.health.openworkout.core.alarm;

import java.util.Calendar;

public class AlarmEntry implements Comparable<AlarmEntry> {
    private final int dayOfWeek;
    private final long timeInMillis;

    public AlarmEntry(int dayOfWeek, long timeInMillis)
    {
        this.dayOfWeek = dayOfWeek;
        this.timeInMillis = timeInMillis;
    }

    public int getDayOfWeek()
    {
        return dayOfWeek;
    }

    private long getTimeInMillis()
    {
        return timeInMillis;
    }

    public Calendar getNextTimestamp()
    {
        // We just want the time *not* the date
        Calendar nextAlarmTimestamp = Calendar.getInstance();
        nextAlarmTimestamp.setTimeInMillis(getTimeInMillis());

        Calendar alarmCal = Calendar.getInstance();
        alarmCal.set(Calendar.HOUR_OF_DAY, nextAlarmTimestamp.get(Calendar.HOUR_OF_DAY));
        alarmCal.set(Calendar.MINUTE, nextAlarmTimestamp.get(Calendar.MINUTE));
        alarmCal.set(Calendar.SECOND, 0);
        alarmCal.set(Calendar.DAY_OF_WEEK, getDayOfWeek());

        // Check we aren't setting it in the past which would trigger it to fire instantly
        if (alarmCal.before(Calendar.getInstance())) {
            alarmCal.add(Calendar.DAY_OF_YEAR, 7);
        }

        return alarmCal;
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AlarmEntry that = (AlarmEntry) o;

        if (dayOfWeek != that.dayOfWeek) return false;
        return timeInMillis == that.timeInMillis;
    }

    @Override
    public int hashCode()
    {
        int result = dayOfWeek;
        result = 31 * result + (int) (timeInMillis ^ (timeInMillis >>> 32));
        return result;
    }

    @Override
    public int compareTo(AlarmEntry o)
    {
        int rc = compare(dayOfWeek, o.dayOfWeek);
        if (rc == 0) rc = compare(timeInMillis, o.timeInMillis);
        return rc;
    }

    private int compare(long x, long y)
    {
        return (x < y) ? -1 : ((x == y) ? 0 : 1);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmEntryReader.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */
package com.health.openworkout.core.alarm;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.health.openworkout.R;

import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

public class AlarmEntryReader {
    private Set<AlarmEntry> alarmEntries;
    private String alarmNotificationText;

    private AlarmEntryReader(Set<AlarmEntry> alarmEntries, String alarmNotificationText) {
        this.alarmEntries = alarmEntries;
        this.alarmNotificationText = alarmNotificationText;
    }

    public Set<AlarmEntry> getEntries()
    {
        return alarmEntries;
    }

    public String getNotificationText()
    {
        return alarmNotificationText;
    }

    public static AlarmEntryReader construct(Context context) {
        SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);

        Set<String> reminderDays = prefs.getStringSet("reminderDays", new HashSet<String>());
        Long reminderTimeInMillis = prefs.getLong("reminderTime", System.currentTimeMillis());
        String notifyText = prefs.getString("reminderNotifyText", context.getResources().getString(R.string.preference_reminder_default_text));

        Set<AlarmEntry> alarms = new TreeSet<>();

        for (String dayOfWeek : reminderDays) {
            AlarmEntry alarm = getAlarmEntry(dayOfWeek, reminderTimeInMillis);
            alarms.add(alarm);
        }

        return new AlarmEntryReader(alarms, notifyText);
    }

    private static AlarmEntry getAlarmEntry(String dayOfWeek, Long reminderTimeInMillis) {
        AlarmEntry alarmEntry;

        switch (dayOfWeek) {
            case "Monday":
                alarmEntry = new AlarmEntry(Calendar.MONDAY, reminderTimeInMillis);
                break;
            case "Tuesday":
                alarmEntry = new AlarmEntry(Calendar.TUESDAY, reminderTimeInMillis);
                break;
            case "Wednesday":
                alarmEntry = new AlarmEntry(Calendar.WEDNESDAY, reminderTimeInMillis);
                break;
            case "Thursday":
                alarmEntry = new AlarmEntry(Calendar.THURSDAY, reminderTimeInMillis);
                break;
            case "Friday":
                alarmEntry = new AlarmEntry(Calendar.FRIDAY, reminderTimeInMillis);
                break;
            case "Saturday":
                alarmEntry = new AlarmEntry(Calendar.SATURDAY, reminderTimeInMillis);
                break;
            default:
            case "Sunday":
                alarmEntry = new AlarmEntry(Calendar.SUNDAY, reminderTimeInMillis);
                break;
        }
        return alarmEntry;
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmHandler.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */
package com.health.openworkout.core.alarm;

import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;

import androidx.core.app.NotificationCompat;

import com.health.openworkout.MainActivity;
import com.health.openworkout.R;

import java.util.Calendar;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

import timber.log.Timber;

import static android.content.Context.NOTIFICATION_SERVICE;

public class AlarmHandler {
    public static final String INTENT_EXTRA_ALARM = "alarmIntent";
    private static final int ALARM_NOTIFICATION_ID = 0x01;

    public void scheduleAlarms(Context context) {
        AlarmEntryReader reader = AlarmEntryReader.construct(context);
        Set<AlarmEntry> alarmEntries = reader.getEntries();

        disableAllAlarms(context);
        enableAlarms(context, alarmEntries);
    }

    private void enableAlarms(Context context, Set<AlarmEntry> alarmEntries) {
        for (AlarmEntry alarmEntry : alarmEntries) {
            enableAlarm(context, alarmEntry);
        }
    }

    private void enableAlarm(Context context, AlarmEntry alarmEntry) {
        int dayOfWeek = alarmEntry.getDayOfWeek();
        Calendar nextAlarmTimestamp = alarmEntry.getNextTimestamp();

        setRepeatingAlarm(context, dayOfWeek, nextAlarmTimestamp);
    }

    private void setRepeatingAlarm(Context context, int dayOfWeek, Calendar nextAlarmTimestamp) {
        Timber.d("Set repeating alarm for %s", nextAlarmTimestamp.getTime());
        PendingIntent alarmPendingIntent = getPendingAlarmIntent(context, dayOfWeek);
        AlarmManager alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
        alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, nextAlarmTimestamp.getTimeInMillis(),
                AlarmManager.INTERVAL_DAY * 7, alarmPendingIntent);
    }

    private List<PendingIntent> getWeekdaysPendingAlarmIntent(Context context) {
        final int[] dayOfWeeks = {Calendar.MONDAY, Calendar.TUESDAY,
                Calendar.WEDNESDAY, Calendar.THURSDAY, Calendar.FRIDAY,
                Calendar.SATURDAY, Calendar.SUNDAY};

        List<PendingIntent> pendingIntents = new LinkedList<>();

        for (int dayOfWeek : dayOfWeeks) {
            pendingIntents.add(getPendingAlarmIntent(context, dayOfWeek));
        }

        return pendingIntents;
    }

    private PendingIntent getPendingAlarmIntent(Context context, int dayOfWeek) {
        Intent alarmIntent = new Intent(context, ReminderBootReceiver.class);
        alarmIntent.putExtra(INTENT_EXTRA_ALARM, true);

        return PendingIntent.getBroadcast(context, dayOfWeek, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
    }

    public void disableAllAlarms(Context context) {
        Timber.d("Disable all alarm handlers");
        AlarmManager alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
        List<PendingIntent> pendingIntents = getWeekdaysPendingAlarmIntent(context);

        for (PendingIntent pendingIntent : pendingIntents) {
            alarmMgr.cancel(pendingIntent);
        }
    }

    public void showAlarmNotification(Context context) {
        AlarmEntryReader reader = AlarmEntryReader.construct(context);
        String notifyText = reader.getNotificationText();

        Intent notifyIntent = new Intent(context, MainActivity.class);

        PendingIntent notifyPendingIntent =
                PendingIntent.getActivity(context, 0, notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);

        NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context, "openWorkout_notify");

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
            NotificationChannel channel = new NotificationChannel(
                    "openWorkout_notify",
                    "openWorkout notification",
                    NotificationManager.IMPORTANCE_DEFAULT);
            notificationManager.createNotificationChannel(channel);
        }

        Notification notification = mBuilder.setSmallIcon(R.drawable.ic_openworkout)
                                            .setContentTitle(context.getString(R.string.app_name))
                                            .setContentText(notifyText)
                                            .setAutoCancel(true)
                                            .setContentIntent(notifyPendingIntent)
                                            .build();

        NotificationManager mNotifyMgr = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE);
        mNotifyMgr.notify(ALARM_NOTIFICATION_ID, notification);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/alarm/ReminderBootReceiver.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.alarm;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class ReminderBootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.hasExtra(AlarmHandler.INTENT_EXTRA_ALARM)) {
            handleAlarm(context);
        }

        if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
            scheduleAlarms(context);
        }
    }

    private void handleAlarm(Context context) {
        AlarmHandler alarmHandler = new AlarmHandler();
        alarmHandler.showAlarmNotification(context);
    }

    private void scheduleAlarms(Context context) {
        AlarmHandler alarmHandler = new AlarmHandler();

        alarmHandler.scheduleAlarms(context);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/database/AppDatabase.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.database;

import androidx.room.Database;
import androidx.room.RoomDatabase;
import androidx.room.migration.Migration;
import androidx.sqlite.db.SupportSQLiteDatabase;

import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.datatypes.User;
import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;

@Database(entities = {User.class, TrainingPlan.class, WorkoutSession.class, WorkoutItem.class}, version = 2)
public abstract class AppDatabase extends RoomDatabase {
    public abstract UserDAO userDAO();
    public abstract TrainingPlanDAO trainingPlanDAO();
    public abstract WorkoutSessionDAO workoutSessionDAO();
    public abstract WorkoutItemDAO workoutItemDAO();

    public static final Migration MIGRATION_1_2 = new Migration(1, 2) {
        @Override
        public void migrate(SupportSQLiteDatabase database) {
            database.beginTransaction();
            try {
                // Add isVideoMode
                database.execSQL("ALTER TABLE workoutItem ADD isVideoMode INTEGER NOT NULL default 1");

                database.setTransactionSuccessful();
            }
            finally {
                database.endTransaction();
            }
        }
    };
}

================================================
FILE: app/src/main/java/com/health/openworkout/core/database/TrainingPlanDAO.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.health.openworkout.core.datatypes.TrainingPlan;

import java.util.List;

@Dao
public interface TrainingPlanDAO {
    @Insert
    long insert(TrainingPlan trainingPlan);

    @Update
    void update(TrainingPlan trainingPlan);

    @Delete
    void delete(TrainingPlan trainingPlan);

    @Query("SELECT * FROM TrainingPlan WHERE trainingPlanId=:trainingPlanId")
    TrainingPlan get(long trainingPlanId);

    @Query("SELECT * FROM TrainingPlan ORDER BY orderNr")
    List<TrainingPlan> getAll();
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/database/UserDAO.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.health.openworkout.core.datatypes.User;

import java.util.List;

@Dao
public interface UserDAO {
    @Insert
    long insert(User user);

    @Update
    void update(User user);

    @Delete
    void delete(User user);

    @Query("SELECT * FROM User WHERE userId=:userId")
    User get(long userId);

    @Query("SELECT * FROM User")
    List<User> getAll();
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/database/WorkoutItemDAO.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.health.openworkout.core.datatypes.WorkoutItem;

import java.util.List;

@Dao
public interface WorkoutItemDAO {
    @Insert
    long insert(WorkoutItem workoutItem);

    @Insert
    void insertAll(List<WorkoutItem> workoutItemList);

    @Update
    void update(WorkoutItem workoutItem);

    @Delete
    void delete(WorkoutItem workoutItem);

    @Query("DELETE FROM WorkoutItem")
    void clear();

    @Query("DELETE FROM WorkoutItem WHERE workoutSessionId = :workoutSessionId")
    void deleteAll(long workoutSessionId);

    @Query("SELECT * FROM WorkoutItem WHERE workoutItemId=:workoutItemId")
    WorkoutItem get(long workoutItemId);

    @Query("SELECT * FROM WorkoutItem WHERE workoutSessionId = :workoutSessionId ORDER BY orderNr")
    List<WorkoutItem> getAll(long workoutSessionId);

    @Query("SELECT * FROM WorkoutItem GROUP BY name")
    List<WorkoutItem> getAllUnique();
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/database/WorkoutSessionDAO.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.health.openworkout.core.datatypes.WorkoutSession;

import java.util.List;

@Dao
public interface WorkoutSessionDAO {
    @Insert
    long insert(WorkoutSession workoutSession);

    @Update
    void update(WorkoutSession workoutSession);

    @Delete
    void delete(WorkoutSession workoutSession);

    @Query("DELETE FROM WorkoutSession WHERE trainingPlanId = :trainingPlanId")
    void deleteAll(long trainingPlanId);

    @Query("SELECT * FROM WorkoutSession WHERE workoutSessionId=:workoutSessionId")
    WorkoutSession get(long workoutSessionId);

    @Query("SELECT * FROM WorkoutSession WHERE trainingPlanId = :trainingPlanId ORDER BY orderNr")
    List<WorkoutSession> getAll(long trainingPlanId);
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/datatypes/GitHubFile.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.datatypes;

import androidx.annotation.Keep;

import com.google.gson.annotations.SerializedName;

import java.util.List;

@Keep
public class GitHubFile {
    @SerializedName("type")
    private String type;

    @SerializedName("size")
    private long size;

    @SerializedName("name")
    private String name;

    @SerializedName("path")
    private String path;

    @SerializedName("sha")
    private String sha;

    @SerializedName("url")
    private String url;

    @SerializedName("git_url")
    private String gitURL;

    @SerializedName("html_url")
    private String htmlURL;

    @SerializedName("download_url")
    private String downloadURL;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSha() {
        return sha;
    }

    public void setSha(String sha) {
        this.sha = sha;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getGitURL() {
        return gitURL;
    }

    public void setGitURL(String gitURL) {
        this.gitURL = gitURL;
    }

    public String getHtmlURL() {
        return htmlURL;
    }

    public void setHtmlURL(String htmlURL) {
        this.htmlURL = htmlURL;
    }

    public String getDownloadURL() {
        return downloadURL;
    }

    public void setDownloadURL(String downloadURL) {
        this.downloadURL = downloadURL;
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/datatypes/TrainingPlan.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.datatypes;

import android.content.Context;

import androidx.annotation.Keep;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import com.health.openworkout.R;
import com.health.openworkout.core.OpenWorkout;

import java.util.ArrayList;
import java.util.List;

@Keep
@Entity
public class TrainingPlan implements Comparable<TrainingPlan>, Cloneable {
    @PrimaryKey(autoGenerate = true)
    private long trainingPlanId;

    @ColumnInfo
    private long orderNr;
    @ColumnInfo
    private String name;
    @ColumnInfo
    private String imagePath;
    @ColumnInfo
    private boolean isImagePathExternal;
    @ColumnInfo
    private int countFinishedTraining;
    @Ignore
    private List<WorkoutSession> workoutSessions;
    @Ignore
    private transient final Context context;

    public TrainingPlan() {
        context = OpenWorkout.getInstance().getContext();

        orderNr = -1L;
        countFinishedTraining = 0;
        workoutSessions = new ArrayList<>();
        isImagePathExternal = false;
        name = "<" + context.getString(R.string.label_new_training_plan) + ">";
        imagePath = "defaultTraining.png";
    }

    @Override
    public TrainingPlan clone() {
        TrainingPlan clone;
        try {
            clone = (TrainingPlan) super.clone();
        }
        catch (CloneNotSupportedException e) {
            throw new RuntimeException("failed to clone TrainingPlan", e);
        }

        for (WorkoutSession workoutSession : clone.workoutSessions) {
            workoutSession.setWorkoutSessionId(0);

            for (WorkoutItem workoutItem : workoutSession.getWorkoutItems()) {
                workoutItem.setWorkoutItemId(0);
            }
        }

        return clone;
    }

    public long getOrderNr() {
        return orderNr;
    }

    public void setOrderNr(long orderNr) {
        this.orderNr = orderNr;
    }

    public Context getContext() {
        return context;
    }

    public void addWorkoutSession(WorkoutSession workoutSession) {
        workoutSessions.add(workoutSession);
    }

    public void setWorkoutSessions(List<WorkoutSession> workoutSessions) {
        this.workoutSessions = workoutSessions;
    }

    public List<WorkoutSession> getWorkoutSessions() {
        return workoutSessions;
    }

    public WorkoutSession getNextWorkoutSession() {
        for (WorkoutSession workoutSession : workoutSessions) {
            if (!workoutSession.isFinished()) {
                return workoutSession;
            }
        }

        return null;
    }

    public int finishedSessionSize() {
        int finishedSize = 0;

        for (WorkoutSession workoutSession : workoutSessions) {
            if (workoutSession.isFinished()) {
                finishedSize++;
            }
        }

        return finishedSize;
    }

    public int getWorkoutSessionSize() {
        return workoutSessions.size();
    }

    public void setTrainingPlanId(long trainingPlanId) {
        this.trainingPlanId = trainingPlanId;
    }

    public long getTrainingPlanId() {
        return trainingPlanId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public boolean isImagePathExternal() {
        return isImagePathExternal;
    }

    public void setImagePathExternal(boolean imagePathExternal) {
        isImagePathExternal = imagePathExternal;
    }

    public int getCountFinishedTraining() {
        return countFinishedTraining;
    }

    public void setCountFinishedTraining(int countFinishedTraining) {
        this.countFinishedTraining = countFinishedTraining;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public int compareTo(TrainingPlan o) {
        if (this.orderNr == -1L || o.orderNr == -1L) {
            return (int)(this.trainingPlanId - o.trainingPlanId);
        }

        return (int)(this.orderNr - o.orderNr);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/datatypes/User.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.datatypes;

import androidx.annotation.Keep;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Keep
@Entity
public class User {
    @PrimaryKey(autoGenerate = true)
    private long userId;
    @ColumnInfo
    private long trainingsPlanId;
    @ColumnInfo
    private boolean isMale;

    public User() {
        isMale = true;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTrainingsPlanId() {
        return trainingsPlanId;
    }

    public void setTrainingsPlanId(long trainingsPlanId) {
        this.trainingsPlanId = trainingsPlanId;
    }

    public boolean isMale() {
        return isMale;
    }

    public void setMale(boolean male) {
        isMale = male;
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/datatypes/WorkoutItem.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.datatypes;

import android.content.Context;

import androidx.annotation.Keep;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import com.health.openworkout.R;
import com.health.openworkout.core.OpenWorkout;

@Keep
@Entity
public class WorkoutItem implements Comparable<WorkoutItem>, Cloneable {
    @PrimaryKey(autoGenerate = true)
    private long workoutItemId;

    @ColumnInfo
    private long workoutSessionId;
    @ColumnInfo
    private long orderNr;
    @ColumnInfo
    private String name;
    @ColumnInfo
    private String description;
    @ColumnInfo
    private long elapsedTime; // in sec
    @ColumnInfo
    private String imagePath;
    @ColumnInfo
    private boolean isImagePathExternal;
    @ColumnInfo
    private boolean isVideoMode;
    @ColumnInfo
    private String videoPath;
    @ColumnInfo
    private boolean isVideoPathExternal;
    @ColumnInfo
    private int prepTime; // in sec
    @ColumnInfo
    private int workoutTime; // in sec
    @ColumnInfo
    private int breakTime; // in sec
    @ColumnInfo
    private int repetitionCount;
    @ColumnInfo
    private boolean isTimeMode;
    @ColumnInfo
    private boolean finished;

    @Ignore
    private transient final Context context;

    public WorkoutItem() {
        context = OpenWorkout.getInstance().getContext();
        name = "<" + context.getString(R.string.label_new_workout_item) + ">";
        description = "<" + context.getString(R.string.label_new_workout_item) + ">";
        orderNr = -1L;
        prepTime = 5;
        workoutTime = 30;
        breakTime = 30;
        repetitionCount = 5;
        isTimeMode = true;
        finished = false;
        isVideoMode = true;
        isVideoPathExternal = false;
        videoPath = "idle.mp4";
        isImagePathExternal = false;
        imagePath = "idle.png";
    }

    @Override
    public WorkoutItem clone() {
        WorkoutItem clone;
        try {
            clone = (WorkoutItem) super.clone();
        }
        catch (CloneNotSupportedException e) {
            throw new RuntimeException("failed to clone WorkoutItem", e);
        }

        return clone;
    }

    public final Context getContext() {
        return context;
    }

    public void setWorkoutItemId(long workoutItemId) {
        this.workoutItemId = workoutItemId;
    }

    public long getWorkoutItemId() {
        return workoutItemId;
    }

    public void setWorkoutSessionId(long workoutSessionId) {
        this.workoutSessionId = workoutSessionId;
    }

    public long getWorkoutSessionId() {
        return workoutSessionId;
    }

    public long getOrderNr() {
        return orderNr;
    }

    public void setOrderNr(long orderNr) {
        this.orderNr = orderNr;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public void setImagePath(int resId) {
        imagePath = context.getResources().getResourceEntryName(resId);
    }

    public boolean isImagePathExternal() {
        return isImagePathExternal;
    }

    public void setImagePathExternal(boolean imagePathExternal) {
        isImagePathExternal = imagePathExternal;
    }

    public boolean isVideoMode() {
        return isVideoMode;
    }

    public void setVideoMode(boolean videoMode) {
        isVideoMode = videoMode;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public boolean isVideoPathExternal() {
        return isVideoPathExternal;
    }

    public void setVideoPathExternal(boolean videoPathExternal) {
        isVideoPathExternal = videoPathExternal;
    }

    public int getPrepTime() {
        return prepTime;
    }

    public void setPrepTime(int prepTime) {
        this.prepTime = prepTime;
    }

    public int getWorkoutTime() {
        return workoutTime;
    }

    public void setWorkoutTime(int workoutTime) {
        this.workoutTime = workoutTime;
    }

    public int getBreakTime() {
        return breakTime;
    }

    public void setBreakTime(int breakTime) {
        this.breakTime = breakTime;
    }

    public int getRepetitionCount() {
        return repetitionCount;
    }

    public void setRepetitionCount(int repetitionCount) {
        this.repetitionCount = repetitionCount;
    }

    public boolean isTimeMode() {
        return isTimeMode;
    }

    public void setTimeMode(boolean timeMode) {
        isTimeMode = timeMode;
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;

        if (!finished) {
            elapsedTime = 0L;
        }
    }

    @Override
    public int compareTo(WorkoutItem o) {
        if (this.orderNr == -1L || o.orderNr == -1L) {
            return (int)(this.workoutItemId - o.workoutItemId);
        }

        return (int)(this.orderNr - o.orderNr);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/datatypes/WorkoutSession.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.datatypes;

import androidx.annotation.Keep;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.util.ArrayList;
import java.util.List;

@Keep
@Entity
public class WorkoutSession implements Comparable<WorkoutSession>, Cloneable {
    @PrimaryKey(autoGenerate = true)
    private long workoutSessionId;

    @ColumnInfo
    private long trainingPlanId;
    @ColumnInfo
    private long orderNr;
    @ColumnInfo
    public String name;
    @ColumnInfo
    private boolean finished;
    @Ignore
    private List<WorkoutItem> workoutItems;

    public WorkoutSession() {
        orderNr = -1L;
        workoutItems = new ArrayList<>();
        finished = false;
    }

    @Override
    public WorkoutSession clone() {
        WorkoutSession clone;
        try {
            clone = (WorkoutSession) super.clone();
        }
        catch (CloneNotSupportedException e) {
            throw new RuntimeException("failed to clone WorkoutSession", e);
        }

        for (WorkoutItem workoutItem : clone.workoutItems) {
            workoutItem.setWorkoutItemId(0);
        }

        return clone;
    }

    public void setWorkoutSessionId(long workoutSessionId) {
        this.workoutSessionId = workoutSessionId;
    }

    public long getWorkoutSessionId() {
        return workoutSessionId;
    }

    public void setTrainingPlanId(long trainingPlanId) {
        this.trainingPlanId = trainingPlanId;
    }

    public long getTrainingPlanId() {
        return trainingPlanId;
    }

    public long getOrderNr() {
        return orderNr;
    }

    public void setOrderNr(long orderNr) {
        this.orderNr = orderNr;
    }

    public WorkoutItem addWorkout(WorkoutItem workoutItem) {
        workoutItems.add(workoutItem);

        return workoutItem;
    }

    public void setWorkoutItems(List<WorkoutItem> workoutItems) {
        this.workoutItems = workoutItems;
    }

    public List<WorkoutItem> getWorkoutItems() {
        return workoutItems;
    }

    public WorkoutItem getNextWorkoutItem(long workoutItemOrderNr) {
        // Run two iterations. In the first one check only future workoutItems. In the second one, check also workoutItems at the beginning.
        for (WorkoutItem workoutItem : workoutItems) {
            if (!workoutItem.isFinished() && workoutItem.getOrderNr() >= workoutItemOrderNr) {
                return workoutItem;
            }
        }
        for (WorkoutItem workoutItem : workoutItems) {
            if (!workoutItem.isFinished()) {
                return workoutItem;
            }
        }

        return null;
    }

    public long getElapsedSessionTime() {
        long elapsedSessionTime = 0;

        for (WorkoutItem workoutItem : workoutItems) {
            elapsedSessionTime += workoutItem.getElapsedTime();
        }

        return elapsedSessionTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;
    }

    @Override
    public int compareTo(WorkoutSession o) {
        if (this.orderNr == -1L || o.orderNr == -1L) {
            return (int)(this.workoutSessionId - o.workoutSessionId);
        }

        return (int)(this.orderNr - o.orderNr);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/session/AbdominalMuscleSession.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.session;

import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;
import com.health.openworkout.core.workout.AbdominalCrunch;
import com.health.openworkout.core.workout.BicycleCrunch;
import com.health.openworkout.core.workout.Burpee;
import com.health.openworkout.core.workout.CircleCrunch;
import com.health.openworkout.core.workout.CrossJumps;
import com.health.openworkout.core.workout.HighKnees;
import com.health.openworkout.core.workout.JumpingJack;
import com.health.openworkout.core.workout.Lunge;
import com.health.openworkout.core.workout.PikeWalk;
import com.health.openworkout.core.workout.Plank;
import com.health.openworkout.core.workout.PushUpRotation;
import com.health.openworkout.core.workout.QuickSteps;
import com.health.openworkout.core.workout.SidePlank;
import com.health.openworkout.core.workout.Squat;
import com.health.openworkout.core.workout.WallSit;

public class AbdominalMuscleSession extends WorkoutSession {

    private float stressFac;

    public AbdominalMuscleSession(int dayNr, float stressFac) {
        this.stressFac = stressFac;

        switch (dayNr) {
            case 0:
                addWorkoutTime(new JumpingJack(), 15);
                addWorkoutRep(new CircleCrunch(), 5);
                addWorkoutRep(new PikeWalk(), 2);
                addWorkoutTime(new SidePlank(), 5);
                addWorkoutRep(new AbdominalCrunch(), 5);
                addWorkoutTime(new Plank(), 5);
                break;
            case 1:
                addWorkoutTime(new JumpingJack(), 15);
                addWorkoutRep(new AbdominalCrunch(), 10);
                addWorkoutTime(new SidePlank(), 5);
                addWorkoutTime(new HighKnees(), 15);
                addWorkoutRep(new CircleCrunch(), 10);
                addWorkoutTime(new Plank(), 10);
                break;
            case 2:
                addWorkoutTime(new JumpingJack(), 18);
                addWorkoutRep(new Burpee(), 4);
                addWorkoutTime(new SidePlank(), 10);
                addWorkoutRep(new PushUpRotation(), 10);
                addWorkoutRep(new AbdominalCrunch(), 10);
                addWorkoutTime(new Plank(), 15);
                break;
            case 3:
                addWorkoutTime(new JumpingJack(), 22);
                addWorkoutRep(new BicycleCrunch(), 10);
                addWorkoutRep(new Lunge(), 12);
                addWorkoutRep(new PikeWalk(), 4);
                addWorkoutTime(new Plank(), 15);
                break;
            case 4:
                addWorkoutTime(new JumpingJack(), 25);
                addWorkoutTime(new CrossJumps(), 20);
                addWorkoutTime(new SidePlank(), 20);
                addWorkoutRep(new AbdominalCrunch(), 12);
                addWorkoutRep(new Squat(), 12);
                addWorkoutTime(new Plank(), 18);
                break;
            case 5:
                addWorkoutTime(new HighKnees(), 30);
                addWorkoutRep(new AbdominalCrunch(), 15);
                addWorkoutRep(new PikeWalk(), 15);
                addWorkoutTime(new QuickSteps(), 15);
                addWorkoutRep(new CircleCrunch(), 15);
                addWorkoutTime(new Plank(), 20);
                break;
            case 6:
                addWorkoutTime(new JumpingJack(), 30);
                addWorkoutRep(new Burpee(), 5);
                addWorkoutTime(new WallSit(), 20);
                addWorkoutRep(new AbdominalCrunch(), 16);
                addWorkoutTime(new Plank(), 22);
                break;
            case 7:
                addWorkoutTime(new JumpingJack(), 35);
                addWorkoutRep(new AbdominalCrunch(), 16);
                addWorkoutTime(new HighKnees(), 15);
                addWorkoutRep(new CircleCrunch(), 15);
                addWorkoutTime(new SidePlank(), 20);
                addWorkoutTime(new Plank(), 25);
                break;
        }
    }

    private void addWorkoutTime(WorkoutItem workoutItem, int time) {
        workoutItem.setWorkoutTime(Math.round(time * stressFac));
        addWorkout(workoutItem);
    }

    private void addWorkoutRep(WorkoutItem workoutItem, int rep) {
        workoutItem.setTimeMode(false);
        workoutItem.setRepetitionCount(Math.round(rep * stressFac));
        addWorkout(workoutItem);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/session/BeginnersSession.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.session;

import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;
import com.health.openworkout.core.workout.AbdominalCrunch;
import com.health.openworkout.core.workout.HighKnees;
import com.health.openworkout.core.workout.JumpingJack;
import com.health.openworkout.core.workout.Lunge;
import com.health.openworkout.core.workout.Plank;
import com.health.openworkout.core.workout.PushUpRotation;
import com.health.openworkout.core.workout.PushUps;
import com.health.openworkout.core.workout.Squat;
import com.health.openworkout.core.workout.StepUp;
import com.health.openworkout.core.workout.TricepsDip;

public class BeginnersSession extends WorkoutSession {

    private float stressFac;

    public BeginnersSession(int dayNr, float stressFac) {
        this.stressFac = stressFac;

        switch (dayNr) {
            case 0:
                addWorkoutTime(new JumpingJack(), 15);
                addWorkoutRep(new StepUp(), 5);
                addWorkoutRep(new PushUps(), 2);
                addWorkoutRep(new AbdominalCrunch(), 5);
                addWorkoutTime(new Plank(), 5);
                break;
            case 1:
                addWorkoutTime(new JumpingJack(), 15);
                addWorkoutRep(new StepUp(), 10);
                addWorkoutRep(new PushUps(), 3);
                addWorkoutRep(new AbdominalCrunch(), 10);
                addWorkoutTime(new Plank(), 10);
                break;
            case 2:
                addWorkoutTime(new JumpingJack(), 18);
                addWorkoutRep(new TricepsDip(), 4);
                addWorkoutRep(new Squat(), 10);
                addWorkoutRep(new AbdominalCrunch(), 10);
                addWorkoutTime(new Plank(), 15);
                break;
            case 3:
                addWorkoutTime(new JumpingJack(), 22);
                addWorkoutTime(new HighKnees(), 10);
                addWorkoutRep(new Lunge(), 12);
                addWorkoutRep(new PushUpRotation(), 4);
                addWorkoutTime(new Plank(), 15);
                break;
            case 4:
                addWorkoutTime(new JumpingJack(), 25);
                addWorkoutRep(new PushUps(), 4);
                addWorkoutRep(new AbdominalCrunch(), 12);
                addWorkoutRep(new Squat(), 12);
                addWorkoutTime(new Plank(), 18);
                break;
            case 5:
                addWorkoutRep(new PushUps(), 4);
                addWorkoutRep(new AbdominalCrunch(), 15);
                addWorkoutRep(new Squat(), 15);
                addWorkoutTime(new HighKnees(), 15);
                addWorkoutTime(new Plank(), 20);
                break;
            case 6:
                addWorkoutTime(new JumpingJack(), 30);
                addWorkoutRep(new TricepsDip(), 5);
                addWorkoutRep(new Lunge(), 16);
                addWorkoutRep(new AbdominalCrunch(), 16);
                addWorkoutTime(new Plank(), 22);
                break;
            case 7:
                addWorkoutTime(new JumpingJack(), 35);
                addWorkoutRep(new StepUp(), 16);
                addWorkoutTime(new HighKnees(), 15);
                addWorkoutRep(new PushUpRotation(), 6);
                addWorkoutTime(new Plank(), 25);
                break;
        }
    }

    private void addWorkoutTime(WorkoutItem workoutItem, int time) {
        workoutItem.setWorkoutTime(Math.round(time * stressFac));
        addWorkout(workoutItem);
    }

    private void addWorkoutRep(WorkoutItem workoutItem, int rep) {
        workoutItem.setTimeMode(false);
        workoutItem.setRepetitionCount(Math.round(rep * stressFac));
        addWorkout(workoutItem);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/session/SevenMinutesSession.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.session;

import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;
import com.health.openworkout.core.workout.AbdominalCrunch;
import com.health.openworkout.core.workout.HighKnees;
import com.health.openworkout.core.workout.JumpingJack;
import com.health.openworkout.core.workout.Lunge;
import com.health.openworkout.core.workout.Plank;
import com.health.openworkout.core.workout.PushUpRotation;
import com.health.openworkout.core.workout.PushUps;
import com.health.openworkout.core.workout.SidePlank;
import com.health.openworkout.core.workout.Squat;
import com.health.openworkout.core.workout.StepUp;
import com.health.openworkout.core.workout.TricepsDip;
import com.health.openworkout.core.workout.WallSit;

public class SevenMinutesSession extends WorkoutSession {

    public SevenMinutesSession() {
        addWorkout(new JumpingJack());
        addWorkout(new WallSit());
        addWorkout(new PushUps());
        addWorkout(new AbdominalCrunch());
        addWorkout(new StepUp());
        addWorkout(new Squat());
        addWorkout(new TricepsDip());
        addWorkout(new Plank());
        addWorkout(new HighKnees());
        addWorkout(new Lunge());
        addWorkout(new PushUpRotation());
        addWorkout(new SidePlank());
        for (WorkoutItem w : this.getWorkoutItems()){
            w.setBreakTime(10);
        }
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/training/AbdominalMuscleTraining.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.training;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.session.AbdominalMuscleSession;

public class AbdominalMuscleTraining extends TrainingPlan {
    public AbdominalMuscleTraining() {
        super();

        setName(getContext().getString(R.string.training_abdominal_muscle_training));
        setImagePath("abdominalMuscleTraining.png");

        float stressFac = 1.0f;

        for (int i=0; i<=21; i++) {
            // on every week increase the stress factor
            if (i % 8 == 7) {
                stressFac += 0.2f;
            }

            AbdominalMuscleSession session = new AbdominalMuscleSession(i % 8, stressFac);

            session.setName(String.format(getContext().getString(R.string.day_unit), i+1));
            addWorkoutSession(session);
        }
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/training/BeginnersTraining.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.training;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.session.BeginnersSession;

public class BeginnersTraining extends TrainingPlan {
    public BeginnersTraining() {
        super();

        setName(getContext().getString(R.string.training_beginners_training));
        setImagePath("beginnersTraining.png");

        float stressFac = 1.0f;

        for (int i=0; i<=27; i++) {
            // on every week increase the stress factor
            if (i % 8 == 7) {
                stressFac += 0.2f;
            }

            BeginnersSession session = new BeginnersSession(i % 8, stressFac);

            session.setName(String.format(getContext().getString(R.string.day_unit), i+1));
            addWorkoutSession(session);
        }
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/training/SevenMinutesTraining.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.training;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.session.SevenMinutesSession;

public class SevenMinutesTraining extends TrainingPlan {
    public SevenMinutesTraining() {
        super();

        setName(getContext().getString(R.string.training_seven_minutes_workout_training));
        setImagePath("sevenMinutesTraining.png");

        for (int i=1; i<=7; i++) {
            SevenMinutesSession session = new SevenMinutesSession();

            session.setName(String.format(getContext().getString(R.string.day_unit), i));
            addWorkoutSession(session);
        }
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/utils/PackageUtils.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.utils;

import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.provider.MediaStore;
import android.widget.Toast;

import com.google.gson.Gson;
import com.health.openworkout.R;
import com.health.openworkout.core.OpenWorkout;
import com.health.openworkout.core.datatypes.GitHubFile;
import com.health.openworkout.core.datatypes.TrainingPlan;
import com.health.openworkout.core.datatypes.WorkoutItem;
import com.health.openworkout.core.datatypes.WorkoutSession;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import timber.log.Timber;

public class PackageUtils {
    private Context context;
    private Gson gson;
    private File trainingDir;
    private File trainingImageDir;
    private File trainingVideoDir;
    private Retrofit retrofit;
    private GitHubApi gitHubApi;
    private OnGitHubCallbackListener onGitHubCallbackListener;

    public PackageUtils(Context context) {
        this.context = context;
        gson = new Gson();

        retrofit = new Retrofit.Builder()
                .baseUrl("https://api.github.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

        gitHubApi = retrofit.create(GitHubApi.class);
    }

    public TrainingPlan importTrainingPlan(File zipFile) {
        String displayName = getDisplayName(zipFile);

        return importTrainingPlan(Uri.fromFile(zipFile), displayName);
    }

    public TrainingPlan importTrainingPlan(Uri zipFileUri) {
        String displayName = getDisplayName(zipFileUri);

        return importTrainingPlan(zipFileUri, displayName);
    }

    private TrainingPlan importTrainingPlan(Uri zipFileUri, String filename) {
        Timber.d("Import training plan " + filename);

        try {
            unzipFile(zipFileUri, filename);

            File trainingDatabase = new File(context.getFilesDir(), filename + "/database.json");

            StringBuilder result;
            BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(trainingDatabase)));
            result = new StringBuilder();
            String line;
            while ((line = reader.readLine()) != null) {
                result.append(line);
            }

            reader.close();

            TrainingPlan gsonTrainingPlan = gson.fromJson(result.toString(), TrainingPlan.class);
            Timber.d("Read training database " + gsonTrainingPlan.getName());
            OpenWorkout.getInstance().insertTrainingPlan(gsonTrainingPlan);

            Toast.makeText(context, String.format(context.getString(R.string.label_info_imported), gsonTrainingPlan.getName(), filename), Toast.LENGTH_LONG).show();

            return gsonTrainingPlan;
        } catch (IOException ex) {
            Toast.makeText(context, String.format(context.getString(R.string.error_no_valid_training_package), filename + ".zip"), Toast.LENGTH_LONG).show();
            Timber.e(ex);
        } finally {
            File zipFile = new File(context.getFilesDir(), filename + ".zip");
            if (zipFile.exists()) {
                Timber.d("Delete unzipped local zip file " + zipFile);
                zipFile.delete();
            }
        }

        return null;
    }

    public void exportTrainingPlan(TrainingPlan trainingPlan, Uri zipFileUri) {
        Timber.d("Export training plan " + trainingPlan.getName());

        try {
            String zipFileDisplayName = getDisplayName(zipFileUri);

            trainingDir = new File(context.getFilesDir(), trainingPlan.getName());
            trainingImageDir = new File(context.getFilesDir(), trainingPlan.getName()+"/image");
            trainingVideoDir = new File(context.getFilesDir(), trainingPlan.getName()+ "/video");

            if (trainingDir.exists()) {
                deleteDirectory(trainingDir);
            }

            trainingDir.mkdir();
            trainingImageDir.mkdir();
            trainingVideoDir.mkdir();

            trainingPlan.setTrainingPlanId(0);

            if (trainingPlan.isImagePathExternal()) {
                trainingPlan.setImagePath(copyImageToInternalStorage(trainingPlan.getImagePath()));
            }

            for (WorkoutSession workoutSession : trainingPlan.getWorkoutSessions()) {
                workoutSession.setWorkoutSessionId(0);

                for (WorkoutItem workoutItem : workoutSession.getWorkoutItems()) {
                    workoutItem.setWorkoutItemId(0);

                   if (workoutItem.isImagePathExternal()) {
                       workoutItem.setImagePath(copyImageToInternalStorage(workoutItem.getImagePath()));
                   }

                   if (workoutItem.isVideoPathExternal()) {
                       workoutItem.setVideoPath(copyVideoToInternalStorage(workoutItem.getVideoPath()));
                   }
                }
            }

            String jsonString = gson.toJson(trainingPlan);
            File trainingDatabase = new File(trainingDir, "database.json");
            FileOutputStream jsonOut = new FileOutputStream(trainingDatabase);
            jsonOut.write(jsonString.getBytes());
            jsonOut.close();
            Timber.d("Written database.json");

            zipDirectory(trainingDir, zipFileUri);
            Timber.d("Zipped " + trainingPlan.getName());
            deleteDirectory(trainingDir);
            Toast.makeText(context, String.format(context.getString(R.string.label_info_exported), trainingPlan.getName(), zipFileDisplayName), Toast.LENGTH_LONG).show();
        }catch (IOException ex) {
            Toast.makeText(context, ex.getLocalizedMessage(), Toast.LENGTH_LONG).show();

            Timber.e(ex);
        }
    }

    private String copyImageToInternalStorage(String imagePath) throws IOException {
        Uri fileUri = Uri.parse(imagePath);
        String displayName = getDisplayName(fileUri);
        File trainingImg = new File(trainingImageDir, displayName);

        if (!trainingImg.exists()) {
            InputStream in = context.getContentResolver().openInputStream(fileUri);
            FileOutputStream out = new FileOutputStream(trainingImg);

            copyFile(in, out);

            Timber.d("Copied file " + displayName + " to internal storage");
        }

        return Uri.fromFile(trainingImg).toString();
    }

    private String copyVideoToInternalStorage(String videoPath) throws IOException {
        Uri fileUri = Uri.parse(videoPath);
        String displayName = getDisplayName(fileUri);
        File trainingVideo = new File(trainingVideoDir, displayName);

        if (!trainingVideo.exists()) {
            InputStream in = context.getContentResolver().openInputStream(fileUri);
            FileOutputStream out = new FileOutputStream(trainingVideo);

            copyFile(in, out);

            Timber.d("Copied file " + displayName + " to internal storage");
        }

        return Uri.fromFile(trainingVideo).toString();
    }

    private void copyFile(InputStream in, OutputStream out) throws IOException {
        byte[] buffer = new byte[1024];
        int read;
        while ((read = in.read(buffer)) != -1) {
            out.write(buffer, 0, read);
        }

        in.close();
        out.flush();
        out.close();
    }

    private String getDisplayName(File file) {
        String displayName = file.getName();

        if (displayName.endsWith(".zip")) {
            displayName = displayName.substring(0, displayName.length() - 4);
        }

        return displayName;
    }

    private String getDisplayName(Uri uri) {
        String displayName = new String();
        String[] projection = {MediaStore.MediaColumns.DISPLAY_NAME};

        Cursor metaCursor = context.getContentResolver().query(uri, projection, null, null, null);
        if (metaCursor != null) {
            try {
                if (metaCursor.moveToFirst()) {
                    displayName = metaCursor.getString(0);
                }
            } finally {
                metaCursor.close();
            }
        }

        if (displayName.endsWith(".zip")) {
            displayName = displayName.substring(0, displayName.length() - 4);
        }

        return displayName;
    }

    private void zipDirectory(File directoryToCompress, Uri outputFile) throws IOException {
        OutputStream dest = context.getContentResolver().openOutputStream(outputFile);
        ZipOutputStream zipOutputStream = new ZipOutputStream(dest);

        compressDirectory(directoryToCompress, directoryToCompress, zipOutputStream);
        zipOutputStream.close();
    }

    private void compressDirectory(File rootDirectory, File currentDirectory, ZipOutputStream out) throws IOException {
        byte[] data = new byte[2048];

        File[] files = currentDirectory.listFiles();

        if (files != null) {
            for (File file : files) {
                if (file.isDirectory()) {
                    compressDirectory(rootDirectory, file, out);
                } else {
                    FileInputStream fi = new FileInputStream(file);
                    // creating structure and avoiding duplicate file names
                    String name = file.getAbsolutePath().replace(rootDirectory.getAbsolutePath(), "");

                    ZipEntry entry = new ZipEntry(name);
                    out.putNextEntry(entry);
                    int count;
                    BufferedInputStream origin = new BufferedInputStream(fi, 2048);
                    while ((count = origin.read(data, 0, 2048)) != -1) {
                        out.write(data, 0, count);
                    }
                    origin.close();
                }
            }
        }
    }

    private void unzipFile(Uri zipFileUri, String filename) throws IOException {
        InputStream in = context.getContentResolver().openInputStream(zipFileUri);
        ZipInputStream zipIn = new ZipInputStream(in);

        File rootDir = new File(context.getFilesDir(),  filename);
        rootDir.mkdir();

        ZipEntry entry = zipIn.getNextEntry();
        // iterates over entries in the zip file
        while (entry != null) {
            File zipOut = new File(context.getFilesDir(),  filename + "/" + entry.getName());

            if (!entry.isDirectory()) {
                zipOut.getParentFile().mkdir();
                // if the entry is a file, extracts it
                extractFile(zipIn, zipOut);
                Timber.d("Extract file " + entry.getName());
            } else {
                zipOut.mkdir();
                Timber.d("Extract folder " + entry.getName());
            }
            zipIn.closeEntry();

            entry = zipIn.getNextEntry();
        }
        zipIn.close();
    }

    private void extractFile(ZipInputStream zipIn, File fileOutput) throws IOException {
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(fileOutput));
        byte[] bytesIn = new byte[2048];
        int read = 0;
        while ((read = zipIn.read(bytesIn)) != -1) {
            bos.write(bytesIn, 0, read);
        }
        bos.flush();
        bos.close();
    }

    private void deleteDirectory(File fileOrDirectory) {
        if (fileOrDirectory.isDirectory())
            for (File child : fileOrDirectory.listFiles())
                deleteDirectory(child);

        fileOrDirectory.delete();
    }

    public void getGitHubFiles() {
        Call<List<GitHubFile>> gitHubFileList = gitHubApi.getFileList();

        gitHubFileList.enqueue(new Callback<List<GitHubFile>>() {
            @Override
            public void onResponse(Call<List<GitHubFile>> call, Response<List<GitHubFile>> response) {
                if (response.isSuccessful()) {
                    Timber.d("Successful file list from GitHub received");

                    if (onGitHubCallbackListener != null) {
                        onGitHubCallbackListener.onGitHubFileList(response.body());
                    }
                } else {
                    Timber.e("Get GitHub file list error");
                }
            }

            @Override
            public void onFailure(Call<List<GitHubFile>> call, Throwable t) {
                onGitHubCallbackListener.onGitHubFailure(new Exception(context.getString(R.string.error_no_github_connection)));
                Timber.e("GitHub call failed " + t.getMessage());
            }
        });
    }

    public void downloadFile(GitHubFile gitHubFile) {
        Call<ResponseBody> downloadFile = gitHubApi.downloadFile(gitHubFile.getDownloadURL());

        downloadFile.enqueue(new Callback<ResponseBody>() {
            @Override
            public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
                if (response.isSuccessful()) {
                    new AsyncTask<Void, Void, Void>() {
                        @Override
                        protected Void doInBackground(Void... voids) {
                            boolean writtenToDisk = writeResponseBodyToDisk(gitHubFile.getName(), gitHubFile.getSize(), response.body());

                            if (writtenToDisk) {
                                if (onGitHubCallbackListener != null) {
                                    Timber.d("Successful " + gitHubFile.getName() + " file downloaded from " + gitHubFile.getDownloadURL());
                                    onGitHubCallbackListener.onGitHubDownloadFile(new File(context.getFilesDir(), gitHubFile.getName()));
                                }
                            }
                            return null;
                        }
                    }.execute();
                } else {
                    Timber.e("Download failed for URL " + gitHubFile.getDownloadURL());
                }
            }

            @Override
            public void onFailure(Call<ResponseBody> call, Throwable t) {
                onGitHubCallbackListener.onGitHubFailure(new Exception(context.getString(R.string.error_no_github_download) + "(" + t.getMessage() + ")"));
                Timber.e("Download failed " + t.getMessage());
            }
        });
    }

    private boolean writeResponseBodyToDisk(final String filename, final long fileSize, final ResponseBody body) {
        try {
            File zipFile = new File(context.getFilesDir(), filename);

            InputStream inputStream = null;
            OutputStream outputStream = null;

            try {
                byte[] fileReader = new byte[4096];

                long fileSizeDownloaded = 0;

                inputStream = body.byteStream();
                outputStream = new FileOutputStream(zipFile);

                while (true) {
                    int read = inputStream.read(fileReader);

                    if (read == -1) {
                        break;
                    }

                    outputStream.write(fileReader, 0, read);

                    fileSizeDownloaded += read;

                    if (onGitHubCallbackListener != null) {
                        onGitHubCallbackListener.onGitHubDownloadProgressUpdate(fileSizeDownloaded, fileSize);
                    }
                }

                outputStream.flush();

                if (onGitHubCallbackListener != null) {
                    onGitHubCallbackListener.onGitHubDownloadProgressUpdate(fileSizeDownloaded, fileSize);
                }

                return true;
            } catch (IOException e) {
                Timber.e("Error writing to disk " + e);
                return false;
            } finally {
                if (inputStream != null) {
                    inputStream.close();
                }

                if (outputStream != null) {
                    outputStream.close();
                }
            }
        } catch (IOException e) {
            Timber.e("Error writing to disk " + e);
            return false;
        }
    }

    public void setOnGitHubCallbackListener(OnGitHubCallbackListener onGitHubCallbackListener) {
        this.onGitHubCallbackListener = onGitHubCallbackListener;
    }

    public interface OnGitHubCallbackListener {
        void onGitHubFileList(List<GitHubFile> gitHubFileList);
        void onGitHubDownloadFile(File uriFilename);
        void onGitHubDownloadProgressUpdate(long bytesDownloaded, long bytesTotal);
        void onGitHubFailure(Exception ex);
    }

    private interface GitHubApi {
        @GET("repos/oliexdev/openWorkout/contents/pkg")
        Call<List<GitHubFile>> getFileList();
        @Streaming
        @GET
        Call<ResponseBody> downloadFile(@Url String fileUrl);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/AbdominalCrunch.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class AbdominalCrunch extends WorkoutItem {
    public AbdominalCrunch() {
        super();
        setName(getContext().getString(R.string.workout_name_abdominal_crunch));
        setDescription(getContext().getString(R.string.workout_description_abdominal_crunch));
        setImagePath("abdonminal_crunch.png");
        setVideoPath("abdonminal_crunch.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/AirSquatBentArms.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class AirSquatBentArms extends WorkoutItem {
    public AirSquatBentArms() {
        super();
        setName(getContext().getString(R.string.workout_name_air_squad_bent_arms));
        setDescription(getContext().getString(R.string.workout_description_air_squad_bent_arms));
        setImagePath("air_squad_bent_arms.png");
        setVideoPath("air_squad_bent_arms.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/BicycleCrunch.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class BicycleCrunch extends WorkoutItem {
    public BicycleCrunch() {
        super();
        setName(getContext().getString(R.string.workout_name_bicycle_crunch));
        setDescription(getContext().getString(R.string.workout_description_bicycle_crunch));
        setImagePath("bicycle_crunch.png");
        setVideoPath("bicycle_crunch.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/BoxJump.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class BoxJump extends WorkoutItem {
    public BoxJump() {
        super();
        setName(getContext().getString(R.string.workout_name_box_jump));
        setDescription(getContext().getString(R.string.workout_description_box_jump));
        setImagePath("box_jump.png");
        setVideoPath("box_jump.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/Burpee.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class Burpee extends WorkoutItem {
    public Burpee() {
        super();
        setName(getContext().getString(R.string.workout_name_burpee));
        setDescription(getContext().getString(R.string.workout_description_burpee));
        setImagePath("burpee.png");
        setVideoPath("burpee.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/CircleCrunch.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class CircleCrunch extends WorkoutItem {
    public CircleCrunch() {
        super();
        setName(getContext().getString(R.string.workout_name_circle_crunch));
        setDescription(getContext().getString(R.string.workout_description_circle_crunch));
        setImagePath("circle_crunch.png");
        setVideoPath("circle_crunch.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/CrossJumps.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class CrossJumps extends WorkoutItem {
    public CrossJumps() {
        super();
        setName(getContext().getString(R.string.workout_name_cross_jump));
        setDescription(getContext().getString(R.string.workout_description_cross_jump));
        setImagePath("cross_jump.png");
        setVideoPath("cross_jump.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/CrossJumpsRotation.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class CrossJumpsRotation extends WorkoutItem {
    public CrossJumpsRotation() {
        super();
        setName(getContext().getString(R.string.workout_name_cross_jump_rotation));
        setDescription(getContext().getString(R.string.workout_description_cross_jump_rotation));
        setImagePath("cross_jump_rotation.png");
        setVideoPath("cross_jump_rotation.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/DonkeyKick.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class DonkeyKick extends WorkoutItem {
    public DonkeyKick() {
        super();
        setName(getContext().getString(R.string.workout_name_donkey_kick));
        setDescription(getContext().getString(R.string.workout_description_donkey_kick));
        setImagePath("donkey_kick.png");
        setVideoPath("donkey_kick.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/HighKnees.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class HighKnees extends WorkoutItem {
    public HighKnees() {
        super();
        setName(getContext().getString(R.string.workout_name_high_knees));
        setDescription(getContext().getString(R.string.workout_description_high_knees));
        setImagePath("high_knees.png");
        setVideoPath("high_knees.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/JumpPushUps.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class JumpPushUps extends WorkoutItem {
    public JumpPushUps() {
        super();
        setName(getContext().getString(R.string.workout_name_jump_push_ups));
        setDescription(getContext().getString(R.string.workout_description_jump_push_ups));
        setImagePath("jump_push_ups.png");
        setVideoPath("jump_push_ups.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/JumpingJack.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class JumpingJack extends WorkoutItem {
    public JumpingJack() {
        super();
        setName(getContext().getString(R.string.workout_name_jumping_jack));
        setDescription(getContext().getString(R.string.workout_description_jumping_jack));
        setImagePath("jumping_jack.png");
        setVideoPath("jumping_jack.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/Lunge.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class Lunge extends WorkoutItem {
    public Lunge() {
        super();
        setName(getContext().getString(R.string.workout_name_lunge));
        setDescription(getContext().getString(R.string.workout_description_lunge));
        setImagePath("lunge.png");
        setVideoPath("lunge.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/LungeKick.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class LungeKick extends WorkoutItem {
    public LungeKick() {
        super();
        setName(getContext().getString(R.string.workout_name_lunge_kick));
        setDescription(getContext().getString(R.string.workout_description_lunge_kick));
        setImagePath("lunge_kick.png");
        setVideoPath("lunge_kick.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/MountainClimbers.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class MountainClimbers extends WorkoutItem {
    public MountainClimbers() {
        super();
        setName(getContext().getString(R.string.workout_name_mountain_climbers));
        setDescription(getContext().getString(R.string.workout_description_mountain_climbers));
        setImagePath("mountain_climbers.png");
        setVideoPath("mountain_climbers.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/PikeWalk.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class PikeWalk extends WorkoutItem {
    public PikeWalk() {
        super();
        setName(getContext().getString(R.string.workout_name_pike_walk));
        setDescription(getContext().getString(R.string.workout_description_pike_walk));
        setImagePath("pike_walk.png");
        setVideoPath("pike_walk.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/Plank.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class Plank extends WorkoutItem {
    public Plank() {
        super();
        setName(getContext().getString(R.string.workout_name_plank));
        setDescription(getContext().getString(R.string.workout_description_plank));
        setImagePath("plank.png");
        setVideoPath("plank.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/PushUpRotation.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class PushUpRotation extends WorkoutItem {
    public PushUpRotation() {
        super();
        setName(getContext().getString(R.string.workout_name_push_up_rotation));
        setDescription(getContext().getString(R.string.workout_description_push_up_rotation));
        setImagePath("push_up_rotation.png");
        setVideoPath("push_up_rotation.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/PushUps.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class PushUps extends WorkoutItem {
    public PushUps() {
        super();
        setName(getContext().getString(R.string.workout_name_push_ups));
        setDescription(getContext().getString(R.string.workout_description_push_ups));
        setImagePath("push_ups.png");
        setVideoPath("push_ups.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/QuickSteps.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class QuickSteps extends WorkoutItem {
    public QuickSteps() {
        super();
        setName(getContext().getString(R.string.workout_name_quick_steps));
        setDescription(getContext().getString(R.string.workout_description_quick_steps));
        setImagePath("quick_steps.png");
        setVideoPath("quick_steps.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/RussianTwist.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class RussianTwist extends WorkoutItem {
    public RussianTwist() {
        super();
        setName(getContext().getString(R.string.workout_name_russian_twist));
        setDescription(getContext().getString(R.string.workout_description_russian_twist));
        setImagePath("russian_twist.png");
        setVideoPath("russian_twist.mp4");
        setTimeMode(false);
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/SidePlank.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class SidePlank extends WorkoutItem {
    public SidePlank() {
        super();
        setName(getContext().getString(R.string.workout_name_side_plank));
        setDescription(getContext().getString(R.string.workout_description_side_plank));
        setImagePath("side_plank.png");
        setVideoPath("side_plank.mp4");
    }
}


================================================
FILE: app/src/main/java/com/health/openworkout/core/workout/Squat.java
================================================
/*
 * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>
 *
 * This program 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.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>
 */

package com.health.openworkout.core.workout;

import com.health.openworkout.R;
import com.health.openworkout.core.datatypes.WorkoutItem;

public class Squat extends WorkoutItem {
    public Squat() {
        super();
        setName(getContext().getString(R.string.workout_name_squat));
        setDescription(getContext().getString(R.string.workout_description_squat));
        setImagePath("squad.png");
        setVideoPath("squad.mp4");
    }
}


==========
Download .txt
gitextract_399s6vgo/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   └── bug_report.md
│   ├── PULL_REQUEST_TEMPLATE/
│   │   └── publish_training.md
│   └── workflows/
│       └── ci.yml
├── .gitignore
├── CREDITS
├── Gemfile
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   ├── schemas/
│   │   └── com.health.openworkout.core.database.AppDatabase/
│   │       ├── 1.json
│   │       └── 2.json
│   └── src/
│       ├── fdroid/
│       │   └── java/
│       │       └── com/
│       │           └── health/
│       │               └── openworkout/
│       │                   └── core/
│       │                       └── utils/
│       │                           └── PlayStoreUtils.java
│       ├── main/
│       │   ├── AndroidManifest.xml
│       │   ├── java/
│       │   │   └── com/
│       │   │       └── health/
│       │   │           └── openworkout/
│       │   │               ├── MainActivity.java
│       │   │               ├── core/
│       │   │               │   ├── Application.java
│       │   │               │   ├── OpenWorkout.java
│       │   │               │   ├── alarm/
│       │   │               │   │   ├── AlarmEntry.java
│       │   │               │   │   ├── AlarmEntryReader.java
│       │   │               │   │   ├── AlarmHandler.java
│       │   │               │   │   └── ReminderBootReceiver.java
│       │   │               │   ├── database/
│       │   │               │   │   ├── AppDatabase.java
│       │   │               │   │   ├── TrainingPlanDAO.java
│       │   │               │   │   ├── UserDAO.java
│       │   │               │   │   ├── WorkoutItemDAO.java
│       │   │               │   │   └── WorkoutSessionDAO.java
│       │   │               │   ├── datatypes/
│       │   │               │   │   ├── GitHubFile.java
│       │   │               │   │   ├── TrainingPlan.java
│       │   │               │   │   ├── User.java
│       │   │               │   │   ├── WorkoutItem.java
│       │   │               │   │   └── WorkoutSession.java
│       │   │               │   ├── session/
│       │   │               │   │   ├── AbdominalMuscleSession.java
│       │   │               │   │   ├── BeginnersSession.java
│       │   │               │   │   └── SevenMinutesSession.java
│       │   │               │   ├── training/
│       │   │               │   │   ├── AbdominalMuscleTraining.java
│       │   │               │   │   ├── BeginnersTraining.java
│       │   │               │   │   └── SevenMinutesTraining.java
│       │   │               │   ├── utils/
│       │   │               │   │   └── PackageUtils.java
│       │   │               │   └── workout/
│       │   │               │       ├── AbdominalCrunch.java
│       │   │               │       ├── AirSquatBentArms.java
│       │   │               │       ├── BicycleCrunch.java
│       │   │               │       ├── BoxJump.java
│       │   │               │       ├── Burpee.java
│       │   │               │       ├── CircleCrunch.java
│       │   │               │       ├── CrossJumps.java
│       │   │               │       ├── CrossJumpsRotation.java
│       │   │               │       ├── DonkeyKick.java
│       │   │               │       ├── HighKnees.java
│       │   │               │       ├── JumpPushUps.java
│       │   │               │       ├── JumpingJack.java
│       │   │               │       ├── Lunge.java
│       │   │               │       ├── LungeKick.java
│       │   │               │       ├── MountainClimbers.java
│       │   │               │       ├── PikeWalk.java
│       │   │               │       ├── Plank.java
│       │   │               │       ├── PushUpRotation.java
│       │   │               │       ├── PushUps.java
│       │   │               │       ├── QuickSteps.java
│       │   │               │       ├── RussianTwist.java
│       │   │               │       ├── SidePlank.java
│       │   │               │       ├── Squat.java
│       │   │               │       ├── StepUp.java
│       │   │               │       ├── TricepsDip.java
│       │   │               │       ├── WallSit.java
│       │   │               │       └── WorkoutFactory.java
│       │   │               └── gui/
│       │   │                   ├── datatypes/
│       │   │                   │   ├── GenericAdapter.java
│       │   │                   │   ├── GenericFragment.java
│       │   │                   │   ├── GenericSettingsFragment.java
│       │   │                   │   └── TrophyFragment.java
│       │   │                   ├── home/
│       │   │                   │   └── HomeFragment.java
│       │   │                   ├── preference/
│       │   │                   │   ├── MainPreferences.java
│       │   │                   │   ├── ReminderPreferences.java
│       │   │                   │   ├── SoundPreferences.java
│       │   │                   │   ├── TimePreference.java
│       │   │                   │   └── TimePreferenceDialog.java
│       │   │                   ├── session/
│       │   │                   │   ├── SessionFragment.java
│       │   │                   │   ├── SessionSettingsFragment.java
│       │   │                   │   └── SessionsAdapter.java
│       │   │                   ├── training/
│       │   │                   │   ├── TrainingDatabaseAdapter.java
│       │   │                   │   ├── TrainingFragment.java
│       │   │                   │   ├── TrainingSettingsFragment.java
│       │   │                   │   ├── TrainingsAdapter.java
│       │   │                   │   └── TrainingsDatabaseFragment.java
│       │   │                   ├── utils/
│       │   │                   │   ├── FileDialogHelper.java
│       │   │                   │   ├── SoundUtils.java
│       │   │                   │   └── VideoProvider.java
│       │   │                   └── workout/
│       │   │                       ├── WorkoutDatabaseFragment.java
│       │   │                       ├── WorkoutFragment.java
│       │   │                       ├── WorkoutSettingsFragment.java
│       │   │                       ├── WorkoutSlideFragment.java
│       │   │                       ├── WorkoutsAdapter.java
│       │   │                       └── WorkoutsDatabaseAdapter.java
│       │   └── res/
│       │       ├── anim/
│       │       │   ├── fab_close.xml
│       │       │   ├── fab_open.xml
│       │       │   ├── fab_rotate_anticlock.xml
│       │       │   └── fab_rotate_clock.xml
│       │       ├── drawable/
│       │       │   ├── button_flat_selector.xml
│       │       │   ├── ic_add.xml
│       │       │   ├── ic_avatar.xml
│       │       │   ├── ic_billing.xml
│       │       │   ├── ic_dark_mode.xml
│       │       │   ├── ic_database.xml
│       │       │   ├── ic_debug_logging.xml
│       │       │   ├── ic_delete.xml
│       │       │   ├── ic_download.xml
│       │       │   ├── ic_download_finished.xml
│       │       │   ├── ic_duplicate.xml
│       │       │   ├── ic_edit.xml
│       │       │   ├── ic_export.xml
│       │       │   ├── ic_goal.xml
│       │       │   ├── ic_help.xml
│       │       │   ├── ic_home.xml
│       │       │   ├── ic_import.xml
│       │       │   ├── ic_info.xml
│       │       │   ├── ic_local_export.xml
│       │       │   ├── ic_local_import.xml
│       │       │   ├── ic_next.xml
│       │       │   ├── ic_no_file.xml
│       │       │   ├── ic_openworkout.xml
│       │       │   ├── ic_option.xml
│       │       │   ├── ic_pause.xml
│       │       │   ├── ic_play.xml
│       │       │   ├── ic_preview.xml
│       │       │   ├── ic_reminder.xml
│       │       │   ├── ic_reorder.xml
│       │       │   ├── ic_reset.xml
│       │       │   ├── ic_save.xml
│       │       │   ├── ic_session.xml
│       │       │   ├── ic_session_done.xml
│       │       │   ├── ic_session_undone.xml
│       │       │   ├── ic_settings.xml
│       │       │   ├── ic_sound.xml
│       │       │   ├── ic_swap.xml
│       │       │   ├── ic_timer.xml
│       │       │   ├── ic_trophy_disabled.xml
│       │       │   ├── ic_trophy_enabled.xml
│       │       │   ├── ic_view.xml
│       │       │   ├── ic_workout_done.xml
│       │       │   ├── ic_workout_select.xml
│       │       │   ├── rect_disabled.xml
│       │       │   ├── rect_normal.xml
│       │       │   ├── rect_pressed.xml
│       │       │   └── ripple_timer.xml
│       │       ├── layout/
│       │       │   ├── activity_main.xml
│       │       │   ├── app_bar_main.xml
│       │       │   ├── content_main.xml
│       │       │   ├── fragment_home.xml
│       │       │   ├── fragment_session.xml
│       │       │   ├── fragment_sessionsettings.xml
│       │       │   ├── fragment_training.xml
│       │       │   ├── fragment_trainingdatabase.xml
│       │       │   ├── fragment_trainingsettings.xml
│       │       │   ├── fragment_trophy.xml
│       │       │   ├── fragment_workout.xml
│       │       │   ├── fragment_workoutdatabase.xml
│       │       │   ├── fragment_workoutsettings.xml
│       │       │   ├── fragment_workoutslide.xml
│       │       │   ├── item_session.xml
│       │       │   ├── item_training.xml
│       │       │   ├── item_trainingdatabase.xml
│       │       │   ├── item_workout.xml
│       │       │   ├── item_workoutdatabase.xml
│       │       │   ├── nav_header_main.xml
│       │       │   └── preference_timepicker.xml
│       │       ├── layout-sw600dp/
│       │       │   ├── fragment_home.xml
│       │       │   ├── fragment_session.xml
│       │       │   ├── fragment_training.xml
│       │       │   ├── fragment_trainingdatabase.xml
│       │       │   └── fragment_workout.xml
│       │       ├── menu/
│       │       │   ├── activity_main_drawer.xml
│       │       │   ├── fragment_menu.xml
│       │       │   ├── item_menu.xml
│       │       │   └── main.xml
│       │       ├── navigation/
│       │       │   └── mobile_navigation.xml
│       │       ├── values/
│       │       │   ├── colors.xml
│       │       │   ├── days.xml
│       │       │   ├── dimens.xml
│       │       │   ├── drawables.xml
│       │       │   ├── strings.xml
│       │       │   └── styles.xml
│       │       ├── values-de/
│       │       │   └── strings.xml
│       │       ├── values-v21/
│       │       │   └── styles.xml
│       │       └── xml/
│       │           ├── main_preferences.xml
│       │           ├── reminder_preferences.xml
│       │           └── sound_preferences.xml
│       └── playStore/
│           ├── AndroidManifest.xml
│           └── res/
│               └── layout/
│                   └── fragment_billing.xml
├── build.gradle
├── docs/
│   └── openWorkout_setting.blend
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   ├── Pluginfile
│   └── metadata/
│       └── android/
│           ├── de/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           └── en-US/
│               ├── changelogs/
│               │   ├── 10.txt
│               │   ├── 11.txt
│               │   ├── 12.txt
│               │   ├── 13.txt
│               │   ├── 14.txt
│               │   ├── 15.txt
│               │   ├── 5.txt
│               │   ├── 6.txt
│               │   ├── 7.txt
│               │   ├── 8.txt
│               │   └── 9.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
Download .txt
SYMBOL INDEX (577 symbols across 79 files)

FILE: app/src/fdroid/java/com/health/openworkout/core/utils/PlayStoreUtils.java
  class PlayStoreUtils (line 24) | public class PlayStoreUtils {
    method PlayStoreUtils (line 27) | private PlayStoreUtils(Context aContext) {
    method createInstance (line 31) | public static void createInstance(Context aContext) {
    method getInstance (line 39) | public static PlayStoreUtils getInstance() {
    method initMobileAds (line 47) | public void initMobileAds(Activity activity) {
    method getAdView (line 51) | public View getAdView(Context aContext) {
    method isAdRemovalPaid (line 56) | public boolean isAdRemovalPaid() {

FILE: app/src/main/java/com/health/openworkout/MainActivity.java
  class MainActivity (line 42) | public class MainActivity extends AppCompatActivity {
    method onCreate (line 46) | @Override
    method onCreateOptionsMenu (line 89) | @Override
    method onSupportNavigateUp (line 96) | @Override
    method showAboutDialog (line 103) | private void showAboutDialog() {

FILE: app/src/main/java/com/health/openworkout/core/Application.java
  class Application (line 29) | public class Application extends android.app.Application {
    class TimberLogAdapter (line 32) | private class TimberLogAdapter extends Timber.DebugTree {
      method isLoggable (line 33) | @Override
    method onCreate (line 42) | @Override

FILE: app/src/main/java/com/health/openworkout/core/OpenWorkout.java
  class OpenWorkout (line 42) | public class OpenWorkout {
    method OpenWorkout (line 54) | private OpenWorkout(Context aContext) {
    method createInstance (line 61) | public static void createInstance(Context aContext) {
    method getInstance (line 69) | public static OpenWorkout getInstance() {
    method getContext (line 77) | public final Context getContext() {
    method openDB (line 81) | private void openDB() {
    method initTrainingPlans (line 95) | public void initTrainingPlans() {
    method getCurrentUser (line 116) | public User getCurrentUser() {
    method printTrainingPlans (line 120) | public void printTrainingPlans() {
    method getTrainingPlans (line 139) | public List<TrainingPlan> getTrainingPlans() {
    method getTrainingPlan (line 150) | public TrainingPlan getTrainingPlan(long trainingPlanId) {
    method getWorkoutSession (line 166) | public WorkoutSession getWorkoutSession(long workoutSessionId) {
    method getWorkoutItem (line 175) | public WorkoutItem getWorkoutItem(long workoutItemId) {
    method getAllUniqueWorkoutItems (line 179) | public List<WorkoutItem> getAllUniqueWorkoutItems() {
    method insertTrainingPlan (line 183) | public long insertTrainingPlan(TrainingPlan trainingPlan) {
    method insertWorkoutSession (line 198) | public long insertWorkoutSession(WorkoutSession workoutSession) {
    method insertWorkoutItem (line 209) | public long insertWorkoutItem(WorkoutItem workoutItem) {
    method deleteTrainingPlan (line 215) | public void deleteTrainingPlan(TrainingPlan trainingPlan) {
    method deleteWorkoutSession (line 224) | public void deleteWorkoutSession(WorkoutSession workoutSession) {
    method deleteWorkoutItem (line 230) | public void deleteWorkoutItem(WorkoutItem workoutItem) {
    method updateWorkoutItem (line 234) | public void updateWorkoutItem(WorkoutItem workoutItem) {
    method updateWorkoutSession (line 238) | public void updateWorkoutSession(WorkoutSession workoutSession) {
    method updateTrainingPlan (line 242) | public void updateTrainingPlan(TrainingPlan trainingPlan) {
    method updateUser (line 246) | public void updateUser(User user) {
    method getSoundUtils (line 250) | public SoundUtils getSoundUtils() {

FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmEntry.java
  class AlarmEntry (line 21) | public class AlarmEntry implements Comparable<AlarmEntry> {
    method AlarmEntry (line 25) | public AlarmEntry(int dayOfWeek, long timeInMillis)
    method getDayOfWeek (line 31) | public int getDayOfWeek()
    method getTimeInMillis (line 36) | private long getTimeInMillis()
    method getNextTimestamp (line 41) | public Calendar getNextTimestamp()
    method equals (line 61) | @Override
    method hashCode (line 73) | @Override
    method compareTo (line 81) | @Override
    method compare (line 89) | private int compare(long x, long y)

FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmEntryReader.java
  class AlarmEntryReader (line 30) | public class AlarmEntryReader {
    method AlarmEntryReader (line 34) | private AlarmEntryReader(Set<AlarmEntry> alarmEntries, String alarmNot...
    method getEntries (line 39) | public Set<AlarmEntry> getEntries()
    method getNotificationText (line 44) | public String getNotificationText()
    method construct (line 49) | public static AlarmEntryReader construct(Context context) {
    method getAlarmEntry (line 66) | private static AlarmEntry getAlarmEntry(String dayOfWeek, Long reminde...

FILE: app/src/main/java/com/health/openworkout/core/alarm/AlarmHandler.java
  class AlarmHandler (line 42) | public class AlarmHandler {
    method scheduleAlarms (line 46) | public void scheduleAlarms(Context context) {
    method enableAlarms (line 54) | private void enableAlarms(Context context, Set<AlarmEntry> alarmEntrie...
    method enableAlarm (line 60) | private void enableAlarm(Context context, AlarmEntry alarmEntry) {
    method setRepeatingAlarm (line 67) | private void setRepeatingAlarm(Context context, int dayOfWeek, Calenda...
    method getWeekdaysPendingAlarmIntent (line 75) | private List<PendingIntent> getWeekdaysPendingAlarmIntent(Context cont...
    method getPendingAlarmIntent (line 89) | private PendingIntent getPendingAlarmIntent(Context context, int dayOf...
    method disableAllAlarms (line 96) | public void disableAllAlarms(Context context) {
    method showAlarmNotification (line 106) | public void showAlarmNotification(Context context) {

FILE: app/src/main/java/com/health/openworkout/core/alarm/ReminderBootReceiver.java
  class ReminderBootReceiver (line 24) | public class ReminderBootReceiver extends BroadcastReceiver {
    method onReceive (line 25) | @Override
    method handleAlarm (line 36) | private void handleAlarm(Context context) {
    method scheduleAlarms (line 41) | private void scheduleAlarms(Context context) {

FILE: app/src/main/java/com/health/openworkout/core/database/AppDatabase.java
  class AppDatabase (line 30) | @Database(entities = {User.class, TrainingPlan.class, WorkoutSession.cla...
    method userDAO (line 32) | public abstract UserDAO userDAO();
    method trainingPlanDAO (line 33) | public abstract TrainingPlanDAO trainingPlanDAO();
    method workoutSessionDAO (line 34) | public abstract WorkoutSessionDAO workoutSessionDAO();
    method workoutItemDAO (line 35) | public abstract WorkoutItemDAO workoutItemDAO();
    method migrate (line 38) | @Override

FILE: app/src/main/java/com/health/openworkout/core/database/TrainingPlanDAO.java
  type TrainingPlanDAO (line 30) | @Dao
    method insert (line 32) | @Insert
    method update (line 35) | @Update
    method delete (line 38) | @Delete
    method get (line 41) | @Query("SELECT * FROM TrainingPlan WHERE trainingPlanId=:trainingPlanId")
    method getAll (line 44) | @Query("SELECT * FROM TrainingPlan ORDER BY orderNr")

FILE: app/src/main/java/com/health/openworkout/core/database/UserDAO.java
  type UserDAO (line 30) | @Dao
    method insert (line 32) | @Insert
    method update (line 35) | @Update
    method delete (line 38) | @Delete
    method get (line 41) | @Query("SELECT * FROM User WHERE userId=:userId")
    method getAll (line 44) | @Query("SELECT * FROM User")

FILE: app/src/main/java/com/health/openworkout/core/database/WorkoutItemDAO.java
  type WorkoutItemDAO (line 30) | @Dao
    method insert (line 32) | @Insert
    method insertAll (line 35) | @Insert
    method update (line 38) | @Update
    method delete (line 41) | @Delete
    method clear (line 44) | @Query("DELETE FROM WorkoutItem")
    method deleteAll (line 47) | @Query("DELETE FROM WorkoutItem WHERE workoutSessionId = :workoutSessi...
    method get (line 50) | @Query("SELECT * FROM WorkoutItem WHERE workoutItemId=:workoutItemId")
    method getAll (line 53) | @Query("SELECT * FROM WorkoutItem WHERE workoutSessionId = :workoutSes...
    method getAllUnique (line 56) | @Query("SELECT * FROM WorkoutItem GROUP BY name")

FILE: app/src/main/java/com/health/openworkout/core/database/WorkoutSessionDAO.java
  type WorkoutSessionDAO (line 30) | @Dao
    method insert (line 32) | @Insert
    method update (line 35) | @Update
    method delete (line 38) | @Delete
    method deleteAll (line 41) | @Query("DELETE FROM WorkoutSession WHERE trainingPlanId = :trainingPla...
    method get (line 44) | @Query("SELECT * FROM WorkoutSession WHERE workoutSessionId=:workoutSe...
    method getAll (line 47) | @Query("SELECT * FROM WorkoutSession WHERE trainingPlanId = :trainingP...

FILE: app/src/main/java/com/health/openworkout/core/datatypes/GitHubFile.java
  class GitHubFile (line 26) | @Keep
    method getType (line 55) | public String getType() {
    method setType (line 59) | public void setType(String type) {
    method getSize (line 63) | public long getSize() {
    method setSize (line 67) | public void setSize(long size) {
    method getName (line 71) | public String getName() {
    method setName (line 75) | public void setName(String name) {
    method getPath (line 79) | public String getPath() {
    method setPath (line 83) | public void setPath(String path) {
    method getSha (line 87) | public String getSha() {
    method setSha (line 91) | public void setSha(String sha) {
    method getUrl (line 95) | public String getUrl() {
    method setUrl (line 99) | public void setUrl(String url) {
    method getGitURL (line 103) | public String getGitURL() {
    method setGitURL (line 107) | public void setGitURL(String gitURL) {
    method getHtmlURL (line 111) | public String getHtmlURL() {
    method setHtmlURL (line 115) | public void setHtmlURL(String htmlURL) {
    method getDownloadURL (line 119) | public String getDownloadURL() {
    method setDownloadURL (line 123) | public void setDownloadURL(String downloadURL) {

FILE: app/src/main/java/com/health/openworkout/core/datatypes/TrainingPlan.java
  class TrainingPlan (line 34) | @Keep
    method TrainingPlan (line 55) | public TrainingPlan() {
    method clone (line 66) | @Override
    method getOrderNr (line 87) | public long getOrderNr() {
    method setOrderNr (line 91) | public void setOrderNr(long orderNr) {
    method getContext (line 95) | public Context getContext() {
    method addWorkoutSession (line 99) | public void addWorkoutSession(WorkoutSession workoutSession) {
    method setWorkoutSessions (line 103) | public void setWorkoutSessions(List<WorkoutSession> workoutSessions) {
    method getWorkoutSessions (line 107) | public List<WorkoutSession> getWorkoutSessions() {
    method getNextWorkoutSession (line 111) | public WorkoutSession getNextWorkoutSession() {
    method finishedSessionSize (line 121) | public int finishedSessionSize() {
    method getWorkoutSessionSize (line 133) | public int getWorkoutSessionSize() {
    method setTrainingPlanId (line 137) | public void setTrainingPlanId(long trainingPlanId) {
    method getTrainingPlanId (line 141) | public long getTrainingPlanId() {
    method getName (line 145) | public String getName() {
    method setName (line 149) | public void setName(String name) {
    method getImagePath (line 153) | public String getImagePath() {
    method setImagePath (line 157) | public void setImagePath(String imagePath) {
    method isImagePathExternal (line 161) | public boolean isImagePathExternal() {
    method setImagePathExternal (line 165) | public void setImagePathExternal(boolean imagePathExternal) {
    method getCountFinishedTraining (line 169) | public int getCountFinishedTraining() {
    method setCountFinishedTraining (line 173) | public void setCountFinishedTraining(int countFinishedTraining) {
    method toString (line 177) | @Override
    method compareTo (line 182) | @Override

FILE: app/src/main/java/com/health/openworkout/core/datatypes/User.java
  class User (line 25) | @Keep
    method User (line 35) | public User() {
    method getUserId (line 39) | public long getUserId() {
    method setUserId (line 43) | public void setUserId(long userId) {
    method getTrainingsPlanId (line 47) | public long getTrainingsPlanId() {
    method setTrainingsPlanId (line 51) | public void setTrainingsPlanId(long trainingsPlanId) {
    method isMale (line 55) | public boolean isMale() {
    method setMale (line 59) | public void setMale(boolean male) {

FILE: app/src/main/java/com/health/openworkout/core/datatypes/WorkoutItem.java
  class WorkoutItem (line 31) | @Keep
    method WorkoutItem (line 73) | public WorkoutItem() {
    method clone (line 91) | @Override
    method getContext (line 104) | public final Context getContext() {
    method setWorkoutItemId (line 108) | public void setWorkoutItemId(long workoutItemId) {
    method getWorkoutItemId (line 112) | public long getWorkoutItemId() {
    method setWorkoutSessionId (line 116) | public void setWorkoutSessionId(long workoutSessionId) {
    method getWorkoutSessionId (line 120) | public long getWorkoutSessionId() {
    method getOrderNr (line 124) | public long getOrderNr() {
    method setOrderNr (line 128) | public void setOrderNr(long orderNr) {
    method getName (line 132) | public String getName() {
    method setName (line 136) | public void setName(String name) {
    method getDescription (line 140) | public String getDescription() {
    method setDescription (line 144) | public void setDescription(String description) {
    method getElapsedTime (line 148) | public long getElapsedTime() {
    method setElapsedTime (line 152) | public void setElapsedTime(long elapsedTime) {
    method getImagePath (line 156) | public String getImagePath() {
    method setImagePath (line 160) | public void setImagePath(String imagePath) {
    method setImagePath (line 164) | public void setImagePath(int resId) {
    method isImagePathExternal (line 168) | public boolean isImagePathExternal() {
    method setImagePathExternal (line 172) | public void setImagePathExternal(boolean imagePathExternal) {
    method isVideoMode (line 176) | public boolean isVideoMode() {
    method setVideoMode (line 180) | public void setVideoMode(boolean videoMode) {
    method getVideoPath (line 184) | public String getVideoPath() {
    method setVideoPath (line 188) | public void setVideoPath(String videoPath) {
    method isVideoPathExternal (line 192) | public boolean isVideoPathExternal() {
    method setVideoPathExternal (line 196) | public void setVideoPathExternal(boolean videoPathExternal) {
    method getPrepTime (line 200) | public int getPrepTime() {
    method setPrepTime (line 204) | public void setPrepTime(int prepTime) {
    method getWorkoutTime (line 208) | public int getWorkoutTime() {
    method setWorkoutTime (line 212) | public void setWorkoutTime(int workoutTime) {
    method getBreakTime (line 216) | public int getBreakTime() {
    method setBreakTime (line 220) | public void setBreakTime(int breakTime) {
    method getRepetitionCount (line 224) | public int getRepetitionCount() {
    method setRepetitionCount (line 228) | public void setRepetitionCount(int repetitionCount) {
    method isTimeMode (line 232) | public boolean isTimeMode() {
    method setTimeMode (line 236) | public void setTimeMode(boolean timeMode) {
    method isFinished (line 240) | public boolean isFinished() {
    method setFinished (line 244) | public void setFinished(boolean finished) {
    method compareTo (line 252) | @Override

FILE: app/src/main/java/com/health/openworkout/core/datatypes/WorkoutSession.java
  class WorkoutSession (line 29) | @Keep
    method WorkoutSession (line 46) | public WorkoutSession() {
    method clone (line 52) | @Override
    method setWorkoutSessionId (line 69) | public void setWorkoutSessionId(long workoutSessionId) {
    method getWorkoutSessionId (line 73) | public long getWorkoutSessionId() {
    method setTrainingPlanId (line 77) | public void setTrainingPlanId(long trainingPlanId) {
    method getTrainingPlanId (line 81) | public long getTrainingPlanId() {
    method getOrderNr (line 85) | public long getOrderNr() {
    method setOrderNr (line 89) | public void setOrderNr(long orderNr) {
    method addWorkout (line 93) | public WorkoutItem addWorkout(WorkoutItem workoutItem) {
    method setWorkoutItems (line 99) | public void setWorkoutItems(List<WorkoutItem> workoutItems) {
    method getWorkoutItems (line 103) | public List<WorkoutItem> getWorkoutItems() {
    method getNextWorkoutItem (line 107) | public WorkoutItem getNextWorkoutItem(long workoutItemOrderNr) {
    method getElapsedSessionTime (line 123) | public long getElapsedSessionTime() {
    method getName (line 133) | public String getName() {
    method setName (line 137) | public void setName(String name) {
    method isFinished (line 141) | public boolean isFinished() {
    method setFinished (line 145) | public void setFinished(boolean finished) {
    method compareTo (line 149) | @Override

FILE: app/src/main/java/com/health/openworkout/core/session/AbdominalMuscleSession.java
  class AbdominalMuscleSession (line 38) | public class AbdominalMuscleSession extends WorkoutSession {
    method AbdominalMuscleSession (line 42) | public AbdominalMuscleSession(int dayNr, float stressFac) {
    method addWorkoutTime (line 111) | private void addWorkoutTime(WorkoutItem workoutItem, int time) {
    method addWorkoutRep (line 116) | private void addWorkoutRep(WorkoutItem workoutItem, int rep) {

FILE: app/src/main/java/com/health/openworkout/core/session/BeginnersSession.java
  class BeginnersSession (line 33) | public class BeginnersSession extends WorkoutSession {
    method BeginnersSession (line 37) | public BeginnersSession(int dayNr, float stressFac) {
    method addWorkoutTime (line 100) | private void addWorkoutTime(WorkoutItem workoutItem, int time) {
    method addWorkoutRep (line 105) | private void addWorkoutRep(WorkoutItem workoutItem, int rep) {

FILE: app/src/main/java/com/health/openworkout/core/session/SevenMinutesSession.java
  class SevenMinutesSession (line 35) | public class SevenMinutesSession extends WorkoutSession {
    method SevenMinutesSession (line 37) | public SevenMinutesSession() {

FILE: app/src/main/java/com/health/openworkout/core/training/AbdominalMuscleTraining.java
  class AbdominalMuscleTraining (line 24) | public class AbdominalMuscleTraining extends TrainingPlan {
    method AbdominalMuscleTraining (line 25) | public AbdominalMuscleTraining() {

FILE: app/src/main/java/com/health/openworkout/core/training/BeginnersTraining.java
  class BeginnersTraining (line 24) | public class BeginnersTraining extends TrainingPlan {
    method BeginnersTraining (line 25) | public BeginnersTraining() {

FILE: app/src/main/java/com/health/openworkout/core/training/SevenMinutesTraining.java
  class SevenMinutesTraining (line 24) | public class SevenMinutesTraining extends TrainingPlan {
    method SevenMinutesTraining (line 25) | public SevenMinutesTraining() {

FILE: app/src/main/java/com/health/openworkout/core/utils/PackageUtils.java
  class PackageUtils (line 61) | public class PackageUtils {
    method PackageUtils (line 71) | public PackageUtils(Context context) {
    method importTrainingPlan (line 83) | public TrainingPlan importTrainingPlan(File zipFile) {
    method importTrainingPlan (line 89) | public TrainingPlan importTrainingPlan(Uri zipFileUri) {
    method importTrainingPlan (line 95) | private TrainingPlan importTrainingPlan(Uri zipFileUri, String filenam...
    method exportTrainingPlan (line 134) | public void exportTrainingPlan(TrainingPlan trainingPlan, Uri zipFileU...
    method copyImageToInternalStorage (line 192) | private String copyImageToInternalStorage(String imagePath) throws IOE...
    method copyVideoToInternalStorage (line 209) | private String copyVideoToInternalStorage(String videoPath) throws IOE...
    method copyFile (line 226) | private void copyFile(InputStream in, OutputStream out) throws IOExcep...
    method getDisplayName (line 238) | private String getDisplayName(File file) {
    method getDisplayName (line 248) | private String getDisplayName(Uri uri) {
    method zipDirectory (line 270) | private void zipDirectory(File directoryToCompress, Uri outputFile) th...
    method compressDirectory (line 278) | private void compressDirectory(File rootDirectory, File currentDirecto...
    method unzipFile (line 305) | private void unzipFile(Uri zipFileUri, String filename) throws IOExcep...
    method extractFile (line 333) | private void extractFile(ZipInputStream zipIn, File fileOutput) throws...
    method deleteDirectory (line 344) | private void deleteDirectory(File fileOrDirectory) {
    method getGitHubFiles (line 352) | public void getGitHubFiles() {
    method downloadFile (line 377) | public void downloadFile(GitHubFile gitHubFile) {
    method writeResponseBodyToDisk (line 411) | private boolean writeResponseBodyToDisk(final String filename, final l...
    method setOnGitHubCallbackListener (line 467) | public void setOnGitHubCallbackListener(OnGitHubCallbackListener onGit...
    type OnGitHubCallbackListener (line 471) | public interface OnGitHubCallbackListener {
      method onGitHubFileList (line 472) | void onGitHubFileList(List<GitHubFile> gitHubFileList);
      method onGitHubDownloadFile (line 473) | void onGitHubDownloadFile(File uriFilename);
      method onGitHubDownloadProgressUpdate (line 474) | void onGitHubDownloadProgressUpdate(long bytesDownloaded, long bytes...
      method onGitHubFailure (line 475) | void onGitHubFailure(Exception ex);
    type GitHubApi (line 478) | private interface GitHubApi {
      method getFileList (line 479) | @GET("repos/oliexdev/openWorkout/contents/pkg")
      method downloadFile (line 481) | @Streaming

FILE: app/src/main/java/com/health/openworkout/core/workout/AbdominalCrunch.java
  class AbdominalCrunch (line 23) | public class AbdominalCrunch extends WorkoutItem {
    method AbdominalCrunch (line 24) | public AbdominalCrunch() {

FILE: app/src/main/java/com/health/openworkout/core/workout/AirSquatBentArms.java
  class AirSquatBentArms (line 23) | public class AirSquatBentArms extends WorkoutItem {
    method AirSquatBentArms (line 24) | public AirSquatBentArms() {

FILE: app/src/main/java/com/health/openworkout/core/workout/BicycleCrunch.java
  class BicycleCrunch (line 23) | public class BicycleCrunch extends WorkoutItem {
    method BicycleCrunch (line 24) | public BicycleCrunch() {

FILE: app/src/main/java/com/health/openworkout/core/workout/BoxJump.java
  class BoxJump (line 23) | public class BoxJump extends WorkoutItem {
    method BoxJump (line 24) | public BoxJump() {

FILE: app/src/main/java/com/health/openworkout/core/workout/Burpee.java
  class Burpee (line 23) | public class Burpee extends WorkoutItem {
    method Burpee (line 24) | public Burpee() {

FILE: app/src/main/java/com/health/openworkout/core/workout/CircleCrunch.java
  class CircleCrunch (line 23) | public class CircleCrunch extends WorkoutItem {
    method CircleCrunch (line 24) | public CircleCrunch() {

FILE: app/src/main/java/com/health/openworkout/core/workout/CrossJumps.java
  class CrossJumps (line 23) | public class CrossJumps extends WorkoutItem {
    method CrossJumps (line 24) | public CrossJumps() {

FILE: app/src/main/java/com/health/openworkout/core/workout/CrossJumpsRotation.java
  class CrossJumpsRotation (line 23) | public class CrossJumpsRotation extends WorkoutItem {
    method CrossJumpsRotation (line 24) | public CrossJumpsRotation() {

FILE: app/src/main/java/com/health/openworkout/core/workout/DonkeyKick.java
  class DonkeyKick (line 23) | public class DonkeyKick extends WorkoutItem {
    method DonkeyKick (line 24) | public DonkeyKick() {

FILE: app/src/main/java/com/health/openworkout/core/workout/HighKnees.java
  class HighKnees (line 23) | public class HighKnees extends WorkoutItem {
    method HighKnees (line 24) | public HighKnees() {

FILE: app/src/main/java/com/health/openworkout/core/workout/JumpPushUps.java
  class JumpPushUps (line 23) | public class JumpPushUps extends WorkoutItem {
    method JumpPushUps (line 24) | public JumpPushUps() {

FILE: app/src/main/java/com/health/openworkout/core/workout/JumpingJack.java
  class JumpingJack (line 23) | public class JumpingJack extends WorkoutItem {
    method JumpingJack (line 24) | public JumpingJack() {

FILE: app/src/main/java/com/health/openworkout/core/workout/Lunge.java
  class Lunge (line 23) | public class Lunge extends WorkoutItem {
    method Lunge (line 24) | public Lunge() {

FILE: app/src/main/java/com/health/openworkout/core/workout/LungeKick.java
  class LungeKick (line 23) | public class LungeKick extends WorkoutItem {
    method LungeKick (line 24) | public LungeKick() {

FILE: app/src/main/java/com/health/openworkout/core/workout/MountainClimbers.java
  class MountainClimbers (line 23) | public class MountainClimbers extends WorkoutItem {
    method MountainClimbers (line 24) | public MountainClimbers() {

FILE: app/src/main/java/com/health/openworkout/core/workout/PikeWalk.java
  class PikeWalk (line 23) | public class PikeWalk extends WorkoutItem {
    method PikeWalk (line 24) | public PikeWalk() {

FILE: app/src/main/java/com/health/openworkout/core/workout/Plank.java
  class Plank (line 23) | public class Plank extends WorkoutItem {
    method Plank (line 24) | public Plank() {

FILE: app/src/main/java/com/health/openworkout/core/workout/PushUpRotation.java
  class PushUpRotation (line 23) | public class PushUpRotation extends WorkoutItem {
    method PushUpRotation (line 24) | public PushUpRotation() {

FILE: app/src/main/java/com/health/openworkout/core/workout/PushUps.java
  class PushUps (line 23) | public class PushUps extends WorkoutItem {
    method PushUps (line 24) | public PushUps() {

FILE: app/src/main/java/com/health/openworkout/core/workout/QuickSteps.java
  class QuickSteps (line 23) | public class QuickSteps extends WorkoutItem {
    method QuickSteps (line 24) | public QuickSteps() {

FILE: app/src/main/java/com/health/openworkout/core/workout/RussianTwist.java
  class RussianTwist (line 23) | public class RussianTwist extends WorkoutItem {
    method RussianTwist (line 24) | public RussianTwist() {

FILE: app/src/main/java/com/health/openworkout/core/workout/SidePlank.java
  class SidePlank (line 23) | public class SidePlank extends WorkoutItem {
    method SidePlank (line 24) | public SidePlank() {

FILE: app/src/main/java/com/health/openworkout/core/workout/Squat.java
  class Squat (line 23) | public class Squat extends WorkoutItem {
    method Squat (line 24) | public Squat() {

FILE: app/src/main/java/com/health/openworkout/core/workout/StepUp.java
  class StepUp (line 23) | public class StepUp extends WorkoutItem {
    method StepUp (line 24) | public StepUp() {

FILE: app/src/main/java/com/health/openworkout/core/workout/TricepsDip.java
  class TricepsDip (line 23) | public class TricepsDip extends WorkoutItem {
    method TricepsDip (line 24) | public TricepsDip() {

FILE: app/src/main/java/com/health/openworkout/core/workout/WallSit.java
  class WallSit (line 23) | public class WallSit extends WorkoutItem {
    method WallSit (line 24) | public WallSit() {

FILE: app/src/main/java/com/health/openworkout/core/workout/WorkoutFactory.java
  class WorkoutFactory (line 25) | public class WorkoutFactory {
    method getAllWorkoutItems (line 26) | public List<WorkoutItem> getAllWorkoutItems() {

FILE: app/src/main/java/com/health/openworkout/gui/datatypes/GenericAdapter.java
  class GenericAdapter (line 38) | public abstract class GenericAdapter<VH extends GenericAdapter.ViewHolde...
    method GenericAdapter (line 49) | public GenericAdapter(Context aContext) {
    method setMode (line 54) | public void setMode(GenericFragment.FRAGMENT_MODE mode) {
    method getMode (line 58) | public GenericFragment.FRAGMENT_MODE getMode() {
    method onCreateViewHolder (line 62) | public abstract VH onCreateViewHolder(@NonNull ViewGroup parent, int v...
    method getItemId (line 63) | abstract public long getItemId(int position);
    method getItemCount (line 64) | abstract public int getItemCount();
    method onBindViewHolder (line 66) | @Override
    method setOnItemClickListener (line 82) | public void setOnItemClickListener(OnGenericClickListener onWorkoutCli...
    method setOnItemEditClickListener (line 86) | public void setOnItemEditClickListener(OnGenericClickListener onEditCl...
    method setOnItemDeleteClickListener (line 90) | public void setOnItemDeleteClickListener(OnGenericClickListener onDele...
    method setOnItemReorderClickListener (line 94) | public void setOnItemReorderClickListener(OnGenericClickListener onReo...
    method setOnItemDuplicateClickListener (line 98) | public void setOnItemDuplicateClickListener(OnGenericClickListener onD...
    method setOnItemPublishClickListener (line 102) | public void setOnItemPublishClickListener(OnGenericClickListener onPub...
    method setOnItemExportClickListener (line 106) | public void setOnItemExportClickListener(OnGenericClickListener onExpo...
    class ViewHolder (line 110) | public static class ViewHolder extends RecyclerView.ViewHolder impleme...
      method ViewHolder (line 116) | public ViewHolder(@NonNull View itemView) {
      method setPublishVisible (line 166) | public void setPublishVisible(boolean isVisible) {
      method setExportVisible (line 170) | public void setExportVisible(boolean isVisible) {
      method onMenuItemClick (line 174) | @Override
    type OnGenericClickListener (line 204) | public interface OnGenericClickListener {
      method onItemClick (line 205) | public void onItemClick(int position, View v);
    method showForcePopupMenuIcons (line 208) | private static void showForcePopupMenuIcons(PopupMenu popupMenu) {

FILE: app/src/main/java/com/health/openworkout/gui/datatypes/GenericFragment.java
  class GenericFragment (line 41) | public abstract class GenericFragment extends Fragment {
    type FRAGMENT_MODE (line 42) | @Keep
    method GenericFragment (line 52) | public GenericFragment() {
    method getMode (line 79) | public FRAGMENT_MODE getMode() {
    method getTitle (line 83) | protected abstract String getTitle();
    method loadFromDatabase (line 84) | protected abstract void loadFromDatabase();
    method saveToDatabase (line 85) | protected abstract void saveToDatabase();
    method getAdapter (line 86) | protected abstract GenericAdapter getAdapter();
    method getRecyclerView (line 87) | protected abstract RecyclerView getRecyclerView();
    method getItemList (line 88) | protected abstract List getItemList();
    method onSelectCallback (line 89) | protected abstract void onSelectCallback(int position);
    method onEditCallback (line 90) | protected abstract void onEditCallback(int position);
    method onDuplicateCallback (line 91) | protected abstract void onDuplicateCallback(int position);
    method onDeleteCallback (line 92) | protected abstract void onDeleteCallback(int position);
    method onResetClick (line 93) | protected abstract void onResetClick();
    method onPublishClick (line 94) | protected void onPublishClick(int position) {}
    method onExportClick (line 95) | protected void onExportClick(int position) {}
    method getProgressBar (line 97) | private ProgressBar getProgressBar() {
    method onDestroy (line 105) | @Override
    method onCreateOptionsMenu (line 110) | @Override
    method refreshMenuVisibility (line 122) | private void refreshMenuVisibility() {
    method onOptionsItemSelected (line 225) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/datatypes/GenericSettingsFragment.java
  class GenericSettingsFragment (line 34) | public abstract class GenericSettingsFragment extends Fragment {
    type SETTING_MODE (line 35) | @Keep
    method GenericSettingsFragment (line 40) | public GenericSettingsFragment() {
    method getTitle (line 44) | protected abstract String getTitle();
    method loadFromDatabase (line 45) | protected abstract void loadFromDatabase(SETTING_MODE mode);
    method saveToDatabase (line 46) | protected abstract boolean saveToDatabase(SETTING_MODE mode);
    method setMode (line 48) | protected void setMode(SETTING_MODE mode) {
    method getMode (line 53) | protected SETTING_MODE getMode() {
    method onCreateOptionsMenu (line 57) | @Override
    method onOptionsItemSelected (line 67) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/datatypes/TrophyFragment.java
  class TrophyFragment (line 41) | public class TrophyFragment extends Fragment {
    method onCreateView (line 49) | public View onCreateView(@NonNull LayoutInflater inflater,

FILE: app/src/main/java/com/health/openworkout/gui/home/HomeFragment.java
  class HomeFragment (line 44) | public class HomeFragment extends Fragment {
    method onCreateView (line 56) | public View onCreateView(@NonNull LayoutInflater inflater,
    method updateProgressBar (line 177) | private void updateProgressBar(TrainingPlan trainingPlan) {

FILE: app/src/main/java/com/health/openworkout/gui/preference/MainPreferences.java
  class MainPreferences (line 51) | public class MainPreferences extends PreferenceFragmentCompat {
    method onCreatePreferences (line 54) | @Override
    method onRequestPermissionsResult (line 139) | @Override
    method onActivityResult (line 144) | @Override
    method startLogTo (line 154) | private void startLogTo(Uri uri) {
    method getEnabledFileDebugTree (line 168) | private FileDebugTree getEnabledFileDebugTree() {
    class FileDebugTree (line 177) | class FileDebugTree extends Timber.DebugTree {
      method FileDebugTree (line 181) | FileDebugTree(OutputStream output) {
      method close (line 186) | void close() {
      method priorityToString (line 190) | private String priorityToString(int priority) {
      method log (line 208) | @Override
    method tintIcons (line 216) | private static void tintIcons(Preference preference, int color) {

FILE: app/src/main/java/com/health/openworkout/gui/preference/ReminderPreferences.java
  class ReminderPreferences (line 35) | public class ReminderPreferences extends PreferenceFragmentCompat implem...
    method onCreatePreferences (line 38) | @Override
    method onDisplayPreferenceDialog (line 55) | @Override
    method onResume (line 71) | @Override
    method onPause (line 78) | @Override
    method onSharedPreferenceChanged (line 85) | @Override
    method updateAlarmPreferences (line 90) | private void updateAlarmPreferences()

FILE: app/src/main/java/com/health/openworkout/gui/preference/SoundPreferences.java
  class SoundPreferences (line 26) | public class SoundPreferences extends PreferenceFragmentCompat {
    method onCreatePreferences (line 28) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/preference/TimePreference.java
  class TimePreference (line 30) | public class TimePreference extends DialogPreference {
    method TimePreference (line 34) | public TimePreference(Context context) {
    method TimePreference (line 38) | public TimePreference(Context context, AttributeSet attrs) {
    method TimePreference (line 42) | public TimePreference(Context context, AttributeSet attrs, int defStyl...
    method TimePreference (line 46) | public TimePreference(Context context, AttributeSet attrs, int defStyl...
    method getTimeInMillis (line 51) | public long getTimeInMillis() {
    method setTimeInMillis (line 55) | public void setTimeInMillis(long timeInMillis) {
    method onGetDefaultValue (line 61) | @Override
    method getDialogLayoutResource (line 70) | @Override
    method onSetInitialValue (line 76) | @Override
    method getSummary (line 81) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/preference/TimePreferenceDialog.java
  class TimePreferenceDialog (line 33) | public class TimePreferenceDialog extends PreferenceDialogFragmentCompat {
    method newInstance (line 37) | public static TimePreferenceDialog newInstance(String key) {
    method onBindDialogView (line 46) | @Override
    method onDialogClosed (line 71) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/session/SessionFragment.java
  class SessionFragment (line 52) | public class SessionFragment extends GenericFragment {
    method onCreateView (line 66) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 148) | @Override
    method getAdapter (line 153) | @Override
    method getRecyclerView (line 158) | @Override
    method getItemList (line 163) | @Override
    method onSelectCallback (line 168) | @Override
    method onEditCallback (line 178) | @Override
    method onDeleteCallback (line 189) | @Override
    method onDuplicateCallback (line 196) | @Override
    method onResetClick (line 209) | @Override
    method loadFromDatabase (line 223) | @Override
    method saveToDatabase (line 235) | @Override
    method getNumberOfColumns (line 243) | private int getNumberOfColumns() {

FILE: app/src/main/java/com/health/openworkout/gui/session/SessionSettingsFragment.java
  class SessionSettingsFragment (line 34) | public class SessionSettingsFragment extends GenericSettingsFragment {
    method onCreateView (line 40) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 53) | @Override
    method loadFromDatabase (line 58) | @Override
    method saveToDatabase (line 79) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/session/SessionsAdapter.java
  class SessionsAdapter (line 35) | public class SessionsAdapter extends GenericAdapter<SessionsAdapter.View...
    method SessionsAdapter (line 39) | public SessionsAdapter(Context aContext, List<WorkoutSession> workoutS...
    method onCreateViewHolder (line 45) | @Override
    method onBindViewHolder (line 54) | @Override
    method getItemId (line 67) | @Override
    method getItemCount (line 72) | @Override
    class ViewHolder (line 77) | static class ViewHolder extends GenericAdapter.ViewHolder {
      method ViewHolder (line 81) | public ViewHolder(@NonNull View itemView) {

FILE: app/src/main/java/com/health/openworkout/gui/training/TrainingDatabaseAdapter.java
  class TrainingDatabaseAdapter (line 48) | public class TrainingDatabaseAdapter extends RecyclerView.Adapter<Traini...
    method TrainingDatabaseAdapter (line 54) | public TrainingDatabaseAdapter(Context aContext, List<GitHubFile> gitH...
    method setOnItemClickListener (line 59) | public void setOnItemClickListener(GenericAdapter.OnGenericClickListen...
    method onCreateViewHolder (line 63) | @Override
    method onBindViewHolder (line 72) | @Override
    method getItemId (line 102) | @Override
    method getItemCount (line 107) | @Override
    method updateProgressBar (line 112) | public void updateProgressBar(long bytes, long totalBytes) {
    method downloadCompleted (line 117) | public void downloadCompleted(TrainingPlan trainingPlan) {
    class ViewHolder (line 141) | static class ViewHolder extends RecyclerView.ViewHolder {
      method ViewHolder (line 148) | public ViewHolder(@NonNull View itemView) {

FILE: app/src/main/java/com/health/openworkout/gui/training/TrainingFragment.java
  class TrainingFragment (line 57) | public class TrainingFragment extends GenericFragment {
    method onCreateView (line 72) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 153) | @Override
    method loadFromDatabase (line 158) | @Override
    method saveToDatabase (line 167) | @Override
    method getAdapter (line 175) | @Override
    method getRecyclerView (line 180) | @Override
    method getItemList (line 185) | @Override
    method onSelectCallback (line 190) | @Override
    method onEditCallback (line 200) | @Override
    method onDeleteCallback (line 211) | @Override
    method onDuplicateCallback (line 227) | @Override
    method onResetClick (line 240) | @Override
    method onPublishClick (line 260) | @Override
    method onExportClick (line 281) | @Override
    method onRequestPermissionsResult (line 287) | @Override
    method onActivityResult (line 292) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/training/TrainingSettingsFragment.java
  class TrainingSettingsFragment (line 44) | public class TrainingSettingsFragment extends GenericSettingsFragment {
    method onCreateView (line 52) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 73) | @Override
    method loadFromDatabase (line 78) | @Override
    method saveToDatabase (line 113) | @Override
    method onRequestPermissionsResult (line 129) | @Override
    method onActivityResult (line 134) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/training/TrainingsAdapter.java
  class TrainingsAdapter (line 45) | public class TrainingsAdapter extends GenericAdapter<TrainingsAdapter.Vi...
    method TrainingsAdapter (line 49) | public TrainingsAdapter(Context aContext, List<TrainingPlan> trainingP...
    method onCreateViewHolder (line 55) | @Override
    method onBindViewHolder (line 64) | @Override
    method getItemId (line 123) | @Override
    method getItemCount (line 128) | @Override
    class ViewHolder (line 133) | static class ViewHolder extends GenericAdapter.ViewHolder {
      method ViewHolder (line 139) | public ViewHolder(@NonNull View itemView) {

FILE: app/src/main/java/com/health/openworkout/gui/training/TrainingsDatabaseFragment.java
  class TrainingsDatabaseFragment (line 42) | public class TrainingsDatabaseFragment extends Fragment {
    method onCreateView (line 50) | public View onCreateView(@NonNull LayoutInflater inflater,
    method loadFromDatabase (line 67) | protected void loadFromDatabase() {

FILE: app/src/main/java/com/health/openworkout/gui/utils/FileDialogHelper.java
  class FileDialogHelper (line 33) | public class FileDialogHelper {
    method FileDialogHelper (line 49) | public FileDialogHelper(Fragment fragment) {
    method openImportFileDialog (line 53) | public void openImportFileDialog() {
    method openDebugFileDialog (line 65) | public void openDebugFileDialog(String defaultFilename) {
    method openExportFileDialog (line 78) | public void openExportFileDialog() {
    method openExportFileDialog (line 91) | public void openExportFileDialog(String defaultFilename) {
    method openImageFileDialog (line 96) | public void openImageFileDialog() {
    method openVideoFileDialog (line 108) | public void openVideoFileDialog() {
    method checkPermissionForReadExternalStorage (line 120) | private boolean checkPermissionForReadExternalStorage() {
    method requestPermissionForReadExternalStorage (line 129) | private void requestPermissionForReadExternalStorage(int requestCode) {
    method checkPermissionForWriteExternalStorage (line 139) | private boolean checkPermissionForWriteExternalStorage() {
    method requestPermissionForWriteExternalStorage (line 147) | private void requestPermissionForWriteExternalStorage(int requestCode) {
    method onRequestPermissionsResult (line 156) | public void onRequestPermissionsResult(int requestCode, String[] permi...
    method onActivityResult (line 175) | public boolean onActivityResult(int requestCode, int resultCode, Inten...

FILE: app/src/main/java/com/health/openworkout/gui/utils/SoundUtils.java
  class SoundUtils (line 32) | public class SoundUtils {
    type SOUND (line 33) | public enum SOUND {WORKOUT_COUNT_BEFORE_START, WORKOUT_START, WORKOUT_...
    method SoundUtils (line 50) | public SoundUtils(Context context) {
    method loadSounds (line 75) | private void loadSounds() {
    method playSound (line 92) | public void playSound(SOUND sound) {
    method textToSpeech (line 109) | public void textToSpeech(final String speech) {
    method textToSpeechNoInterrupt (line 115) | public void textToSpeechNoInterrupt(final String speech) {
    method flush (line 123) | public void flush() {
    method release (line 129) | public void release() {

FILE: app/src/main/java/com/health/openworkout/gui/utils/VideoProvider.java
  class VideoProvider (line 33) | public class VideoProvider extends ContentProvider {
    method openAssetFile (line 35) | @Override
    method getType (line 54) | @Override
    method delete (line 60) | @Override
    method query (line 66) | @Override
    method query (line 72) | @Override
    method insert (line 78) | @Override
    method onCreate (line 84) | @Override
    method update (line 90) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutDatabaseFragment.java
  class WorkoutDatabaseFragment (line 39) | public class WorkoutDatabaseFragment extends Fragment {
    method onCreateView (line 45) | public View onCreateView(@NonNull LayoutInflater inflater,
    method loadFromDatabase (line 59) | protected void loadFromDatabase() {

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutFragment.java
  class WorkoutFragment (line 45) | public class WorkoutFragment extends GenericFragment {
    method onCreateView (line 59) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 130) | @Override
    method loadFromDatabase (line 135) | @Override
    method saveToDatabase (line 147) | @Override
    method getAdapter (line 155) | @Override
    method getRecyclerView (line 160) | @Override
    method getItemList (line 165) | @Override
    method onSelectCallback (line 170) | @Override
    method onEditCallback (line 181) | @Override
    method onDeleteCallback (line 193) | @Override
    method onDuplicateCallback (line 200) | @Override
    method onResetClick (line 213) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutSettingsFragment.java
  class WorkoutSettingsFragment (line 51) | public class WorkoutSettingsFragment extends GenericSettingsFragment {
    method onCreateView (line 72) | public View onCreateView(@NonNull LayoutInflater inflater,
    method getTitle (line 146) | @Override
    method loadFromDatabase (line 151) | @Override
    method refreshTimeModeState (line 224) | private void refreshTimeModeState() {
    method refreshVideoModeState (line 234) | private void refreshVideoModeState() {
    method saveToDatabase (line 242) | @Override
    method onRequestPermissionsResult (line 293) | @Override
    method onActivityResult (line 298) | @Override

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutSlideFragment.java
  class WorkoutSlideFragment (line 63) | public class WorkoutSlideFragment extends Fragment {
    type WORKOUT_STATE (line 64) | private enum WORKOUT_STATE {INIT, PREPARE, START, BREAK, FINISH}
    method onCreateView (line 96) | public View onCreateView(@NonNull LayoutInflater inflater,
    method onResume (line 183) | @Override
    method onPause (line 188) | @Override
    method initWorkout (line 196) | private void initWorkout() {
    method nextWorkoutState (line 206) | private void nextWorkoutState() {
    method nextWorkout (line 233) | private void nextWorkout() {
    method prepareWorkout (line 322) | private void prepareWorkout() {
    method startWorkout (line 347) | private void startWorkout() {
    method breakWorkout (line 375) | private void breakWorkout() {
    method onFinishWorkoutItem (line 396) | private void onFinishWorkoutItem() {
    method onFinishSession (line 406) | private void onFinishSession() {
    method showWorkoutOverview (line 416) | private void showWorkoutOverview() {
    method hideWorkoutOverview (line 438) | private void hideWorkoutOverview() {
    class OverviewWorkoutItemEntry (line 443) | private class OverviewWorkoutItemEntry extends TableRow {
      method OverviewWorkoutItemEntry (line 448) | public OverviewWorkoutItemEntry(Context context, WorkoutItem workout...
      method setHighlight (line 476) | public void setHighlight() {
    method prepareCountdownTimer (line 482) | private void prepareCountdownTimer(int sec) {
    method pauseCountdownTimer (line 492) | private void pauseCountdownTimer() {
    method resumeCountdownTimer (line 501) | private void resumeCountdownTimer() {
    method activateCountdownTimer (line 507) | private void activateCountdownTimer(int sec) {

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutsAdapter.java
  class WorkoutsAdapter (line 43) | public class WorkoutsAdapter extends GenericAdapter<WorkoutsAdapter.View...
    method WorkoutsAdapter (line 47) | public WorkoutsAdapter(Context aContext, List<WorkoutItem> workoutItem...
    method onCreateViewHolder (line 53) | @Override
    method onBindViewHolder (line 62) | @Override
    method getItemId (line 117) | @Override
    method getItemCount (line 122) | @Override
    class ViewHolder (line 127) | static class ViewHolder extends GenericAdapter.ViewHolder {
      method ViewHolder (line 135) | public ViewHolder(@NonNull View itemView) {

FILE: app/src/main/java/com/health/openworkout/gui/workout/WorkoutsDatabaseAdapter.java
  class WorkoutsDatabaseAdapter (line 44) | public class WorkoutsDatabaseAdapter extends RecyclerView.Adapter<Workou...
    method WorkoutsDatabaseAdapter (line 49) | public WorkoutsDatabaseAdapter(Context aContext, List<WorkoutItem> wor...
    method setOnItemClickListener (line 54) | public void setOnItemClickListener(GenericAdapter.OnGenericClickListen...
    method onCreateViewHolder (line 58) | @Override
    method onBindViewHolder (line 67) | @Override
    method getItemId (line 100) | @Override
    method getItemCount (line 105) | @Override
    class ViewHolder (line 110) | static class ViewHolder extends RecyclerView.ViewHolder {
      method ViewHolder (line 116) | public ViewHolder(@NonNull View itemView) {
Condensed preview — 215 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (722K chars).
[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "chars": 575,
    "preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n---\n\n**Describe the bu"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE/publish_training.md",
    "chars": 314,
    "preview": "---\nname: Publish training\nabout: Publish your training on GitHub to share it with the community\ntitle: ''\nlabels: ''\nas"
  },
  {
    "path": ".github/workflows/ci.yml",
    "chars": 1390,
    "preview": "# This is a basic workflow to help you get started with Actions\n\nname: CI\n\n# Controls when the workflow will run\non:\n  #"
  },
  {
    "path": ".gitignore",
    "chars": 1628,
    "preview": "# Built application files\n*.apk\n*.aar\n*.ap_\n*.aab\n\n# Files for the ART/Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Ge"
  },
  {
    "path": "CREDITS",
    "chars": 1427,
    "preview": "openWorkout uses open source components. You can find the source code of their open source projects along with license i"
  },
  {
    "path": "Gemfile",
    "chars": 261,
    "preview": "# Autogenerated by fastlane\n#\n# Ensure this file is checked in to source control!\n\nsource \"https://rubygems.org\"\n\ngem 'f"
  },
  {
    "path": "LICENSE",
    "chars": 35122,
    "preview": "GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation,"
  },
  {
    "path": "README.md",
    "chars": 3176,
    "preview": "<img align=\"left\" src=\"https://github.com/oliexdev/openWorkout/blob/master/fastlane/metadata/android/en-US/images/icon.p"
  },
  {
    "path": "app/.gitignore",
    "chars": 7,
    "preview": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "chars": 5577,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/proguard-rules.pro",
    "chars": 805,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "app/schemas/com.health.openworkout.core.database.AppDatabase/1.json",
    "chars": 7764,
    "preview": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 1,\n    \"identityHash\": \"452b47f7dbfdc7a2311dc46aa5f95066\",\n    \"e"
  },
  {
    "path": "app/schemas/com.health.openworkout.core.database.AppDatabase/2.json",
    "chars": 7965,
    "preview": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 2,\n    \"identityHash\": \"007a41b5201e4b1e5a62195c5ba4415c\",\n    \"e"
  },
  {
    "path": "app/src/fdroid/java/com/health/openworkout/core/utils/PlayStoreUtils.java",
    "chars": 1591,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "chars": 2451,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/java/com/health/openworkout/MainActivity.java",
    "chars": 4673,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/Application.java",
    "chars": 2022,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/OpenWorkout.java",
    "chars": 9170,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/alarm/AlarmEntry.java",
    "chars": 2798,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/alarm/AlarmEntryReader.java",
    "chars": 3449,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/alarm/AlarmHandler.java",
    "chars": 5720,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/alarm/ReminderBootReceiver.java",
    "chars": 1561,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/database/AppDatabase.java",
    "chars": 2038,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/database/TrainingPlanDAO.java",
    "chars": 1414,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/database/UserDAO.java",
    "chars": 1277,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/database/WorkoutItemDAO.java",
    "chars": 1806,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/database/WorkoutSessionDAO.java",
    "chars": 1624,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/datatypes/GitHubFile.java",
    "chars": 2639,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/datatypes/TrainingPlan.java",
    "chars": 4950,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/datatypes/User.java",
    "chars": 1594,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/datatypes/WorkoutItem.java",
    "chars": 6311,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/datatypes/WorkoutSession.java",
    "chars": 4199,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/session/AbdominalMuscleSession.java",
    "chars": 5103,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/session/BeginnersSession.java",
    "chars": 4457,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/session/SevenMinutesSession.java",
    "chars": 2161,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/training/AbdominalMuscleTraining.java",
    "chars": 1626,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/training/BeginnersTraining.java",
    "chars": 1583,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/training/SevenMinutesTraining.java",
    "chars": 1425,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/utils/PackageUtils.java",
    "chars": 18057,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/AbdominalCrunch.java",
    "chars": 1230,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/AirSquatBentArms.java",
    "chars": 1270,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/BicycleCrunch.java",
    "chars": 1244,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/BoxJump.java",
    "chars": 1208,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/Burpee.java",
    "chars": 1198,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/CircleCrunch.java",
    "chars": 1238,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/CrossJumps.java",
    "chars": 1194,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/CrossJumpsRotation.java",
    "chars": 1246,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/DonkeyKick.java",
    "chars": 1226,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/HighKnees.java",
    "chars": 1192,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/JumpPushUps.java",
    "chars": 1236,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/JumpingJack.java",
    "chars": 1204,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/Lunge.java",
    "chars": 1164,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/LungeKick.java",
    "chars": 1220,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/MountainClimbers.java",
    "chars": 1234,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/PikeWalk.java",
    "chars": 1214,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/Plank.java",
    "chars": 1164,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/PushUpRotation.java",
    "chars": 1226,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/PushUps.java",
    "chars": 1180,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/QuickSteps.java",
    "chars": 1198,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/RussianTwist.java",
    "chars": 1238,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/SidePlank.java",
    "chars": 1192,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/Squat.java",
    "chars": 1164,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/StepUp.java",
    "chars": 1174,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/TricepsDip.java",
    "chars": 1198,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/WallSit.java",
    "chars": 1180,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/core/workout/WorkoutFactory.java",
    "chars": 2282,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/datatypes/GenericAdapter.java",
    "chars": 8589,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/datatypes/GenericFragment.java",
    "chars": 10767,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/datatypes/GenericSettingsFragment.java",
    "chars": 3136,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/datatypes/TrophyFragment.java",
    "chars": 3074,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/home/HomeFragment.java",
    "chars": 7880,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/preference/MainPreferences.java",
    "chars": 8955,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/preference/ReminderPreferences.java",
    "chars": 3973,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/preference/SoundPreferences.java",
    "chars": 1118,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/preference/TimePreference.java",
    "chars": 2669,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/preference/TimePreferenceDialog.java",
    "chars": 3472,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/session/SessionFragment.java",
    "chars": 10756,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/session/SessionSettingsFragment.java",
    "chars": 3291,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/session/SessionsAdapter.java",
    "chars": 2935,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/training/TrainingDatabaseAdapter.java",
    "chars": 6313,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/training/TrainingFragment.java",
    "chars": 12933,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/training/TrainingSettingsFragment.java",
    "chars": 4957,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/training/TrainingsAdapter.java",
    "chars": 5654,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/training/TrainingsDatabaseFragment.java",
    "chars": 4370,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/utils/FileDialogHelper.java",
    "chars": 7394,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/utils/SoundUtils.java",
    "chars": 4766,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/utils/VideoProvider.java",
    "chars": 2557,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutDatabaseFragment.java",
    "chars": 3290,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutFragment.java",
    "chars": 9253,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutSettingsFragment.java",
    "chars": 12518,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutSlideFragment.java",
    "chars": 25237,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutsAdapter.java",
    "chars": 5351,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/java/com/health/openworkout/gui/workout/WorkoutsDatabaseAdapter.java",
    "chars": 4661,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "app/src/main/res/anim/fab_close.xml",
    "chars": 1235,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/anim/fab_open.xml",
    "chars": 1239,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/anim/fab_rotate_anticlock.xml",
    "chars": 1176,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/anim/fab_rotate_clock.xml",
    "chars": 1176,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/drawable/button_flat_selector.xml",
    "chars": 1080,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n    <!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This"
  },
  {
    "path": "app/src/main/res/drawable/ic_add.xml",
    "chars": 1041,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_avatar.xml",
    "chars": 2985,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_billing.xml",
    "chars": 1173,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_dark_mode.xml",
    "chars": 1171,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_database.xml",
    "chars": 1162,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_debug_logging.xml",
    "chars": 1380,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_delete.xml",
    "chars": 1089,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_download.xml",
    "chars": 1193,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_download_finished.xml",
    "chars": 1226,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_duplicate.xml",
    "chars": 1186,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_edit.xml",
    "chars": 1172,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_export.xml",
    "chars": 1194,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_goal.xml",
    "chars": 3382,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_help.xml",
    "chars": 1295,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_home.xml",
    "chars": 3308,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_import.xml",
    "chars": 1193,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_info.xml",
    "chars": 1193,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_local_export.xml",
    "chars": 1175,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_local_import.xml",
    "chars": 1171,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_next.xml",
    "chars": 1081,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_no_file.xml",
    "chars": 1528,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_openworkout.xml",
    "chars": 2000,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_option.xml",
    "chars": 1207,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_pause.xml",
    "chars": 1225,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_play.xml",
    "chars": 1213,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_preview.xml",
    "chars": 10116,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_reminder.xml",
    "chars": 1466,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_reorder.xml",
    "chars": 1100,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_reset.xml",
    "chars": 1224,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_save.xml",
    "chars": 1174,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_session.xml",
    "chars": 9181,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_session_done.xml",
    "chars": 2434,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_session_undone.xml",
    "chars": 2905,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings.xml",
    "chars": 1673,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_sound.xml",
    "chars": 1096,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_swap.xml",
    "chars": 1094,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_timer.xml",
    "chars": 2758,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_trophy_disabled.xml",
    "chars": 3241,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_trophy_enabled.xml",
    "chars": 3241,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_view.xml",
    "chars": 1256,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_workout_done.xml",
    "chars": 1056,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/ic_workout_select.xml",
    "chars": 1064,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/drawable/rect_disabled.xml",
    "chars": 951,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/drawable/rect_normal.xml",
    "chars": 1219,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/drawable/rect_pressed.xml",
    "chars": 975,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/drawable/ripple_timer.xml",
    "chars": 1007,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "chars": 1719,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/app_bar_main.xml",
    "chars": 1762,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/content_main.xml",
    "chars": 1690,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_home.xml",
    "chars": 6443,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_session.xml",
    "chars": 4033,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_sessionsettings.xml",
    "chars": 3397,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_training.xml",
    "chars": 6535,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_trainingdatabase.xml",
    "chars": 2268,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_trainingsettings.xml",
    "chars": 3399,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_trophy.xml",
    "chars": 3258,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_workout.xml",
    "chars": 5171,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_workoutdatabase.xml",
    "chars": 1633,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_workoutsettings.xml",
    "chars": 9614,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/fragment_workoutslide.xml",
    "chars": 7948,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/item_session.xml",
    "chars": 3844,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/item_training.xml",
    "chars": 5440,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/item_trainingdatabase.xml",
    "chars": 4556,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/item_workout.xml",
    "chars": 6045,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/item_workoutdatabase.xml",
    "chars": 3223,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/nav_header_main.xml",
    "chars": 2087,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout/preference_timepicker.xml",
    "chars": 1025,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout-sw600dp/fragment_home.xml",
    "chars": 7003,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout-sw600dp/fragment_session.xml",
    "chars": 4106,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout-sw600dp/fragment_training.xml",
    "chars": 7093,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout-sw600dp/fragment_trainingdatabase.xml",
    "chars": 2830,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/layout-sw600dp/fragment_workout.xml",
    "chars": 5725,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/menu/activity_main_drawer.xml",
    "chars": 1880,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/menu/fragment_menu.xml",
    "chars": 1390,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/menu/item_menu.xml",
    "chars": 1661,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/menu/main.xml",
    "chars": 1076,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/navigation/mobile_navigation.xml",
    "chars": 9827,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "chars": 1149,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/values/days.xml",
    "chars": 1607,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "chars": 1093,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/values/drawables.xml",
    "chars": 1347,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "chars": 21988,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "chars": 1839,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/values-de/strings.xml",
    "chars": 23952,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/values-v21/styles.xml",
    "chars": 987,
    "preview": "<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This program is free software: you can redistri"
  },
  {
    "path": "app/src/main/res/xml/main_preferences.xml",
    "chars": 1755,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/xml/reminder_preferences.xml",
    "chars": 1899,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/main/res/xml/sound_preferences.xml",
    "chars": 1265,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/playStore/AndroidManifest.xml",
    "chars": 1164,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "app/src/playStore/res/layout/fragment_billing.xml",
    "chars": 3064,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n  ~\n  ~ This pro"
  },
  {
    "path": "build.gradle",
    "chars": 1351,
    "preview": "/*\n * Copyright (C) 2020 olie.xdev <olie.xdev@googlemail.com>\n *\n * This program is free software: you can redistribute "
  },
  {
    "path": "fastlane/Appfile",
    "chars": 211,
    "preview": "json_key_file(\"../fastlane_secrect_keys.json\") # Path to the json secret file - Follow https://docs.fastlane.tools/actio"
  },
  {
    "path": "fastlane/Fastfile",
    "chars": 2075,
    "preview": "# This file contains the fastlane.tools configuration\n# You can find the documentation at https://docs.fastlane.tools\n#\n"
  },
  {
    "path": "fastlane/Pluginfile",
    "chars": 122,
    "preview": "# Autogenerated by fastlane\n#\n# Ensure this file is checked in to source control!\n\ngem 'fastlane-plugin-get_version_name"
  },
  {
    "path": "fastlane/metadata/android/de/full_description.txt",
    "chars": 775,
    "preview": "<i>openWorkout</i> ist ein einfacher Trainingstrainer, bei dem Ihre Privatsphäre an erster Stelle steht.\n\n<b>Wichtig</b>"
  },
  {
    "path": "fastlane/metadata/android/de/short_description.txt",
    "chars": 76,
    "preview": "Einfacher Trainingstrainer, bei dem Ihre Privatsphäre an erster Stelle steht"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/10.txt",
    "chars": 60,
    "preview": "* remove permantenly any advertisements with InApp purchase\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/11.txt",
    "chars": 40,
    "preview": "* new file project structure introduced\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/12.txt",
    "chars": 24,
    "preview": "* fixed some minor bugs\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/13.txt",
    "chars": 255,
    "preview": "* added options for voice indications\n* show time/rep of workout item during preparation time\n* added pause and resume f"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/14.txt",
    "chars": 126,
    "preview": "* fixed correct database path\n* retain workout status on screen rotation\n* added floating action buttons for adding new "
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/15.txt",
    "chars": 102,
    "preview": "* updated libraries and set android target version to 34\n* removed ads from Google Play Store version\n"
  }
]

// ... and 15 more files (download for full content)

About this extraction

This page contains the full source code of the oliexdev/openWorkout GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 215 files (663.4 KB), approximately 168.8k tokens, and a symbol index with 577 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!