get app info

This commit is contained in:
iddoeldor 2019-03-25 15:42:57 +02:00 committed by GitHub
parent 08a4df5b51
commit 5d120c0834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ function dictFromNSDictionary(nsDict) {
var value = nsDict.objectForKey_(key);
jsDict[key.toString()] = value.toString();
}
return jsDict;
}
@ -45,7 +44,7 @@ function infoLookup(key) {
return null;
}
console.log(JSON.stringify({
console.warn(JSON.stringify({
name: infoLookup("CFBundleName"),
bundleId: ObjC.classes.NSBundle.mainBundle().bundleIdentifier().toString(),
version: infoLookup("CFBundleVersion"),