- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
72 lines
2.1 KiB
Java
72 lines
2.1 KiB
Java
package com.ea.nimble.bridge;
|
|
|
|
import com.ea.nimble.Base;
|
|
import com.ea.nimble.Component;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class NimbleCppComponentRegistrar extends Component {
|
|
public static final String COMPONENT_ID = "com.ea.nimble.bridge.NimbleCppComponentRegistrar";
|
|
static boolean m_baseComponentSetupComplete;
|
|
static HashMap<String, Component> m_components = new HashMap<>();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public String getComponentId() {
|
|
return COMPONENT_ID;
|
|
}
|
|
|
|
public static class NimbleCppComponent extends Component {
|
|
private String m_componentId;
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void cleanup();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public String getComponentId() {
|
|
return this.m_componentId;
|
|
}
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void restore();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void resume();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void setup();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void suspend();
|
|
|
|
@Override // com.ea.nimble.Component
|
|
public native void teardown();
|
|
|
|
public NimbleCppComponent(String str) {
|
|
this.m_componentId = str;
|
|
}
|
|
}
|
|
|
|
private static void initialize() {
|
|
Base.registerComponent(new NimbleCppComponentRegistrar(), COMPONENT_ID);
|
|
m_baseComponentSetupComplete = true;
|
|
for (Map.Entry<String, Component> entry : m_components.entrySet()) {
|
|
Base.registerComponent(entry.getValue(), entry.getKey());
|
|
}
|
|
m_components.clear();
|
|
}
|
|
|
|
public static void register(String str) {
|
|
NimbleCppComponent nimbleCppComponent = new NimbleCppComponent(str);
|
|
if (m_baseComponentSetupComplete) {
|
|
Base.registerComponent(nimbleCppComponent, str);
|
|
} else {
|
|
m_components.put(str, nimbleCppComponent);
|
|
}
|
|
}
|
|
|
|
public static String getComponentId(Component component) {
|
|
return component.getComponentId();
|
|
}
|
|
}
|