Commits on Sep 21, 2018
  1. Merge pull request #2548 from kutoman/patch-5

    codenameone committed Sep 21, 2018
    added getter for url
Commits on Sep 19, 2018
  1. Fixed deadlock caused by race condition when calling stopEditing at t…

    shannah committed Sep 19, 2018
    …he same time that the 'next' button is pressed on Android. #2544
  2. Fixed regression with gallery multiselect causing subsequent capture …

    shannah committed Sep 19, 2018
    …photo to fail. #2550
    Fixed deadlock when using capture photo on ios device that doesn't have a camera (e.g. the iOS simulator).
    Fixed some issues with ios gallery multiselect.  Previously, if the user selected an image that is stored on icloud, it would fail.  Now it will correctly download the image automatically.
  3. Update

    codenameone committed Sep 19, 2018
Commits on Sep 18, 2018
  1. Added warning on iOS attempt is made to create a texture that exceeds…

    shannah committed Sep 18, 2018
    … the max texture size. This should give the developer a clue when images are rendered completely black as to what the problem is.
    Added define flag that will optionally auto-scale textures that are too large  -- this is set to off and there is no corresponding build hint as this is probably a bad idea... but it is there to be turned on if we change our minds later.
    Added fallback in DrawImage.m so that it an image is too large, it will use the size that has been specified as the rendered size.  When drawing images, it tries to rely on OpenGL for scaling if possible.  This means that if you load a very large image, but call scaledWidth(100) and try to render that, it will still create a giant texture.  Not sure if it is better to always just create a 100px texture in this case, but, for now, I have made it fall back to 100px only if the actual image size exceeds the max texture size.  This is probably an area thatdeserves experimentation to see if there is a better heuristic to maximize performance and minimize memory usage.
    Updated javadocs for Image.createImage(String) to indicate that this will work for FileSystemStorage.
    Applied small fix in iOS implementation of createImage(String) to handle file paths properly.  It may have already worked in some cases - but did not work in others.
Commits on Sep 17, 2018
  1. added getter for url

    kutoman committed Sep 17, 2018
    just for the case of debugging. When e.g. a request fails and the url of the request should be logged
Commits on Sep 14, 2018
  1. Implemented Media.prepare() on iOS for videos so that the video will …

    shannah committed Sep 14, 2018
    …prepare to play. This is necessary to download the poster frame of a video.
  2. Added flag RENDER_WEBVIEWS_IN_FRONT which causes webviews to be rende…

    shannah committed Sep 14, 2018
    …red in front of the CN1 canvas. This is because z-indexing is flakey on UWP. This flag can be enabled with the build hint windows.renderWebviewsInFront=true.
    Fixed onLoad event in UWP web view so that it fires consistently when the DOM is finished loading.
    Fixed Browser.executeAndReturnString on UWP.  Previously, it didn't work at all.
  3. Added better javascript callback mechanisms on iOS and Android. The s…

    shannah committed Sep 14, 2018
    …tandard browser navigation callback runs into trouble with there are too many callbacks happening too quickly - some tend to get dropped. On iOS, this improved mechanism requires the JavascriptCore library to be linked so it is disabled by default. It can be enabled using the CN1_USE_JAVASCRIPTCORE define which can be uncommented in CodenameOne_GLViewController.h. This will be enabled in the build server using the ios.useJavascriptCore=true build hint which is false by default. Eventually this should probably be on by default, but I left it off since JavascriptCore requires iOS 7 or higher.
Commits on Sep 13, 2018
  1. Updated version number

    codenameone committed Sep 13, 2018
Commits on Sep 10, 2018
  1. Added detection for the name of the generated VALUES static field in …

    shannah committed Sep 10, 2018
    …enums that seems to vary for different java compilers. Previously assumed that the field is named _VALUES but it seems that some compilers emit ENUM_VALUES.
Commits on Sep 4, 2018
  1. Fixed regression in browser component that caused javascript executio…

    shannah committed Sep 4, 2018
    …n to fail if browsercomponent hasn't been added to the view hierarchy. Fixed issue reported in mailing list
  2. Updated templates for app icons in ParparVM to include all current ap…

    shannah committed Sep 4, 2018
    …p icon sizes as of Xcode 9.2/9.4. This should correct issue with appstore uploads described
Commits on Sep 1, 2018
Commits on Aug 31, 2018
  1. Improved performance of BrowserComponent executeAndReturnString on An…

    shannah committed Aug 31, 2018
    …droid. No longer uses invokeAndBlock. executeAndReturnString is still an anti-pattern (prefer one of the async methods), but this change makes it more usable on android.
Commits on Aug 30, 2018
  1. Added support for executing JS in iOS browser component from main thr…

    shannah committed Aug 30, 2018
    …ead. This is to enable more performant applications with HTML UIs.
  2. Improvements for BrowserComponent so that javascript can be run on th…

    shannah committed Aug 30, 2018
    …e main thread performantly. This includes flag for BrowserComponent fireCallbacksOnEdt which allows you to cause javascript callbacks to be run on the main thread if desired. Default is still the EDT.
  3. Changed iOS video components so that they don't prepare to play the v…

    shannah committed Aug 30, 2018
    …ideo ahead of time. This is because preparing to play may conflict with other av sessions that are currently running, and this is disruptive if merely displaying the video component (not playing it) causes a recording session or audio session to be interrupted. The down side is that it may introduce a bit of delay when the play button is pressed... but experiments have shown this to be negligible so far.
    Also changed the video component on iOS to not use the system av session as this was conflicting with existing recording sessions.  Most versions of createVideoComponent already worked this way - just changed the URL version to match the rest.
Commits on Aug 29, 2018
  1. Reverted support for font scaling system properties. Will add them in…

    shannah committed Aug 29, 2018
    … the Settings and GUIBuilder projects instead so that they don't affect simulator. 21461e5
  2. Added cn1.fontScale java system property and CN1_FONT_SCALE environme…

    shannah committed Aug 29, 2018
    …nt variable to scale the font size in CN1 apps. E.g. would scale fonts to be 2x bigger than normal. Java system property takes priority. Followed by environment variable. Default value is 1.0.
  3. Adjusted HiDPI retina scale calculation so that it should work in mor…

    shannah committed Aug 29, 2018
    …e cases than the basic Macbook Pro retinas. Previously it only scaled the output if the device scaling was exactly 2.0. Now it will scale always.
    Added environment variable CN1_RETINA_SCALE and Java System property cn1.retinaScale to override the scaling.  Java System property takes highest priority if set, then environment variable, then the platform calculation.
    #2537 (comment)
  4. Fixed issue with dialog sizing. #2536

    shannah committed Aug 29, 2018
    This revisits the fix for #2519, which was, evidently, incorrect.
    The actual original problem was that InputComponent doesn't report a correct preferred size until it is initialized, and packing a dialog relies on this calculation before it is displayed, and thus, before its children are initialized.
Commits on Aug 27, 2018
  1. Disabled use of splash screen images by default. These can be enabled…

    shannah committed Aug 27, 2018
    … via the ios.generateSplashScreens=true build hint. #2522
    REf codenameone/BuildDaemon@ede8b72
Commits on Aug 25, 2018
Commits on Aug 24, 2018
  1. Added support for 'ios.doneButtonColor' display property which can be…

    shannah committed Aug 24, 2018
    … used to set the done button color of the keyboard button bar in iOS. #2333