-
-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove old code, fix sdk version, update action
- Loading branch information
Showing
13 changed files
with
19 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 2 additions & 11 deletions
13
Alloy/commands/compile/parsers/Alloy.Abstract.FlexSpace.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
var U = require('../../../utils'), | ||
CU = require('../compilerUtils'), | ||
tiapp = require('../../../tiapp'), | ||
iOSProxy; | ||
|
||
var MIN_VERSION = '5.4.0'; | ||
tiapp = require('../../../tiapp'); | ||
|
||
exports.parse = function(node, state) { | ||
return require('./base').parse(node, state, parse); | ||
}; | ||
|
||
function parse(node, state, args) { | ||
|
||
if (tiapp.version.gte(tiapp.getSdkVersion(), MIN_VERSION)) { | ||
iOSProxy = 'iOS'; | ||
} else { | ||
iOSProxy = 'iPhone'; | ||
} | ||
|
||
return { | ||
parent: { | ||
node: node, | ||
symbol: args.symbol | ||
}, | ||
styles: state.styles, | ||
code: args.symbol + ' = Ti.UI.createButton({systemButton: Ti.UI.' + iOSProxy + '.SystemButton.FLEXIBLE_SPACE});' | ||
code: args.symbol + ' = Ti.UI.createButton({systemButton: Ti.UI.iOS.SystemButton.FLEXIBLE_SPACE});' | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
const _ = require('lodash'); | ||
const tiapp = require('../../../tiapp'); | ||
const U = require('../../../utils'); | ||
const MIN_VERSION = '10.0.0'; | ||
|
||
exports.parse = function(node, state) { | ||
const tiappSdkVersion = tiapp.getSdkVersion(); | ||
if (tiapp.version.lt(tiappSdkVersion, MIN_VERSION)) { | ||
U.die(`Ti.UI.OptionBar requires Titanium SDK ${MIN_VERSION}+`); | ||
} | ||
return require('./Ti.UI.ButtonBar').parse(node, state); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
const tiapp = require('../../../tiapp'); | ||
const CU = require('../compilerUtils'); | ||
const U = require('../../../utils'); | ||
const MIN_VERSION = '8.0.0'; | ||
|
||
exports.parse = function(node, state) { | ||
const tiappSdkVersion = tiapp.getSdkVersion(); | ||
if (tiapp.version.lt(tiappSdkVersion, MIN_VERSION)) { | ||
const platform = CU.getCompilerConfig().alloyConfig.platform; | ||
if (platform !== 'ios') { | ||
U.die(`Ti.UI.TabbedBar for ${platform} requires Titanium ${MIN_VERSION}+`); | ||
} | ||
node.setAttribute('ns', 'Ti.UI.iOS'); | ||
} | ||
return require('./Ti.UI.ButtonBar').parse(node, state); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
Alloy/commands/compile/parsers/Ti.UI.iPhone.NavigationGroup.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters