List Test:
Map Human(name=Stefan, age=12)
Map Human(name=Amy, age=1)
Filter Stefan
Filter Amy
[Stefan]
# SERVER_KEY can be found under Overview -> Settings -> Cloud Messaging: ServerKey | |
curl https://fcm.googleapis.com/fcm/send -X POST --header "Authorization: key=SERVER_KEY" --Header "Content-Type: application/json" -d ' | |
{ | |
"to" : "FCM_TOKEN" | |
"data" : { | |
# Some Data | |
} | |
}' |
private const val ROUTER_STATES_KEY = "STATE" | |
/** | |
* This is the base implementation of a [Controller] which works hand in hand with the [BottomNavigationView]. | |
* | |
* It is designed to work like that: | |
* * [Textual explanation](https://i.imgur.com/EqqQyOY.png) | |
* * [Visual explanation](https://i.imgur.com/FDb6EGU.png) | |
* | |
* In other words. It should be behave exactly like the [iOS TabBar](http://apple.co/2y6XIrL) |
import com.novoda.gradle.release.PublishExtension | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath("com.novoda:bintray-release:0.8.0") | |
} | |
} |
List Test:
Map Human(name=Stefan, age=12)
Map Human(name=Amy, age=1)
Filter Stefan
Filter Amy
[Stefan]
FROM fedora:27 | |
RUN dnf -y install java-1.8.0-openjdk | |
RUN dnf -y install java-1.8.0-openjdk-devel | |
RUN dnf -y install git | |
RUN dnf -y install ncurses-compat-libs | |
RUN git clone https://github.com/JetBrains/kotlin-native.git source | |
WORKDIR "source" | |
RUN ./gradlew dependencies:update --no-daemon -i |
open class TestingTask : DefaultTask() { | |
@InputFiles | |
var inputDirs = mutableListOf<Task>() | |
@OutputDirectory | |
var out: File? = null | |
@TaskAction | |
fun createOutputDir() { |
FROM golang:1.11.5-alpine3.8 | |
WORKDIR /go/src/app | |
VOLUME WORKDIR | |
CMD ["go", "test"] |
class FrameworkPlugin : Plugin<Project> { | |
override fun apply(project: Project): Unit = with(project) { | |
val zipFramework = tasks.register("zipFatFramework", Zip::class.java) { | |
it.dependsOn(tasks.named("releaseFatFramework")) | |
it.from("$buildDir/fat-framework") | |
it.archiveFileName.set("SomeFramework.framework.zip") | |
it.destinationDirectory.set(file("$buildDir/fat-framework-zip")) | |
} |