Commit c79eb0d0 by Fear1ess

4/2

parent 6f830481
......@@ -30,7 +30,22 @@ void collect_app_info(JNIEnv* env, cJSON *json) {
jlong lastUpdateTime = wdGetLongField(env, pkgInfo, "lastUpdateTime", "J");
cJSON_AddNumberToObject(json, "last_update_time", lastUpdateTime);
//
//first install time
jlong firstInstallTime = wdGetLongField(env, pkgInfo, "firstInstallTime", "J");
cJSON_AddNumberToObject(json, "first_install_time", firstInstallTime);
//version code
jint versionCode = wdGetIntField(env, pkgInfo, "versionCode", "I");
cJSON_AddNumberToObject(json, "ver_code", versionCode);
//version name
jobject versionName = wdGetObjectField(env, pkgInfo, "versionCode", "Ljava/lang/String;");
cJSON_AddNumberToObject(json, "ver_code", versionCode);
const char* info = cJSON_Print(json);
// const char* info = cJSON_Print(json);
(*env)->DeleteLocalRef(env, pkgName);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment