Skip to content

Commit

Permalink
add pickpocket methods with launch coroutine builders in LaunchPickpo…
Browse files Browse the repository at this point in the history
…cket.kt (#1)
  • Loading branch information
evilthreads669966 authored Oct 7, 2020
1 parent 3aa653e commit 546a8b2
Show file tree
Hide file tree
Showing 4 changed files with 730 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ allprojects {
2. Add the dependency to your app's build.gradle file
```gradle
dependencies {
implementation 'com.github.evilthreads669966:pickpocket:0.1'
implementation 'com.github.evilthreads669966:pickpocket:0.2'
}
```
3. Use a pickpocket coroutine builder function to retrieve a collection of the data types you want
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/evilthreads/pickpocket/MyService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class MyService: LifecycleBootService(){
calendarProducer(this@MyService).consumeEach { event -> Log.d("PICKPOCKET PRODUCER", event.toString()) }

settingsProducer(this@MyService).consumeEach { Log.d("PICKPOCKET", it.toString()) }

calendarLaunch(this@MyService).forEach { event -> Log.d("PICKPOCKET LAUNCH", event.toString()) }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ import android.net.Uri
import android.os.Build
import android.provider.*
import android.telephony.TelephonyManager
import com.evilthreads.pickpocket.getDeviceNumber
import com.evilthreads.pickpocket.getIpV4
import com.evilthreads.pickpocket.getMmsImage
import com.evilthreads.pickpocket.getMmsText
import com.evilthreads.pickpocket.podos.*
import com.evilthreads.pickpocket.podos.contactfields.ContactEvent
import com.evilthreads.pickpocket.podos.contactfields.InstantMessenger
Expand Down
Loading

0 comments on commit 546a8b2

Please sign in to comment.