wizcorp / phonegap-plugin-wizutils Goto Github PK
View Code? Open in Web Editor NEWPhoneGap plugin for general utility functions to access information from the native OS.
License: MIT License
PhoneGap plugin for general utility functions to access information from the native OS.
License: MIT License
A symlink in the CordovaLib subproject of the iOS example project causes the Android build to fail on Windows when Cordova attempts to clone the plugin repo. Here's the console output containing the build error:
Discovered plugin "phonegap-plugin-wizUtils" in config.xml. Adding it to the
project
Fetching plugin "https://github.com/Wizcorp/phonegap-plugin-wizUtils" via git clone
Repository "https://github.com/Wizcorp/phonegap-plugin-wizUtils" checked out
to git ref "master".
Error: EEXIST: file already exists, symlink 'D:\Projects\iap_app\plugins\jp.wizcorp.phonegap.plugin.wizUtilsPlugin\example\ios\CordovaLib\Cordova.framework\Versions\A' -> 'D:\Work\Projects\Walks\App\iap_app\plugins\jp.wizcorp.phonegap.plugin.wizUtilsPlugin\example\ios\CordovaLib\Cordova.framework\Versions\Current'
at Error (native)
at Object.fs.symlinkSync (fs.js:1054:18)
at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:76:10)
at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
at cpdirSyncRecursive (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:73:7)
at G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:180:9
at Array.forEach (native)
at Object._cp (G:\Users\dpa99_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:157:11)
Warning: Command failed: cordova build android --release
Use --force to continue.
[email protected]
[email protected]
[email protected]
[email protected]
Windows 10 Pro x64
Maybe the example projects could be moved to a different repo?
Resetting plugins due to page load.
2014-02-06 11:56:43.946 CM[46248:907] THREAD WARNING: ['WizUtilsPlugin'] took '43.306152' ms. Plugin should use a background thread.
2014-02-06 11:56:43.947 CM[46248:907] Error in error callback: WizUtilsPlugin1836329244 = TypeError: 'undefined' is not a function
2014-02-06 11:56:43.981 CM[46248:907] Finished load of: file:///Users/vhitdevelopers/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/70BCF4A2-A8D6-422A-8577-C422E47D28C9/CapellaMobile.app/www/index.html
I tried to add this plugin to my Cordova application build with Cordova 5.0.0 and my failed with this
error/platforms/android/src/jp/wizcorp/phonegap/plugin/wizUtilsPlugin/WizUtilsPlugin.java:33: error: incompatible types
_webView = webView;
^
required: WebView
found: CordovaWebView
After upgrading to Xcode5 and Phonegap 3.3.0, I'm getting error below,
Plugins/jp.wizcorp.phonegap.plugin.wizUtilsPlugin/WizUtilsPlugin.m:20:12: ARC forbids explicit message send of 'dealloc'
ios and Android work well...
so...
is there any plan to develop in winphone ?
if winphone could be,I think it is more better
your example just like that
wizUtils.getBundleVersion(Function success);
but the true way is like that ?
wizUtils.getBundleVersion(success, error);
function success() { ... }
function error() { ... }
I mean is how to show the "detail message" according to these way
Get App File Name、Get Bundle Version、Get Bundle Display Name、Get Bundle Identifier、Get Device Height、Get Device Width、Get Text、Set Text、Restart
according to this
http://phonegap.com/blog/2015/01/20/ios-64bit-support/
this plugin will build fail by PGB on iOS (build.phonegap.com) for now
Trying to ge this to return as a variable in my script something like
var bundleversion = window.wizUtils.getBundleVersion(function(result){ return result; });
The return is not setting to the "bundleversion" variable but it shows up in console.log
Is the getBundleVersion asynchronous??
issue 1
I use "getText" and "setText" method in Android 4.0.3 and 4.1.1
wizUtils.getText(function(result) { alert("text:" + result); }, function(result) { navigator.notification.alert("error:" + result); } );
wizUtils.setText("mytext", function(result) { alert("the text is:" + result); }, function(result) { alert("error:" + result); } );
in Android,it seem always trigger the "error",the same code in iOS is work well
issue 2
I use "restart" method in Android 4.0.3 and 4.1.1
wizUtils.restart(true)
or
wizUtils.restart(false)
in Android,it will refresh the page (maybe the index.html),but no mater I set true or false,the splashScreen will never show,the same code in iOS is work well
VersionCode for Android and CFBundleVersion for iOS have the same meaning,
so are VersionName for Android and CFBundleShortVersionString for iOS.
I think the function "getBundleVersion" should return VersionCode, not VersionName for android.
Maybe it's better to offer two functions for both 'BundleVersion(versionCode)' and 'BundleShortVersionString(VersionName)'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.