Skip to content

Instantly share code, notes, and snippets.

View martinbonnin's full-sized avatar
😃

Martin Bonnin martinbonnin

😃
View GitHub Profile

Example1:

apollo {
}

src/main/graphql/schema.json
src/main/graphql/com/example/film/AllFilms.graphql
src/main/graphql/com/example/species/DroidDetailsSpeciesInfo.graphql
src/main/graphql/com/example/DroidDetails.graphql
> Task :app:kaptDebugKotlinAndroid FAILED
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3142)
at java.base/java.lang.Class.getConstructor0(Class.java:3347)
at java.base/java.lang.Class.newInstance(Class.java:571)
at org.jetbrains.kotlin.cli.jvm.plugins.ServiceLoaderLite.loadImplementations(ServiceLoaderLite.kt:51)
at org.jetbrains.kotlin.cli.jvm.plugins.ServiceLoaderLite.loadImplementations(ServiceLoaderLite.kt:44)
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension$loadProcessors$efficientProcessorLoader$1.doLoadProcessors(Kapt3Extension.kt:84)
at org.jetbrains.kotlin.kapt3.base.ProcessorLoader.loadProcessors(ProcessorLoader.kt:45)
> Configure project :
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
* Compiling Kotlin for iOS X64 by default *
// COMMON
expect object GzipEncoder {
fun encode(bytes: ByteArray): ByteArray
}
class GzipCompressFeature {
companion object Feature : HttpClientFeature<Unit, GzipCompressFeature> {
override val key: AttributeKey<GzipCompressFeature> = AttributeKey("GzipCompress")
package com.apollographql.apollo.gradle
import com.android.build.gradle.AppExtension
import com.android.build.gradle.LibraryExtension
import com.android.build.gradle.api.BaseVariant
import com.android.build.gradle.internal.utils.toImmutableList
import com.apollographql.apollo.compiler.GraphQLCompiler
import com.google.common.base.Joiner
import com.moowork.gradle.node.NodeExtension
#!/usr/bin/env kscript
import okhttp3.OkHttpClient
import okhttp3.Request
import java.util.logging.Level
import java.util.logging.Logger
//DEPS com.squareup.okhttp3:okhttp:3.14.1
object Versions {
open class TypeBase<T>
inline fun <reified T> typeInfo(): String {
val base = object : TypeBase<T>() {}
val superType = base::class.java.genericSuperclass!!
val reifiedType = (superType as ParameterizedType).actualTypeArguments.first()!!
return reifiedType.toString()
}
doc["desserts"].put(dessert, iso8601DateFormat.format(Date()))
FirebaseFirestore.getInstance().collection("flash-droid")
.document(user.uid)
.set(doc)
// This is called from onUpdateFrame if a new augmentedImage has been detected
val view = getRenderableView(augmentedImage.name)
val completableFuture = ViewRenderable.builder().setView(context, view).build().handle { renderable, throwable ->
if (throwable == null) {
val base = AnchorNode()
base.anchor = augmentedImage.createAnchor(augmentedImage.centerPose)
// Since base is anchored, we need another node to
val node = Node()
node.setParent(base)
#standardSQL
SELECT * FROM (
SELECT
FORMAT_TIMESTAMP("%H:%M:%E3S", TIMESTAMP_MILLIS(event.data.created_ts)) as created_ts,
"videoStart" as event_name,
event.data.info.visitor.id as visitor_id,
event.data.screen.id as screen_id,
event.data.info.app.type,
event.data.info.app.version,
event.data.screen.id IN (