Luno v7.28.0版本的 MD5 值为:08d81b3b88ef7df48c89cb5d56dc11a2

以下内容为反编译后的 LivenessIntroVideoUrlProvider.java 源代码,内容仅作参考


package com.onfido.android.sdk.capture.ui.camera.liveness.intro;

import andhook.lib.HookHelper;
import com.onfido.android.sdk.capture.BuildConfig;
import com.onfido.android.sdk.capture.ui.camera.liveness.intro.error.LivenessIntroVideoIndexEmpty;
import io.reactivex.Observable;
import java.security.SecureRandom;
import java.util.List;
import kotlin.Lazy;
import kotlin.Metadata;
import mdi.sdk.un2;
import mdi.sdk.w32;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\b\u0016\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u000e\u0010\u000fJ\u000e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0016J\u001c\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005H\u0016R\u001d\u0010\r\u001a\u00020\b8B@\u0002X\u0082\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f¨\u0006\u0010"}, d2 = {"Lcom/onfido/android/sdk/capture/ui/camera/liveness/intro/LivenessIntroVideoUrlProvider;", "", "Lio/reactivex/Observable;", "", "getIndexUrl", "", "videoUrlsList", "getVideoUrl", "Ljava/security/SecureRandom;", "random$delegate", "Lkotlin/Lazy;", "getRandom", "()Ljava/security/SecureRandom;", "random", HookHelper.constructorName, "()V", "onfido-capture-sdk-core_release"}, k = 1, mv = {1, 4, 0})
public class LivenessIntroVideoUrlProvider {

    private final Lazy random;

    public LivenessIntroVideoUrlProvider() {
        Lazy b;
        b = un2.b(LivenessIntroVideoUrlProvider$random$2.INSTANCE);
        this.random = b;
    }

    private final SecureRandom getRandom() {
        return (SecureRandom) this.random.getValue();
    }

    public Observable<String> getIndexUrl() {
        Observable<String> just = Observable.just("https://assets.onfido.com/mobile-sdk-assets/android/v2/index.json");
        w32.g(just, "Observable.just(BuildCon…K_ASSETS_INDEX_FILE_NAME)");
        return just;
    }

    public Observable<String> getVideoUrl(List<String> videoUrlsList) {
        Observable<String> just;
        String str;
        w32.h(videoUrlsList, "videoUrlsList");
        if (videoUrlsList.isEmpty()) {
            just = Observable.error(new LivenessIntroVideoIndexEmpty());
            str = "Observable.error(LivenessIntroVideoIndexEmpty())";
        } else {
            just = Observable.just(BuildConfig.SDK_ASSETS_REMOTE_FOLDER + videoUrlsList.get(getRandom().nextInt(videoUrlsList.size())));
            str = "Observable.just(BuildCon…EMOTE_FOLDER + videoPath)";
        }
        w32.g(just, str);
        return just;
    }
}