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