Renamed the productKey to apiKey
This commit is contained in:
Родитель
a751078968
Коммит
be25379f7d
|
@ -20,7 +20,7 @@
|
|||
<clobbers target="Shake" />
|
||||
</js-module>
|
||||
|
||||
<preference name="PRODUCT_KEY" default="YourKeyHere"/>
|
||||
<preference name="API_KEY" default="YourKeyHere"/>
|
||||
<preference name="ENABLE_SHAKE" default="true" />
|
||||
<preference name="API_URL" default="https://platform.telerik.com/feedback/api/v1" />
|
||||
|
||||
|
@ -36,8 +36,8 @@
|
|||
<framework src="libsqlite3.dylib" />
|
||||
<framework src="Foundation.framework" weak="true" />
|
||||
|
||||
<config-file target="*-Info.plist" parent="productKey">
|
||||
<string>$PRODUCT_KEY</string>
|
||||
<config-file target="*-Info.plist" parent="apiKey">
|
||||
<string>$API_KEY</string>
|
||||
</config-file>
|
||||
<config-file target="*-Info.plist" parent="apiUrl">
|
||||
<string>$API_URL</string>
|
||||
|
|
|
@ -45,17 +45,17 @@ var cordova = require('cordova'),
|
|||
|
||||
window.addEventListener('deviceready', function () {
|
||||
cordova.exec(function(data) {
|
||||
if(data.productKey !== "YourKeyHere"){
|
||||
if(data.apiKey !== "YourKeyHere"){
|
||||
var feedbackOptions = {
|
||||
enableShake: data.enableShake,
|
||||
apiUrl: data.apiUrl
|
||||
};
|
||||
feedback.initialize(data.productKey, feedbackOptions);
|
||||
feedback.initialize(data.apiKey, feedbackOptions);
|
||||
}
|
||||
}, function(err) {
|
||||
window.data = err;
|
||||
console.log('Unable to read required plugin variables: ' + err);
|
||||
}, 'AppFeedback', 'GetVariables', [ 'productKey', 'apiUrl', 'enableShake' ]);
|
||||
}, 'AppFeedback', 'GetVariables', [ 'apiKey', 'apiUrl', 'enableShake' ]);
|
||||
|
||||
}, true);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче