CrackMe.apk
Download file
package com.facebook.react.viewmanagers;
import android.view.View;
import com.facebook.react.bridge.ColorPropConverter;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
import com.facebook.react.uimanager.BaseViewManagerInterface;
import com.facebook.react.uimanager.ViewProps;
import com.facebook.react.viewmanagers.AndroidSwitchManagerInterface;
public class AndroidSwitchManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & AndroidSwitchManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
public AndroidSwitchManagerDelegate(U u) {
super(u);
}
public void setProperty(T t, String str, Object obj) {
str.hashCode();
boolean z = true;
boolean z2 = false;
char c = 65535;
switch (str.hashCode()) {
case -1742453971:
if (str.equals("thumbColor")) {
c = 0;
break;
}
break;
case -1609594047:
if (str.equals(ViewProps.ENABLED)) {
c = 1;
break;
}
break;
case -287374307:
if (str.equals("trackTintColor")) {
c = 2;
break;
}
break;
case 3551:
if (str.equals("on")) {
c = 3;
break;
}
break;
case 111972721:
if (str.equals("value")) {
c = 4;
break;
}
break;
case 270940796:
if (str.equals("disabled")) {
c = 5;
break;
}
break;
case 1084662482:
if (str.equals("trackColorForFalse")) {
c = 6;
break;
}
break;
case 1912319986:
if (str.equals("thumbTintColor")) {
c = 7;
break;
}
break;
case 2113632767:
if (str.equals("trackColorForTrue")) {
c = 8;
break;
}
break;
}
switch (c) {
case 0:
((AndroidSwitchManagerInterface) this.mViewManager).setThumbColor(t, ColorPropConverter.getColor(obj, t.getContext()));
return;
case 1:
AndroidSwitchManagerInterface androidSwitchManagerInterface = (AndroidSwitchManagerInterface) this.mViewManager;
if (obj != null) {
z = ((Boolean) obj).booleanValue();
}
androidSwitchManagerInterface.setEnabled(t, z);
return;
case 2:
((AndroidSwitchManagerInterface) this.mViewManager).setTrackTintColor(t, ColorPropConverter.getColor(obj, t.getContext()));
return;
case 3:
AndroidSwitchManagerInterface androidSwitchManagerInterface2 = (AndroidSwitchManagerInterface) this.mViewManager;
if (obj != null) {
z2 = ((Boolean) obj).booleanValue();
}
androidSwitchManagerInterface2.setOn(t, z2);
return;
case 4:
AndroidSwitchManagerInterface androidSwitchManagerInterface3 = (AndroidSwitchManagerInterface) this.mViewManager;
if (obj != null) {
z2 = ((Boolean) obj).booleanValue();
}
androidSwitchManagerInterface3.setValue(t, z2);
return;
case 5:
AndroidSwitchManagerInterface androidSwitchManagerInterface4 = (AndroidSwitchManagerInterface) this.mViewManager;
if (obj != null) {
z2 = ((Boolean) obj).booleanValue();
}
androidSwitchManagerInterface4.setDisabled(t, z2);
return;
case 6:
((AndroidSwitchManagerInterface) this.mViewManager).setTrackColorForFalse(t, ColorPropConverter.getColor(obj, t.getContext()));
return;
case 7:
((AndroidSwitchManagerInterface) this.mViewManager).setThumbTintColor(t, ColorPropConverter.getColor(obj, t.getContext()));
return;
case 8:
((AndroidSwitchManagerInterface) this.mViewManager).setTrackColorForTrue(t, ColorPropConverter.getColor(obj, t.getContext()));
return;
default:
super.setProperty(t, str, obj);
return;
}
}
public void receiveCommand(T t, String str, ReadableArray readableArray) {
str.hashCode();
if (str.equals("setNativeValue")) {
((AndroidSwitchManagerInterface) this.mViewManager).setNativeValue(t, readableArray.getBoolean(0));
}
}
}
Download file