Meteor App.configurePlugin 和 Cordova 角落案例
Meteor App.configurePlugin and Cordova corner case
我已经用通常的语法安装了一个 cordova 插件
meteor add cordova:cc.fovea.cordova.purchase@3.10.1
此插件需要我已经完成的配置设置
App.configurePlugin('cordova:cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
而且有效。
现在我想尝试这个的最新版本,因此根据 THIS 我已经安装了一个 tarball
meteor add cordova:cc.fovea.cordova.purchase@https://github.com/j3k0/cordova-plugin-purchase/tarball/2b75e86979b1cc24aaa87ad4c15a77414f70269e
它有效 但是 当我尝试使用 meteor build 构建我的应用程序时出现以下错误
Error while building for mobile platforms: Error running
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cordova-scripts/cordova.sh
Failed to install 'cc.fovea.cordova.purchase':Error: Variable(s) missing: BILLING_KEY
at
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:304:23
at _fulfilled (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
Error: Variable(s) missing: BILLING_KEY
at
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:304:23
at _fulfilled (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
Installing "cc.fovea.cordova.purchase" for android
如您所见,它似乎没有看到我的
的配置设置
App.configurePlugin('cordova:cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
你能找出为什么会出现这个错误吗?
提前致谢。
您应该使用这一行来配置您的构建插件:
App.configurePlugin('cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
不确定它是否会起作用,但它可能会起作用。
我已经用通常的语法安装了一个 cordova 插件
meteor add cordova:cc.fovea.cordova.purchase@3.10.1
此插件需要我已经完成的配置设置
App.configurePlugin('cordova:cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
而且有效。
现在我想尝试这个的最新版本,因此根据 THIS 我已经安装了一个 tarball
meteor add cordova:cc.fovea.cordova.purchase@https://github.com/j3k0/cordova-plugin-purchase/tarball/2b75e86979b1cc24aaa87ad4c15a77414f70269e
它有效 但是 当我尝试使用 meteor build 构建我的应用程序时出现以下错误
Error while building for mobile platforms: Error running
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cordova-scripts/cordova.sh
Failed to install 'cc.fovea.cordova.purchase':Error: Variable(s) missing: BILLING_KEY
at
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:304:23
at _fulfilled (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
Error: Variable(s) missing: BILLING_KEY
at
/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:304:23
at _fulfilled (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/Users/giggioz/.meteor/packages/meteor-tool/.1.1.3.1ui9e5i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
Installing "cc.fovea.cordova.purchase" for android
如您所见,它似乎没有看到我的
的配置设置App.configurePlugin('cordova:cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
你能找出为什么会出现这个错误吗?
提前致谢。
您应该使用这一行来配置您的构建插件:
App.configurePlugin('cc.fovea.cordova.purchase', {
BILLING_KEY : MY_KEY
});
不确定它是否会起作用,但它可能会起作用。