Skip to content

Commit

Permalink
new xdk version
Browse files Browse the repository at this point in the history
- new xdk version 3240
- native keyboard initial state fix
  • Loading branch information
giorgiobeggiora committed Apr 28, 2016
1 parent 504530d commit f66b712
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 53 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
!/.jscodehints
!/app.json
!/screenshot.png
!/icon.png
!/icon.png
*.mobileprovision
87 changes: 41 additions & 46 deletions complete-dice-roller.xdk
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{
"project": {
"projectSettingsVersion": "2.0.0",
"projectSettingsVersion": "3.0.0",
"creationData": {
"projectTypeName": "com.intel.xdk.projecttype.jsapp",
"src": "jsapp/template-blank-cordova-project-lite/sample.zip",
"projectGuid": "955de004-cf80-427d-85a4-3d5e0cceea91",
"lastModifiedDate": 1461022459325,
"lastModifiedDate": 1461886483434,
"creationDate": 1451923656421
},
"XDK-app-designer": "false",
"sourceDirectory": "www",
"startFile": "index.html",
"projectFiles": {},
"projectFiles": {
"xdk-publish-meta-data.json": {
"settings": {
"project": {
"XDK-not-deployed": "True"
}
}
}
},
"projectDirectories": {},
"libraries": [],
"serviceMethods": [],
Expand Down Expand Up @@ -162,38 +170,6 @@
}
],
"buildConfigurations": {
"Android-Crosswalk": {
"platform_": "android",
"runtime_": "Crosswalk with Cordova 3.x",
"name_": "Android-Crosswalk",
"preferences_": {
"android-minSdkVersion": "14",
"android-targetSdkVersion": "19",
"android-installLocation": "auto",
"Orientation": "portrait"
},
"isActive_": true,
"appName_": "Complete dice roller",
"appID_": "it.effettoapp.completediceroller",
"appAccess_": {
"mode": "legacy",
"network": [
"*"
],
"intents": [],
"navigation": []
},
"icons_": [],
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"cordovaCLIVersion_": "5.1.1",
"crosswalkVersion_": "15",
"appVersion_": "0.1.0",
"appDescription_": "Dice roller with extended features",
"appAuthor_": "Artigiani del Web",
"appVersionCode_": "1"
},
"Android": {
"platform_": "android",
"runtime_": "Cordova 3.x",
Expand Down Expand Up @@ -301,31 +277,33 @@
],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "sQJLR7a_gUWuJI2RVUUPwA2",
"cordovaCLIVersion_": "5.1.1",
"crosswalkVersion_": "14",
"appVersion_": "0.1.0",
"appVersion_": "0.1.1",
"appDescription_": "Dice roller with extended notation and features",
"appAuthor_": "Artigiani del Web",
"appVersionCode_": "1"
"appVersionCode_": "2",
"crosswalkVersion_": "16"
},
"iOS": {
"platform_": "ios",
"runtime_": "Cordova 3.x",
"name_": "iOS",
"preferences_": {
"ios-target": "6",
"ios-configuration": "adhoc"
"ios-configuration": "adhoc",
"deployment-target": "6"
},
"isActive_": true,
"appName_": "Complete Dice Roller",
"appID_": "it.effettoapp.completediceroller",
"appAccess_": {
"mode": "legacy",
"mode": "whitelist",
"network": [
"*"
],
"intents": [],
"navigation": []
"navigation": [],
"properties": {}
},
"icons_": [
{
Expand Down Expand Up @@ -479,11 +457,21 @@
],
"addlPermissions_": "",
"excludedLibraries_": "",
"iosProvs_": [],
"certificateId_": "",
"iosProvs_": [
{
"relPath": "completediceroller_adhoc.mobileprovision",
"type": "adhoc"
},
{
"relPath": "completediceroller_appstore.mobileprovision",
"type": "production"
}
],
"cordovaCLIVersion_": "5.1.1",
"appAuthor_": "Artigiani del Web",
"crosswalkVersion_": "14",
"appVersion_": "0.1.0",
"appVersion_": "0.1.1",
"appDescription_": "Dice roller with extended notation and features"
},
"Windows8": {
Expand All @@ -498,17 +486,19 @@
"appName_": "complete-dice-roller",
"appID_": "xdk.intel.cordova.template.lite",
"appAccess_": {
"mode": "legacy",
"mode": "whitelist",
"network": [
"*"
],
"intents": [],
"navigation": []
"navigation": [],
"properties": {}
},
"icons_": [],
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"cordovaCLIVersion_": "5.1.1",
"crosswalkVersion_": "14",
"appAuthor_": "Intel XDK",
Expand All @@ -535,6 +525,7 @@
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"appAuthor_": "Intel XDK",
"appVersion_": "0.0.1",
"appDescription_": "Universal init code for Intel XDK and Cordova device ready detection, as well as within browser."
Expand All @@ -559,6 +550,7 @@
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"appAuthor_": "Intel XDK",
"appVersion_": "0.0.1",
"appDescription_": "Universal init code for Intel XDK and Cordova device ready detection, as well as within browser."
Expand All @@ -583,6 +575,7 @@
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"appAuthor_": "Intel XDK",
"appVersion_": "0.0.1",
"appDescription_": "Universal init code for Intel XDK and Cordova device ready detection, as well as within browser."
Expand All @@ -607,6 +600,7 @@
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"appAuthor_": "Intel XDK",
"appVersion_": "0.0.1",
"appDescription_": "Universal init code for Intel XDK and Cordova device ready detection, as well as within browser."
Expand All @@ -629,6 +623,7 @@
"splashes_": [],
"addlPermissions_": "",
"excludedLibraries_": "",
"certificateId_": "",
"appVersion_": "0.0.0.1",
"cordovaCLIVersion_": "5.1.1",
"appAuthor_": "Intel XDK"
Expand Down
12 changes: 10 additions & 2 deletions complete-dice-roller.xdke
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"project": {
"projectSettingsVersion": "2.0.0",
"currentBuildConfiguration": "Android-Crosswalk",
"projectSettingsVersion": "3.0.0",
"currentBuildConfiguration": "Android",
"projectFiles": {},
"projectDirectories": {},
"initialAutoPluginCount": 0
},
"editorTab": {
"currentEditorMode": 0
},
"build-tab": {
"selectedTargets": [
"CORDOVA_ANDROID"
]
}
}
10 changes: 6 additions & 4 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,28 @@ myapp.init = function(){
}

var native_keyboard=localStorage.getItem('native_keyboard');
console.log('A',localStorage.getItem('native_keyboard'));
if(native_keyboard==null){
native_keyboard=true;
native_keyboard=false;
localStorage.setItem('native_keyboard',0);
}else{
native_keyboard=native_keyboard*1===1;
}
console.log('B',localStorage.getItem('native_keyboard'),!native_keyboard);
document.getElementById('formula').readOnly = !native_keyboard;

}

function optionsPageListeners(){
console.log(localStorage.getItem('native_keyboard'));
console.log('C',localStorage.getItem('native_keyboard'));
var native_keyboard=localStorage.getItem('native_keyboard');
if(native_keyboard==null){
native_keyboard=true;
native_keyboard=false;
localStorage.setItem('native_keyboard',0);
}else{
native_keyboard=native_keyboard*1===1;
}
console.log(localStorage.getItem('native_keyboard'));
console.log('D',localStorage.getItem('native_keyboard'));
if(native_keyboard)document.getElementById('native_keyboard').className+=' active';

}
Expand Down

0 comments on commit f66b712

Please sign in to comment.