/// /// HybridNitroOtaSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.nitroota import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.NullType import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NitroOta HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroOta. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroOtaSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun checkForUpdates(versionCheckUrl: String): Promise @DoNotStrip @Keep abstract fun downloadZipFromUrl(downloadUrl: String, onProgress: Variant_NullType__received__Double__total__Double_____Unit?, bundleFilePath: Variant_NullType_String?): Promise @DoNotStrip @Keep abstract fun getStoredOtaVersion(): Variant_NullType_String @DoNotStrip @Keep abstract fun getStoredUnzippedPath(): Variant_NullType_String @DoNotStrip @Keep abstract fun reloadApp(): Unit @DoNotStrip @Keep abstract fun scheduleBackgroundOTACheck(versionCheckUrl: String, downloadUrl: Variant_NullType_String?, interval: Double): Unit @DoNotStrip @Keep abstract fun rollbackToPreviousBundle(): Promise @DoNotStrip @Keep abstract fun confirmBundle(): Unit @DoNotStrip @Keep abstract fun getBlacklistedVersions(): Promise @DoNotStrip @Keep abstract fun getRollbackHistory(): Promise @DoNotStrip @Keep abstract fun markCurrentBundleAsBad(reason: String): Promise @DoNotStrip @Keep abstract fun getNotifiedRollbackCount(): Double @DoNotStrip @Keep abstract fun acknowledgeRollbackHistory(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NitroOta]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNitroOtaSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNitroOtaSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNitroOtaSpec" } }