Skip to content

Commit

Permalink
applied ReleaseNotes for DS 265b1
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Symbroson committed Dec 31, 2023
1 parent 83ccecc commit 96aae93
Show file tree
Hide file tree
Showing 73 changed files with 594 additions and 204 deletions.
33 changes: 33 additions & 0 deletions files/ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
DS 2.66
- Removed docs auto-update (need more testing).

DS 2.65b2
- Removed Premium signup email box, to improve app privacy.
- Modified Premium subs description.
- Updated Hybrid/AppBar and Drawer template.
- Fixed docs back button issues after removing plugins or func params popup.
- Fixed issue with Hybrid UI docs not being available till app restart.
- Fixed issue with landscape display height not taking account of status bar.
- Add more app demos on fresh install (not just 'Hello World').
- Removed MUI link from main docs page (deprecated).
- Removed CreateCloudStore from Premium docs page (deprecated).

DS 2.65b1
- Added 'Bound' class, auto-binds methods of classes that extend it.
- Fixed Notification 'No Permissions' issue for < API33.
- Enabled docs to be updated via a plugin.
- Fixed version code on AABs not matching version name.
- Updated Docs, including new full text search facility and app types info.
- Enabled Hybrid by default (not just in experiments mode).
- Added app.SetErrorFilter( regex ) to allow filtering out certain errors (useful for nodejs apps).
- Fixed app icons not showing up at startup on slow devices.
- Added obj.Resize() to resize a control after device rotation (keeps original width/height ratios).
- Added 'AutoSize' option to all layouts - Resizes itself and child controls after device rotation.
- Fixed app.DisplayWidth() reporting wrong size with SoftNav and status bar visible.
- Prevented webview 'UseBrowser' option taking affect during redirects.
- Added web.SetUseBrowser( urlFilter ) method for fine control over urls that open a browser.
- Docs are no longer chopped off at bottom on device IDE.
- Removed full screen notification sample (now restricted on Android).
- Enhanced app.Check/GetPermission() to support individual "android.permission.*" strings.
- Added app.GetShortcuts() method, returns list of shortcuts associated with current app.

DS 2.64b2
- Fixed missing callback on app.LoadScript() when using cfg.Node.
- Added USB Drive SAF support + Updated 'Storage Access' sample.
Expand Down
25 changes: 22 additions & 3 deletions files/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ function DsApp()
/*#app*/ this.GetMediaFile = function( appName,ext ) { return prompt( "#", "App.GetMediaFile(\f"+appName+"\f"+ext ); }
/*#app*/ this.KillApp = function( procId ) { prompt( "#", "App.KillApp("+procId ); }
/*#app*/ this.CreateShortcut = function( name,iconFile,file,options ) { prompt( "#", "App.CreateShortcut(\f"+name+"\f"+iconFile+"\f"+file+"\f"+options ); }
/*#app*/ this.GetShortcuts = function() { var s = prompt( "#", "App.GetShortcuts(" ); if(s.length) return JSON.parse(s); else return null; }
/*#app*/ this.GetBuildNum = function() { return parseInt( prompt( "#", "App.GetBuildNum(" )); }
/*#app*/ this.GetOSVersion = function() { return parseInt( prompt( "#", "App.GetBuildNum(" )); }
/*#app*/ this.GetModel = function() { return prompt( "#", "App.GetModel(" ); }
/*#app*/ this.IsTablet = function() { return prompt( "#", "App.IsTablet(" )=="true"; }
/*#app*/ this.IsChrome = function() { return prompt( "#", "App.IsChrome(" )=="true"; }
/*#app*/ this.IsTV = function() { return prompt( "#", "App.IsTV(" )=="true"; }
/*#app*/ this.SetErrorFilter = function( filter ) { prompt( "#", "App.SetErrorFilter(\f"+filter ); }
/*#app*/ this.SetOnError = function( callback ) { prompt( "#", "App.SetOnError(\f"+_Cbm(callback) ); }
/*#app*/ this.SetOnDebug = function( callback ) { prompt( "#", "App.SetOnDebug(\f"+_Cbm(callback) ); }
/*#app*/ this.SetOnKey = function( callback ) { prompt( "#", "App.SetOnKey(\f"+_Cbm(callback) ); }
Expand Down Expand Up @@ -588,6 +590,7 @@ Obj = function( id, typeId )
/*#obj*/ self.AdjustColor = function( hue,sat,bright,cont ) { prompt( self.id, "Obj.AdjustColor(\f"+hue+"\f"+sat+"\f"+bright+"\f"+cont ); }
/*#obj*/ self.SetPosition = function( left,top,width,height,options ) { prompt( self.id, "Obj.SetPosition(\f"+left+"\f"+top+"\f"+width+"\f"+height+"\f"+options ); self._left = left; self._top = top;}
/*#obj*/ self.SetSize = function( width,height,options ) { prompt( self.id, "Obj.SetSize(\f"+width+"\f"+height+"\f"+options ); }
/*#obj*/ self.Resize = function() { prompt( self.id, "Obj.Resize(\f"); }
/*#obj*/ self.GetWidth = function( options ) { return parseFloat(prompt( self.id, "Obj.GetWidth(\f"+options )); }
/*#obj*/ self.GetHeight = function( options ) { return parseFloat(prompt( self.id, "Obj.GetHeight(\f"+options )); }
/*#obj*/ self.GetAbsWidth = function() { return parseInt(prompt( self.id, "Obj.GetAbsWidth(" )); }
Expand Down Expand Up @@ -1054,6 +1057,7 @@ function Web( id )
/*#web*/ obj.SetUserCreds = function( name,password ) { prompt( obj.id, "Web.SetUserCreds(\f"+name+"\f"+password ); }
/*#web*/ obj.SimulateKey = function( keyName,modifiers,pause ) { prompt( obj.id, "Web.SimulateKey(\f"+keyName+"\f"+modifiers+"\f"+pause ); }
/*#web*/ obj.SetRedirect = function( urlFrom, urlTo ) { prompt( obj.id, "Web.SetRedirect(\f"+urlFrom+"\f"+urlTo ); }
/*#web*/ obj.SetUseBrowser = function( urlFilter ) { prompt( obj.id, "Web.SetUseBrowser(\f"+urlFilter ); }
/*#web*/ obj.SetTouchMode = function( mode ) { prompt( obj.id, "Web.SetTouchMode(\f"+mode ); }
/*#web*/ obj.SetOnTouch = function( callback ) { prompt( obj.id, "Web.SetOnTouch(\f"+_Cbm(callback) ); }
/*#web*/ obj.SetOnUrl = function( callback ) { prompt( obj.id, "Web.SetOnUrl(\f"+_Cbm(callback) ); }
Expand Down Expand Up @@ -1633,10 +1637,10 @@ function Usb( id )
/*#usb*/ obj.Write = function( txt,encoding ) { prompt( obj.id, "Usb.Write(\f"+txt+"\f"+encoding ); }
/*#usb*/ obj.SetOnReceive = function( callback ) { prompt( obj.id, "Usb.SetOnReceive("+_Cbm(callback) ); }
/*#usb*/ obj.SetDTR = function( onOff ) { prompt( obj.id, "Usb.SetDTR(\f"+onOff ); }
/*#usb*/ obj.GetDTR = function( onOff ) { return prompt( obj.id, "Usb.GetDTR(" )=="true"; }
/*#usb*/ obj.GetDTR = function() { return prompt( obj.id, "Usb.GetDTR(" )=="true"; }
/*#usb*/ obj.SetRTS = function( onOff ) { prompt( obj.id, "Usb.SetRTS(\f"+onOff ); }
/*#usb*/ obj.GetRTS = function( onOff ) { return prompt( obj.id, "Usb.GetRTS(" )=="true"; }
/*#usb*/ obj.GetCD = function( onOff ) { return prompt( obj.id, "Usb.GetCD(" )=="true"; }
/*#usb*/ obj.GetRTS = function() { return prompt( obj.id, "Usb.GetRTS(" )=="true"; }
/*#usb*/ obj.GetCD = function() { return prompt( obj.id, "Usb.GetCD(" )=="true"; }
/*#usb*/ obj.SetMaxRead = function( bytes ) { prompt( obj.id, "Usb.SetMaxRead(\f"+bytes ); }
/*#usb*/ obj.SetMaxWrite = function( bytes ) { prompt( obj.id, "Usb.SetMaxWrite(\f"+bytes ); }
/*#usb*/ obj.SetTimeout = function( ms ) { prompt( obj.id, "Usb.SetTimeout(\f"+ms ); }
Expand Down Expand Up @@ -1768,6 +1772,21 @@ function Wpr( id )
return obj;
}

Bound = class
{
constructor() {
this.bindMethods(this);
}
bindMethods( ctx ) {
var meths = Object.getOwnPropertyNames(Object.getPrototypeOf(ctx))
for (var m in meths) {
var f = ctx[meths[m]];
ctx[meths[m]] = f.bind(ctx);
f._ctx = ctx; f._nohash = true; //<-- for DS callbacks.
}
}
}

I = function( func ) { if( func ) func._nohash=true; return func; }
M = function( ctx, func ) { if( func ) { func._nohash=true; func._ctx=ctx } return func; }
TW = function(txt,size) { return app.GetTextBounds(txt,size,0,null).width; }
Expand Down
8 changes: 6 additions & 2 deletions files/markup/en/MUI/AddAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
* @param {str_col} color
* @returns obj
*/






// ------------- SAMPLES -------------

2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonContained.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonElegant.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonFlat.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonOutlined.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonRaised.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonRaisedO.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonRound.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonRoundO.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateButtonToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
7 changes: 4 additions & 3 deletions files/markup/en/MUI/CreateFAB.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
*/


/** ### GetIcon
* Returns the icon.
/** ### GetIcon ###
* Returns the icon.
* $$ fab.GetIcon() $$
* @returns str-Material icon font
*/


/** @extern Animate */

/** @extern ClearFocus */
Expand Down Expand Up @@ -159,4 +160,4 @@ def OnClick():
app.ShowPopup("You clicked FAB")
*/



7 changes: 4 additions & 3 deletions files/markup/en/MUI/CreateFABElegant.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
*/


/** ### GetIcon
* Returns the icon.
/** ### GetIcon ###
* Returns the icon.
* $$ fab.GetIcon() $$
* @returns str-Material icon font
*/


/** @extern Animate */

/** @extern ClearFocus */
Expand Down Expand Up @@ -158,4 +159,4 @@ def OnClick():
app.ShowPopup("You clicked FAB")
*/



7 changes: 4 additions & 3 deletions files/markup/en/MUI/CreateFABOutline.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
*/


/** ### GetIcon
* Returns the icon.
/** ### GetIcon ###
* Returns the icon.
* $$ fab.GetIcon() $$
* @returns str-Material icon font
*/


/** @extern Animate */

/** @extern ClearFocus */
Expand Down Expand Up @@ -159,4 +160,4 @@ def OnClick():
app.ShowPopup("You click FAB")
*/



2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateRadio.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH1.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH2.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH3.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH4.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH5.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextH6.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextJumbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextParagraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
2 changes: 2 additions & 0 deletions files/markup/en/MUI/CreateTextSecondary.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

/** @extern SetBackAlpha */

/** @extern Resize */

/** @extern SetBackColor */

/** @extern SetBackGradient */
Expand Down
4 changes: 0 additions & 4 deletions files/markup/en/MUI/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ MUI uses the free Roboto font family downloaded from <a href='www.fonts.google.c
For the icons, MUI uses the Google's Material Icon Font.
*/



// ------------- SAMPLES -------------

7 changes: 7 additions & 0 deletions files/markup/en/MUI_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@
*/


/** ### Resize
* @name Resize
* @brief resize a control after device rotation
* Resize a control after device rotation by keeping the original width/height ratios.
*/


/** ### SetFontFile
* @name SetFontFile
* @brief Change the used font
Expand Down
Loading

0 comments on commit 96aae93

Please sign in to comment.