Compare commits

..

1 commit

Author SHA1 Message Date
b93d1f2ec0
refactor: profile list 2025-03-11 00:56:13 +08:00
3 changed files with 12 additions and 5 deletions

View file

@ -1,10 +1,10 @@
#include "lpac-convertor.h"
static jobject profile_state_enabled;
static jobject profile_state_disabled;
static jobject profile_class_operational;
static jobject profile_class_provisioning;
static jobject profile_class_testing;
jobject profile_state_enabled;
jobject profile_state_disabled;
jobject profile_class_operational;
jobject profile_class_provisioning;
jobject profile_class_testing;
static jobject bind_static_field(JNIEnv *env, jclass clazz, const char *name, const char *sig) {
jfieldID field = (*env)->GetStaticFieldID(env, clazz, name, sig);

View file

@ -3,6 +3,12 @@
#include <jni.h>
#include <euicc/es10c.h>
jobject profile_state_enabled;
jobject profile_state_disabled;
jobject profile_class_operational;
jobject profile_class_provisioning;
jobject profile_class_testing;
#define PROFILE_STATE_CLASS "net/typeblog/lpac_jni/ProfileState"
#define PROFILE_CLASS_CLASS "net/typeblog/lpac_jni/ProfileClass"

View file

@ -20,6 +20,7 @@ jmethodID string_constructor;
#define LOCAL_PROFILE_INFO_CLASS "net/typeblog/lpac_jni/LocalProfileInfo"
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
jvm = vm;
LPAC_JNI_SETUP_ENV;