diff --git a/README.md b/README.md index 0d15fa1..be85b3f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Simply add the dependency to the jcvd library in the build.gradle. ``` dependencies { // ... - compile 'com.sousoum:jcvd:1.0.0' + compile 'com.sousoum:jcvd:1.1.0' } ``` @@ -54,7 +54,7 @@ Then add the dependency to the jcvd library in the build.gradle. ``` dependencies { // ... - compile 'com.github.djavan-bertrand:JCVD:1.0.0' + compile 'com.github.djavan-bertrand:JCVD:1.1.0' } ``` @@ -137,7 +137,15 @@ StorableTimeFence.inDailyInterval((TimeZone)timeZone, (long)startTimeOfDayMillis ``` or ``` -StorableTimeFence.inMondayInterval((TimeZone)timeZone, (long)startTimeOfDayMillis, (long)stopTimeOfDayMillis); +StorableTimeFence.inIntervalOfDay(TimeFence.DAY_OF_WEEK_MONDAY, (TimeZone)timeZone, (long)startTimeOfDayMillis, (long)stopTimeOfDayMillis); +``` +or +``` +StorableTimeFence.inTimeInterval(TimeFence.TIME_INTERVAL_WEEKDAY); +``` +or +``` +StorableTimeFence.aroundTimeInstant(TimeFence.TIME_INSTANT_SUNRISE, (long)startOffsetMillis, (long)stopOffsetMillis); ``` #### Headphone fence @@ -213,3 +221,4 @@ You can also [open an issue on Github](https://github.com/djavan-bertrand/JCVD/i Here is a list of known TODOs. If you think an improvement is missing, feel free to [open an issue](https://github.com/djavan-bertrand/JCVD/issues/new). * Improve demo +* Support BeaconFence diff --git a/example/build.gradle b/example/build.gradle index a5da3a8..a5337e4 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.sousoum.jcvdexample" minSdkVersion 14 targetSdkVersion 26 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "1.1.0" } buildTypes { release { diff --git a/gradle.properties b/gradle.properties index 13a2359..bc55667 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,5 +17,5 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true group=com.sousoum -version=1.0.0 -releaseTag=1.0.0 \ No newline at end of file +version=1.1.0 +releaseTag=1.1.0 \ No newline at end of file diff --git a/jcvd/build.gradle b/jcvd/build.gradle index 2297715..1cc9859 100644 --- a/jcvd/build.gradle +++ b/jcvd/build.gradle @@ -8,8 +8,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 26 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "1.1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes {