Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sys1yagi/alarm-manager-simplify
Alarm Manager Simplify is a code generation library to simplify the code for AlarmManager on Android.
https://github.com/sys1yagi/alarm-manager-simplify
Last synced: 14 days ago
JSON representation
Alarm Manager Simplify is a code generation library to simplify the code for AlarmManager on Android.
- Host: GitHub
- URL: https://github.com/sys1yagi/alarm-manager-simplify
- Owner: sys1yagi
- License: mit
- Created: 2016-01-24T05:37:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-01T15:02:10.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T14:51:48.011Z (7 months ago)
- Language: Java
- Homepage:
- Size: 2.03 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alarm Manager Simplify
[![Circle CI](https://circleci.com/gh/sys1yagi/alarm-manager-simplify.svg?style=svg)](https://circleci.com/gh/sys1yagi/alarm-manager-simplify)
Alarm Manager Simplify is a code generation library to simplify the code for AlarmManager on Android.
Handling of AlarmManager's complicated. PendingIntent, WakefulBroadcastReceiver, IntentService...
## Architecture
## How to use
### Implement AlarmProcessor and add annotation
```java
@Simplify("SimpleAction")
public class SimpleActionProcessor implements AlarmProcessor {
@Override
public void process(Context context, Intent intent) {
Log.d("SimpleAction", "SimpleAction do");
}
}
```### Add to AndroidManifest.xml
```xml
```
### Schedule alarm.
Set up a alarm using generated Scheduler.
```java
SimpleActionProcessorScheduler.scheduleRtcWakeup(context, 1000);
```### Installation
This library is distributed by [JitPack](https://jitpack.io/). Add dependencies your build.gradle
```
apt 'com.github.sys1yagi.alarm-manager-simplify:processor:0.3.1'
compile 'com.github.sys1yagi.alarm-manager-simplify:library:0.3.1'
```## Development
__Show version__
```
$ ./gradlew version
```__Bump version__
```
$ ./gradlew bumpMajor
$ ./gradlew bumpMinor
$ ./gradlew bumpPatch
```__Generate README__
```
$ ./gradlew genReadMe
```