Timer Alarm
48
.gitignore
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
.DS_Store
|
||||
|
||||
# Built application files
|
||||
*.apk
|
||||
*.ap_
|
||||
|
||||
# Files for the Dalvik VM
|
||||
*.dex
|
||||
|
||||
# Java class files
|
||||
*.class
|
||||
|
||||
# Generated files
|
||||
bin/
|
||||
gen/
|
||||
out/
|
||||
build/
|
||||
.gradle/
|
||||
|
||||
# Gradle files
|
||||
.gradle/
|
||||
.idea
|
||||
build/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
keystore.properties
|
||||
|
||||
# Proguard folder generated by Eclipse
|
||||
proguard/
|
||||
|
||||
# Log Files
|
||||
*.log
|
||||
|
||||
# Idea project files
|
||||
*.iml
|
||||
.idea
|
||||
*.iws
|
||||
|
||||
# Eclipse project files
|
||||
default.properties
|
||||
.metadata
|
||||
.settings
|
||||
.project
|
||||
.classpath
|
||||
|
||||
# Junk
|
||||
.DS_Store
|
238
README.md
@ -0,0 +1,238 @@
|
||||
LolliPin [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-LolliPin-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1425)
|
||||
================
|
||||
|
||||
A Lollipop material design styled android pincode library (API 14+)
|
||||
|
||||
|
||||
To include in your project, add this to your build.gradle file:
|
||||
|
||||
```
|
||||
//Lollipin
|
||||
compile ('com.github.orangegangsters:lollipin:2.0.0@aar') {
|
||||
transitive = true
|
||||
}
|
||||
```
|
||||
Starting from version 2.1.0 we will have a different package name:
|
||||
|
||||
```
|
||||
//Lollipin
|
||||
compile ('com.github.omadahealth:lollipin:2.1.0@aar') {
|
||||
transitive = true
|
||||
}
|
||||
```
|
||||
|
||||
![Demo](app/src/main/res/raw/github_gif.gif) ![Demo](app/src/main/res/raw/github_gif2.gif)
|
||||
|
||||
========
|
||||
### By
|
||||
Developers:
|
||||
[Olivier Goutay](https://github.com/olivierg13) and [Stoyan Dimitrov](https://github.com/StoyanD) and [Dae Park](https://github.com/daespark)
|
||||
|
||||
Contributors:
|
||||
[Art Beatte IV](https://github.com/abeatte), [Alex Morgan](https://github.com/axemorgan)
|
||||
|
||||
Designers:
|
||||
[Yassine Bentaieb](http://yassinebentaieb.com/)
|
||||
|
||||
========
|
||||
### Security
|
||||
|
||||
##### Password protection
|
||||
The password itself is not saved, only its hash using the SHA-1 algorithm.
|
||||
This hash is then saved on the SharedPreferences, allowing to verify that the user entered the right PinCode,
|
||||
without giving the possibility to retrieve it.
|
||||
|
||||
##### Introducing Fingerprint
|
||||
Once the user has enabled the password, he can also use his fingerprint scanner (using Google Api, not Samsung)
|
||||
to unlock his device.
|
||||
|
||||
========
|
||||
### Usage
|
||||
|
||||
If you want an example on how to use it, you can find an example app in this repo.
|
||||
|
||||
========
|
||||
#### Preparing dependencies
|
||||
|
||||
We are using a custom version of RippleView that contains a RippleAnimationListener.
|
||||
In order to be able to fetch this dependency, you need to add these lines into your main build.gradle file:
|
||||
```
|
||||
allprojects {
|
||||
repositories {
|
||||
maven{
|
||||
url "https://github.com/omadahealth/omada-nexus/raw/master/release"
|
||||
}
|
||||
jcenter()
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
========
|
||||
#### Overriding the AppLockActivity
|
||||
|
||||
In order to use the "Forgot" system, we let you extend the AppLockActivity class to provide your own way of handling the user behaviour in this case (logout, delete datas etc...)
|
||||
|
||||
```
|
||||
public class CustomPinActivity extends AppLockActivity {
|
||||
@Override
|
||||
public void showForgotDialog() {
|
||||
//Launch your popup or anything you want here
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
========
|
||||
#### Init
|
||||
|
||||
Advised to be done by extending the Application, but can be done elsewhere. The method below provides a way to enable or disable the PinCode system:
|
||||
|
||||
========
|
||||
##### Enabling
|
||||
|
||||
```
|
||||
LockManager<CustomPinActivity> lockManager = LockManager.getInstance();
|
||||
lockManager.enableAppLock(this, CustomPinActivity.class);
|
||||
```
|
||||
Once enabled, you must extend "PinActivity" for every Activity you wish to protect.
|
||||
|
||||
========
|
||||
##### Disabling
|
||||
|
||||
```
|
||||
LockManager<CustomPinActivity> lockManager = LockManager.getInstance();
|
||||
lockManager.disableAppLock();
|
||||
```
|
||||
|
||||
========
|
||||
#### Set up the PinCode
|
||||
|
||||
Whenever you want the user to set up his pin code, you need to request:
|
||||
|
||||
```
|
||||
Intent intent = new Intent(MainActivity.this, CustomPinActivity.class);
|
||||
intent.putExtra(AppLock.EXTRA_TYPE, AppLock.ENABLE_PINLOCK);
|
||||
startActivityForResult(intent, REQUEST_CODE_ENABLE);
|
||||
```
|
||||
|
||||
========
|
||||
#### Unlock system
|
||||
|
||||
As soon as you enable the PinCode system, the Unlock screen will appear by itself when the user resume the app after a defined timeout.
|
||||
Please refer to the next section to know how to customize these values.
|
||||
|
||||
========
|
||||
### Customization
|
||||
|
||||
Some features are customizable:
|
||||
|
||||
The unlock timeout:
|
||||
-------------------
|
||||
|
||||
```
|
||||
LockManager<CustomPinActivity> lockManager = LockManager.getInstance();
|
||||
lockManager.getAppLock().setTimeout(10000);
|
||||
```
|
||||
|
||||
The pin length required:
|
||||
-------------------
|
||||
|
||||
```
|
||||
public class CustomPinActivity extends AppLockActivity {
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
@Override
|
||||
public int getPinLength() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
...
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
The logo displayed at the top of the page:
|
||||
-------------------
|
||||
|
||||
```
|
||||
LockManager<CustomPinActivity> lockManager = LockManager.getInstance();
|
||||
lockManager.getAppLock().setLogoId(R.drawable.security_lock);
|
||||
```
|
||||
|
||||
The ignored activities:
|
||||
-------------------
|
||||
For instance you got a login activity that you want to avoid getting the lock screen, you can ignore this activity by doing:
|
||||
|
||||
```
|
||||
LockManager<CustomPinActivity> lockManager = LockManager.getInstance();
|
||||
lockManager.getAppLock().addIgnoredActivity(NotLockedActivity.class);
|
||||
```
|
||||
|
||||
The AppLockActivity Layout:
|
||||
-------------------
|
||||
By providing a custom layout to getContentView() you can alter how your AppLockActivity looks.
|
||||
However, you must include 4 required elements:
|
||||
- TextView with an id of pin_code_step_textview
|
||||
- TextView with an id of pin_code_forgot_textview
|
||||
- PinCodeRoundView with an id of pin_code_round_view
|
||||
- KeyboardView with an id of pin_code_keyboard_view
|
||||
|
||||
```
|
||||
@Override
|
||||
public int getContentView() {
|
||||
return R.layout.activity_pin;
|
||||
}
|
||||
```
|
||||
|
||||
The Pin Dots:
|
||||
-------------------
|
||||
By supplying alternate drawable resources for app:lp_empty_pin_dot and app:lp_full_pin_dot you can custimize how it looks.
|
||||
|
||||
```
|
||||
<com.github.orangegangsters.lollipin.lib.views.PinCodeRoundView
|
||||
android:id="@+id/pin_code_round_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/pin_code_round_top_margin"
|
||||
android:layout_marginBottom="@dimen/pin_code_elements_margin"
|
||||
app:lp_empty_pin_dot="@drawable/pin_empty_dot"
|
||||
app:lp_full_pin_dot="@drawable/pin_full_dot"/>
|
||||
```
|
||||
|
||||
========
|
||||
|
||||
### Credits
|
||||
|
||||
* We used the RippleEffect library from Traex (https://github.com/traex/RippleEffect) to implement the Ripple effect from material design on API 10+
|
||||
* We used the L-dialogs library from lewisjdeane (https://github.com/lewisjdeane/L-Dialogs) to demonstrate how to use a popup for the "forgot" button
|
||||
* We used the Robotium library from RobotiumTech (https://github.com/RobotiumTech/robotium) to run powerful unit and functional testing
|
||||
|
||||
========
|
||||
|
||||
### License
|
||||
|
||||
```
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 OrangeGangsters
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
```
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="lollipin.orangegangsters.github.com.lollipin" >
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<application
|
||||
android:name="com.github.omadahealth.lollipin.CustomApplication"
|
||||
android:allowBackup="true"
|
||||
|
@ -1,31 +1,597 @@
|
||||
package com.github.omadahealth.lollipin;
|
||||
|
||||
//
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import com.github.omadahealth.lollipin.lib.PinCompatActivity;
|
||||
import lollipin.orangegangsters.github.com.lollipin.R;
|
||||
//
|
||||
///**
|
||||
// * Created by callmepeanut on 16-1-14.
|
||||
// */
|
||||
//public class LockedCompatActivity extends PinCompatActivity{
|
||||
//
|
||||
// @Override
|
||||
// protected void onCreate(Bundle savedInstanceState) {
|
||||
// super.onCreate(savedInstanceState);
|
||||
// setContentView(R.layout.activity_compat_locked);
|
||||
// initView();
|
||||
// }
|
||||
//
|
||||
// private void initView() {
|
||||
//// // Toolbar toolbar = (Toolbar) findViewById(R.id.id_toolbar);
|
||||
//// setSupportActionBar(toolbar);
|
||||
////
|
||||
//// toolbar.setTitle("Title");
|
||||
//// toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));
|
||||
//// toolbar.setSubtitle("SubTitle");
|
||||
//// toolbar.setSubtitleTextColor(getResources().getColor(android.R.color.white));
|
||||
//// toolbar.setLogo(R.drawable.ic_launcher);
|
||||
//// toolbar.setNavigationIcon(R.drawable.ic_menu_white_36dp);
|
||||
// }
|
||||
//}
|
||||
|
||||
/**
|
||||
* Created by callmepeanut on 16-1-14.
|
||||
*/
|
||||
public class LockedCompatActivity extends PinCompatActivity{
|
||||
|
||||
|
||||
|
||||
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.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Color;
|
||||
import android.media.MediaPlayer;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.os.Build;
|
||||
import android.os.CountDownTimer;
|
||||
import android.os.SystemClock;
|
||||
import android.os.Vibrator;
|
||||
import android.preference.EditTextPreference;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.RequiresApi;
|
||||
//import android.support.design.widget.NavigationView;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.support.v4.widget.DrawerLayout;
|
||||
import android.support.v7.app.ActionBar;
|
||||
import android.support.v7.app.ActionBarDrawerToggle;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
//import static com.nazlcanozturk46.pomodoro.R.drawable.actionbar_background;
|
||||
|
||||
public class LockedCompatActivity extends PinCompatActivity implements View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
private long timeCountInMilliSeconds = 1 * 60000;
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
|
||||
loadSettings();
|
||||
setTimer();
|
||||
}
|
||||
|
||||
private enum TimerStatus {
|
||||
STARTED,
|
||||
STOPPED,
|
||||
}
|
||||
|
||||
int breakCount = 0;
|
||||
boolean breakOrWork = false;
|
||||
private TimerStatus timerStatus = TimerStatus.STOPPED;
|
||||
private ProgressBar progressBarCircle;
|
||||
private TextView textViewTime;
|
||||
private ImageView imageViewReset;
|
||||
private ImageView imageViewStartStop;
|
||||
private ImageView imageViewTomato, imageViewWork, imageViewBreak;
|
||||
private ImageView imageViewPomodora1, imageViewPomodora2, imageViewPomodora3, imageViewPomodora4;
|
||||
private CountDownTimer countDownTimer;
|
||||
private boolean vibration;
|
||||
private SharedPreferences settings;
|
||||
private Vibrator vibrator;
|
||||
|
||||
//hamburger menu
|
||||
//private DrawerLayout drawerLayout;
|
||||
// private ActionBarDrawerToggle actionBarDrawerToggle;
|
||||
// private NavigationView navigationView;
|
||||
ImageView imageViewPic;
|
||||
TextView textViewName,textViewEmail;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_compat_locked);
|
||||
initView();
|
||||
|
||||
// method call to initialize the views
|
||||
initViews();
|
||||
|
||||
//Set vibrate feature
|
||||
vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
|
||||
|
||||
//Toggle menu
|
||||
// actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.open, R.string.close);
|
||||
//// drawerLayout.setDrawerListener(actionBarDrawerToggle);
|
||||
// actionBarDrawerToggle.syncState();
|
||||
// getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
//Taking Navigation menu settings
|
||||
// navigationClick();
|
||||
|
||||
settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
|
||||
//Taking to feature from the setting menu
|
||||
loadSettings();
|
||||
|
||||
//ActionBar set
|
||||
// ActionBar actionBar = getSupportActionBar();
|
||||
// actionBar.setTitle("Pomodoro");
|
||||
// actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_background));
|
||||
|
||||
// method call to initialize the listeners
|
||||
initListeners();
|
||||
//method call to initialize the settings menu item
|
||||
setTimer();
|
||||
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
Toolbar toolbar = (Toolbar) findViewById(R.id.id_toolbar);
|
||||
setSupportActionBar(toolbar);
|
||||
/**
|
||||
* method to Navigation menu settings
|
||||
*/
|
||||
// public void navigationClick() {
|
||||
// navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
|
||||
// @Override
|
||||
// public boolean onNavigationItemSelected(MenuItem item) {
|
||||
//
|
||||
// if (item.getItemId() == R.id.settings) {
|
||||
// Intent settingsIntent = new Intent(getApplicationContext(), Settings.class);
|
||||
// startActivity(settingsIntent);
|
||||
// } else if (item.getItemId() == R.id.about) {
|
||||
// Intent aboutIntent = new Intent(getApplicationContext(), AboutPomodoro.class);
|
||||
// startActivity(aboutIntent);
|
||||
//
|
||||
// } else if (item.getItemId() == R.id.share) {
|
||||
// Intent shareIntent = new Intent(Intent.ACTION_SEND);
|
||||
// shareIntent.setType("Text/Plain");
|
||||
// String shareBody = "There are many improvements you can experience from successfully implementing the pomodoro technique into your life, making it one of your good habits. Here are some of the improvements you will see;\n" + "\n" +
|
||||
// "Increased productivity.\n" +
|
||||
// "Improved quality and quantity of work.\n" +
|
||||
// "Better time management.\n" +
|
||||
// "Strengthened focus and motivation.\n" +
|
||||
// "The ability to stay fresh throughout the work day.";
|
||||
// String shareSub = "Focus with Pomodoro";
|
||||
// shareIntent.putExtra(Intent.EXTRA_TEXT, shareBody);
|
||||
// shareIntent.putExtra(Intent.EXTRA_SUBJECT, shareSub);
|
||||
// startActivity(Intent.createChooser(shareIntent, "Share Using"));
|
||||
// } else if (item.getItemId() == R.id.account) {
|
||||
// Intent accountIntent = new Intent(getApplicationContext(), Facebook.class);
|
||||
// startActivity(accountIntent);
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
toolbar.setTitle("Title");
|
||||
toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));
|
||||
toolbar.setSubtitle("SubTitle");
|
||||
toolbar.setSubtitleTextColor(getResources().getColor(android.R.color.white));
|
||||
toolbar.setLogo(R.drawable.ic_launcher);
|
||||
toolbar.setNavigationIcon(R.drawable.ic_menu_white_36dp);
|
||||
/**
|
||||
* method to initialize the settings menu item
|
||||
*/
|
||||
private void setTimer() {
|
||||
Long work = Long.valueOf(Integer.parseInt(settings.getString("work_duration", "1")) * 60000);
|
||||
textViewTime.setText(hmsTimeFormatter(work));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to take settings from the setting menu
|
||||
*/
|
||||
private void loadSettings() {
|
||||
vibration = settings.getBoolean("vibration", false);
|
||||
settings.registerOnSharedPreferenceChangeListener(LockedCompatActivity.this);
|
||||
}
|
||||
|
||||
/**
|
||||
* method to initialize the views
|
||||
*/
|
||||
private void initViews() {
|
||||
//drawerLayout = findViewById(R.id.drawerLayout);
|
||||
//navigationView = findViewById(R.id.navigation_view);
|
||||
progressBarCircle = findViewById(R.id.progressBarCircle);
|
||||
textViewTime = findViewById(R.id.textViewTime);
|
||||
imageViewReset = findViewById(R.id.imageViewReset);
|
||||
imageViewStartStop = findViewById(R.id.imageViewStartStop);
|
||||
imageViewTomato = findViewById(R.id.imageViewTomato);
|
||||
imageViewBreak = findViewById(R.id.imageViewBreak);
|
||||
imageViewWork = findViewById(R.id.imageViewWork);
|
||||
}
|
||||
|
||||
/**
|
||||
* method to initialize the click listeners
|
||||
*/
|
||||
private void initListeners() {
|
||||
imageViewReset.setOnClickListener(this);
|
||||
imageViewStartStop.setOnClickListener(this);
|
||||
imageViewTomato.setOnClickListener(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* implemented method to listen clicks
|
||||
*
|
||||
* @param view
|
||||
*/
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.imageViewReset:
|
||||
reset();
|
||||
break;
|
||||
case R.id.imageViewStartStop:
|
||||
workstartStop();
|
||||
break;
|
||||
case R.id.imageViewTomato:
|
||||
visibleButton();
|
||||
workstartStop();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* method to visible start stop icon
|
||||
*/
|
||||
public void visibleButton() {
|
||||
imageViewStartStop.setVisibility(View.VISIBLE);
|
||||
imageViewTomato.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* method to reset count down timer
|
||||
*/
|
||||
private void reset() {
|
||||
breakCount = 0;
|
||||
stopCountDownTimer();
|
||||
//startCountDownTimer();
|
||||
textViewTime.setText(hmsTimeFormatter(timeCountInMilliSeconds));
|
||||
// call to initialize the progress bar values
|
||||
setProgressBarValues();
|
||||
//hiding break and work icon
|
||||
imageViewBreak.setVisibility(View.GONE);
|
||||
imageViewWork.setVisibility(View.GONE);
|
||||
// changing stop icon to start icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_start);
|
||||
// changing the timer status to stopped
|
||||
timerStatus = TimerStatus.STOPPED;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* method to start and stop count down timer
|
||||
*/
|
||||
private void workstartStop() {
|
||||
|
||||
breakOrWork = true;
|
||||
if (timerStatus == TimerStatus.STOPPED) {
|
||||
|
||||
// call to initialize the timer values
|
||||
WorkSetTimerValues();
|
||||
// call to initialize the progress bar values
|
||||
setProgressBarValues();
|
||||
// showing the work icon
|
||||
imageViewWork.setVisibility(View.VISIBLE);
|
||||
// showing the reset icon
|
||||
imageViewReset.setVisibility(View.VISIBLE);
|
||||
// changing play icon to stop icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_pause);
|
||||
// changing the timer status to started
|
||||
timerStatus = TimerStatus.STARTED;
|
||||
// call to start the count down timer
|
||||
startCountDownTimer();
|
||||
|
||||
|
||||
} else {
|
||||
// changing stop icon to start icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_start);
|
||||
// changing the timer status to stopped
|
||||
timerStatus = TimerStatus.STOPPED;
|
||||
stopCountDownTimer();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* method to initialize the values for count down timer work
|
||||
*/
|
||||
private void WorkSetTimerValues() {
|
||||
int time;
|
||||
time = Integer.parseInt(settings.getString("work_duration", "1"));
|
||||
// assigning values after converting to milliseconds
|
||||
timeCountInMilliSeconds = time * 60 * 1000;
|
||||
}
|
||||
|
||||
/**
|
||||
* method to initialize the values for count down timer
|
||||
*/
|
||||
private void BreakSetTimerValues() {
|
||||
int time;
|
||||
|
||||
// fetching value from edit text and type cast to integer
|
||||
time = Integer.parseInt(settings.getString("break_duration", "1"));
|
||||
|
||||
// assigning values after converting to milliseconds
|
||||
timeCountInMilliSeconds = time * 60 * 1000;
|
||||
}
|
||||
|
||||
/**
|
||||
* method to start count down timer
|
||||
*/
|
||||
private void startCountDownTimer() {
|
||||
|
||||
countDownTimer = new CountDownTimer(timeCountInMilliSeconds, 1000) {
|
||||
@Override
|
||||
public void onTick(long millisUntilFinished) {
|
||||
|
||||
textViewTime.setText(hmsTimeFormatter(millisUntilFinished));
|
||||
progressBarCircle.setProgress((int) (millisUntilFinished / 1000));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
//The count check end of the task
|
||||
breakCount++;
|
||||
textViewTime.setText(hmsTimeFormatter(timeCountInMilliSeconds));
|
||||
// call to initialize the progress bar values
|
||||
setProgressBarValues();
|
||||
// hiding the work icon
|
||||
imageViewWork.setVisibility(View.GONE);
|
||||
// hiding the break icon
|
||||
imageViewBreak.setVisibility(View.GONE);
|
||||
// changing stop icon to start icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_start);
|
||||
// changing the timer status to stopped
|
||||
timerStatus = TimerStatus.STOPPED;
|
||||
//Vibration
|
||||
vibration = settings.getBoolean("vibration", true);
|
||||
|
||||
if (vibration) vibrator.vibrate(1000);
|
||||
|
||||
//checking work and break times
|
||||
checkBreakOrWork();
|
||||
}
|
||||
}.start();
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
// scheduleNotification(getNotification("Time is over!!"), timeCountInMilliSeconds);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
* method to set the alarm
|
||||
*
|
||||
* @param notification
|
||||
* @param delay
|
||||
*/
|
||||
// private void scheduleNotification(Notification notification, long delay) {
|
||||
// if (Build.VERSION.SDK_INT < 26) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// Intent notificationIntent = new Intent(this, NotificationPublisher.class);
|
||||
// notificationIntent.putExtra(NotificationPublisher.NOTIFICATION_ID, 1);
|
||||
// notificationIntent.putExtra(NotificationPublisher.NOTIFICATION, notification);
|
||||
// PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
//
|
||||
// long futureInMillis = System.currentTimeMillis() + delay;
|
||||
//
|
||||
// AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
|
||||
// alarmManager.setExact(AlarmManager.RTC_WAKEUP, futureInMillis, pendingIntent);
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* method to creating notification
|
||||
*/
|
||||
@RequiresApi(api = Build.VERSION_CODES.O)
|
||||
private Notification getNotification(String content) {
|
||||
Intent notificationIntent = new Intent(this, MainActivity.class);
|
||||
//notificationIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
//notificationIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
|
||||
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
Notification builder = new Notification.Builder(this, "default")
|
||||
.setContentTitle("Pomodoro")
|
||||
.setContentText(content)
|
||||
.setAutoCancel(true)
|
||||
.setContentIntent(contentIntent)
|
||||
.setVibrate(new long[]{500, 500, 500, 500, 500})
|
||||
.setSmallIcon(R.mipmap.icontomato).getNotification();
|
||||
return builder;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* method check break and work duration
|
||||
*/
|
||||
public void checkBreakOrWork() {
|
||||
if (breakCount != 8) {
|
||||
if (breakOrWork) {
|
||||
breakAlert();
|
||||
// System.out.println("************************ break");
|
||||
} else if (!breakOrWork) {
|
||||
workAlert();
|
||||
// System.out.println("************************ work");
|
||||
} else {
|
||||
Toast.makeText(getApplicationContext(), "Finish", Toast.LENGTH_LONG).show();
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(getApplicationContext(), "Pomodoro is over", Toast.LENGTH_LONG).show();
|
||||
reset();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* method to show alert take a break
|
||||
*/
|
||||
public void breakAlert() {
|
||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(LockedCompatActivity.this);
|
||||
alertDialogBuilder.setMessage("Good job! Would you like to take a break");
|
||||
|
||||
alertDialogBuilder.setPositiveButton("No", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface arg0, int arg1) {
|
||||
workstartStop();
|
||||
}
|
||||
});
|
||||
|
||||
alertDialogBuilder.setNegativeButton("Take a break", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
breakStartStop();
|
||||
}
|
||||
});
|
||||
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
alertDialog.setCanceledOnTouchOutside(false);
|
||||
alertDialog.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* method to show alert take a break
|
||||
*/
|
||||
public void workAlert() {
|
||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(LockedCompatActivity.this);
|
||||
alertDialogBuilder.setMessage("The break is over! Now working time");
|
||||
alertDialogBuilder.setPositiveButton("Continue", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface arg0, int arg1) {
|
||||
workstartStop();
|
||||
}
|
||||
});
|
||||
|
||||
alertDialogBuilder.setNegativeButton("Finish", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
reset();
|
||||
}
|
||||
});
|
||||
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
alertDialog.setCanceledOnTouchOutside(false);
|
||||
alertDialog.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* method to start and stop count down timer break
|
||||
*/
|
||||
private void breakStartStop() {
|
||||
breakOrWork = false;
|
||||
if (timerStatus == TimerStatus.STOPPED) {
|
||||
|
||||
// call to initialize the timer values
|
||||
BreakSetTimerValues();
|
||||
// call to initialize the progress bar values
|
||||
setProgressBarValues();
|
||||
// showing the break icon
|
||||
imageViewBreak.setVisibility(View.VISIBLE);
|
||||
// showing the reset icon
|
||||
imageViewReset.setVisibility(View.VISIBLE);
|
||||
// changing play icon to stop icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_pause);
|
||||
// making edit text not editable
|
||||
// changing the timer status to started
|
||||
timerStatus = TimerStatus.STARTED;
|
||||
// call to start the count down timer
|
||||
startCountDownTimer();
|
||||
|
||||
} else {
|
||||
breakCount = 0;
|
||||
// changing stop icon to start icon
|
||||
imageViewStartStop.setImageResource(R.mipmap.icon_start);
|
||||
// changing the timer status to stopped
|
||||
timerStatus = TimerStatus.STOPPED;
|
||||
stopCountDownTimer();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* method to stop count down timer
|
||||
*/
|
||||
private void stopCountDownTimer() {
|
||||
countDownTimer.cancel();
|
||||
}
|
||||
|
||||
/**
|
||||
* method to set circular progress bar values
|
||||
*/
|
||||
private void setProgressBarValues() {
|
||||
|
||||
progressBarCircle.setMax((int) timeCountInMilliSeconds / 1000);
|
||||
progressBarCircle.setProgress((int) timeCountInMilliSeconds / 1000);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* method to convert millisecond to time format
|
||||
*
|
||||
* @param milliSeconds
|
||||
* @return HH:mm:ss time formatted string
|
||||
*/
|
||||
private String hmsTimeFormatter(long milliSeconds) {
|
||||
|
||||
String hms = String.format("%02d:%02d:%02d",
|
||||
TimeUnit.MILLISECONDS.toHours(milliSeconds),
|
||||
TimeUnit.MILLISECONDS.toMinutes(milliSeconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliSeconds)),
|
||||
TimeUnit.MILLISECONDS.toSeconds(milliSeconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliSeconds)));
|
||||
|
||||
return hms;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
getMenuInflater().inflate(R.menu.menu_main, menu);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* method to get profile pic. and name
|
||||
*/
|
||||
|
||||
|
||||
// @Override
|
||||
// public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// if (actionBarDrawerToggle.onOptionsItemSelected(item)) {
|
||||
// return true;
|
||||
// }
|
||||
// if (item.getItemId() == R.id.action_settings) {
|
||||
// Intent settingsIntent = new Intent(getApplicationContext(), Settings.class);
|
||||
// startActivity(settingsIntent);
|
||||
// return true;
|
||||
// }
|
||||
// if (item.getItemId() == R.id.question) {
|
||||
// Intent questionIntent = new Intent(getApplicationContext(), Questions.class);
|
||||
// startActivity(questionIntent);
|
||||
// return true;
|
||||
// }
|
||||
// return super.onOptionsItemSelected(item);
|
||||
// }
|
||||
}
|
||||
|
8
app/src/main/res/drawable-mdpi/actionbar_background.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#F4511E"
|
||||
android:startColor="#FF7043" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,34 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1" />
|
||||
</vector>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#F4511E"
|
||||
android:startColor="#FF7043" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadiusRatio="2.3"
|
||||
android:shape="ring"
|
||||
android:thickness="20dp"
|
||||
android:useLevel="false">
|
||||
<solid android:color="@color/colorGreen" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadiusRatio="2.3"
|
||||
android:shape="ring"
|
||||
android:thickness="20dp"
|
||||
android:useLevel="true">
|
||||
<solid android:color="#EEEEEE" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector
|
||||
android:height="108dp"
|
||||
android:width="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#26A69A"
|
||||
android:pathData="M0,0h108v108h-108z"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
</vector>
|
9
app/src/main/res/drawable-mdpi/drawable_circle_green.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadiusRatio="2.3"
|
||||
android:shape="ring"
|
||||
android:thickness="20dp"
|
||||
android:useLevel="false">
|
||||
<solid android:color="@color/colorGreen" />
|
||||
|
||||
</shape>
|
9
app/src/main/res/drawable-mdpi/drawable_circle_red.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadiusRatio="2.3"
|
||||
android:shape="ring"
|
||||
android:thickness="20dp"
|
||||
android:useLevel="true">
|
||||
<solid android:color="#EEEEEE" />
|
||||
|
||||
</shape>
|
74
app/src/main/res/drawable-mdpi/ic_launcher_background.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector
|
||||
android:height="108dp"
|
||||
android:width="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#26A69A"
|
||||
android:pathData="M0,0h108v108h-108z"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
|
||||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
|
||||
</vector>
|
34
app/src/main/res/drawable-mdpi/ic_launcher_foreground.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1" />
|
||||
</vector>
|
@ -1,20 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
|
||||
<!--android:orientation="vertical" android:layout_width="match_parent"-->
|
||||
<!--android:layout_height="match_parent">-->
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/id_toolbar"
|
||||
android:layout_height="wrap_content"
|
||||
<!--<android.support.v7.widget.Toolbar-->
|
||||
<!--android:id="@+id/id_toolbar"-->
|
||||
<!--android:layout_height="wrap_content"-->
|
||||
<!--android:layout_width="match_parent"-->
|
||||
<!--android:background="@color/material_blue_500"-->
|
||||
<!--android:minHeight="?attr/actionBarSize"/>-->
|
||||
|
||||
<!--<TextView-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="wrap_content"-->
|
||||
<!--android:padding="@dimen/activity_horizontal_margin"-->
|
||||
<!--android:text="@string/activity_appcompat_message"-->
|
||||
<!--android:textSize="16sp"/>-->
|
||||
|
||||
<!--</LinearLayout>-->
|
||||
|
||||
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.github.omadahealth.lollipin.LockedCompatActivity">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/relativeLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@color/material_blue_500"
|
||||
android:minHeight="?attr/actionBarSize"/>
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorTextSize">
|
||||
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBarCircle"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="300dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="74dp"
|
||||
android:background="@drawable/drawable_circle_green"
|
||||
android:indeterminate="false"
|
||||
android:max="100"
|
||||
android:progress="100"
|
||||
android:progressDrawable="@drawable/drawable_circle_red"
|
||||
android:rotation="-90" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/progressBarCircle"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="120dp"
|
||||
android:text="00:00:00"
|
||||
android:textColor="@color/colorGreen"
|
||||
android:textSize="40sp" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewReset"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignTop="@+id/imageViewStartStop"
|
||||
android:layout_alignEnd="@+id/textViewTime"
|
||||
android:layout_alignRight="@+id/textViewTime"
|
||||
android:src="@mipmap/icon_reset"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewStartStop"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignLeft="@+id/textViewTime"
|
||||
android:layout_alignStart="@+id/textViewTime"
|
||||
android:layout_below="@+id/progressBarCircle"
|
||||
android:layout_marginTop="44dp"
|
||||
android:src="@mipmap/icon_start"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewTomato"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_below="@+id/progressBarCircle"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="36dp"
|
||||
android:src="@mipmap/icontomato" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewBreak"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_alignBottom="@+id/progressBarCircle"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="62dp"
|
||||
app:srcCompat="@mipmap/icon_break"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewWork"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_alignBottom="@+id/progressBarCircle"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="62dp"
|
||||
app:srcCompat="@mipmap/icontomato"
|
||||
android:visibility="gone"/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<!--<android.support.design.widget.NavigationView-->
|
||||
|
||||
<!--android:id="@+id/navigation_view"-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="match_parent"-->
|
||||
<!--android:layout_alignParentEnd="true"-->
|
||||
<!--android:layout_alignParentRight="true"-->
|
||||
<!--android:layout_alignParentTop="true"-->
|
||||
<!--android:layout_gravity="start"-->
|
||||
<!--app:headerLayout="@layout/navigation_header"-->
|
||||
<!--app:menu="@menu/navigation_bar">-->
|
||||
|
||||
<!--</android.support.design.widget.NavigationView>-->
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/activity_horizontal_margin"
|
||||
android:text="@string/activity_appcompat_message"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
</LinearLayout>
|
5
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
5
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/mipmap-hdpi/ic_launcher_background.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher_background.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/about.png
Normal file
After Width: | Height: | Size: 721 B |
BIN
app/src/main/res/mipmap-xhdpi/account.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
app/src/main/res/mipmap-xhdpi/alarm.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
app/src/main/res/mipmap-xhdpi/alarm_clock.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/alarmclock.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/res/mipmap-xhdpi/hamburgermenu.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_break.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_break_b.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_gray_tomato.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_pause.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_question.png
Normal file
After Width: | Height: | Size: 658 B |
BIN
app/src/main/res/mipmap-xhdpi/icon_reset.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_settings.png
Normal file
After Width: | Height: | Size: 711 B |
BIN
app/src/main/res/mipmap-xhdpi/icon_start.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icon_tomato.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/icontomato.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
app/src/main/res/mipmap-xhdpi/navbar.png
Normal file
After Width: | Height: | Size: 141 KiB |
BIN
app/src/main/res/mipmap-xhdpi/pomodoroicon.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
app/src/main/res/mipmap-xhdpi/quesmark.png
Normal file
After Width: | Height: | Size: 705 B |
BIN
app/src/main/res/mipmap-xhdpi/rate.png
Normal file
After Width: | Height: | Size: 701 B |
BIN
app/src/main/res/mipmap-xhdpi/settings.png
Normal file
After Width: | Height: | Size: 860 B |
BIN
app/src/main/res/mipmap-xhdpi/settingss.png
Normal file
After Width: | Height: | Size: 833 B |
BIN
app/src/main/res/mipmap-xhdpi/share.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
app/src/main/res/mipmap-xhdpi/stop.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/tomato.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
app/src/main/res/mipmap-xhdpi/whitecircle.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 16 KiB |
@ -3,4 +3,12 @@
|
||||
<color name="material_blue_500">#009688</color>
|
||||
<color name="material_blue_700">#00796B</color>
|
||||
<color name="material_green_A200">#FD87A9</color>
|
||||
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="colorTextSize">#FFFFFF</color>
|
||||
<color name="colorYellow">#f5fa55</color>
|
||||
<color name="colorGreen">#4caf50</color>
|
||||
<color name="colorRed">#f4511e</color>
|
||||
</resources>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">LolliPin</string>
|
||||
<string name="app_name">Pomodoro</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="activity_not_locked_text">Nothing should happen on this page, here for test purpose</string>
|
||||
@ -11,4 +11,10 @@
|
||||
<string name="activity_dialog_content">Tap \'OK\' to log out, when you log back in you\'ll be able to create a new Pincode.\n\nIf you remember your Pincode, tap \'Cancel\' to go back.</string>
|
||||
<string name="activity_appcompat_message">I am a PinCompatActivity!</string>
|
||||
|
||||
|
||||
<string name="open">Open</string>
|
||||
<string name="close">Close</string>
|
||||
<string name="hint_minute">Minute</string>
|
||||
<string name="settings_timer">Timer</string>
|
||||
<string name="settings_notifications">Notifications</string>
|
||||
</resources>
|
||||
|
@ -20,4 +20,6 @@
|
||||
<item name="colorAccent">@color/material_green_A200</item>
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
|
@ -3,9 +3,10 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.3'
|
||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Mon Apr 17 11:56:01 PDT 2017
|
||||
#Mon Dec 17 14:15:23 CET 2018
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
|
||||
|