mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-04 11:38:54 +01:00
42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.amazon.dee.app.elements;
|
|
|
|
import android.os.Bundle;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.common.base.Preconditions;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes3.dex */
|
|
public class ReactFeatureBuilder {
|
|
|
|
@Nullable
|
|
String appName;
|
|
|
|
@Nullable
|
|
String instanceId;
|
|
|
|
@Nullable
|
|
Bundle launchOptions;
|
|
|
|
public ReactFeature build() {
|
|
Preconditions.checkNotNull(this.instanceId, "Instance ID cannot be null");
|
|
Preconditions.checkArgument(!TextUtils.isEmpty(this.appName), "AppName cannot be empty.");
|
|
return new ReactFeatureImpl(this.instanceId, this.appName, this.launchOptions);
|
|
}
|
|
|
|
public ReactFeatureBuilder withAppName(@NonNull String str) {
|
|
this.appName = str;
|
|
return this;
|
|
}
|
|
|
|
public ReactFeatureBuilder withInstanceId(@NonNull String str) {
|
|
this.instanceId = str;
|
|
return this;
|
|
}
|
|
|
|
public ReactFeatureBuilder withLaunchOptions(@NonNull Bundle bundle) {
|
|
this.launchOptions = bundle;
|
|
return this;
|
|
}
|
|
}
|